Tuesday, October 18, 2011

Re: How to set stylesheet on a per page basis?

After doing some testing, it doesn't looks like this works as
expected. It appears that after adding:

<ui:style src="mycss.css"/>

that the CSS in that stylesheet appears in ALL pages, even though the
above line only appears in on view's UIBinder code.


On Oct 18, 12:53 pm, Mike Dee <mdichiapp...@gmail.com> wrote:
> Upon a little more investigation (ie. actually reading some
> documentation) this can be done with UIBinder, but I still need a
> little help.
>
> With UIBinder a stylesheet can be included easily, like this:
>
> <ui:style src="client-specific.css" />
>
> That works out nicely, especially since I'm already using UIBinder.
>
> However, the path is a little problematic.  The above example works
> because I put the CSS in the same directory as the view class and its
> ui.xml.  How can I put the CSS file in the directory with the web
> pages (war)?
>
> On Oct 18, 12:37 pm, Mike Dee <mdichiapp...@gmail.com> wrote:
>
>
>
>
>
>
>
> > How can a stylesheet be applied for one page - not an entire module?
> > Our app runs fine with a single stylesheet, but for a couple of pages
> > a client specified look and feel (with CSS) are needed.  I'd like to
> > apply (add) an additional stylesheet to just those.   How can that be
> > done?
>
> > Thanks,
> > Mike

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