JSF Deferred EL conditional syntax problem
- by Mark Lewis
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.