How to gray out readonly text in a text box

2009-05-20 Thread Rob Tanner

If I don't explicitly set a style for a TextBox widget, it picks up
the stylesheet .gwt-TextBox and .gwt-TextBox-readonly from the
standard.css file.  That's fine except that I want to customize it
using the css file in the WEB-INF folder which is where I set all my
custom styles (styles specific to a specif widget in a specific panel,
etc).  My understanding is that if I use the default style name, in
this case the two mentioned above, in my local css file, I would
override the default styles in standard.css.  But that does not seem
to be happening.  Is there a special trick to it?

Thanks,
Rob

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to gray out readonly text in a text box

2009-05-20 Thread Jeff Chimene

On 05/20/2009 02:31 PM, Rob Tanner wrote:
 If I don't explicitly set a style for a TextBox widget, it picks up
 the stylesheet .gwt-TextBox and .gwt-TextBox-readonly from the
 standard.css file.  That's fine except that I want to customize it
 using the css file in the WEB-INF folder which is where I set all my
 custom styles (styles specific to a specif widget in a specific panel,
 etc).  My understanding is that if I use the default style name, in
 this case the two mentioned above, in my local css file, I would
 override the default styles in standard.css.  But that does not seem
 to be happening.  Is there a special trick to it?


Do you call out the stylesheet in your *.gwt.xml file? E.g:
!-- Specify the application specific style sheet.  --
stylesheet src='equine.css' /

If that's already there, are you sure the stylesheet's being loaded? 
Check your httpd server logs or use Firebug (or whatever tool IE has for 
debugging HTTP protocol)

 Thanks,
 Rob

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to gray out readonly text in a text box

2009-05-20 Thread Peter Ondruška

Anything you put to WEB-INF folder will not be served by the web
server. That folder is for configuration files. Place css into root
folder or any other folder.

2009/5/20, Rob Tanner caspersg...@gmail.com:

 If I don't explicitly set a style for a TextBox widget, it picks up
 the stylesheet .gwt-TextBox and .gwt-TextBox-readonly from the
 standard.css file.  That's fine except that I want to customize it
 using the css file in the WEB-INF folder which is where I set all my
 custom styles (styles specific to a specif widget in a specific panel,
 etc).  My understanding is that if I use the default style name, in
 this case the two mentioned above, in my local css file, I would
 override the default styles in standard.css.  But that does not seem
 to be happening.  Is there a special trick to it?

 Thanks,
 Rob

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to gray out readonly text in a text box

2009-05-20 Thread Rob Tanner



On May 20, 3:16 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 05/20/2009 02:31 PM, Rob Tanner wrote:

  If I don't explicitly set a style for a TextBox widget, it picks up
  the stylesheet .gwt-TextBox and .gwt-TextBox-readonly from the
  standard.css file.  That's fine except that I want to customize it
  using the css file in the WEB-INF folder which is where I set all my
  custom styles (styles specific to a specif widget in a specific panel,
  etc).  My understanding is that if I use the default style name, in
  this case the two mentioned above, in my local css file, I would
  override the default styles in standard.css.  But that does not seem
  to be happening.  Is there a special trick to it?

 Do you call out the stylesheet in your *.gwt.xml file? E.g:
 !-- Specify the application specific style sheet.              --
 stylesheet src='equine.css' /

 If that's already there, are you sure the stylesheet's being loaded?
 Check your httpd server logs or use Firebug (or whatever tool IE has for
 debugging HTTP protocol)

  Thanks,
  Rob

The css file is defined in the main html (actually jsp) file.  A
stupid spelling error on my part.  It all works now.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to gray out readonly text in a text box

2009-05-20 Thread Rob Tanner

I was looking the Eclipse layout and somehow just thought it was in
WEB-INF.  You know how that goes, you press send and then hit yourself
in the forehead for being a dork.  It's in the war folder at the same
level as WEB-INF and the problem turned out to be a spelling error.

Thanks,
Rob

On May 20, 10:02 pm, Peter Ondruška peter.ondru...@gmail.com wrote:
 Anything you put to WEB-INF folder will not be served by the web
 server. That folder is for configuration files. Place css into root
 folder or any other folder.

 2009/5/20, Rob Tanner caspersg...@gmail.com:



  If I don't explicitly set a style for a TextBox widget, it picks up
  the stylesheet .gwt-TextBox and .gwt-TextBox-readonly from the
  standard.css file.  That's fine except that I want to customize it
  using the css file in the WEB-INF folder which is where I set all my
  custom styles (styles specific to a specif widget in a specific panel,
  etc).  My understanding is that if I use the default style name, in
  this case the two mentioned above, in my local css file, I would
  override the default styles in standard.css.  But that does not seem
  to be happening.  Is there a special trick to it?

  Thanks,
  Rob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---