Hi, All:
I am using Java Server Faces 1.1 with Java 5 and JDeveloper 10.1.3. I
had a JSF page that posted its submit correctly *until* I added a
valueChangeListener for a select box. Now my form does not submit.
Has anyone had a similar problem? I have looked everywhere and can't
seem to find where the translate problem from JSF to HTML is.
Here is a code snippet:
<h:form id="magInfo">
...
<h:selectOneMenu id="magTitleSelect"
value="#{batchOrderManager.currentBatchOrder.currentOrder.currentLineItem.magazineTitle}"
immediate="true"
valueChangeListener="#{batchOrderManager.magTitleChanged}">
onchange="this.form.submit()">
<f:selectItems value="#{agentInfo.magazines}"/>
</h:selectOneMenu>
....
<h:commandButton value="Save Order"
action="#{batchOrderManager.submitLineItem}"/>
</h:form>
Before I added the immediate, valueChangeListenter and onchange
attributes to h:selectOneMenu the commandButton called the action
handler method fine. After adding the code, the value change listener
works but the command button won't.
Any help would be appreciated. I am currently digging and looking all
over the web.
Thanks,
John
Andrew Thompson - 28 Aug 2006 23:37 GMT
...
> I am using Java Server Faces 1.1 with Java 5 and JDeveloper 10.1.3.
Actually, this problem boils down to HTML and JavaScript.
> Any help would be appreciated. I am currently digging and looking all
> over the web.
It is probably the JavaScript. Try comp.lang.javascript
Andrew T.
hiwa - 29 Aug 2006 02:10 GMT
Mayor Curley のメッセージ:
> Hi, All:
>
[quoted text clipped - 33 lines]
> Thanks,
> John
> onchange="this.form.submit()"
This bypasses the submit button.