-
1. Re: selectOneMenu and ajax support
lmk Sep 24, 2007 10:20 AM (in response to lmk)no idea.?
it seems that the server variable is not saved after calling the action method..
if i change the <f:select:items value="clienitems"/> to<f: selectitem value="1"/> <f: selectitem value="2"/> <f: selectitem value="3"/>
it works.. -
2. Re: selectOneMenu and ajax support
ilya_shaikovsky Sep 24, 2007 10:32 AM (in response to lmk)at first - replace h:messages with rich:messages to get messages for ajax reuqests. And use phasetracker to check if all the JSF phases was successfully processed,
-
3. Re: selectOneMenu and ajax support
lmk Sep 24, 2007 10:51 AM (in response to lmk)"ilya_shaikovsky" wrote:
at first - replace h:messages with rich:messages to get messages for ajax reuqests. And use phasetracker to check if all the JSF phases was successfully processed,
how can i check all JSF phases? -
4. Re: selectOneMenu and ajax support
ilya_shaikovsky Sep 24, 2007 11:03 AM (in response to lmk)1) did you tried rich:messages? I'm sure there is some conversion problem.
2) http://www.jsftutorials.net/faces-config/phaseTracker.html -
5. Re: selectOneMenu and ajax support
lmk Sep 24, 2007 11:04 AM (in response to lmk)rich:messages log a validation error.but I dont have any validation on form..
-
6. Re: selectOneMenu and ajax support
lmk Sep 24, 2007 12:22 PM (in response to lmk)"ilya_shaikovsky" wrote:
1) did you tried rich:messages? I'm sure there is some conversion problem.
2) http://www.jsftutorials.net/faces-config/phaseTracker.html
the validation error occured when I select an item computed on the a4j:support action method, the selectitem added on the JSP with the same value does not generate any error.. -
7. Re: selectOneMenu and ajax support
ilya_shaikovsky Sep 24, 2007 12:41 PM (in response to lmk)this means that the type you use is wrong for this component. Read the documentation on the component.
-
8. Re: selectOneMenu and ajax support
lmk Sep 24, 2007 12:50 PM (in response to lmk)"ilya_shaikovsky" wrote:
this means that the type you use is wrong for this component. Read the documentation on the component.
Im not sure thats wrong type..
It seems that the list computed ont action method is not saved ..on the second ajaw request a lost the selectItems list..
I add one selectItem with the same type and the same value and I dont get any error .. -
9. Re: selectOneMenu and ajax support
ilya_shaikovsky Sep 24, 2007 12:55 PM (in response to lmk)You need to remember that there is no difference betwem just simple submit and ajax submit. If you will place h:commandButton and click it - the same will occur.. There is nothing about rich faces in such validation messages.
-
10. Re: selectOneMenu and ajax support
lmk Sep 25, 2007 6:30 AM (in response to lmk)"ilya_shaikovsky" wrote:
You need to remember that there is no difference betwem just simple submit and ajax submit. If you will place h:commandButton and click it - the same will occur.. There is nothing about rich faces in such validation messages.
indeed there was nothing about rich faces, its so stupid..the bean scope was request, its why I lost list values on the second ajax request.. it's work well with session scope.
sorry..
thanks a lot.. -
11. Re: selectOneMenu and ajax support
lmk Sep 25, 2007 6:32 AM (in response to lmk)"ilya_shaikovsky" wrote:
You need to remember that there is no difference betwem just simple submit and ajax submit. If you will place h:commandButton and click it - the same will occur.. There is nothing about rich faces in such validation messages.
indeed there was nothing about rich faces, its so stupid..the bean scope was request, its why I lost list values on the second ajax request.. it's work well with session scope.
sorry..
thanks a lot..