Did you check the actual HTML that is generated?
Eelco
On 10/31/06, dzenanr <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I determine the number of rows and columns for a text area using
> AttributeModifier. Usually there are more columns than rows and they are
> derived properly in my code. However, the text area is always displayed as a
> square, as the number of rows determines, by error?, also the number of
> columns. The following is my code:
>
> ...
> private TextArea textArea;
> ...
> int propertySize =
> propertyConfig.getDisplayLengthInt();
> int areaRowSize = (propertySize/App.AREA_COLUMN_SIZE)
> + 1;
> String noOfRows = Transformer.string(areaRowSize);
> String noOfColumns =
> Transformer.string(App.AREA_COLUMN_SIZE);
> setAttribute("rows", noOfRows);
> setAttribute("cols", noOfColumns);
> ...
>
> public void setAttribute(String attributeName, String attributeValue) {
> AttributeModifier attributeModifier = new AttributeModifier(
> attributeName, true, new
> Model(attributeValue));
> textArea.add(attributeModifier);
> }
>
> Thanks for your help.
>
> Dzenan
> --
> View this message in context:
> http://www.nabble.com/AttributeModifier-for-TextArea-tf2546806.html#a7097341
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user