I have a dual select box problem - Select control-A needs to trigger an event which update Select control-B. Using the s:div tag, I can get the desired result by having a separate page which contains just a duplicate of Select Control-B, and is updated by the Action-update method. Now I understand that this is probably the only way that the DOJO tags in S2 can handle this problem, because the s:div tag just refreshes its contents, it can't force the select tag to update, as it is executed on the server. Is this the correct understanding and solution? This would mean an extra jsp page for each ajax tag which needs more than a simple string. A pretty unsatisfactory solution.
I was looking at the solution in JavaWebParts for the DoubleDynamicSelect problem, and it is better in some ways, worse in others. The part which is appealing is the possibility of an action outputting the code for the dynamic select control, instead of using a Servlet, as the JWP solution did. In Struts-1, if an action execute() method returned null, the container considered that the result had been rendered, and did nothing further. Is there a corollary behavior in S2. This would allow me to have a method in the action class write the select tag html to the result output stream, and that would probably suffice. If there is no such behavior in S2, does anyone have any better ideas? My guess is that the Dynamic-Dual-Select problem is pretty common. Is there any thought to creating an Ajax-aware select tag in the Dojo library, or does anyone know a better solution. Thanks, - Ray Clough -- View this message in context: http://www.nabble.com/S2---AJAX-questions-tf3815167.html#a10799998 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]