On Mar 17, 2010, at 5:44 AM, Juan Antonio wrote: > > I have several questions about struts2, forms and javascript usage in it. If > someone could help me, it would be appreciate. > > My first question is if there is a way to submit the form, for reloading the > web page. I need to show or hide several fields in a form, depending on the > value selected in a select or in a combo-box, so i came to the solution to > use javascript and the triggers "onChange" or "onSelect", is this possible? > An example would be appreciate too. :)
Yes, you should be able to do this with the included Prototype library. You should be able to search it's documentation (http://www.prototypejs.org) for more information. You could also look at the Struts jQuery Plugin, but I haven't tried it with AppFuse. http://code.google.com/p/struts2-jquery-plugin > > My second question: it is possible to use struts 1, with tiles, in appfuse > 2.1.0-M1? You have full control of the application that AppFuse produces, so you can do anything you want. However, we used Tiles at one point and found SiteMesh much easier to use and configure. http://raibledesigns.com/rd/entry/my_tiles_to_sitemesh_migration > > And third question, a good struts2 tutorial, with good examples (with > appfuse would be perfect)? > Have you looked at the AppFuse tutorial for Struts 2? http://appfuse.org/display/APF/Using+Struts+2 Hope this helps, Matt --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net