From adffaces-dev-return-367-apmail-incubator-adffaces-dev-archive=incubator.apache.org@incubator.apache.org Fri Jul 07 13:07:28 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-dev-archive@locus.apache.org Received: (qmail 38993 invoked from network); 7 Jul 2006 13:07:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 13:07:27 -0000 Received: (qmail 76455 invoked by uid 500); 7 Jul 2006 13:07:27 -0000 Delivered-To: apmail-incubator-adffaces-dev-archive@incubator.apache.org Received: (qmail 76424 invoked by uid 500); 7 Jul 2006 13:07:27 -0000 Mailing-List: contact adffaces-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-dev@incubator.apache.org Delivered-To: mailing list adffaces-dev@incubator.apache.org Received: (qmail 76413 invoked by uid 99); 7 Jul 2006 13:07:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 06:07:27 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [198.168.250.2] (HELO canada-smtp1.consulting.fujitsu.com) (198.168.250.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 06:07:25 -0700 Received: from Montreal-NS002.notes.dmr (montreal-ns002.notes.dmr [205.151.154.84] (may be forged)) by canada-smtp1.consulting.fujitsu.com (8.13.6/8.13.6) with ESMTP id k67D6WQ9005040 for ; Fri, 7 Jul 2006 09:06:32 -0400 In-Reply-To: <44AD9D2E.8080000@oracle.com> To: adffaces-dev@incubator.apache.org Subject: Re: inhibiting css properties in skin definition file MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: Simon_Lessard@DMR.CA Date: Fri, 7 Jul 2006 09:06:22 -0400 X-MIMETrack: Serialize by Router on Montreal-NS002/DMR/CA(Release 6.5.4|March 27, 2005) at 07/07/2006 09:06:57 AM, Serialize complete at 07/07/2006 09:06:57 AM Content-Type: multipart/alternative; boundary="=_alternative 00480E69852571A4_=" X-Proofpoint-Spam-Reason: safe X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --=_alternative 00480E69852571A4_= Content-Type: text/plain; charset="US-ASCII" Strange, I use the application we used to develop the skin for our ADF Faces project, converted to use Trinidad libraries instead. The HTML code I get for the menuList is With styles: .OraStyledList,.x8q { list-style-position:inside; padding:0px;margin:0px } .OraNav3Selected,.x8o { font-family:Verdana, Arial, Helvetica, Sans-Serif; color:inherit; font-size:10pt; font-weight:bold; background-color:red } .OraLinkDisabled,.xj,.af_outputLabel_required-icon-style,.x1y,.af_inputChoice_required-icon-style,.x1z,.af_inputText_required-icon-style,.x20,.af_selectBooleanCheckbox_required-icon-style,.x21,.af_selectBooleanRadio_required-icon-style,.x22,.af_selectInputDate_required-icon-style,.x23,.af_selectManyCheckbox_required-icon-style,.x24,.af_selectManyListbox_required-icon-style,.x25,.af_selectOneChoice_required-icon-style,.x26,.af_selectOneListbox_required-icon-style,.x27,.af_selectOneRadio_required-icon-style,.x28,.af_outputLabel_group-icon-style,.x29,.af_inputChoice_group-icon-style,.x2a,.af_inputText_group-icon-style,.x2b,.af_selectBooleanCheckbox_group-icon-style,.x2c,.af_selectBooleanRadio_group-icon-style,.x2d,.af_selectInputDate_group-icon-style,.x2e,.af_selectManyCheckbox_group-icon-style,.x2f,.af_selectManyListbox_group-icon-style,.x2g,.af_selectOneChoice_group-icon-style,.x2h,.af_selectOneListbox_group-icon-style,.x2i,.af_selectOneRadio_group-icon-style,.x2j,.af_menuLis! t,.x2l,button,.af_navigationLevel_choice-label,.x38,.af_navigationLevel_choice-options,.x39,.af_navigationLevel_choice-button,.x3a,.af_navigationPath,.x3y,.af_menuButtons_text,.x4n,.af_menuButtons_text-selected,.x4p,.af_menuButtons_text-disabled,.x4q,.af_menuBar_separator,.x4u,.p_OraDisabled,.x7m,.OraNav3,.x8p,.p_OraTreeRow,.x9n,.portlet-form-button,.xas { font-family:Verdana, Arial, Helvetica, Sans-Serif; color:inherit; font-weight:inherit; font-size:10pt } .AFInstructionText,.x0,.OraLink:link,.xi:link,.OraLink:active,.xi:active,.OraLink:visited,.xi:visited,.af_outputText,.xk,.af_outputFormatted,.xl,.af_treeTable_path,.x2n,.af_menuPath,.x2q,.af_panelList A,.x2t A,.OraLinkText,.x7b,.OraVLinkText,.x7c,.OraALinkText,.x7d,.OraHGridNavRowActiveLink,.x89,.OraNavBarActiveLink,.x8d,.PortletText1,.xa4,.PortletText2,.xa5,.PortletText3,.xa6,.PortletText4,.xa7,.portlet-form-field,.xaw { font-family:Verdana, Arial, Helvetica, Sans-Serif; font-weight:inherit; font-size:10pt; color:black } For skin .AFDefaultFontFamily:alias { font-family : Verdana, Arial, Helvetica, Sans-Serif; } .AFDefaultFont:alias { color: inherit; font-weight: inherit; font-size: 10pt; } .AFLinkForeground:alias { color: black; } .AFActiveLinkForeground:alias { color: black; } .AFVisitedLinkForeground:alias { color: black; } af|menuList { } af|menuList::selected { font-weight: bold; background-color: blue; } It seems to me that OraNav3Selected is the selector generated for af_menuList_selected. I can provide you the whole project .zip if you want, but you would have to link it yourself to the JAR beause I use absolute path to point on mine. Regards, Simon Lessard Fujitsu Consulting Jeanne Waldman 2006-07-06 19:30 Please respond to adffaces-dev To: adffaces-dev@incubator.apache.org cc: Subject: Re: inhibiting css properties in skin definition file Before I can comment on your examples, I'd like to be able run them. :) When I run the menuList demo, my html is
  • Page 1
  • Page 2
  • Page 3
  • ... you'll see there is no af_menuList_selected, etc. Do you see something different? Which demo are you running? Simon_Lessard@DMR.CA wrote: >Hmmm... strange... I just reproduced it using the current snapshot >release on Trinidad site and the selector works "fine". Here's my skin. > >.AFDefaultFont:alias { > color: inherit; > font-size: 10pt; > font-weight: inherit; >} > >.AFLightBackground:alias { > background-color : red; >} > >af|menuList { } > >af|menuList::selected { > font-weight: bold; > background-color: blue; >} > >and the page: > > > > > > >You'll see that the ::selected works because of the bold font weight that >will be given to the selected item. > >Note that if you remove the inherit from AFDefaultFont:alias, the font >will no longer be bold, which is another skin/rendering bug as the >af|menuList:selected class is applied on the element while the >default font is applied directly on the and if you don't specify any >weight in that font alias, you'll inherit the font-weight: normal from >base skin. That very strange behavior almost drove crazy the one in charge >of the skin on the project we finished 1 week ago. > >With inhibit, you would have to override DefaultFont to inhibit >font-weight This is much better than without the option, but I believe it >will still be annoying for the end user, hence why I proposed to not >inherit from parent by default. Without inherit by default, the selector >would still have to be overridden, ut the user would not have to inhibit >anything. > >The above example is, I believe, a good example why automatically >inheriting the parent's properties is not really respecting the cascading >style rule. An user creating the following skin would expect to see a >menuList with both items using a font-size of 10pt with the selected item >being in bold with a blue background: > >.AFDefaultFont:alias { > font-size: 10pt; >} > >af|menuList::selected { > font-weight: bold; > background-color: blue; >} > >I'll try to post more irritating example we found out while creating our >skin. > >Simon Lessard >Fujitsu Consulting > > --=_alternative 00480E69852571A4_=--