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