-
1. Re: suggestionbox in a modalpanel does not render properly
ilya_shaikovsky Sep 10, 2008 9:54 AM (in response to apushadow)sorry but can't reproduce inside demosite envireonment after adding modal panel to suggestion box example.
Maybe your own custom styles brokes the suggestion box? could you please share your sample in war? -
2. Re: suggestionbox in a modalpanel does not render properly
jordan.parker Sep 10, 2008 11:22 AM (in response to apushadow)I see this same issue with 3.2.2.GA and FF3 / IE7 with a suggestionBox inside a modalPanel.
-
3. Re: suggestionbox in a modalpanel does not render properly
apushadow Sep 10, 2008 1:28 PM (in response to apushadow)I've been testing this...
Suggestionbox works in this case:
(all in one file)
<modalpanel tag>
<contents of modalpanel>
</modalpanel tag>
Suggestionbox doesn't work in this case:
(modalpanel in one file, contents included from another file)
<modalpanel tag>
<a4j:include tag to contents of modalpanel>
</modalpanel tag>
Any ideas? -
4. Re: suggestionbox in a modalpanel does not render properly
apushadow Sep 10, 2008 2:07 PM (in response to apushadow)Changing the a4j:include tag to a ui:include tag "fixes" the problem...
It looks like a4j:include puts the suggestionbox div at the root of my DOM tree instead of where the included file is, and ui:include puts it where it belongs.
I'd like to be able to use the a4j:include tag, though...any ideas? -
5. Re: suggestionbox in a modalpanel does not render properly
jordan.parker Sep 10, 2008 4:15 PM (in response to apushadow)My issue seems to be a related; I use a4j:include and the suggestion box.
I'm using a modal panel in a ui:composition that is included in another page with a4j:include. That modal panel contains the h:inputText and rich:suggestionBox components.
I see the same problem, but the issue is resolved when I replace a4j:include with ui:include. However, this is a problem for my navigation since I use the partial page navigation feature of a4j:include. -
6. Re: suggestionbox in a modalpanel does not render properly
jordan.parker Sep 10, 2008 4:47 PM (in response to apushadow)Ok, I seem to have resolved the issue by adding ajaxRendered="false" attribute to my a4j:include and specifying the ID of the a4j:include tag in the reRender attribute of my partial page navigation. Now I have the partial page navigation and the modal panel / suggestion box display correctly.
So for example:<a4j:include id="template" viewId="/test.xhtml" layout="block" ajaxRendered="false" />
and<a4j:commandButton action="#{bean.action}" id="next" reRender="template" image="images/arrow.gif" />
Just curious, but what in RichFaces has changed that caused this functionality to change? -
7. Re: suggestionbox in a modalpanel does not render properly
ilya_shaikovsky Sep 11, 2008 5:32 AM (in response to apushadow)Yes, guys ajaxRendered="false" and reRender defined for other command controls is the only way.
Explanation is simple and this is not a bug from the beggining. Imagine the request from suggestion box. When responce comes - suggestion draws its popup, BUT in the same time - include (which is designed for wizards creation and ajaxRendered by default) - updates itself again. So popup redrawn again but in this time without positioning data and etc..
So suggestion should update only itself and other components if need. And only other command components should update whole include. -
8. Re: suggestionbox in a modalpanel does not render properly
jeffzzang Apr 8, 2009 10:54 AM (in response to apushadow)What worked for me was surrounding the <rich:suggestionbox/> tag with a <a4j:region/>
-
9. Re: suggestionbox in a modalpanel does not render properly
elsarfhem May 15, 2014 9:14 AM (in response to apushadow)i know this is an old post but there's someone using this version of the framework... so I would specify that this configuration worked for me
<a4j:form id="editPanelCompetenzeForm"> <a4j:region renderRegionOnly="true"> <h:panelGroup layout="block" style="position:relative;"> <h:inputText id="descrCompetenza" value="#{competenzeController.selectedCompetenza.descrizione}" maxlength="60" styleClass="header" /> <rich:suggestionbox for="descrCompetenza" suggestionAction="#{competenzeController.competenzeAutocomplete}" var="v" fetchValue="#{v}" ajaxSingle="true" > <h:column> <h:outputText value="#{v}" /> </h:column> </rich:suggestionbox> </h:panelGroup> </a4j:region> </a4j:form>
in this case the key is renderRegionOnly="true" attribute
-
10. Re: suggestionbox in a modalpanel does not render properly
doyoulike Feb 25, 2015 11:03 AM (in response to elsarfhem)Thanks you guys, you save my day
The last answer work perfectly in my case