[tomahawk sandbox] dynamic PPR content changes

2007-05-22 Thread Matthes R.

hi all,

i've got a problem with dynamically changing the content of my page with the
PPR components of the sandbox.
i'm using myfaces-core-1.1.5, tomahawk-1.1.5 and
tomahawk-sandbox-1.1.6-SNAPSHOT.

here is my code:
-


   
   

   
   
   page1
   
   
   page2
   
   
   
   


-

and the bean has this method:

-
   public void switchToPage2() {
   includeString = "page2";
   }
-

when loading the page for the first time the subview "page1Content" is
rendered, so its working correct. then when i hit the commandLink both
subviews are not rendered but the boolean values calculated below are
correct: false / true.

is there a way to fix this problem? or is there another (perhaps better) way
to get this to work?

regards,
Matthes Rieke


Re: [tomahawk sandbox] dynamic PPR content changes

2007-05-22 Thread Volker Weber

Hi,

you cant use f:verbatim in ppr updates.

content of verbatim is transient and not restored at rerendering.


Regards,
   Volker


2007/5/22, Matthes R. <[EMAIL PROTECTED]>:

hi all,

i've got a problem with dynamically changing the content of my page with the
PPR components of the sandbox.
i'm using myfaces-core-1.1.5, tomahawk-1.1.5 and
tomahawk-sandbox-1.1.6-SNAPSHOT.

 here is my code:
-







page1


page2






-

and the bean has this method:

-
public void switchToPage2() {
includeString = "page2";
}
-

when loading the page for the first time the subview "page1Content" is
rendered, so its working correct. then when i hit the commandLink both
subviews are not rendered but the boolean values calculated below are
correct: false / true.

is there a way to fix this problem? or is there another (perhaps better) way
to get this to work?

regards,
Matthes Rieke



Re: [tomahawk sandbox] dynamic PPR content changes

2007-05-22 Thread Matthes R.

hi,

aaah ok. fixed that one. i'm kind of new to myfaces so things like this
happen to me often :-)
thanks for the help!

regards,
Matthes


2007/5/22, Volker Weber <[EMAIL PROTECTED]>:


Hi,

you cant use f:verbatim in ppr updates.

content of verbatim is transient and not restored at rerendering.


Regards,
Volker


2007/5/22, Matthes R. <[EMAIL PROTECTED]>:
> hi all,
>
> i've got a problem with dynamically changing the content of my page with
the
> PPR components of the sandbox.
> i'm using myfaces-core-1.1.5, tomahawk-1.1.5 and
> tomahawk-sandbox-1.1.6-SNAPSHOT.
>
>  here is my code:
> -
> 
>
>  action="#{contentIncludeBean.switchToPage2}" value="switch
> content"/>
> 
>
>  partialTriggers="switchToPage2">
> 
> page1
> 
> 
> page2
> 
>  value="#{contentIncludeBean.includeString ==
> 'page1'}">
>  value="#{contentIncludeBean.includeString ==
> 'page2'}">
> 
>
> 
> -
>
> and the bean has this method:
>
> -
> public void switchToPage2() {
> includeString = "page2";
> }
> -
>
> when loading the page for the first time the subview "page1Content" is
> rendered, so its working correct. then when i hit the commandLink both
> subviews are not rendered but the boolean values calculated below are
> correct: false / true.
>
> is there a way to fix this problem? or is there another (perhaps better)
way
> to get this to work?
>
> regards,
> Matthes Rieke
>