How to send form?

When I put only button in page:

<ui:form binding="#{Page1.form1}" id="form1">

<ui:button action="#{Page1.okButton_action}" binding="#{Page1.okButton}" id="okButton" text="#{nl.OKButton}"/>

</ui:form>

It works. But if I add any input controls:

<ui:form binding="#{Page1.form1}" id="form1">

<ui:textField binding="#{Page1.field1}" id="field1" valueChangeListener="#{Page1.field1_processValueChange}"/>

<ui:button action="#{Page1.okButton_action}" binding="#{Page1.okButton}" id="okButton" text="#{nl.OKButton}"/>

</ui:form>

then okButton_action() doesn't invoke.

Please help me solve this problem.

[705 byte] By [DenisTa] at [2007-11-26 20:14:59]
# 1
Did you use the visual designer to add these binding or to edit the jsp file directly? Can you provide the details on what did you do?--Hong
Hong_Lua at 2007-7-9 23:21:27 > top of Java-index,Development Tools,Java Tools...
# 2

I tried to reproduce your problem, but the button handler is called in my test. Here is the code I have. I add a message group so that when the button action handler is called. It displays a message in the message group :

<ui:form binding="#{Page1.form1}" id="form1">

<ui:textField binding="#{Page1.field1}" id="field1" style="position: absolute; left: 72px; top: 120px" valueChangeListener="#{Page1.field1_processValueChange}"/>

<ui:button action="#{Page1.okButton_action}" binding="#{Page1.okButton}" id="okButton"

style="position: absolute; left: 192px; top: 216px" text="ok"/>

<ui:messageGroup binding="#{Page1.messageGroup1}" id="messageGroup1" style="position: absolute; left: 96px; top: 312px"/>

</ui:form>

Hong_Lua at 2007-7-9 23:21:27 > top of Java-index,Development Tools,Java Tools...
# 3
I solve my problem when set immediate = true of cansel button. After then my Ok button and my Cancel button start work
DenisTa at 2007-7-9 23:21:27 > top of Java-index,Development Tools,Java Tools...