AjaySrini wrote:
Hi,
Currently i'm developing a web application which consists of 4 radio buttons
using Struts 2.0 written in div tag. Based on the selection of the radio
buttons i need to display the other struts tags such as
<s:optiontransferselect>, <s:groupbox>, <s:combobox>, etc... using ajax
implementation.
Looking forward to ur reply...
Thanks,
Srini.
Simple solution (no ajax):
include the s:optiontransferselect etc in hidden divs in the page.
use javascript to show/hide the divs on radio button events.
Ajax solution:
Attach an event listener to the radio button (eg. with the onchange ).
Have the listener publish a topic.
Struts2 will make the ajax request and insert the response into your
target div.
Your response contains the s:optiontransferselect etc tags.
Topics are discussed here:
http://struts.apache.org/2.0.11/docs/ajax-tags.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]