I fixed my problem. My Javascript wasn't converting URLs from this:
../../../?wicket:interface=:8:panel:form::IFormSubmitListener::
to this:
/myapp/?wicket:interface=:8:panel:form::IFormSubmitListener::
Instead, I missed a "/" near the beginning and was getting this:
/myapp?wicket:interface=:8:panel:form::IFormSubmitListener::
Fixing that solved my original issue. But now I'm curious as to why the
onSubmit method would be properly called, but the values of the fields
would be null? Is there a simple explanation of why the form works with
the first version of the URL, but is so odd with the second?
Thanks,
-- Scott
Scott Sauyet wrote:
The trickiest thing I had to do here is in the Javascript. The
ParentPage has a URL like:
http://example.com:8080/myapp/ParentPage
but MyPage and MyPageAjax have page parameters, such as
http://example.com:8080/myapp/MyPage/id/16/
http://example.com:8080/myapp/MyPageAjax/id/16/
So the form action on these pages looks like this:
../../../?wicket:interface=:8:panel:form::IFormSubmitListener::
I end up changing this in JS to
/myapp/?wicket:interface=:8:panel:form::IFormSubmitListener::
so it will work from the URL of ParentPage. But that doesn't seem
likely to be at issue as the onSubmit is in fact being called.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]