-
1. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Mar 30, 2007 5:50 PM (in response to james_hays)BTW. This is the case in both version 3.0 and the snapshot from 3/29
-
2. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Mar 30, 2007 5:52 PM (in response to james_hays)DOH!!
The for(1_ is not present in my code. I was trying something that snuck into my copy and paste. Both ID and FOR are the same value. -
3. Re: SuggestionBox inside ui:repeat not generating popup
sergeysmirnov Mar 30, 2007 8:11 PM (in response to james_hays)You should not use h:form inside the ui:repeat (does not matter do you have suggestionbox or not)
-
4. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Apr 2, 2007 12:58 PM (in response to james_hays)"SergeySmirnov" wrote:
You should not use h:form inside the ui:repeat (does not matter do you have suggestionbox or not)
I've moved the form outside of my repeats and outside of my table, so there is not just one form on the page.
No luck though. The popup still does not appear. Looking at the firebug request/response, all seems to be working on that end.
Has anybody else gotten the suggestionbox working in a repeat? -
5. Re: SuggestionBox inside ui:repeat not generating popup
ilya_shaikovsky Apr 2, 2007 1:10 PM (in response to james_hays)http://jira.jboss.com/jira/browse/RF-25
there is a link to forum thread connected with suggestion inside tables usage. Take the build with the bug fixed and try to use ForceRender listener.
(component tries to reRender the popup inside concrete row, but without this listener the row can't be found) -
6. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Apr 2, 2007 2:07 PM (in response to james_hays)well, we're getting closer. :) I've updated to the latest nightly snapshot build of 3.0.1 and things seem to work well in FireFox, but nothing in IE 6. It doesn't even seem to submit a request.
Thanks. -
7. Re: SuggestionBox inside ui:repeat not generating popup
sergeysmirnov Apr 2, 2007 2:50 PM (in response to james_hays)"james_hays" wrote:
"SergeySmirnov" wrote:
You should not use h:form inside the ui:repeat (does not matter do you have suggestionbox or not)
I've moved the form outside of my repeats and outside of my table, so there is not just one form on the page.
It is still not enough. The whole modal panel is moved up to be a child of the . So, it does not matter where you define the external form. You need the one inside the modal panel. -
8. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Apr 2, 2007 3:42 PM (in response to james_hays)"SergeySmirnov" wrote:
"james_hays" wrote:
"SergeySmirnov" wrote:
You should not use h:form inside the ui:repeat (does not matter do you have suggestionbox or not)
I've moved the form outside of my repeats and outside of my table, so there is not just one form on the page.
It is still not enough. The whole modal panel is moved up to be a child of the <body>. So, it does not matter where you define the external form. You need the one inside the modal panel.
Can you clarify? Where do I specify this then? I don't explicitly create a modal panel. Anything that is created in this instance that would need a form is created by RichFaces unless I'm missing something. -
9. Re: SuggestionBox inside ui:repeat not generating popup
sergeysmirnov Apr 2, 2007 4:09 PM (in response to james_hays)Doh. Ignore my answer. I confused your question with the one from another thread.
-
10. Re: SuggestionBox inside ui:repeat not generating popup
ilya_shaikovsky Apr 3, 2007 7:00 AM (in response to james_hays)Post please you? latest post. Have you used proper listener?
-
11. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Apr 3, 2007 10:53 AM (in response to james_hays)Here's my current code using SuggestionBox.
I've removed my forms from the iterator and am using the ForceRender as mentioned in another post.
<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/><ui:repeat var="profileGate" value="#{profileRecord.profileGates}"> <td colspan="1"> <div class="productCell"> <ul> <ui:repeat var="productRecord" value="#{profileGate.productRecords}"> <li> <div class="removeProduct"/> <div><s:link view="/productManagement.xhtml" propagation="nest"> <h:outputText value="#{productRecord.name}"/> <f:param name="id" value="#{productRecord.id}"/> </s:link></div> </li> </ui:repeat> </ul> <div class="addProductContainer"> <div class="addProduct"/> <h:inputText id="NewProductField" value="#{search.waNumber}" size="14"/> <rich:suggestionbox for="NewProductField" suggestionAction="#{viewProfileRecord.autoCompleteAvailableProducts}" ajaxSingle="true" var="p" width="500" height="200"> <h:column> <h:outputText value="#{p[0]}"/> </h:column> <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> </rich:suggestionbox> </div> </div> </td> </ui:repeat>
-
12. Re: SuggestionBox inside ui:repeat not generating popup
sergeysmirnov Apr 3, 2007 11:32 AM (in response to james_hays)Try to have<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> as a child of rich:suggestionbox
-
13. Re: SuggestionBox inside ui:repeat not generating popup
james_hays Apr 3, 2007 11:43 AM (in response to james_hays)"SergeySmirnov" wrote:
Try to have<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> as a child of rich:suggestionbox
It is.<rich:suggestionbox for="NewProductField" suggestionAction="#{viewProfileRecord.autoCompleteAvailableProducts}" ajaxSingle="true" var="p" width="500" height="200"> <h:column> <h:outputText value="#{p[0]}"/> </h:column> <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> </rich:suggestionbox>
-
14. Re: SuggestionBox inside ui:repeat not generating popup
ilya_shaikovsky Apr 4, 2007 9:10 AM (in response to james_hays)Sorry, but could you please update your library to latest SNAPSHOT version because my next code works under:
<ui:repeat value="#{capitalsBean.capitals}" var="#{cap}"> <h:panelGrid columns="1"> <h:inputText value="#{cap.text}" id="test"/> <rich:suggestionbox for="test" width="200" height="200" suggestionAction="#{bean.autocomplete}" var="cap"> <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> <h:column> <h:outputText value="#{cap.text}"></h:outputText> </h:column> </rich:suggestionbox> </h:panelGrid> </ui:repeat>