[jboss-user] [JBoss Seam] - Form submit using javascript and how to send to a handler?
tony.herstell@gmail.com
do-not-reply at jboss.com
Sat Apr 14 19:47:30 EDT 2007
Given:
| <h:selectOneRadio id="advertType" required="true"
| value="#{advertisingCampaignController.campaign.advert.type}" onchange="doSubmit()">
| <s:selectItems value="#{advertisingCampaignController.campaign.advert.advertTypes}"
| var="advertType" label="#{messages[advertType.label]}" />
| <s:convertEnum />
| </h:selectOneRadio>
|
I want to do a form sumbit on the change event to a handler (advertisingCampaignController.handleAdvertChoiceChange) so that I can re-display a page which will contain the updated model...
This allows me to hide components I don't want displayed
| <s:fragment rendered="#{advertisingCampaignController.campaign.advert.type == advertisingCampaignController.campaign.advert.advertTypes[0]}">
|
[0] maps to the first choice from the selectOneRadio as it maps to an enum.
Anyon know who I can do this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037337#4037337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037337
More information about the jboss-user
mailing list