myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Friedrich (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TRINIDAD-755) Positions of "required" and "message" label should be skinnable
Date Tue, 26 Aug 2008 20:24:44 GMT

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


Mime
View raw message