You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Narayana S <na...@gmail.com> on 2008/06/05 14:40:03 UTC
Extending Struts 2 controls
Hi,
in my application, i have a requirement of implementing field level
customization, like locking the field, hiding the field etc.. to achieve
this i am planning to extends "struts-tags" tag library functionality. can
any one give any idea of how to do this?
Thanks in advance.
Re: Extending Struts 2 controls
Posted by Narayana S <na...@gmail.com>.
Hi Dave,
Thanks for reply, let me give more details. i need to apply field
level security to all the form controls. to apply the field customization i
want to extends the custom components provided by struts. for example to
extend i am planning to text field tag *
org.apache.struts2.views.jsp.ui.TextFieldTag*, i want to add a new attribute
to the text field tag.
can you tell me, how i can implement this?
Thanks in advance.
On Thu, Jun 5, 2008 at 6:45 PM, Dave Newton <ne...@yahoo.com> wrote:
> --- On Thu, 6/5/08, Narayana S <na...@gmail.com> wrote:
> > in my application, i have a requirement of implementing field
> > level customization, like locking the field, hiding the field
> > etc.. to achieve this i am planning to extends "struts-tags"
> > tag library functionality. can any one give any idea of how
> > to do this?
>
> I'm not sure what you're asking.
>
> To extend the S2 tags themselves you might need to do any or all of the
> following, depending on your needs:
>
> * add tag attributes to the component and tag classes
> * add additional Java code
> * regenerate TLD
> * modify FreeMarker templates
>
> Some might be easier to extend than others.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Re: Extending Struts 2 controls
Posted by Dave Newton <ne...@yahoo.com>.
--- On Thu, 6/5/08, Narayana S <na...@gmail.com> wrote:
> in my application, i have a requirement of implementing field
> level customization, like locking the field, hiding the field
> etc.. to achieve this i am planning to extends "struts-tags"
> tag library functionality. can any one give any idea of how
> to do this?
I'm not sure what you're asking.
To extend the S2 tags themselves you might need to do any or all of the following, depending on your needs:
* add tag attributes to the component and tag classes
* add additional Java code
* regenerate TLD
* modify FreeMarker templates
Some might be easier to extend than others.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org