You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2012/08/29 19:19:57 UTC

Css for panel

I have a component that extends panel. I need to add css customization
to this panel. I can include the css in the over all site CSS, but
I like to separate the CSS for this panel. For example,

MyPanel.java
MyPanel.html
MyPanel.css

I like to have MyPanel.css included in the header of the html when
ever MyPanel is used.
How do I do this with wicket 6.0 ??

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Css for panel

Posted by Mansour Al Akeel <ma...@gmail.com>.
Thank you all.


On Wed, Aug 29, 2012 at 1:49 PM, Paul Bors <pa...@bors.ws> wrote:
> See "Including CSS resources" at:
> https://cwiki.apache.org/WICKET/including-css-resources.html
>
> This is also covered by all of the books on Wicket:
> http://wicket.apache.org/learn/books/
>
> You should invest into such a Book.
> Personally I suggest "Wicket in Action" since its authors are Wicket
> developers and you see their names in many of the replies on those mailing
> lists :)
>
> http://wicket.apache.org/learn/books/wia.html
>
> ~ Thank you,
>   Paul Bors
>
> -----Original Message-----
> From: Ronny.Voss@consult.nordea.com [mailto:Ronny.Voss@consult.nordea.com]
> Sent: Wednesday, August 29, 2012 1:31 PM
> To: users@wicket.apache.org
> Subject: RE: Css for panel
>
> Hi
>
> Actually I am pretty new with Wicket, but I give it a shot... :-)
>
>         @Override
>         public void renderHead(IHeaderResponse response) {
>                 super.renderHead(response);
>                 response.renderCSSReference(YOUR_CSS_REF);
>         }
>
> private static final ResourceReference YOUR_CSS_REF = new
> PackageResourceReference(...
>
>
> -----Original Message-----
> From: Mansour Al Akeel [mailto:mansour.alakeel@gmail.com]
> Sent: 29 August 2012 19:20
> To: users
> Subject: Css for panel
>
> I have a component that extends panel. I need to add css customization to
> this panel. I can include the css in the over all site CSS, but I like to
> separate the CSS for this panel. For example,
>
> MyPanel.java
> MyPanel.html
> MyPanel.css
>
> I like to have MyPanel.css included in the header of the html when ever
> MyPanel is used.
> How do I do this with wicket 6.0 ??
>
> Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Css for panel

Posted by Paul Bors <pa...@bors.ws>.
See "Including CSS resources" at:
https://cwiki.apache.org/WICKET/including-css-resources.html

This is also covered by all of the books on Wicket:
http://wicket.apache.org/learn/books/

You should invest into such a Book.
Personally I suggest "Wicket in Action" since its authors are Wicket
developers and you see their names in many of the replies on those mailing
lists :)

http://wicket.apache.org/learn/books/wia.html

~ Thank you,
  Paul Bors

-----Original Message-----
From: Ronny.Voss@consult.nordea.com [mailto:Ronny.Voss@consult.nordea.com] 
Sent: Wednesday, August 29, 2012 1:31 PM
To: users@wicket.apache.org
Subject: RE: Css for panel

Hi

Actually I am pretty new with Wicket, but I give it a shot... :-)

	@Override
	public void renderHead(IHeaderResponse response) {
		super.renderHead(response);
		response.renderCSSReference(YOUR_CSS_REF);
	}

private static final ResourceReference YOUR_CSS_REF = new
PackageResourceReference(...


-----Original Message-----
From: Mansour Al Akeel [mailto:mansour.alakeel@gmail.com] 
Sent: 29 August 2012 19:20
To: users
Subject: Css for panel

I have a component that extends panel. I need to add css customization to
this panel. I can include the css in the over all site CSS, but I like to
separate the CSS for this panel. For example,

MyPanel.java
MyPanel.html
MyPanel.css

I like to have MyPanel.css included in the header of the html when ever
MyPanel is used.
How do I do this with wicket 6.0 ??

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Css for panel

Posted by Ro...@consult.nordea.com.
Hi

Actually I am pretty new with Wicket, but I give it a shot... :-)

	@Override
	public void renderHead(IHeaderResponse response) {
		super.renderHead(response);
		response.renderCSSReference(YOUR_CSS_REF);
	}

private static final ResourceReference YOUR_CSS_REF = new PackageResourceReference(...


-----Original Message-----
From: Mansour Al Akeel [mailto:mansour.alakeel@gmail.com] 
Sent: 29 August 2012 19:20
To: users
Subject: Css for panel

I have a component that extends panel. I need to add css customization to this panel. I can include the css in the over all site CSS, but I like to separate the CSS for this panel. For example,

MyPanel.java
MyPanel.html
MyPanel.css

I like to have MyPanel.css included in the header of the html when ever MyPanel is used.
How do I do this with wicket 6.0 ??

Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org