You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Danny Robinson (JIRA)" <ad...@incubator.apache.org> on 2006/07/06 17:48:29 UTC

[jira] Created: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Add Skinning Key for controlling style of required fields
---------------------------------------------------------

         Key: ADFFACES-49
         URL: http://issues.apache.org/jira/browse/ADFFACES-49
     Project: MyFaces ADF-Faces
        Type: Improvement

 Environment: All
    Reporter: Danny Robinson


Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.

Suggested key would be "af|inputText:required::content" or similar.

Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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


[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Simon Lessard (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Simon Lessard updated ADFFACES-49:
----------------------------------

    Attachment: ADFFACES-49.zip

Add :required:label and :required::content for all input components. If a new input component uses FormInputRenderer and LabelAndMessageRenderer (forn the simple renderer) as parent renderer classes, this feature will auto-enable itself on them as well as long as the selector is added to base-desktop.xss

Important note: The patch uses a new intercepted selector list placed in StyleUtils to add this nifty new feature to Trinidad.  This will change in the future (refer to dev mailing list archive), but for now it's the cleanest way to implement it and it adds an easy customization option for future states we want to intercept.

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Attachments: ADFFACES-49.zip, Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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

        

[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Abdourahamane Camara (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Abdourahamane Camara updated ADFFACES-49:
-----------------------------------------

    Status: Patch Available  (was: Open)

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Attachments: Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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

        

[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-49:
---------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>    Affects Versions: 1.0.0-incubating-core
>         Environment: All
>            Reporter: Danny Robinson
>         Assigned To: Simon Lessard
>             Fix For: 1.0.0-incubating-core
>
>         Attachments: ADFFACES-49.zip, ADFFACES-49_v2.zip, Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Simon Lessard (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Simon Lessard reassigned ADFFACES-49:
-------------------------------------

    Assignee: Simon Lessard

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Assigned To: Simon Lessard
>         Attachments: ADFFACES-49.zip, ADFFACES-49_v2.zip, Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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

        

[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Simon Lessard (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Simon Lessard updated ADFFACES-49:
----------------------------------

        Status: Resolved  (was: Patch Available)
    Resolution: Fixed

Applied the patch. Note this patch also enable more features as a "side effect". You can now use selectors like

af|inputText<state> af|inputText::label {/*...*/}
af|inputText<state> af|inputText::content {/*...*/}

Where valid <state> are
  - :required
  - :disabled
  - :read-only

It's possible that we add more states in the future, like maybe :immediate and :simple if people ask for it.

The patch was tested outside panelFormLayout, inside panelFormLayout, inside panelLabelAndMessage and panelHorizontalLayout as well as simple mode.

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Assigned To: Simon Lessard
>         Attachments: ADFFACES-49.zip, ADFFACES-49_v2.zip, Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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

        

[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Abdourahamane Camara (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Abdourahamane Camara updated ADFFACES-49:
-----------------------------------------

    Attachment: Required_Content_Label.zip

Allows to change the style of required content and label of all input components

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Attachments: Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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

        

[jira] Updated: (ADFFACES-49) Add Skinning Key for controlling style of required fields

Posted by "Simon Lessard (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-49?page=all ]

Simon Lessard updated ADFFACES-49:
----------------------------------

    Attachment: ADFFACES-49_v2.zip

This patch uses Adam's modification for intercepted states rather than the previous patch's code path.

> Add Skinning Key for controlling style of required fields
> ---------------------------------------------------------
>
>                 Key: ADFFACES-49
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-49
>             Project: MyFaces ADF-Faces
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Danny Robinson
>         Attachments: ADFFACES-49.zip, ADFFACES-49_v2.zip, Required_Content_Label.zip
>
>
> Provide the ability to control via the skinning feature the style of required input fields.  Such an example would be to show the field background colour as yellow for required fields, thus making them visually more identifiable.  To achieve this currently requires you add styleClass or contentStyle attributes to the components tag.
> Suggested key would be "af|inputText:required::content" or similar.
> Further evolution of this would be to also allow style control over the labels for required fields (eg. af|inputText:required::label).

-- 
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