Hi Frederik, FormView can works with any HTML or JSP Taglib. It update HTML switch configuration and state of your HTML field. Formview works with Struts 1.x to use information about validation.xml (like required, date...). I don't know how works Struts 2.x validation but I think it's possible to develop that.
Regards Angelo 2010/3/10 Frederik Minatchy <frederi...@yahoo.fr> > Hello... > > Thank you for your answer... > > Your tag seems usefull.. but it seems to have been developped for Struts > 1.x > > --- En date de : Mar 9.3.10, Angelo zerr <angelo.z...@gmail.com> a écrit : > > > De: Angelo zerr <angelo.z...@gmail.com> > > Objet: Re: About the better way to implement a JSP in read/edit mode > > À: "Struts Users Mailing List" <user@struts.apache.org> > > Date: Mardi 9 mars 2010, 21h04 > > Hi Frederick, > > > > I had created a project about this problem with > > http://formview.sourceforge.net/ > > > > With FormView, you develop ONE Jsp to manage CRUD form. > > It's old project but > > it works well (I have not time today to improve it). > > > > Regards Angelo > > > > 2010/3/9 Paweł Wielgus <poulw...@gmail.com> > > > > > 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 <frederi...@yahoo.fr>: > > > > 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: user-unsubscr...@struts.apache.org > > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >