Hi,
by default FormView doesn't manage a href. But you can configure it with
displayer-config
http://formview.sourceforge.net/developer-guide.html#How customize FormView
DisplayerConfig
(you can manage it like div)
in your href you set id <a id="myId" href="" >...</a>
<!-- HTML A HREF-->
<displayer name="a" attributesName="id" >
<behaviour name="INVISIBLE" >
<replaceElement><![CDATA[ ]]></replaceElement>
</behaviour>
</displayer>
With this config if you set INVISIBLE state to the a href with id myId
it will be replace with
Regards Angelo
2007/6/24, Pierre Goupil <[EMAIL PROTECTED]>:
Hello,
This tool looks great. But can you use it for links too ? I mean, to
display
or hide a link (or anything else) depending upon the role of the user ?
I've
browsed through the doc and it doesn't seem clear.
Cheers,
Pierre
2007/6/24, Archer <[EMAIL PROTECTED]>:
>
> Thank you very much for your help...
>
> Regards
> Viplav Kallepu
>
> On 6/22/07, Angelo zerr <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I think you can be interested with FormView
> > http://formview.sourceforge.net/which is taglib to manage state of
> > your fields (hidden, visible,...). With
> > FormView you can manage fields switch user role
> > http://formview.sourceforge.net/roles.html
> >
> > Regards Angelo
> >
> > 2007/6/22, Archer <[EMAIL PROTECTED]>:
> > >
> > > Hi,
> > >
> > > I am using struts 1.3.8. I have text fileds in jsp which should be
> made
> > > editable and non-editable depending on the user role. I used
container
> > > managed security for implementing the role based security. Can
anyone
> > > please help me how to sort out this issue. I am new to security
> > > implementation.
> > >
> > > Thanks
> > > Archer
> > >
> >
>
>
>
> --
> Regards
> Archer
>
--
"Mon horizon était désormais les pétales courbés,
Ma nouvelle demeure resplendissait de flèches d'herbes folles
Et d'oreillers de pollens odorants."
(Naïmah, le philosophe Fémereif)