This content has been marked as final.
Show 7 replies
-
1. Re: mediaOutput in modal panel
six-p4ck Feb 16, 2009 5:27 AM (in response to depy)I think use reRender optioncan help you.
somethink like:<a4j:commandLink reRender="panel"> <h:graphicImage width="28" height="23" id="imgGraph" value="resources/icon_chart.gif"/> <rich:componentControl for="panel" attachTo="imgGraph" operation="show" event="onclick" params="#{p.agentID}"/> </a4j:commandLink>
-
2. Re: mediaOutput in modal panel
depy Feb 16, 2009 8:53 AM (in response to depy)I tried something like this:
<a4j:commandLink reRender="mediaChart" ajaxSingle="true" actionListener="#{chartBean.createChart}"> <f:attribute name="agentIDChart" value="#{p.agentID}"/> <h:graphicImage width="28" height="23" id="imgGraph" value="resources/icon_chart.gif"/> <rich:componentControl for="panel" attachTo="imgGraph" operation="show" event="onclick" params="#{p.agentID}"/> </a4j:commandLink>
And it doesnt rerender the chart. The method for creating chart is not called. :( -
3. Re: mediaOutput in modal panel
six-p4ck Feb 16, 2009 10:33 AM (in response to depy)firefox do cache.
try with IE.
If it's work with IE i can help you. -
4. Re: mediaOutput in modal panel
nbelaevski Feb 16, 2009 11:03 AM (in response to depy)Hello,
Try this:<a4j:commandLink reRender="mediaChart" ajaxSingle="true" actionListener="#{chartBean.createChart}" oncomplete="#{rich:component('panel')}.show()"> <f:param name="agentIDChart" value="#{p.agentID}"/> <h:graphicImage width="28" height="23" id="imgGraph" value="resources/icon_chart.gif"/> </a4j:commandLink>
-
5. Re: mediaOutput in modal panel
depy Feb 17, 2009 6:53 AM (in response to depy)I tried it, but now I get:
Exception Details: org.apache.jasper.el.JspELException
/monitor.jsp(69,24) '#{rich:component('panel')}.show()' Function 'rich:component' not found
I'm using richfaces only, without seam. Is this because of it? -
6. Re: mediaOutput in modal panel
nbelaevski Feb 17, 2009 8:01 AM (in response to depy)Ok, these functions are not available in 3.1.x. Try this:
Richfaces.showModalPanel('panel')
-
7. Re: mediaOutput in modal panel
depy Feb 17, 2009 8:47 AM (in response to depy)Thanks a million times. It works now. :)