You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fea jabi <zy...@hotmail.com> on 2006/10/20 15:17:42 UTC

display only mode using struts tags

Developed jsp using struts html tags. (html:text etc.....)

Now we have the requirement which should display the values only is display 
mode on a condition. user should not be able to edit any in some condition.

Is there something in struts that can be used to get this functionality. I 
have seen that layout tag does have this. But use it we have to re-write the 
jsp's.

is there any other option I can use to minimize the re-writting of code.

Thanks.

_________________________________________________________________
Get today's hot entertainment gossip  
http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: display only mode using struts tags

Posted by Angelo zerr <an...@gmail.com>.
Hi martin,
if your are intersted, you can see FormView Project at
http://formview.sourceforge.net
With Formview you can manage mode (READ-ONLY, READ-WRITE.) of your jsp
fields in your  action struts or with  a XML  file config

Regards Angelo

2006/10/20, Martin Kindler <ki...@arcor.de>:
>
> I do not see any sensible way to do it without changing the JSPs. The user
> must see somehow that the fields are readonly and this must be done in the
> frontend. You could of course just choose to not evaluate the ActionForm
> in
> the "readonly"-case, but this would be not very user-friendly.
>
> But the Struts form-tag has an attribute "diabled" (beginning in 1.2.7)
> which sets all fields of a form to readonly. This could be a possibility
> requiring only a bit of work.
>
> Martin
>
> > -----Ursprüngliche Nachricht-----
> > Von: fea jabi [mailto:zyxrm@hotmail.com]
> > Gesendet: Freitag, 20. Oktober 2006 15:18
> > An: user@struts.apache.org
> > Betreff: display only mode using struts tags
> >
> >
> > Developed jsp using struts html tags. (html:text etc.....)
> >
> > Now we have the requirement which should display the values
> > only is display
> > mode on a condition. user should not be able to edit any in
> > some condition.
> >
> > Is there something in struts that can be used to get this
> > functionality. I
> > have seen that layout tag does have this. But use it we have
> > to re-write the
> > jsp's.
> >
> > is there any other option I can use to minimize the
> > re-writting of code.
> >
> > Thanks.
> >
> > _________________________________________________________________
> > Get today's hot entertainment gossip
> > http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

AW: display only mode using struts tags

Posted by Martin Kindler <ki...@arcor.de>.
I do not see any sensible way to do it without changing the JSPs. The user
must see somehow that the fields are readonly and this must be done in the
frontend. You could of course just choose to not evaluate the ActionForm in
the "readonly"-case, but this would be not very user-friendly.

But the Struts form-tag has an attribute "diabled" (beginning in 1.2.7)
which sets all fields of a form to readonly. This could be a possibility
requiring only a bit of work.

Martin

> -----Ursprüngliche Nachricht-----
> Von: fea jabi [mailto:zyxrm@hotmail.com] 
> Gesendet: Freitag, 20. Oktober 2006 15:18
> An: user@struts.apache.org
> Betreff: display only mode using struts tags
> 
> 
> Developed jsp using struts html tags. (html:text etc.....)
> 
> Now we have the requirement which should display the values 
> only is display 
> mode on a condition. user should not be able to edit any in 
> some condition.
> 
> Is there something in struts that can be used to get this 
> functionality. I 
> have seen that layout tag does have this. But use it we have 
> to re-write the 
> jsp's.
> 
> is there any other option I can use to minimize the 
> re-writting of code.
> 
> Thanks.
> 
> _________________________________________________________________
> Get today's hot entertainment gossip  
> http://movies.msn.com/movies/hotgossip?icid=T002MSN03A07001
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org