Hi,

what worked for us is like this: 

(1) instead of setting onChange use the property autoSubmit="true"
(2) set the property partialTriggers="combo" on the table.

HTH
Frank Felix
 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dudu
Sent: Wednesday, February 08, 2006 1:53 PM
To: MyFaces Official List
Subject: [ADFFaces] Submiting when the user change a combo....inside a
CoreShowOneTab element...

how to submit a form when change the combo...

I'm using ADF FAces and I have a page with this structure:
[code]
<af:form>
        <af:panelPage>
                 <af:subform id="subform">
                        <af:showOneTab id="_detail"> The items inside here
are dynamicalls
                                <af:showDetailItem>
                                        <af:selectOneChoice id="combo"
onChange="this.form.submit();"> //combo
                                                <f:selectItems ....... >
                                        </af:selectOneChoice>
                                        <af:table id='table"/> //table to be
changed when combo change
                                <af:showDetailItem/>

                                //others showDetailItems
                                <af:showDetailItem/>
                                <af:showDetailItem/>
                                <af:showDetailItem/>
                                <af:showDetailItem/>
                        </af:showOneTab>
                  </af:subform>
                <af:subForm>
        </af:panelPage>
</af:form>
[/code]
When change the selected item component with the id "combo", an
actionListener setted at behind code would be called.
But when the combo is changed, the page is refreshed, but the action is not
called. But if I click in other showDetailItem the actionListener is called.

I think the problem is with 'onChange="this.form.submit();' code, but it was
working before.....
The question is
How to submit to call the actionLisetner of combo??????

Reply via email to