-
1. Re: Redirect on value change
modoc Oct 21, 2007 3:54 PM (in response to thatrichard)Have you tried having your submit method return a string driving a navigation action from your pages.xml?
I haven't done exactly what you're attempting, by why would a auto-submit be handled any differently than a manual submit? -
2. Re: Redirect on value change
thatrichard Oct 22, 2007 4:57 AM (in response to thatrichard)1. This may sound like an unbelievably silly question, but:
What do you mean by my "submit method"? With, for example, h:commandButton, you specifiy the method via the action parameter.
The submit method in my example is a javascript call fired by the browser when the field changes. That, I image, cases a postback, but I don't know how I would hook into that. Do you know what method gets invoked for a non-specific postback?
2. To answer your question about auto and manual submits:
As I understand it, when a submit button (incl. h:commandButton, h:commandLink) is fired it invokes a JSF Action, which returns a string value to drive navigation.
ValueChangeListeners on the other hand raise an ActionListener event, which do not participate in navigation.
The ValueChangeEvent happens first, so if I could hook into the submit, I could certainly make this work via pages.xml.
Thanks for your input, though.
Richard