You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Moreno Cornaz <yo...@gmail.com> on 2008/10/17 11:40:04 UTC

jsf component tree processing with ajax call

Hello everybody.

I have a page that has two panel P1 and P2. When P1 is rendered P2 is not
and vice versa.
If a make an ajax call in P1 (for example an ajax support with
ajaxSingle="true "on a inputText ) that make P2 rendered and P1 not rendered
I expected jsf processing only the part of the tree involving P2. By the log
in my application it seems that every time I made a call (ajax or not) jsf
processes all the field
in the tree. For example, in my apllication, I get the label of inputText
and outputText from a file of properties. By the log , when I mak a call in
P1 in the render response phase jsf look for all the label of the components
that are in the tree (so also in P1), and not only of the component in the
panel P2 that has to be rendered! Is that the correct behaviour?

Thanks

Moreno

Re: jsf component tree processing with ajax call

Posted by Moreno Cornaz <yo...@gmail.com>.
I'm  using:
- tomahawk 1.1.6 and richFaces 3.1.5
- myfaces 1.1.5

Thanks

2008/10/17 Simon Kitching <sk...@apache.org>

> Moreno Cornaz schrieb:
>
>  Hello everybody.
>>
>> I have a page that has two panel P1 and P2. When P1 is rendered P2 is not
>> and vice versa.
>> If a make an ajax call in P1 (for example an ajax support with
>> ajaxSingle="true "on a inputText ) that make P2 rendered and P1 not rendered
>> I expected jsf processing only the part of the tree involving P2. By the log
>> in my application it seems that every time I made a call (ajax or not) jsf
>> processes all the field
>> in the tree. For example, in my apllication, I get the label of inputText
>> and outputText from a file of properties. By the log , when I mak a call in
>> P1 in the render response phase jsf look for all the label of the components
>> that are in the tree (so also in P1), and not only of the component in the
>> panel P2 that has to be rendered! Is that the correct behaviour?
>>
> What happens depends very much on *which* ajax implementation you are
> using. There is no ajax standard for JSF, so each lib does things
> differently.
>
> What ajax lib are you using (tomahawk-pprPanel/trinidad/richfaces/etc)?
> What JSF implementation(myfaces/mojarra)?
> What JSF version (1.1,1.2)?
>
> Regards, Simon
>
>

Re: jsf component tree processing with ajax call

Posted by Simon Kitching <sk...@apache.org>.
Moreno Cornaz schrieb:
> Hello everybody.
>
> I have a page that has two panel P1 and P2. When P1 is rendered P2 is 
> not and vice versa.
> If a make an ajax call in P1 (for example an ajax support with 
> ajaxSingle="true "on a inputText ) that make P2 rendered and P1 not 
> rendered I expected jsf processing only the part of the tree involving 
> P2. By the log in my application it seems that every time I made a 
> call (ajax or not) jsf processes all the field
> in the tree. For example, in my apllication, I get the label of 
> inputText and outputText from a file of properties. By the log , when 
> I mak a call in P1 in the render response phase jsf look for all the 
> label of the components that are in the tree (so also in P1), and not 
> only of the component in the panel P2 that has to be rendered! Is that 
> the correct behaviour?
What happens depends very much on *which* ajax implementation you are 
using. There is no ajax standard for JSF, so each lib does things 
differently.

What ajax lib are you using (tomahawk-pprPanel/trinidad/richfaces/etc)?
What JSF implementation(myfaces/mojarra)?
What JSF version (1.1,1.2)?

Regards, Simon