Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Nrapendra Sharma
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??
 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try with cols and no scroll bar. It might work.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!