[
https://issues.jboss.org/browse/RF-9666?page=com.atlassian.jira.plugin.sy...
]
Tommy Bø commented on RF-9666:
------------------------------
I have a similar problem. I have a custom object in the autocomplete, and if I don't
specify fetchValue this error occur. If I use fetchValue #{var.someString} it's okay,
but the value that's sent to my backingbean is a String and cause a conversion error.
I expect to be able to select an object, and not a string that has to be used to lookup
object in a cache or a new query.
This is my code:
<rich:autocomplete id="myId"
autocompleteMethod="#{backingBean.autocomplete}" var="currentRow"
value="#{backingBean.selectedItem} layout="list" mode="ajax"
showButton="true">
<f:ajax event="selectitem"
render=":form:someOtherElement"/>
#{currentRow.name}
</rich:autocomplete>
BackingBean:
{
public Object autocomplete(FacesContext fx, UIComponent c, String query) {return
list}
public void setSelectedItem(Item myItem){} //Cause conversion error if
fetchValue="#{currentRow.name}" in the xhtml...
}
Autocomplete: JS error after AJAX request
-----------------------------------------
Key: RF-9666
URL:
https://issues.jboss.org/browse/RF-9666
Project: RichFaces
Issue Type: Task
Security Level: Public(Everyone can see)
Affects Versions: 4.0.0.Milestone4
Reporter: Nick Belaevski
Assignee: Pavel Yaschenko
Priority: Minor
Fix For: Future_4.X
For the following code:
<h:form>
<a4j:outputPanel ajaxRendered="true">
<h:messages />
</a4j:outputPanel>
<input:autocomplete mode="ajax" id="autocomplete"
autocompleteMethod="#{autoCompleteBean.autocomplete}"
value="#{value}">
<f:validateRequired />
</input:autocomplete>
</h:form>
values[i].toLowerCase is not a function
[Break on this error] processedValues.push(values[i].toLowerCase());
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira