This content has been marked as final.
Show 2 replies
-
1. Re: reRender modalpanel before opening
ahoehma Aug 27, 2010 3:37 PM (in response to renegritsch)oncomplete is not a attribute of h:graphicImage ... try this<rich:modalPanel id="dialog">foobar ...<h:outputText value="#{bean.foobar}"/></rich:modalPanel><a4j:form><h:graphicImage rendered="#{model.available}" value="#{resource['foobarimage']}"><a4j:support event="onclick"reRender="dialog" limitToList="true"oncomplete="#{rich:component('dialog')}.show()"status="waitStatus"/></h:graphicImage></a4j:form>if the user click on the image a ajax request starts ... the ajax-response updates the dialogand the js-handler (oncomplet) open the dialog. you can also reRender only the inner part of thedialog but I'm not sure if this is faster/better than rerender the whole dialog .. maybe in someszenarios (dialog should stay open etc.) the reRender of the dialog-content is betterregardsandreas -
2. Re: reRender modalpanel before opening
renegritsch Aug 27, 2010 3:54 PM (in response to ahoehma)Thnx, i´ve recognized my mistake before but thank you anyway!
I´m reRendering now the inner part of the dialog, i think for the performance it´s about the same.
Do you know, is there a possibility in richfaces to limit the request parameters.
For example, i only want to submit a part of the form, i know with a4j:region i can control the server side,
but i also want to limit the request parameters itself, that for example not the full form is submitted, only 1 field.
Is there any possibility to do this, without a javascript "hack" ?