I have a LoginModal which pops up a modal with username / password for user
to login.
It works before wicket 6.
After upgrading to wicket 6 , it's not working anymore.
Can someone check where goes wrong ?
Here is the LoginModal code :
http://pastebin.com/hNTMs3A7
And here is the LoginPage code
On Wicket 7.02 it works.
With wicket-bootstrap dependencies.
Have you set a breakpoint in the onSubmit method of your ajax submit button ?
François
François Meillet
Formation Wicket - Développement Wicket
Le 5 juil. 2014 à 11:42, smallufo small...@gmail.com a écrit :
I have a LoginModal
Hi,
On Sat, Jul 5, 2014 at 12:42 PM, smallufo small...@gmail.com wrote:
I have a LoginModal which pops up a modal with username / password for user
to login.
It works before wicket 6.
After upgrading to wicket 6 , it's not working anymore.
Can someone check where goes wrong ?
Here is
2014-07-05 18:53 GMT+08:00 Francois Meillet francois.meil...@gmail.com:
Have you set a breakpoint in the onSubmit method of your ajax submit
button ?
François
No , I didn't set any breakpoints (in fact , I don't know such feature).
The code is just like that.
The two onSubmit()s are not
2014-07-05 20:43 GMT+08:00 Martin Grigorov mgrigo...@apache.org:
The code above is again Wicket 6.x/7.x but in DEVELOPMENT mode.
It should generate also the Wicket.Ajax.*** stuff. I cannot say why it is
missing for you.
Oops
I must got it wrong.
The two servers are wicket 6.
One is without
2014-07-05 20:55 GMT+08:00 smallufo small...@gmail.com:
But i still find another id6c or id6d in the source code.
sorry typo :
But i still *cannot* find another id6c or id6d in the source code.
Run your app in debug mode and set some breakpoint.
eclipse
http://www.eclipse.org/jetty/documentation/current/debugging-with-intellij.html
http://www.vogella.com/tutorials/EclipseDebugging/article.html
I found where goes wrong ,
it's RenderJavaScriptToFooterHeaderResponseDecorator that causes the
problem.
I am not familiar with wicket-bootstrap , so I mimicked wicket-bootstrap
sample's architecture :
It seems working now.
But such removal also make theme-switching not working :
If I enable the ThemeProvider :
final ThemeProvider themeProvider = new
BootswatchThemeProvider(BootswatchTheme.Flatly);
settings.setJsResourceFilterName(footer-container).setThemeProvider(themeProvider);