myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Gavazuk <antongava...@gmail.com>
Subject Re: Trouble creating a Cancel button
Date Thu, 03 Dec 2009 22:06:00 GMT
add attribute
 immediate="true"

Dave, by the way - do you know what is google? search?

2009/12/3 laredotornado <laredotornado@gmail.com>

>
> Hi,
>
> I'm using MyFaces 1.1.6.  I have this commandButton on my page, within a
> form
>
> <h:commandButton id="cancelButton" value="Cancel"
>                         action="#{myController.cancelTourRequests}" />
>
> I would like that if a user clicks this button, they are automatically
> redirected to another page.  Despite the fact I have set up the
> navigation-rule in faces-config.xml, when I click the button, JSF attempts
> to validate the form (which makes sense) and I'll get form validation
> errors
> instead of redirecting.  How would I create this button such that the user
> is automatically redirected to another page without any type of form
> validation?
>
> Thanks, - Dave
> --
> View this message in context:
> http://old.nabble.com/Trouble-creating-a-Cancel-button-tp26633404p26633404.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message