Yes I know.. And this is what I made...

The readonly parameter is set dynamically by the Action class

--- En date de : Mar 9.3.10, Paweł Wielgus <[email protected]> a écrit :

> De: Paweł Wielgus <[email protected]>
> Objet: Re: About the better way to implement a JSP in read/edit mode
> À: "Struts Users Mailing List" <[email protected]>
> Date: Mardi 9 mars 2010, 20h40
> Hi Frederick,
> You can also add readonly or disabled property to
> textfields.
> But i don't think that there is a simple answear to your
> question
> about if it is good or bad.
> 
> Best greetings,
> Paweł Wielgus.
> 
> 
> 2010/3/9 Frederik Minatchy <[email protected]>:
> > Hello everybody...
> >
> >
> > I wonder about the better way to implement a JSP which
> shows the same informations in readonly mode and in
> creation/modification mode.
> >
> > So I have just designed the JSP' fields with
> s:textfield who can be dynamically shown in readonly mode
> with special css (background:transparent; border:none;...)
> specified in the action class.
> >
> > So the action class sets some attributes with certains
> values and than the html stream is generated in read mode or
> in edit mode.
> >
> > Is this the good way or should I developpe two JSP :
> one in read mode and an other one in edit mode?
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to