-
1. Re: several dropdowns on one page
monkeyden Feb 8, 2011 1:30 PM (in response to kayeramar)What kind of objects are
title
andresult
? First guess, without knowledge of the object model: If the value is not persistent, add a transient field to title or result (whichever makes the most sense) to allow binding to each object in the view. Fields are bound to values in JSF so one global value gives you one global result in the view.<h:selectOneMenu value="#{title.language}"> ... </h:selectOneMenu>
or
<h:selectOneMenu value="#{result.language}"> ... </h:selectOneMenu>
-
2. Re: several dropdowns on one page
kayeramar Feb 8, 2011 3:23 PM (in response to kayeramar)Kyle,
Thank you for your suggestion. Without any knowledge of the object model you were spot-on with a working solution, and it actually enabled me to follow better practices. I ended up changing the a:support tag and moving the updateURL() method out of the displayBean (which never felt right as I was coding it) and into the
result
object which turned out to be a better place for it. By the waytitle
is a String used to get a list ofresult
EJBs from the dataBean.Thanks again! Kaye