- 
        1. Re: submitting selected option when using <s:convertEnum...>damianharvey.damianharvey.gmail.com Mar 25, 2008 4:41 PM (in response to jgreene)It shouldn't matter whether you use the Enum or the List. All you need to do is add the <a:support> to the first drop down (as you've done), but remove the immediate="true". If you're concerned about performance instead consider ajaxSingle="true". You definitely don't need the actionParam. Cheers, Damian. 
- 
        2. Re: submitting selected option when using <s:convertEnum...>danielc.roth Mar 25, 2008 4:57 PM (in response to jgreene)I have done something similar a while ago (just some copy paste): <h:selectOneRadio id="baseDocumentType" immediate="true" value="#{order.type}" layout="horizontal"> <s:convertEnum /> <s:selectItems value="#{order.types}" var="type" label="#{type.name}" /> <a:support event="onchange" reRender="chooseBaseDocument" /> </h:selectOneRadio>panelGrid with id 'chooseBaseDocument' gets rerendered and uses the inputted data (order.type). Some bean code: private BaseDocumentType[] types = BaseDocumentType.values(); public BaseDocumentType[] getTypes() { return types; } private BaseDocumentType type = BaseDocumentType.BLABLA; public BaseDocumentType getType() { return type; } public void setType(BaseDocumentType type) { this.type = type; }One could (and I should) probably make use of @Factory, @DataModel and @DataModelSelection in some way here... 
- 
        3. Re: submitting selected option when using <s:convertEnum...>jgreene Mar 25, 2008 7:17 PM (in response to jgreene)Damian - 
 thanks for the quick response, Damian. The approach you described worked great. I thought I had tried it earlier, but I must have done something wrong before. It makes perfect sense, and i needed to use theajaxSingle attribute because I have fields in the same form that are required, and I don't want to validate those until the actual submit. Thanks again.
 - Joe
- 
        4. Re: submitting selected option when using <s:convertEnum...>jgreene Mar 25, 2008 7:18 PM (in response to jgreene)Daniel - 
 Thanks for the response. I've modified my approach to be like yours and Damian's suggestion. It works great. Thanks again.
 - Joe
- 
        5. Re: submitting selected option when using <s:convertEnum...>damianharvey.damianharvey.gmail.com Mar 25, 2008 8:39 PM (in response to jgreene)Just as an FYI there is currently a bug with ajaxSingle. I've seen it when trying to reRender an inputText (when the value never renders), but otherwise haven't noticed it. Workaround is to surround your calling component with <a:region> Cheers, Damian. 
- 
        6. Re: submitting selected option when using <s:convertEnum...>jgreene Mar 25, 2008 8:46 PM (in response to jgreene)Hi Damian - 
 Yes, I've seen this bug, and have just posted another question to the richfaces forum:I've used the a4j:region around my rich:suggestionbox (see forum link above), but still have problems that seems to be related to having validation rule (required) on the field(s). - Joe 
 
     
    