JSF Deferred EL conditional syntax problem
Posted
by Mark Lewis
on Stack Overflow
See other posts from Stack Overflow
or by Mark Lewis
Published on 2010-05-19T21:44:56Z
Indexed on
2010/05/19
21:50 UTC
Read the original article
Hit count: 392
Hello
I can't find any resources which can answer why I'm getting an error with this:
oncomplete="#{MyBacking.oError ? #{rich:component('oErrorPanel')}.show() : return false;}"
in a richfaces a4j:commandButton
. oError is referring to a method in my bean called isOError.
I'm getting the error
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
org.apache.el.parser.ParseException: Encountered " "?" "? "" at line 1, column 30.
Was expecting one of:
"}" ...
"." ...
...
I want to say 'if a method returns true, show modal panel A otherwise false'. Any help much appreciated.
© Stack Overflow or respective owner