aspose file tools
The moose likes JSF and the fly likes How to fix number of charaters in a line inside inputTextArea widget Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to fix number of charaters in a line inside inputTextArea widget" Watch "How to fix number of charaters in a line inside inputTextArea widget" New topic
Author

How to fix number of charaters in a line inside inputTextArea widget

Nrapendra Sharma
Ranch Hand

Joined: Jun 16, 2008
Posts: 31
I want to have automatic linebreak after 50 characters inside a InputTextarea
I tried using "cols" but it sets the width i guess.

How can i implement it ??


Regards,
Nrapendra Sharma
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14561
    
    7

Don't expect too much happiness. The inputTextArea is just a wrapper for the HTML TEXTAREA control and I don't think you'll find that option in the HTML RFC.

One of the smarter (JavaScript-based) JSF extension tags might be able to handle that, but I don't know.


Customer surveys are for companies who didn't pay proper attention to begin with.
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Try with cols and no scroll bar. It might work.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to fix number of charaters in a line inside inputTextArea widget
 
Similar Threads
inputTextArea limit characters
Usage of inputTextarea in JSF
Need inputTextArea functionality + escape="false"
InputText and InputTextArea value null when inside a DataTable
inputTextArea