myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeanne Waldman <jeanne.wald...@oracle.com>
Subject Re: [Trinidad] Removing Text Icons (* and X)
Date Fri, 24 Aug 2007 14:08:58 GMT
I tried this in the purple skin:
.AFErrorIcon:alias { content:url(/skins/purple/images/btns.gif); }

and ran the purple skin and the icon.jspx component demo and set 
name="error" and I saw my image.

It should work, so maybe there is a typo?

- Jeanne

DLC wrote:
> I've tried it with both one and two colons.  Neither seems to work.
>
> --Dave
>
> --- Jeanne Waldman <jeanne.waldman@oracle.com> wrote:
>
>
> ---------------------------------
>   There's a typo here in your email, and not sure if it is the same inyour code:
>
> :alias (one colon, not two)
>
> - Jeanne
>
> DLC wrote:  
> Well, maybe I should be more specific.  This is what I've tried:.AFErrorIcon::alias {
content:
> url(/images/icon_alert.gif); }.AFErrorIcon::alias { content: 'W'; }.AFErrorIcon { content:
> url(/images/icon_alert.gif); }.AFErrorIcon { content: 'W'; }None of these have any effect
on the
> rendering of the error icon (e.g., what's rendered next to arequired input field that
is blank
> when attempting to submit).  That is rendered like this:<a class="AFErrorIconStyle"
title="Error"
> name="_msgAnc_username">X</a>I would prefer it to render something like this:<img
> src="/images/icon_alert.gif" />Does that help?--Dave--- Scott O'Bryan <darkarena@gmail.com>
wrote:
>  
>       
> Dave, it needs to be an "icon".  Can't be an X..DLC wrote:    
>           
> Thanks for your input.  Unfortunately, I can't seem to get this to work right.  Maybe
I'm
> justconfused.I'm trying to replace the default AFErrorIcon (which is an 'X') with my
own.  Could
> someone show me an example that they haveworking?Thanks,--Dave--- Scott O'Bryan
> <darkarena@gmail.com> wrote:        
>               
> You can do that in the css .  The skinning framework parses the css and any icons which
are
> specified in the skinning file will override the default values.  Use the "content:"
as specified
> in the below example to specify which image to use.ScottPerkins, Nate-P63196 wrote: 
          
>                   
> Would this also work for the af|chooseDate::launch-icon...the defaultfor this is a green
calendar,
> but I would like to change it to a bluecalendar.Can I do that with css or do I need to
change the
> code? Nate Perkins480-441-3667nate.perkins@gdc4s.com                  
>                       
> This email message is for the sole use of the intended recipient(s) and             
          
>                     
> may contain GDC4S                  
>                       
> confidential or privileged information. Any unauthorized review, use,               
        
>                     
> disclosure or distribution                  
>                       
> is prohibited. If you are not an intended recipient, please contact                 
      
>                     
> the sender by reply email and                  
>                       
> destroy all copies of the original message.                        
>                     
> -----Original Message-----From: Andrew Robinson [mailto:andrew.rw.robinson@gmail.com]
Sent:
> Thursday, August 23, 2007 11:22 AMTo: MyFaces DiscussionSubject: Re: [Trinidad] Removing
Text
> Icons (* and X)You can find the code in BaseDesktopSkin.java that registers the defaulticons.In
> your skin, you should be able to do things like:.AFDetailDisclosedIcon::alias {  content:
> "V";}or.AFDetailDisclosedIcon::alias {  content: url(/skin/myskin/icons/myIcon.gif);}-AndrewOn
> 8/23/07, DLC <my_trash_mail@yahoo.com> wrote:                  
>                       
> Yes.  Sorry, I forgot to add [Trinidad] to the subject.--Dave--- Andrew Robinson
> <andrew.rw.robinson@gmail.com> wrote:                        
>                           
> Is this in relation to Trinidad?On 8/22/07, DLC <my_trash_mail@yahoo.com> wrote:
                 
>            
>                               
> Hi all,I would like to substitute the text icons * and X for required and           
             
>           
>                                               
> error markers on fields                  
>                                     
> with my                              
>                               
> own markup (an image and/or other text).  Is there any way to do                    
             
>  
>                                               
> this?  If so, how?                  
>                                                     
> Thanks,--Dave                                    
>                                               
> ____________________________________________________________________________________
             
>    
>                                                     
> Shape Yahoo! in your own image.  Join our Network Research Panel                    
             
>  
>                                               
> today!                  
>                                     
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7                         
    
>                               
>                                     
>                                       
>                         
>                     
> ____________________________________________________________________________________
             
>    
>                       
> Shape Yahoo! in your own image.  Join our Network Research Panel                    
   
>                     
> today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7                
 
>                       
>                         
>                     
>                   
>                 
>             
>             
>       ____________________________________________________________________________________Fussy?
> Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel and lay it on us.
     
>         
> http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7     
>           
>         
>         
>     
>     
>       
> ____________________________________________________________________________________Pinpoint
> customers who are looking for what you sell. http://searchmarketing.yahoo.com/  
>
>
>
>
>        
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos
& more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
>
>   

Mime
View raw message