I have incorporated ajax4jsf here and it works like a charm. all data
is retrieved and redisplayed in the search form popup. except for one
thing:
the content of the <f:facet name="header"> within the columns of my
dataTable is there when the page loads but disappears after the popup
form submits and redisplays.. any ideas?
<h:PanelGroup>
<h:inputText id="name" value="#{myBean.name}"/>
<a4j:commandButton styleClass="submit" value="#{bundle.search_label}"
action="#{myBean.search}" reRender="listingTable" id="search">
<a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/>
</a4j:commandButton>
</h:PanelGroup>
<t:dataTable id="listingTable"
value="#{myBean.theList}" var="elem">
<t:column>
<f:facet name="header">
<h:outputText value="#{bundle.full_name_label}" />
</f:facet>
<t:outputText value="#{elem.fullName}" />
</t:column>
<t:column>
<f:facet name="header">
...
On 1/16/07, Werner Punz <[EMAIL PROTECTED]> wrote:
Aben Woha schrieb:
> I have a screen which loads a list in a dataTable.
> Then a <t:popup> on each row allows the user to popup a search window
> and perform a search.
> Each row also has a save button to allow changes to that particular row
> to be persisted.
>
> The desired functionality is for the popup window to post its form and
> reload within itself, leaving the parent unaffected. However, I can't
> get the parent window to stop reloading with the form submit. I think
> the post is actually being performed by the parent due to the second
> form, but I'm not sure.
>
> It seems I may need to write my own js to accomplish this. Perhaps
> there is a better component to use than popup..
>
> I'm sure someone has successfully implemented something similar, and any
> suggestions are greatly appreciated.
Ok there is no direct way, either embed an iframe into the popup if this
is possible, or you have to use ajax for doing that or embed some kind
of ppr.