Gwt access css file from relative location. Place your css
file,uibinder, ui.xml file in same directory. It picks up the style
from inline style sheet within the ui.xml file. Access the style
property using styleName="{style.sample}".
//example
<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'>
<ui:style src="xyz.css" />
<g:DockLayoutPanel unit='EM'>
<g:west size='10'>
<g:HTMLPanel styleName="{style.sample}">
<ul>
<li>ListItem</li>
<li>ListItem1</li>
<li>ListItem2</li>
</ul>
</g:HTMLPanel>
</g:west>
</g:DockLayoutPanel>
</ui:UiBinder>
S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE
On Oct 12, 1:29 am, SigmaBlu <[email protected]> wrote:
> Is there a way to link a css file to the ui.xml file?
>
> For example, I am able to link it by doing the following:
> <ui:style src="xyz.css" />
>
> The css is located within the same directory as my UiBinder Class and
> my ui.xml file; so it picks up that css in its root directory.
>
> Lets say that the source of my css file is located..here C:\Program
> Files\Users\MyUserName\Desktop\Poject\CSS\xyz.css
>
> How can i let the ui.xml file know that its source (<ui:style
> src="xyz.css" />) is located in the above directory (C:\Program Files
> \Users\MyUserName\Desktop\Poject\CSS\xyz.css)?
>
> Regards,
> Sigma
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.