This content has been marked as final.
Show 9 replies
-
1. Re: suggestionBox send name and id to backing bean
ilya_shaikovsky Dec 27, 2007 10:31 AM (in response to lmk)name attribute is mandatory. And the attribute which specifies the bean property to be updated is "assignTo"
-
2. Re: suggestionBox send name and id to backing bean
lmk Dec 27, 2007 11:01 AM (in response to lmk)"ilya_shaikovsky" wrote:
name attribute is mandatory. And the attribute which specifies the bean property to be updated is "assignTo"
thanks!!
but I get an exception:java.lang.NumberFormatException: For input string: "null"
the value is also null.. -
3. Re: suggestionBox send name and id to backing bean
ilya_shaikovsky Dec 27, 2007 11:51 AM (in response to lmk)what is your version? such bug was fixed.
-
4. Re: suggestionBox send name and id to backing bean
lmk Dec 27, 2007 11:55 AM (in response to lmk)"ilya_shaikovsky" wrote:
what is your version? such bug was fixed.
3.1.3-SNAPSHOT -
5. Re: suggestionBox send name and id to backing bean
ilya_shaikovsky Dec 28, 2007 4:44 AM (in response to lmk)may be wasn't tested and doesn't merged with 3.1.x branch.. In this case - should work in 3.2.0 and will be merged before 3.1.4
-
6. Re: suggestionBox send name and id to backing bean
snnyannd Jan 9, 2008 9:07 AM (in response to lmk)I tried a4j:actionParam and it does not work.
You may want to use the following:
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<t:updateActionListener value="" property="">
The is also a facelets tag that is said to work. I have not use it though.
<f:setPropertyActionListener....>
Hope this helps. -
7. Re: suggestionBox send name and id to backing bean
lmk Feb 14, 2008 4:23 AM (in response to lmk)hi,
the problem still exist on rich faces 3.1.4.GA.
regards! -
8. Re: suggestionBox send name and id to backing bean
ilya_shaikovsky Feb 17, 2008 8:23 AM (in response to lmk)<rich:suggestionbox width="200" height="200" for="test" suggestionAction="#{bean.autocomplete}" var="cap"> <h:column> <h:outputText value="#{cap.text}"></h:outputText> </h:column> <a4j:support event="onselect" action="#{bean.action}"> <f:setPropertyActionListener value="#{cap.label}" target="#{bean.property1}" /> </a4j:support> </rich:suggestionbox>
public void setProperty1(String property1) { System.out.println("Setting property1 to _> "+ property1); this.property1 = property1; }
this gaves me "Setting property1 to _> 1" in log, which is correct for my model. So can't allocate the problem. I check 3.1.4 GA. -
9. Re: suggestionBox send name and id to backing bean
lmk Feb 18, 2008 5:16 AM (in response to lmk)thanks ilya
this works fine..
best regards!