-
1. Re: <rich:suggestionBox> not working inside dataList/dataTable
javatwo Oct 22, 2012 12:17 AM (in response to javatwo)I am using 3.3.3 Final.
debugging the code, UISuggestionBox.java
processDecodes(), queueEvent() are not called.
Where is the code HtmlSuggestionBox.java? It is not in the source code.
Thanks.
Dave
-
2. Re: <rich:suggestionBox> not working inside dataList/dataTable
mcmurdosound Oct 22, 2012 1:49 AM (in response to javatwo)yes. But in my case it's an extendedDataTable.
Can you post some pieces of your facelet code?
-
3. Re: <rich:suggestionBox> not working inside dataList/dataTable
javatwo Oct 22, 2012 11:31 AM (in response to mcmurdosound)<h:form>
<t:dataTable value="#{testBean.books}" var="book">
<h:column>
<t:inputText id="inputText" value="#{book.title}" />
<rich:suggestionbox id="suggestionBox" for="inputText"
width="300" height="300" ajaxSingle="true"
nothingLabel="No books found"
suggestionAction="#{testBean.suggestionAction}" var="book1">
<h:column>
<h:outputText value="#{book1.title}"/>
</h:column>
</rich:suggestionbox>
</h:column>
</t:dataTable>
</h:form>
For the code above, suggestionAction was called, but the popup did not show up.
I am using <t:dataTable>.
Thanks for sharing.
-
4. Re: <rich:suggestionBox> not working inside dataList/dataTable
sivaprasad9394 Oct 26, 2012 12:08 AM (in response to javatwo)Hi Dave,
I think the below link help for you issue.I think already ilya has explained about the suggesion box problem with the datatable.hope it should work.
https://community.jboss.org/thread/148986
https://community.jboss.org/message/21433
Thanks,
Siva
-
5. Re: <rich:suggestionBox> not working inside dataList/dataTable
javatwo Oct 26, 2012 1:09 AM (in response to sivaprasad9394)Hi Siva,
I am using <t:dataTable>. <rich:suggestionBox> may not work with tomahawk.
<t:dataTable> has a feature called newspaperColumns, which is quite useful to us,
but <rich:dataTable> does not have it.
Thanks,
Dave
-
6. Re: <rich:suggestionBox> not working inside dataList/dataTable
mcmurdosound Oct 26, 2012 2:06 AM (in response to javatwo)you could do some trial and error, like:
surround the suggestionbox with an <a4j:outputPanel> or <a4j:region>. At least Sivas last link indicates a connection between a not working suggestionbox inside of non "ajaxcontainers" (probably non-richfaces ajaxcontainers)
-
7. Re: <rich:suggestionBox> not working inside dataList/dataTable
javatwo Oct 28, 2012 1:00 PM (in response to mcmurdosound)Thanks, I will try the suggestions.
One thing I noticed: the suggestionBox does not work for input asian characters such as chinese characters.
https://issues.jboss.org/browse/RF-4907
I tried the google search box that has suggestion drop down, it works great for input chinese characters.
Suggestion is triggered only when chinese characters are typed into the search box. I have not figured out
what event the suggestion is triggered on.
Thanks.
Dave
-
8. Re: <rich:suggestionBox> not working inside dataList/dataTable
javatwo Oct 28, 2012 7:48 PM (in response to javatwo)By setting singleAjax=false and <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/>,
it works inside <t:dataTable>.
but the following did not work.
<f:subview id="view1">
<jsp:include page="suggestionBox.jsp" />
</f:subview>
<f:subview id="view2">
<jsp:include page="suggestionBox.jsp" />
</f:subview>
The first subview works, but the 2nd did not work, the popup did not show up.