probably because this call:

AjaxFormValidatingBehavior.addToAllFormComponents(form, "onchange");

will only modify form components in the hierarchy - since your second tab is not in the hierarchy until you switch to it the form components in it are not affected

you have to make this call as part of the setup of the tab in the getPanel() method or in the panel's constructor.

-Igor


On 7/13/06, Macrae, Jeremy <[EMAIL PROTECTED]> wrote:

Hi,

 

I am having a problem setting values in a model via the panels on a TabbedPanel.

 

I have a page which contains a form containing a TabbedPanel with two AbstractTab panels.

Each of these panels contains a single Textbox.

I want to use the same model for the whole form so have called –

 

form.setModel(new CompoundPropertyModel(model)

 

I want Ajax validation on the form so have called -

 

AjaxFormValidatingBehavior.addToAllFormComponents(form, "onchange");

 

The first panel works correctly. Tabbing out of the TextfField or selecting the second tab causes the corresponding set method on the model to be called.

The second panel does not work the same way. The set method is not called.

If I swap the tabs over the first one again works correctly.

 

Is there any way I can get this to work?

 

Thanks

 

This email and any files transmitted with it are confidential, proprietary
and intended solely for the individual or entity to whom they are addressed.
If you have received this email in error please delete it immediately.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to