Mind showing us some code? The pattern you are describing here is very
common and it should work quite well.

-Matej

On Wed, Jun 18, 2008 at 12:55 AM, David Nedrow <[EMAIL PROTECTED]> wrote:
> Hmm, Google is not being helpful.
>
> Is there a way to contribute CSS when a Panel is added to a page?
>
> I like the idea of keeping the CSS with the related class and html file, but
> have not figured out if it is possible to add CSS at render time for
> components contained in the page.
>
> IE., I have UserDetailsPanel.java, UserDetailsPanel.html, and
> UserDetailsPanel.css.
>
> If I include the panel in an AjaxTabbedPanel(), with UserDetailsPanel.java
> containing a HeaderContributor.forCss() pointing to UserDetailsPanel.css,
> the rendered page does not contain the css link. Frankly, this is what I
> would expect, given that the page header has already been rendered.
>
> Is this a circumstance in which I will need to contribute the CSS earlier in
> the process, or is there a mechanism that can be used to do this when the
> panel is rendered?
>
> -David
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to