Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2 Sprint 11 B
    • Component/s: Components/Renderers
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Macintosh

    • Issuezilla Id:
      703
    • Status Whiteboard:
      Hide

      cat2 javadoc size_medium importance_medium

      Show
      cat2 javadoc size_medium importance_medium

      Description

      and any other annotations for which it makes sense to let the unqualified class
      name with the first letter in lower case serve as the value of the "value"
      attribute.

      Then I could just say

      @FacesComponent
      public class MyComponent extends UINamingContainer...

      or whatever,

      and then in my composite component do

      <cc:interface component-type="MyComponent">

        Issue Links

          Activity

          Hide
          rogerk added a comment -

          triage

          Show
          rogerk added a comment - triage
          Hide
          Ed Burns added a comment -

          Sending jsf-api/src/main/java/javax/faces/component/FacesComponent.java
          Sending jsf-ri/src/main/java/com/sun/faces/application/annotation/ComponentConfigHandler.java
          Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/FacesComponentTagLibrary.java
          Sending jsf-test/JAVASERVERFACES_SPEC_PUBLIC-594/i_spec_594_war/src/main/java/com/sun/faces/test/i_spec_594_war/components/TagNameDerivedFromClassName.java
          Transmitting file data ....
          Committed revision 9746.

          Show
          Ed Burns added a comment - Sending jsf-api/src/main/java/javax/faces/component/FacesComponent.java Sending jsf-ri/src/main/java/com/sun/faces/application/annotation/ComponentConfigHandler.java Sending jsf-ri/src/main/java/com/sun/faces/facelets/tag/jsf/FacesComponentTagLibrary.java Sending jsf-test/ JAVASERVERFACES_SPEC_PUBLIC-594 /i_spec_594_war/src/main/java/com/sun/faces/test/i_spec_594_war/components/TagNameDerivedFromClassName.java Transmitting file data .... Committed revision 9746.
          Hide
          balusc added a comment -

          Nice one. That would by the way also have been useful on @FacesValidator and @FacesConverter which would then default to the classname with 1st char lowercased, like as with @ManagedBean.

          Show
          balusc added a comment - Nice one. That would by the way also have been useful on @FacesValidator and @FacesConverter which would then default to the classname with 1st char lowercased, like as with @ManagedBean.
          Hide
          Ed Burns added a comment -

          Implement Jay's suggestion.

          Show
          Ed Burns added a comment - Implement Jay's suggestion.
          Hide
          Ed Burns added a comment -

          Sending jsf-api/src/main/java/javax/faces/convert/FacesConverter.java
          Sending jsf-api/src/main/java/javax/faces/convert/package.html
          Sending jsf-api/src/main/java/javax/faces/validator/FacesValidator.java
          Sending jsf-api/src/main/java/javax/faces/validator/package.html
          Sending jsf-ri/src/main/java/com/sun/faces/application/annotation/ValidatorConfigHandler.java
          Adding jsf-ri/systest/src/com/sun/faces/annotation/AnnotatedValidatorNoValue.java
          Sending jsf-ri/systest/src/com/sun/faces/annotation/AnnotationTestBean.java
          Transmitting file data .......
          Committed revision 9747.

          SECTION: Spec changes
          ---------------------

          M jsf-api/src/main/java/javax/faces/validator/FacesValidator.java
          M jsf-api/src/main/java/javax/faces/validator/package.html
          M jsf-api/src/main/java/javax/faces/convert/FacesConverter.java
          M jsf-api/src/main/java/javax/faces/convert/package.html

          • Require that FacesValidator and FacesConverter do not require a
            "value" attribute and specify what should happen in the absence thereof.

          SECTION: impl changes
          ---------------------

          M jsf-ri/src/main/java/com/sun/faces/application/annotation/ValidatorConfigHandler.java
          M jsf-ri/systest/src/com/sun/faces/annotation/AnnotationTestBean.java
          M jsf-ri/systest/build.xml
          A + jsf-ri/systest/src/com/sun/faces/annotation/AnnotatedValidatorNoValue.java

          Show
          Ed Burns added a comment - Sending jsf-api/src/main/java/javax/faces/convert/FacesConverter.java Sending jsf-api/src/main/java/javax/faces/convert/package.html Sending jsf-api/src/main/java/javax/faces/validator/FacesValidator.java Sending jsf-api/src/main/java/javax/faces/validator/package.html Sending jsf-ri/src/main/java/com/sun/faces/application/annotation/ValidatorConfigHandler.java Adding jsf-ri/systest/src/com/sun/faces/annotation/AnnotatedValidatorNoValue.java Sending jsf-ri/systest/src/com/sun/faces/annotation/AnnotationTestBean.java Transmitting file data ....... Committed revision 9747. SECTION: Spec changes --------------------- M jsf-api/src/main/java/javax/faces/validator/FacesValidator.java M jsf-api/src/main/java/javax/faces/validator/package.html M jsf-api/src/main/java/javax/faces/convert/FacesConverter.java M jsf-api/src/main/java/javax/faces/convert/package.html Require that FacesValidator and FacesConverter do not require a "value" attribute and specify what should happen in the absence thereof. SECTION: impl changes --------------------- M jsf-ri/src/main/java/com/sun/faces/application/annotation/ValidatorConfigHandler.java M jsf-ri/systest/src/com/sun/faces/annotation/AnnotationTestBean.java M jsf-ri/systest/build.xml A + jsf-ri/systest/src/com/sun/faces/annotation/AnnotatedValidatorNoValue.java Implement and test the FacesValidator portion of the spec changes. The FacesConverter portion must be implemented and is tracked as < http://java.net/jira/browse/JAVASERVERFACES-2342 >.

            People

            • Assignee:
              Ed Burns
              Reporter:
              Ed Burns
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m