Saturday, October 2, 2010

Re: GWT M3 StackLayoutPanel Styles - A Solution

Okay, I worked out a solution that is relatively painless.

I copied the TabLayout and StackLayout styles from the standard styles
and put them into a file ot_styles.css. I got that to work with the
simple expedient of putting the file in the WAR with the base HTML and
CSS files and adding

<stylesheet src='../ot_styles.css'/>

into the ot.gwt.xml file. Not pretty but it worked. (Actually there
was even uglier kludge before that.)

The I poked around in the history of discussions here which resulted
in a cleaner solution.

Created a folder src/com/ot/public, e.g. in the same directory as the
ot.gwt.xml file. The ot_styles.css file got put into the public
folder. Then the ot.gwt.xml file got changed to have:

<stylesheet src='ot_styles.css'/>

I think an even cleaner solution is using CSSResources because right
now the ot_styles.css gets copied to the WAR directory with all the
comments left in place. The CSSResources solution I think will strip
the comments.

Rud
http://MysticLakeSoftware.com

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate