Hi,
The following code works fine for Single attribute (Converting Text Field to Text Area):
protected void renderSingleAttribute(String strFormattedValue, String strValue, boolean bReadonly, boolean bHasCompleteList,JspWriter out) throws IOException, JspTagException
{ String strLines = setDynamicLines(); // This is a custom method
String size = setDynamicSize(); // This is a custom method
DocbaseAttributeValue value = (DocbaseAttributeValue) getControl();
value.setLines(strLines);
value.setSize(size);
super.renderSingleAttribute(strFormattedValue, strValue, bReadonly, bHasCompleteList, out);
}
I got the code for Repeating attribute, but It is not working:
protected void renderRepeatingAttribute(String strFormattedValue, boolean bReadonly, JspWriter out)
{ String strLines = setDynamicLines();
String size = setDynamicSize();
DocbaseAttributeValue value = (DocbaseAttributeValue) getControl();
value.setRepeating(true);
value.setLines(strLines);
value.setSize(size);
super.renderRepeatingAttribute(strFormattedValue, bReadonly, out);
}
If have any clue, please give me the same. It would be a great help.
Thank you.
ashok