-
1. Re: Conditional Action
sergeysmirnov Aug 14, 2007 1:04 PM (in response to krg9263)just use the same action, but fork the behavior based on the #{fruitSelectionView.manufacturer} value there.
-
2. Re: Conditional Action
krg9263 Aug 14, 2007 3:53 PM (in response to krg9263)like so?
<a4j:commandLink reRender="myPanel" action="#{fruitSelectionView.manufacturer}
id="cmdSubmit" > -
3. Re: Conditional Action
sergeysmirnov Aug 14, 2007 4:37 PM (in response to krg9263)Of course, NO.
Like:
<a4j:commandLink reRender="myPanel" action="#{fruitSelectionView.gotoManufacturer}
id="cmdSubmit" > -
4. Re: Conditional Action
krg9263 Aug 14, 2007 4:46 PM (in response to krg9263)action="#{fruitSelectionView.gotoManufacturer}
Well I wanted the action to be a navigation. Could this be done from the gotoManufacturer method. If so how.
Sorry I am lost on this.
Kevin -
5. Re: Conditional Action
sergeysmirnov Aug 14, 2007 5:45 PM (in response to krg9263)Kevin, It sounds like we are not on the same page with you. From one side, it is hard for me to understand what is the problem to return different outcome from action method. From other side, you use ajax control (partial update) but want to navigate (full page refresh).
So, would you explain your usecase more clearly?