ICEfaces
  1. ICEfaces
  2. ICE-6109

sparkle generator Property name field

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 2.0.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      sparkle

      Description

      In org.icefaces.component.baseMeta.UIMessageMeta, the forValue property is called "forValue" when it should be called "for", but can't because that's a Java reserved word. Facet solves this problem by having a name field. Property should copy the name field concept, and the generator should be modified to support it, which would allow:

      @Property(name="for")
      private String forValue;

        Activity

        Hide
        Mark Collette added a comment -

        tabSetController has a For property

        Show
        Mark Collette added a comment - tabSetController has a For property
        Hide
        Mark Collette added a comment -

        We need to generate something similar to what JSF uses in it's own components:

        public class HtmlOutputLabel extends javax.faces.component.UIOutput implements ClientBehaviorHolder {
           ...
           protected enum PropertyKeys

        {        accesskey,        dir,        escape,        forVal("for"), <<=====         ...    }

           public java.lang.String getFor()

        {        return (java.lang.String) getStateHelper().eval(PropertyKeys.forVal);    }

           public void setFor(java.lang.String _for)

        {        getStateHelper().put(PropertyKeys.forVal, _for);    }

        }

        Show
        Mark Collette added a comment - We need to generate something similar to what JSF uses in it's own components: public class HtmlOutputLabel extends javax.faces.component.UIOutput implements ClientBehaviorHolder {    ...    protected enum PropertyKeys {        accesskey,        dir,        escape,        forVal("for"), <<=====         ...    }    public java.lang.String getFor() {        return (java.lang.String) getStateHelper().eval(PropertyKeys.forVal);    }    public void setFor(java.lang.String _for) {        getStateHelper().put(PropertyKeys.forVal, _for);    } }
        Hide
        Greg Dick added a comment -

        Fixed

        Show
        Greg Dick added a comment - Fixed

          People

          • Assignee:
            Greg Dick
            Reporter:
            Mark Collette
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: