MyFaces FacesConfig Component Elements Do Not Contain Property Elements So 
Tools Do Not Work As well
----------------------------------------------------------------------------------------------------

         Key: MYFACES-706
         URL: http://issues.apache.org/jira/browse/MYFACES-706
     Project: MyFaces
        Type: Bug
  Components: General  
    Versions: 1.1.0    
    Reporter: Rod Magnuson


The component elements look like the following:

  <component>
    <component-type>org.apache.myfaces.HtmlCommandButton</component-type>
    
<component-class>org.apache.myfaces.component.html.ext.HtmlCommandButton</component-class>
  </component>

In the RI, they are much more flushed out and include property elements like:

      <property>
        <description>
          MethodBinding representing the application action to invoke when
          this component is activated by the user.  The expression must
          evaluate to a public method that takes no parameters, and returns
          a String (the logical outcome) which is passed to the
          NavigationHandler for this application.
        </description>
        <display-name>Application Action</display-name>
        <icon></icon>
        <property-name>action</property-name>
        <property-class>javax.faces.el.MethodBinding</property-class>
      </property>

Note the property-class of javax.faces.el.MethodBinding. This allows tools to 
know what properties are method bindings. This allows more VB like interactions 
with the components. For example, in jdeveloper if you dbl-click a button it 
will automatically bind the action component to a method for you.

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

Reply via email to