I am using fieldgroup, and i want to replace the Simple Text field into TextArea. Where i want to
have multiline text… Please tell me how to accomplish that…
Use custom field. Look here
In case of replacing TextField with TextArea within FieldGroup, you just need to define the
rows attribute, for instance:
<fieldGroup id="fieldGroup" datasource="userDs"> <column width="250px"> <field property="login" rows="5"/> ... </column> </fieldGroup>
So, no need to use a custom component.
I’ve been messing with layouts and TextAreas today and just saw this post. I have the following layout for my field group and have set Rows 4 and Cols 2 for the TextArea property but my TextArea is not spanning multiple columns.
What am I doing wrong?
<fieldGroup id="fieldGroup" datasource="testFieldsDs"> <column width="250px"> <field property="fieldOne"/> <field cols="2" property="fieldThree" rows="4"/> </column> <column> <field property="fieldTwo"/> </column> </fieldGroup>
FieldGroup does not support colspan / rowspan properties. If you need them - use GridLayout component.
rows properties only for text box width / height. If you set width / height for TextArea these attributes are ignored.
Box layout is your friend.