You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Stephen Friedrich (JIRA)" <de...@myfaces.apache.org> on 2008/08/26 22:24:44 UTC

[jira] Commented: (TRINIDAD-755) Positions of "required" and "message" label should be skinnable

    [ https://issues.apache.org/jira/browse/TRINIDAD-755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12625854#action_12625854 ] 

Stephen Friedrich commented on TRINIDAD-755:
--------------------------------------------

Just in case somebody needs a workaround (well, a dirty hack):
Include the jquery core, then use 

function fixRequiredIcons() {
    $('.AFRequiredIconStyle').each(function() {
        var e = $(this);
        var parent = e.parent();
        parent.append(' ');
        e.appendTo(parent);
    })
}

// Needs to re-apply the required icon fix
TrPage.getInstance().getRequestQueue().addStateChangeListener(pprCallback);

function pprCallback(status) {
    if (status == TrRequestQueue.STATE_READY) {
        fixRequiredIcons()
    }
}

$(document).ready(function() {
    fixRequiredIcons();
});



> Positions of "required" and "message" label should be skinnable
> ---------------------------------------------------------------
>
>                 Key: TRINIDAD-755
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-755
>             Project: MyFaces Trinidad
>          Issue Type: New Feature
>          Components: Skinning
>    Affects Versions: 1.0.3-core
>            Reporter: Stephen Friedrich
>         Attachments: positions.patch, skin-selectors.patch
>
>
> Currently Trinidad always shows icon and text of a label in this order: <message-icon> <required-.icon> <text>
> It should be able to specify a different order in the skin.

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