Help with drop down select list in JSF

J

John Smith

So I have built some EJBs along with a Facade to access those.

But how do you access the facade from the JSF side of things? Do you create
a new managed bean? I am trying to create a drop down list from a bean that
access the database.

Are there any examples of this using core JSF componets?

Thanks in Adv
 
D

Danno

John said:
So I have built some EJBs along with a Facade to access those.

But how do you access the facade from the JSF side of things? Do you create
a new managed bean? I am trying to create a drop down list from a bean that
access the database.

Are there any examples of this using core JSF componets?

Thanks in Adv


What do you have?
 
J

John Smith

Danno said:
What do you have?

I have this
<af:selectOneChoice label="Label 1"
binding="#{backing_login.selectOneChoice1}"
id="selectOneChoice1">
<af:selectItem label="801" value="801"
binding="#{backing_login.selectItem1}"
id="selectItem1"/>
</af:selectOneChoice>

basicly am I suppose to call the context lookup in backing_login.selectItem1
and then create some kind of Object that <af:selectItem expects?

Not sure exactly how to bind the data I pull from EJBs that are working
good, into my JSF pages. What is the standard way of doing this. Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top