[
https://issues.jboss.org/browse/JBIDE-21299?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich edited comment on JBIDE-21299 at 12/11/15 6:18 PM:
-------------------------------------------------------------------------
[~andrei.ivanov], if you have primefaces-5.3.jar in classpath of your project, do you see
some function proposals when you type #{p: and Ctrl+Space? I can see 'component(String
id)', 'widgetVar(String expression)', and 'widgetVarFromContext(String
expression, UIComponent component)'. Other are missing, which looks like a bug.
The problem with 'if*' methods in this case is that Java return type is primitive
'boolean' while facelet library declares for the function java.lang.Boolean. Since
this works, then we fail to see that it is the same type.
was (Author: scabanovich):
[~andrei.ivanov], if you have primefaces-5.3.jar in classpath of your project, do you see
some function proposals when you type #{p: and Ctrl+Space? I can see 'component(String
id)', 'widgetVar(String expression)', and 'widgetVarFromContext(String
expression, UIComponent component)'. Other are missing, which looks like a bug.
EL Knowledge Base Problem with PrimeFaces functions
---------------------------------------------------
Key: JBIDE-21299
URL:
https://issues.jboss.org/browse/JBIDE-21299
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: jsf
Affects Versions: 4.3.0.Final
Environment: Eclipse Mars.1 (4.5.1), Primefaces 5.x
Reporter: Andrei Ivanov
Assignee: Viacheslav Kabanovich
Priority: Minor
Fix For: 4.4.x
The PrimeFaces functions are not recognized:
{noformat}
"ifAnyGranted" cannot be resolved
"ifGranted" cannot be resolved
"remoteUser" cannot be resolved
{noformat}
These are defined in {{org.primefaces.util.SecurityUtils}} and
{{primefaces-5.3.jar/META-INF/primefaces-p.taglib.xml}}.
{code:xml}
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:p="http://primefaces.org/ui">
#{p:ifAnyGranted('ROLE_USER, ROLE_ADMIN')}
#{p:ifGranted('ROLE_ADMIN')}
#{p:remoteUser()}
</html>
{code}
Similar to JBIDE-12317
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)