[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread wise_guybg
The first selectOneMenu mus be in a:region and the second one in a:outputPanel (ajaxRendered=true). Ids must be set for those components and not s:decorate. This is more of a A4J problem... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086575#4086575 Reply

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread [EMAIL PROTECTED]
Also, the value of the h:selectXXX doesn't want to be a String, but the entity setter if you are using s:convertEntity. Try to get this working without ajax to start with. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086577#4086577 Reply to the post :

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread wise_guybg
After I noticed that your question has more in it than what my reply was I would add that according to the docs ajaxSingle=true submits ONLY one field/link, instead of all form controls. So when you put a:support on the selectOneMenu and you don't have region/outputPanel it messes up. When you

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread [EMAIL PROTECTED]
Hi, @wise_guybg yes, I don't need to use a:region and a:outputPanel. It should work with s:decorate :) @[EMAIL PROTECTED] I changed #{branchHome.instance.name} in h:selectXXX into #{branchHome.instance.id} but then I get the following error: | [lifecycle] WARNING: FacesMessage(s) have

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread wise_guybg
Well, no. Using a:region and a:outputPanel is the way to do it. I think you have misunderstood the points I have made. Also, as Pete stated, when you use convertEntity you should set/get the value as an entity. So it would be correct to have #{branchHome.instance}. This means when the user

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread smithbstl
I don't think a:region is necessary but a:outputPanel is Just make sure you have any selectOneMenus that are rerendered inside of a:outputPanel. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086681#4086681 Reply to the post :

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread [EMAIL PROTECTED]
Yes, it should be #{branchHome.instance}. Thanks a lot for the help. And now invoking #{categoryHome.loadCategoriesByBranchId(branchHome.instance.id)} method works fine :) But I still don't understand why I should use a:region and a:outputPanel. I don't use any of them and the second

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread smithbstl
I use a:outputPanel because I have had trouble getting individual components to rerender on their own. I know its supposed to work without it but I use what works for me. I would love to hear from others on this. View the original post :

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread wise_guybg
It's ajaxSingle=true that helps you run your code without following recommendations. In my view a:outputPanel optimizes the AJAX requiest since: anonymous wrote : The component is used for components grouping in the AJAX output area, which offers several additional output opportunities such as

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread [EMAIL PROTECTED]
@wise_guybg Thank you for your explanation. I conducted an experiment placing the third selectOneMenu (also with categoryList) on a page but not specifying it in reRender parameter of a:support. After loadCategoriesByBranchId() method was called only one selectOneMenu was refreshed (the

[jboss-user] [JBoss Seam] - Re: a:support with s:selectItems problem

2007-09-20 Thread wise_guybg
I guess A4T is incredible :) One must spend more time reading articles and the reference manual :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4086775#4086775 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4086775