one form - two submit buttons with different behavior

2011-01-05 Thread Marek Pribyl
hi all,
I have form with two submit buttons  want different behavior for each
button.

submitButton:
- standard submit button
- expected onClick behavior: validate form  save the form's model
(implemented in form's onSubmit() method)  redirect to another page

ajaxButton:
- AjaxButton
- expected onClick behavior: validate form, if valid get form's model
 display it as XML in modal window for preview

the problem is that form's onSubmit() is called when I click on
ajaxButton - I need to keep validation but do not call form's onSubmit()
method, i.e. stay on the current form page  do not save the model.
Is there any chance to do this wicket way?

thanks,
marek


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: one form - two submit buttons with different behavior

2011-01-05 Thread Marek Pribyl
thanks all for reply, I chose martin's solution which works for me in
this particular case

marek

On Wed, 2011-01-05 at 13:19 +0100, Marek Pribyl wrote:
 hi all,
 I have form with two submit buttons  want different behavior for each
 button.
 
 submitButton:
 - standard submit button
 - expected onClick behavior: validate form  save the form's model
 (implemented in form's onSubmit() method)  redirect to another page
 
 ajaxButton:
 - AjaxButton
 - expected onClick behavior: validate form, if valid get form's model
  display it as XML in modal window for preview
 
 the problem is that form's onSubmit() is called when I click on
 ajaxButton - I need to keep validation but do not call form's onSubmit()
 method, i.e. stay on the current form page  do not save the model.
 Is there any chance to do this wicket way?
 
 thanks,
 marek




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: NoClassDefFoundError on app undeployment

2010-10-28 Thread Marek Pribyl
thanks martin that's really informative. I thought that this funny thing
is tomcat related, but wasn't sure...

On Wed, 2010-10-27 at 17:19 +0200, Martin Grigorov wrote:
 See this discussion:
 http://mail-archives.apache.org/mod_mbox/wicket-users/201003.mbox/%3c23eb48361003222329s4699aa73yf69a512875b29...@mail.gmail.com%3e
 
 On Wed, Oct 27, 2010 at 4:55 PM, Marek Pribyl mr.pri...@gmail.com wrote:
 
  hi all,
  on wicket app undeployment exception listed below appears. is this a
  classloading problem?
 
  thanks in advance for any hint,
  marek
 
  Oct 27, 2010 4:08:55 PM org.apache.catalina.startup.HostConfig
  checkResources
  WARNING: Error during context [/guardian-web] destroy
  java.lang.NoClassDefFoundError:
  org/apache/wicket/util/lang/PropertyResolver
 at
  org.apache.wicket.Application.internalDestroy(Application.java:887)
 at
 
  org.apache.wicket.protocol.http.WebApplication.internalDestroy(WebApplication.java:449)
 at
  org.apache.wicket.protocol.http.WicketFilter.destroy(WicketFilter.java:145)
 at
 
  org.apache.catalina.core.ApplicationFilterConfig.release(ApplicationFilterConfig.java:332)
 at
 
  org.apache.catalina.core.StandardContext.filterStop(StandardContext.java:3728)
 at
  org.apache.catalina.core.StandardContext.stop(StandardContext.java:4490)
 at
  org.apache.catalina.core.ContainerBase.destroy(ContainerBase.java:1164)
 at
  org.apache.catalina.core.StandardContext.destroy(StandardContext.java:4590)
 at
  org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1041)
 at
  org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)
 at
  org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
 at
 
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at
 
  org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
 at org.apache.catalina.core.ContainerBase
  $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
 at org.apache.catalina.core.ContainerBase
  $ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 at org.apache.catalina.core.ContainerBase
  $ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 at java.lang.Thread.run(Thread.java:619)
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org