i'll try that. 10x!

On Tue, Jan 26, 2010 at 7:46 PM, Thomas Broyer <[email protected]> wrote:

>
>
> On Jan 26, 4:49 pm, Ice13ill <[email protected]> wrote:
> > i'm using uibinder to create some widgets with a CSS file and the
> > corresponding .java and .ui.xml files.
> > Where can i find how the uibinder accesses the required resources ?
> >
> > For example, i have my widgets in the package
> > com.testapp.client.widgets : MyWidget.java and MyWidget.ui.xml
> > The css file is in war/TestApp.css
> >
> > how can i access the css file with the   <ui:style src="file.css" />
> > tag?
>
> You can't. CssResource is a compile-time thing, and war/ is only an
> output destination. Your CSS should be in your classpath, then you can
> use paths relative to the package containing the *.ui.xml.
>
> > if i separate the .java files from .ui.xml files how can i tell where
> > to find the ui.xml file when i create the widget ?
>
> Use a @UiTemplate annotation, with a relative path (not tested but I
> guess it should work).
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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.

Reply via email to