I need to add a custom attribute in Textarea Component. I have made a component class by extending HtmlInputTextarea, a tag class, add that attribute in both the classes, made setter/getter for that attribute, add that attribute in .tld file. Now when I run the page, using that custom component, I am getting the value of that attribute inside setter in tag class but setter in my component class is not being invoked.
This is a fundamental constraint on JSP custom tags - you can neither add to nor remove from a tag's attribute set as defined in the TLD. The closest you can get is to subclass the taglibrary class you're interested in.
You evidently did that, but it appears that you didn't setup your new tag's TLD properly. Either that or you misdefined the property setter (didn't make it public, didn't capitalize the name properly etc.).
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 14 years ago
Originally posted by Tim Holloway: You evidently did that, but it appears that you didn't setup your new tag's TLD properly. Either that or you misdefined the property setter (didn't make it public, didn't capitalize the name properly etc.).
Below is my .tld entry under <tag> element
Below is my setter, defined in class HtmlInputTextarea extends javax.faces.component.html.HtmlInputTextarea
Tag method is working good, as I have mentioned in my previous post. Kindly put some more thoughts because thought works.
Remember to always leap before you look. But always take the time to smell the tiny ads: