Hi,

the expression #{networkConfigBean.networkMessagePresent}" is called
five times with ppr and as well 5 times (or more) with just any common
POST request.

Rendered is evaluated many times during a request-response cycle and
is therefore not suited to make any performance intensive operations.

If you want to do such a kind of check i would suggest to use a
request bean together with an init method which does this task. This
then would be called just one time - even with an ajax-ppr request.

cheers,

Gerald

On 12/10/08, Brett Williamson <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm having a problem with the s:pprPanelGroup component in that it
> appears to fire off the AJAX request five times instead of once.  My
> component is configured as below:
>
>
>
> <h:form id="testForm">
>
>        <s:pprPanelGroup id="ppr2" periodicalUpdate="15000" >
>
>                   <t:panelGroup colspan="2"
> rendered="#{networkConfigBean.networkMessagePresent}"
> styleClass="info-message-large">
>
>
>
>                   </t:panelGroup>
>
>         </s:pprPanelGroup>
>
> </h:form>
>
>
>
>
>
> The call to networkConfigBean.networkMessagePresent has a request to our
> database so I don't want it being hit unnecessarily.  Any feedback on
> this issue would be greatly appreciated as it is causing a lot of
> problems.
>
>
>
> Thanks!
>
> Brett
>
>
>
>
>
>


-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to