This content has been marked as final.
Show 4 replies
-
1. Re: extendedDataTable inside modalPanel gives JS error
nbelaevski Feb 25, 2009 5:38 AM (in response to cprietom)Hello,
Works fine for me:<rich:modalPanel id="panelDoc" width="650" height="650"> <f:facet name="header"> <h:panelGroup>Doc</h:panelGroup> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="/img/break.gif" style="cursor: pointer;"> <rich:componentControl for="panelDoc" operation="hide" event="onclick"/> </h:graphicImage> </h:panelGroup> </f:facet> <rich:extendedDataTable value="#{forum5Bean.data}" var="field1"> <rich:column>#{field1}</rich:column> </rich:extendedDataTable> </rich:modalPanel> <h:form> <a4j:commandLink value="open panel" oncomplete="Richfaces.showModalPanel('panelDoc');"/> </h:form>
Try to surrond rich:extendedDataTable with form. -
2. Re: extendedDataTable inside modalPanel gives JS error
cprietom Feb 25, 2009 9:46 AM (in response to cprietom)Thanks for your hint nbelaevski.
You're right, I simplified the code of my application too much when pasting it in this forum and what I paste works fine. What fails is the the fact of reRendering the extendedDatatable after showing the modalPanel. This is the code that fails and generates the JS error of my first post:<rich:modalPanel id="panelDoc" width="650" height="650"> <f:facet name="header"> <h:panelGroup>Doc</h:panelGroup> </f:facet> <f:facet name="controls"> <h:panelGroup> <h:graphicImage value="/img/break.gif" style="cursor: pointer;"> <rich:componentControl for="panelDoc" operation="hide" event="onclick"/> </h:graphicImage> </h:panelGroup> </f:facet> <rich:extendedDataTable id="extData" value="#{p7.fields}" var="field1"> <rich:column>#{field1.label}</rich:column> </rich:extendedDataTable> </rich:modalPanel> <a4j:commandLink value="open panel" action="#{someAction.method()}" reRender="extData" oncomplete="Richfaces.showModalPanel('panelDoc');">
I need to invoke the action in the link prior to opening the modalPanel because that action is the one that fills everything in the "p7" object the extendedDataTable reads from. And I need to reRender extData after invoking the action for the extendedDataTable to be updated.
Any ideas of how to solve it? Could I manage the same effect of updating the extendedDataTable of the modalPanel in a different way? Could it be a bug in the "extended-data-table.js" of Richfaces-3.3.0.GA?
Thanks (again) in advance. -
3. Re: extendedDataTable inside modalPanel gives JS error
nbelaevski Feb 25, 2009 12:45 PM (in response to cprietom)Hi,
Thank you for submitting the issue! I've filed this as: https://jira.jboss.org/jira/browse/RF-6439 -
4. Re: extendedDataTable inside modalPanel gives JS error
freemarket Apr 3, 2009 4:48 PM (in response to cprietom)"nbelaevski" wrote:
Hi,
I too have voted for this as this prevents me from using the extendeddatatable within a modalpanel context.
Henry
Thank you for submitting the issue! I've filed this as: https://jira.jboss.org/jira/browse/RF-6439