| Author |
adding attribute to existing tag. How???
|
ira romanenko
Greenhorn
Joined: Aug 07, 2006
Posts: 4
|
|
Hello all! Could you help me? I need to add attribute maxlength to tag <h:inputTextarea>, but don't know how to do it. Could you give me some advises?
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
You can't add attributes to tags, whether JSF or plain JSP tags. Instead, you'd have to subclass the tag, extend it, and declare a TLD for the extended tag. However, what you're asking for is part of the standard property set for that tag, so you don't need any extensions to do that. Here's a working example:
|
Customer surveys are for companies who didn't pay proper attention to begin with.
|
 |
ira romanenko
Greenhorn
Joined: Aug 07, 2006
Posts: 4
|
|
|
Thank you, but I need inputTextarea, not inputText
|
 |
Tim Holloway
Saloon Keeper
Joined: Jun 25, 2001
Posts: 14480
|
|
Ooops. Sorry about my inability to see the obvious. But isn't that set as the product of rows= x cols= ? If not, I suppose a validator is in order.
|
 |
 |
|
|
subject: adding attribute to existing tag. How???
|
|
|