Hi,
I've try this, the list is always hidding when I click on the button.
Main Topics
Browse All TopicsHi!
I've a small problem with a richface component, I cannot find what I do wrong:
I want to do:
A tree, listing categories of services. When we click on a final node, we display services of this categories.
When this is selected, we can "choose him" by clicking on a button(why this step? Because we will use different services for different actions).
Most of theses things works. But when I click on the commandbutton, the panel that display services in the current categorie) is not more shown. I've a "rendered" to display services only when we have a categorie selected.
Where am I wrong? I've the impression there is a "shortcut" between the ajax of the tree and the ajax of the command button, but what?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
<h:selectOneListbox id="listservtake" rendered="#{AddDeal.serv!=
this calls the getServ method in the bean. And if this bean's scope is request
this.serv gets null because constructor can not call the processSelection to set that value.
Try making the bean's scope to session scope.
Or! change the getServ method like getServices
and
<h:selectOneListbox id="listservtake" rendered="#{AddDeal.servic
But If I do a session scope, I will have side effects no?
When start and end exactly the request scope? because for me it was since the generation of the page to the reception of the validation, no?
I've said I doesn't display dummy getters and setters, but I've:
public Service getCurrentService() {
return currentService;
}
I don't really understand your first message, your "OR".
What must I put in this getServices method? What the difference if I just change the name of the function?
Hi again. It is not the names ok. I understand now. You populate the values when you first press the tree.When you populate listbox dynamically it will not be visible next time you press the button. Because it is a request scoped bean.Constructor clears it. You can do this.
<h:selectOneListbox id="listservtake" rendered="#{AddDeal.serv!=
<f:selectItems value="#{AddDeal.serv}"/>
</h:selectOneListbox>
as you see you have the value="#{AddDeal.currentSe
For last if this bean is not so big make it session scope. Yhe populated values won't get cleared.
You wont change the bean scope but you need something in session so you will generate the listboxagain.
Business Accounts
Answer for Membership
by: supergokhanPosted on 2009-06-29 at 23:39:22ID: 24742800
I advise you try this first.
<a4j:commandButton value="Request this service" reRender="serv, moreinfo" >
so it will render them too.