ICEfaces
  1. ICEfaces
  2. ICE-9232

ACE generator allow for disinheriting properties from baseMeta

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 4.0.BETA, EE-3.3.0.GA_P02, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace:checkboxButton
    • Assignee Priority:
      P1

      Description

      ace:checkboxButton and mobi:flipswitch, much like h:selectBoolanCheckbox and ice:selectBooleanCheckbox, extend from UISelectBoolean which extends from UIInput. But, those four components do not make use of a converter or validator, and required doesn't apply to them either. Therefore the properties for those as well as converterMessage, validatorMessage, requiredMessage do not apply for those components.

      We could take the idea originally conceived in ICE-5837, to allow for specifying a String[]disinheritProperties field in the @Component annotation, or we could tie into the newer @Only annotation, and have a NONE OnlyType that could keep that specific property from inheriting.

        Issue Links

          Activity

          Mark Collette created issue -
          Hide
          Mark Collette added a comment -

          Ted favours disinheritProperties.

          Show
          Mark Collette added a comment - Ted favours disinheritProperties.
          Mark Collette made changes -
          Field Original Value New Value
          Description ace:checkboxButton, much like h:selectBoolanCheckbox and ice:selectBooleanCheckbox, extends from UISelectBoolean which extends from UIInput. But, those three components do not make use of a converter or validator, and required doesn't apply to them either. Therefore the properties for those as well as converterMessage, validatorMessage, requiredMessage do not apply for those components.

          We could take the idea originally conceived in ICE-5837, to allow for specifying a String[]disinheritProperties field in the @Component annotation, or we could tie into the newer @Only annotation, and have a NONE OnlyType that could keep that specific property from inheriting.
          ace:checkboxButton and mobi:flipswitch, much like h:selectBoolanCheckbox and ice:selectBooleanCheckbox, extend from UISelectBoolean which extends from UIInput. But, those four components do not make use of a converter or validator, and required doesn't apply to them either. Therefore the properties for those as well as converterMessage, validatorMessage, requiredMessage do not apply for those components.

          We could take the idea originally conceived in ICE-5837, to allow for specifying a String[]disinheritProperties field in the @Component annotation, or we could tie into the newer @Only annotation, and have a NONE OnlyType that could keep that specific property from inheriting.
          Hide
          Mark Collette added a comment -

          label might be another unnecessary property, in the absence of any FacesMessages being constructed.

          Show
          Mark Collette added a comment - label might be another unnecessary property, in the absence of any FacesMessages being constructed.
          Mark Collette made changes -
          Assignee Mark Collette [ mark.collette ]
          Mark Collette made changes -
          Fix Version/s 3.4 [ 10770 ]
          Mark Collette made changes -
          Assignee Priority P3 [ 10012 ]
          Arturo Zambrano made changes -
          Link This issue blocks ICE-9395 [ ICE-9395 ]
          Ken Fyten made changes -
          Assignee Mark Collette [ mark.collette ] Judy Guglielmin [ judy.guglielmin ]
          Assignee Priority P3 [ 10012 ] P1 [ 10010 ]
          Hide
          Judy Guglielmin added a comment -

          Use case tested was CheckboxButton....modify Component property as follows:-
          @Component(
          tagName = "checkboxButton",
          componentClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButton",
          rendererClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButtonRenderer",
          generatedClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButtonBase",
          extendsClass = "javax.faces.component.UISelectBoolean",
          componentType = "org.icefaces.ace.component.CheckboxButton",
          rendererType = "org.icefaces.ace.component.CheckboxButtonRenderer",
          componentFamily= "org.icefaces.ace.CheckboxButton",
          disinheritProperties =

          {"validator","validatorMessage", "converter", "converterMessage"}

          ,
          tlddoc="The Checkbox Button is a component that allows entry of a button which "+
          "supports browsers that see checkbox as true or false, "+
          "yes or no, on or off. The Themeroller check icon will be displayed by default when the checkbox is checked. Override the .ui-icon-check class to display a different image." +
          "<p>For more information, see the <a href=\"http://wiki.icefaces.org/display/ICE/CheckboxButton\">CheckboxButton Wiki Documentation</a>."
          )

          Show
          Judy Guglielmin added a comment - Use case tested was CheckboxButton....modify Component property as follows:- @Component( tagName = "checkboxButton", componentClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButton", rendererClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButtonRenderer", generatedClass = "org.icefaces.ace.component.checkboxbutton.CheckboxButtonBase", extendsClass = "javax.faces.component.UISelectBoolean", componentType = "org.icefaces.ace.component.CheckboxButton", rendererType = "org.icefaces.ace.component.CheckboxButtonRenderer", componentFamily= "org.icefaces.ace.CheckboxButton", disinheritProperties = {"validator","validatorMessage", "converter", "converterMessage"} , tlddoc="The Checkbox Button is a component that allows entry of a button which "+ "supports browsers that see checkbox as true or false, "+ "yes or no, on or off. The Themeroller check icon will be displayed by default when the checkbox is checked. Override the .ui-icon-check class to display a different image." + "<p>For more information, see the <a href=\"http://wiki.icefaces.org/display/ICE/CheckboxButton\">CheckboxButton Wiki Documentation</a>." )
          Hide
          Judy Guglielmin added a comment -

          rev. 38535 has ability now to disinherit properties that are inherited from super classes. Does not affect base class or interface. Just the support Tag class.

          Show
          Judy Guglielmin added a comment - rev. 38535 has ability now to disinherit properties that are inherited from super classes. Does not affect base class or interface. Just the support Tag class.
          Judy Guglielmin made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #38535 Mon Oct 07 10:43:05 MDT 2013 judy.guglielmin ICE-9232
          Files Changed
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/TagHandlerContext.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/InterfaceContext.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/artifacts/ComponentArtifact.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/meta/annotation/Component.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/utils/FileWriter.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/MetaContext.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/JSPContext.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/GeneratorContext.java
          Commit graph MODIFY /icefaces3/trunk/icefaces/ace/generator/src/org/icefaces/ace/generator/context/ComponentContext.java
          Ken Fyten made changes -
          Link This issue blocks ICE-9665 [ ICE-9665 ]
          Hide
          Judy Guglielmin added a comment -

          backport to 3.3.0 mtce branch

          Show
          Judy Guglielmin added a comment - backport to 3.3.0 mtce branch
          Judy Guglielmin made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Judy Guglielmin made changes -
          Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
          Hide
          Judy Guglielmin added a comment -

          rev 40239 for backport to 3.3.0 mtce branch

          Show
          Judy Guglielmin added a comment - rev 40239 for backport to 3.3.0 mtce branch
          Judy Guglielmin made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 4.0 [ 11382 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Judy Guglielmin
              Reporter:
              Mark Collette
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: