Re: html:messages Design issue: mixing data and presentation!!!!
Why do you have to put the html in the resource file for header and footer? You can use include directive instead. - Original Message - From: JC [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 3:31 AM Subject: html:messages Design issue: mixing data and presentation Hi, A great thing with Struts is the error validation capabilities. However, the use of html:errors/, or lately html:messages, poses a problem that I found not to be a very good design (though it is slightly better in the messages tag). What I don't like is, in order to get any presentation formatting on the header and footer, you need to enter html in the resources and therefore mixing up data and presentation. An example where this apply is that we have an i18n utility where the administrator for each country can translate all messages from a default language into their local language and for the messages headers and footers they have to see the html as well. Has anyone thought of this before? /Johannes _ Hitta snörapporter... från 500 olika skidorter i Europa på http://se.snow.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help!!! Multiple checkbox'es
Try to use html:multibox instead of individual checkbox. Subject: Help!!! Multiple checkbox'es From: Mihails Gulajevs [EMAIL PROTECTED] === Hello everyone! Happy New Year ! Could anybody help me ? How to organize multiple checkbox'es in form ? The form updates itself interactively Thank you! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Another questions about checkboxes
In the reset method of the form class check what kind of action is accessing it and only reset the form whenever neccessary. You can do this by setting a hidden form field html:hidden property=action value=whatever in your jsp file and add the coresponding attribute in your form class. Good luck! Hi, I have a form that has a Boolean property that in the form reset method is reset to false. This form is used over two pages. In the first page there is a checkbox that the user can select to modify this Boolean property. This page is submitted to an action class that just forwards to the second page. In the second page I display the checkbox value. After the second page the form is submitted to another action to process. The problem. In the first page the checkbox works correctly. In the second page, which is a summary page of selections on the first page, the form values are shown correctly. When the second page gets submitted to the last action class, the checkbox is reset to false and that is the value that the action class gets. I know that the second page, even though it only displays the values shown in the first page, is calling the reset method of the form. I need the reset method to set the Boolean to false because the user might go back a page and uncheck the checkbox. Does anyone have any experience of using checkboxes when the form goes over multiple pages? Any ideas on how I can fix this. Thanks a lot of any help. Alex -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]