Carsten,
Using today's trunk (although I don't think anything has changed), it works
for me:
My skin contains the following
/*** Dialog ***/
af|dialog::container {
border: 1px solid red;
background-color: #FFFFFF;
text-align: left;
}
af|dialog::title-bar {
-tr-rule-ref:selector(".AFHeaderLevelThreePlus");
-tr-rule-ref:selector(".AFDarkBackground:alias");
padding: 2px 2px 2px 2px;
}
af|dialog::title-text {
color: yellow;
text-align: left;
}
af|dialog::close-icon {
color: #FFFFFF;
content: url(images/icoWindowClose13.gif);
text-align: right;
}
af|dialog::content {
}
/*** End Panel Popup ***/
Which generated out as the following with compression enabled:
<div class="x1k" style="padding: 0px; position: absolute; z-index: 5001;
top: 199px; left: 478px; visibility: visible; width: 324px;"><div class="x1l
">
<div class="x1m" style="float: left;">Skin Settings</div>
<div class="x1n" style="float: right;"/>
<div style="clear: both;"/>
</div>
<iframe class="x1o" width="100%" height="96" frameborder="0" name="_blank"
src="/trinidad-blank/faces/skinSwitch.xhtml?_afPfm=7b897940">
</iframe>
</div>
And with compression disabled:
div class="af_dialog_container" style="padding: 0px; position: absolute;
z-index: 5001; top: 199px; left: 478px; visibility: visible; width: 324px;">
<div class="af_dialog_title-bar">
</div>
<iframe class="af_dialog_content" width="100%" height="96" frameborder="0"
name="_blank" src="/trinidad-blank/faces/skinSwitch.xhtml?_afPfm=-7b8fd673">
</iframe>
</div>
On 9/24/07, Carsten Pieper <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I tried to skin lightweight dialogs (with the latest 1.0.3-SNAPSHOT) but
> it
> didn't work for me.
> The problem seems to be, that my lightweight selectors (see
> http://myfaces.apache.org/trinidad/skin-selectors.html#MiscSelectors) will
> be "translated"
> (as always) to something like .af_dialog_container whereas my rendered
> XHTML
> has the
> not-translated versions like af|dialog::container for the lightweight
> dialogs.
>
> Thus, my skinning definitions are never reached!
>
> Snippet from my XHTML:
>
> <div style="padding: 0px; position: absolute; z-index: 5001; top: 171.5px;
> left: 394px; visibility: visible; width: 340px;"
> class="af|dialog::container"><div class="af|dialog::title-bar"><div
> style="float: left;" class="af|dialog::title-text">Datum
> auswählen</div><div
> style="float: right;" class="af|dialog::close-icon"/><div style="clear:
> both;"/></div><iframe width="100%" height="190" frameborder="0"
> name="_blank" class="af|dialog::content"
>
> src="/jsf-prototype/__ADFv__.faces?_t=cd&value=1190614456875&loc=de&enc=ISO-8859-1"/></div>
>
> Snippet from my generated CSS (using jetty,
> ~\target\work\adf\styles\cache\myskin-desktop-dwyvdi-gecko.css):
>
> .af_dialog_container
> {border-color:#96A5B4;background-color:white;border:2px
> solid #003366;width:210px}
> .af_dialog_title-bar {border-color:#96A5B4;border-bottom:1px
> solid;padding:2px 2px 2px 2px;color:#000000;background-color:#EBF0F5}
> .af_dialog_title-text,.af_panelPopup_title-text {font-family:Arial,
> Helvetica,
>
> sans-serif;font-weight:normal;font-size:13px;white-space:nowrap;overflow:hidden}
> .af_dialog_close-icon {font-family:Arial, Helvetica,
>
> sans-serif;font-weight:normal;font-size:13px;margin-left:5px;background-image:url(/jsf-prototype/adf/images/close.gif);background-position:center;background-repeat:no-repeat;height:13px;width:13px}
> .af_dialog_content {background-color:#F8F689;border:0px}
>
> Best regards,
> Carsten
>
>
> My Faces - Dev mailing list wrote:
> >
> >
> > [
> >
> https://issues.apache.org/jira/browse/TRINIDAD-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> > ]
> >
> > Danny Robinson resolved TRINIDAD-654.
> > -------------------------------------
> >
> > Resolution: Fixed
> > Fix Version/s: 1.0.3-core
> >
> > Added skinning selectors to skin-selectors.xml
> >
> >> Lightweight dialogs should be skinnable
> >> ---------------------------------------
> >>
> >> Key: TRINIDAD-654
> >> URL: https://issues.apache.org/jira/browse/TRINIDAD-654
> >> Project: MyFaces Trinidad
> >> Issue Type: Improvement
> >> Components: Components
> >> Affects Versions: 1.0.2-core
> >> Reporter: Danny Robinson
> >> Assignee: Danny Robinson
> >> Priority: Minor
> >> Fix For: 1.0.3-core
> >>
> >>
> >> Right now lightweight dialogs inherit their skinning from panelPopup.
> >> They should have their own skinning keys.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > You can reply to this email to add a comment to the issue online.
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/-jira--Created%3A-%28TRINIDAD-654%29-Lightweight-dialogs-should-be-skinnable-tf4338073.html#a12854609
> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>
>
--
Chordiant Software Inc.
www.chordiant.com