In your initial post you did not have action="#{SomeBean.showErrors}" but you 
had action="showErrors". Make sure you have the method binding correctly.

If you are looking for the messeges in the context, in your showErrors method, 
the messages may not be there for this new request. Have you debugged your 
method to see what is happening ? If the control is not going to that method, 
then the problem must be in your action attribute.

-----Original Message-----
From: Csík Norbert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 8:03 AM
To: MyFaces Discussion
Subject: Re: Antwort: display errors




Jesse Alexander (KBSA 21) wrote:
> No for booleans isErrorToDisplay() is correct (both is possible)
>  
> The problem must be somewhere in the faces-config file or the components 
> beyond
>  
> Redisplaying the same view often is the result of some error in the 
> navigation-configuration. Eg:
> when there is no navigation-outcome that responds to "showErrors".

Yes, I've thought that too. That's why I used the 
action="#{SomeBean.showErrors}" instead of action="showErrors". But nobody 
invoked the showErrors method in my SomeBean class. So the problem is not in 
the Faces config, it's earlier.

I do think that when I click on the commandLink JSF doesn't invokes the action 
method, because the parent component of the commandLink isn't rendered (its 
rendered property false). But I don't know how to implement my code to make it 
work.


> <h:panelGrid columns="1" rendered="#{FrameworkBean.errorToDisplay}">
> <h:commandLink value="Details" action="showErrors"/>
> <h:messages globalOnly="true" layout="table"/>
> </h:panelGrid>
> 


-- 
 Csík Norbert          http://norbert.web.elte.hu/
 Programtervező matematikus
 Trilobita Informatikai Rt. - rendszertervező fejlesztőmérnök
___ keep sm:)ing _________________________ooo__C( O O )L__ooo__
http://www.aion.hu/ - A csik.NET otthona
http://www.spreadfirefox.com/ - Rediscover the web
Légy pontos: Mérj mikro-milliméterben! Jelölj krétával! Vágj baltával!

Reply via email to