problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT

2010-01-20 Thread Edmond B. Mulemangabo
hello ! I've been trying to switch to JSF2 using Myfaces-core-2.0.0 and myfaces-orchestra20-1.5 with Tomcat-6. I'm stuck. The PhaseListenerManager is throwing an NullPointer Exception. Below is the content of the stack. My application is executing successfully with Myfaces-core-1.2.8 and

Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT

2010-01-20 Thread Matthias Wessendorf
Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? -Matthias On Mon, Jan 18, 2010 at 1:40 AM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: hello ! I've been trying to switch to JSF2 using Myfaces-core-2.0.0 and myfaces-orchestra20-1.5 with

Lifecyle: t:saveState

2010-01-20 Thread SANTINI, Rafael
Hi, I'm trying to access a property in a restore view phase listener where this property was saved with t:saveState. In what phase the t:saveState is restored? Thanks, Rafael Santini

[Tobago] Locale changed when handling exceptions

2010-01-20 Thread Alf Felis
Hi all, I have a problem with the locale and the error handling. My application provides the possibility to choose the preferred language. I set the selected locale with the following code FacesContext.getCurrentInstance().getViewRoot().setLocale(selectedLocale); Everything works fine until

FacesMessage with severity ERROR do not prevent calling an action method

2010-01-20 Thread Madhav Bhargava
Hi, I am using myfaces 1.1, icefaces 1.8.1 on WAS 6.0 The controller (backing bean) action methods handle RuntimeException from the service layer. Depending on the exception an exception handler will put an appropriate message into FacesContext. For that I have created a utility method:

Re: Lifecyle: t:saveState

2010-01-20 Thread Cagatay Civici
It would be the first phase which is restore view. On Wed, Jan 20, 2010 at 1:20 PM, SANTINI, Rafael raf...@santini.eti.brwrote: Hi, I'm trying to access a property in a restore view phase listener where this property was saved with t:saveState. In what phase the t:saveState is restored?

Re: FacesMessage with severity ERROR do not prevent calling an action method

2010-01-20 Thread Michael Kurz
Hi, for clearification: does the click on the command button take place AFTER the page with the error messages was rendered? Because if it is so, this is the expected behavior. The messages in the FacesContext are only available for the current request, which is the one producing the error.

Re: FacesMessage with severity ERROR do not prevent calling an action method

2010-01-20 Thread Volker Weber
Hi Madhav, the livecycle did not depend on messages in the context. To prevent executing actions and direct skip to renderPhase you need to call FacesContext.getCurrentInstance().renderResponse(); e.g. in your putMessage() method. Regards, Volker 2010/1/20 Madhav Bhargava

RE: FacesMessage with severity ERROR do not prevent calling an action method

2010-01-20 Thread Madhav Bhargava
True, you are right. The problem was that the first request goes as an AJAX request submitting on a part of the form. If there are errors, messages are shown. Now the user clicks on any other control which submits the rest of the page barring the one which was previously submitted. That caused

RE: FacesMessage with severity ERROR do not prevent calling an action method

2010-01-20 Thread Madhav Bhargava
Hi Volkar, Thanks for your response. I will add that to the method so that it does not have to be explicitly done by the developers in their action methods. From: weber.vol...@googlemail.com [mailto:weber.vol...@googlemail.com] On Behalf Of Volker Weber Hi Madhav, the livecycle did not

Re: [Tobago] Locale changed when handling exceptions

2010-01-20 Thread Alf Felis
Hi again :) I noticed, that apparently the whole session will be invalidated, because some other attributes will be lost, too. Is there any parameter or something else to disable this behaviour? Regards, Alf - original Nachricht Betreff: [Tobago] Locale changed when handling

Trunk and MyFaces 2.0

2010-01-20 Thread Dj Apal [GR]
Hello all. Does anyone know if trunk has the latest changes for first-steps support of jsf 2.0 or the changes are commited to equivalent branch and trunk points to 1.2.X versions? I suppose the same thing happens to other stuff like tomahawk,trinidad etc. Thnx in advance!

Re: Trunk and MyFaces 2.0

2010-01-20 Thread Jakob Korherr
Hi, http://matthiaswessendorf.wordpress.com/2009/07/17/myfaces-2-0-is-now-trunk/ google is your friend ;) Regards, Jakob 2010/1/20 Dj Apal [GR] dja...@gmail.com Hello all. Does anyone know if trunk has the latest changes for first-steps support of jsf 2.0 or the changes are commited to

JSF 1.2 + MyFaces Trinidad + PrettyFaces yields NPE in Trinidad RenderKitDecorator.java - ideas?

2010-01-20 Thread Donn Aiken
Hello -- I'm trying to get PrettyFaces to work with the Sun JSF-RI and MyFaces Trinidad, but I'm having some difficulty. I've got this to work successfully in a demo environment without Trinidad, but it would be ideal if this would work with Trinidad. Environment setup: Java Runtime