[
https://jira.jboss.org/jira/browse/JBIDE-5961?page=com.atlassian.jira.plu...
]
Max Rydahl Andersen updated JBIDE-5961:
---------------------------------------
Fix Version/s: 3.1.0.CR3
(was: 3.1.1)
Looks safe to me to. Does the tests still pass with this change ?
Will this only apply for webbeans stuff or any EL related compleiton?
JSF EL Code complition doesn't recognize static methods.
--------------------------------------------------------
Key: JBIDE-5961
URL:
https://jira.jboss.org/jira/browse/JBIDE-5961
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF
Affects Versions: 3.1.0.CR2
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Fix For: 3.1.0.CR3
Attachments: patch_JBIDE-5961.txt
1. @Name("searchTools")
public class SearchTools
{
public static String getClassName(Object object)
{
if(object.getClass().getSimpleName().contains("$$"))
{
return object.getClass().getSuperclass().getSimpleName();
}
else
{
return object.getClass().getSimpleName();
}
}
}
2. There should be #{searchTools.getClassName()} proposal in CA.
For example: <h:outputText value="Organization"
rendered="#{searchTools.getClassName(result) == 'Organization'}" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira