[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5961) JSF EL Code complition doesn't recognize static methods.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Tue Mar 2 05:53:16 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12517497#action_12517497 ] 

Alexey Kazakov commented on JBIDE-5961:
---------------------------------------

The fix is very simple and looks safe. Max, can we commit it for CR3?

> 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.1
>
>         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

        


More information about the jbosstools-issues mailing list