change view id before render

2007-07-06 Thread Stefano Panero
Hi everybody, I'm pretty sure that the answer is already in the list... but i can't find it... sorry. I've to do something like this: 1) click on a commndButton - outcome - new page 2) *before render* new page - some beans' initialization I knew I can do this either in the constructor of

Re: change view id before render

2007-07-06 Thread Andrew Robinson
Have a look at my on-load component: http://jsf-comp.sourceforge.net/components/onload/index.html Or use the one from JBoss-Seam or Shale On 7/6/07, Stefano Panero [EMAIL PROTECTED] wrote: Hi everybody, I'm pretty sure that the answer is already in the list... but i can't find it... sorry.

Re: change view id before render

2007-07-06 Thread Stefano Panero
Thank you, your component is really interesting. I take a look at the source and It seems to me I need just one more thing (correct if I'am wrong): Page A - Page B I can do some initialization before render page B, If, with your component, I add an an action method with an outcome that makes

Re: change view id before render

2007-07-06 Thread Andrew Robinson
I'd have to look into it. Since it is a phase listener, it would have to be called before the view is rendered. I am not sure if when a new view is created as a result of navigation, if the lifecycle component re-fires the phase listeners. On 7/6/07, Stefano Panero [EMAIL PROTECTED] wrote:

Re: change view id before render

2007-07-06 Thread Stefano Panero
I suppose so... I think It's a little bit weird... IMHO Render phase listener should be fired again... Thanks a lot! Your component will be very useful anyway! 2007/7/6, Andrew Robinson [EMAIL PROTECTED]: I doesn't look like it would work right now. The phase listener is only called once, the

RE: change view id before render

2007-07-06 Thread William Hoover
PROTECTED] Sent: Friday, July 06, 2007 1:18 PM To: MyFaces Discussion Subject: Re: change view id before render I suppose so... I think It's a little bit weird... IMHO Render phase listener should be fired again... Thanks a lot! Your component will be very useful anyway! 2007/7/6, Andrew