Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Extending Struts 2 Tags

Narayana S

2008-09-18

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

   i have a requirement of extending the struts 2 control tags like text
field, check box, select. i want to add a new attribute to the component,
which will allows to identify certain properties like visibility,
editability, label text from the database and render the component.

to implement this for text field i have created a class that extends
"org.apache.struts2.views.jsp.ui.TextFieldTag", from here i am trying to
assign label for the text field as "super.setLabel("Employee Number");". but
it is not rendering the label. can any one suggest me the correct process to
do this?

Thanks in advance
©2008 gg3721.com - Jax Systems, LLC, U.S.A.