[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-1203) EL autocompletion prompts static members

Max Andersen (JIRA) jira-events at lists.jboss.org
Tue Oct 30 12:56:45 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBIDE-1203?page=all ]

Max Andersen updated JBIDE-1203:
--------------------------------

    Assignee: Victor Rubezhny  (was: Max Andersen)

Ok - I took a look at JSP 2 spec which describes the unified EL and found the following:

value-a.value-b 

<first part is about if value-a is a map etc.>
Otherwise (a JavaBeans object), coerce value-b to String
 If value-b is a readable property of value-a, as per the JavaBeans specification:
• If getter throws an exception: error
• Otherwise: return result of getter call
 Otherwise: error.

So for . static methods are not available (since its not part of a javabean IMO)

The only way I could find static methods being availbe are through the EL functions with the : operator.  ns:func(arg1,arg2,...) where ns is the namespace notion from taglibs.

So I don't think static methods should/can be invoked in this context - at least not per the spec. 

We should remove those from the list of completions.



> EL autocompletion prompts static members
> ----------------------------------------
>
>                 Key: JBIDE-1203
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1203
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 2.0.0.Beta4
>            Reporter: Gavin King
>         Assigned To: Victor Rubezhny
>             Fix For: 2.0.0.CR1
>
>
> Autocomplete pops up "instance" and "instance()" as options for actor, conversation, etc.
> I'm not sure exactly what the EL spec says about static members, but I  don't think we should offer them as an option in the UI.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jbosstools-issues mailing list