Re: [Wicket-user] Skin effect in wicket

2007-06-03 Thread Kent Tong
Javed  gmail.com> writes:

> I am having to different markups for the same page(java file) so when I
> start my server and hit that page it with criteria that selects markup
> dynamically it displays that page with that markup but when I hit it one
> more time (without restarting server) with different criteria which should
> change the markup but it is showing first(old or previous) markup. 
> After doing google, I came across this markup cache thing. but didnt get any
> solution.

Have you tried using that criteria to set the style in the session?
A different style will allow you to provide a different markup.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Eelco Hillenius
> I am using wicket 1.2.6 API. I couldnt find this
> "org.apache.wicket.markup.IMarkupCacheKeyProvider" interface. Could you
> please tell me which jar or wicket has this interface.

It's a new feature of Wicket 1.3. Unfortunately, we can't support this in 1.2.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Javed

I am using wicket 1.2.6 API. I couldnt find this
"org.apache.wicket.markup.IMarkupCacheKeyProvider" interface. Could you
please tell me which jar or wicket has this interface.

Thanks in advance.


Eelco Hillenius wrote:
> 
> Look at PageWithCustomLoading. It implements IMarkupCacheKeyProvider
> and has method:
> 
>   /**
>* Prevent the markup from ever be cached. This is optionally -
> components
>* that don't implement [EMAIL PROTECTED] IMarkupCacheKeyProvider} will 
> just have
> their
>* markup cached - but is useful when markup varies. If you don't need
> such
>* dynamic loading, it is advisible to not implement
>* [EMAIL PROTECTED] IMarkupCacheKeyProvider}.
>*
>* @see
> org.apache.wicket.markup.IMarkupCacheKeyProvider#getCacheKey(org.apache.wicket.MarkupContainer,
>*  java.lang.Class)
>*/
>   public CharSequence getCacheKey(MarkupContainer container, Class
> containerClass)
>   {
>   return null;
>   }
> 
> Eelco
> 
> On 5/30/07, Javed <[EMAIL PROTECTED]> wrote:
>>
>> I tried with customresourceloading from wicket-examples its working but
>> the
>> problem is with markup cache.
>>
>> I am having to different markups for the same page(java file) so when I
>> start my server and hit that page it with criteria that selects markup
>> dynamically it displays that page with that markup but when I hit it one
>> more time (without restarting server) with different criteria which
>> should
>> change the markup but it is showing first(old or previous) markup.
>> After doing google, I came across this markup cache thing. but didnt get
>> any
>> solution.
>>
>> Could you please suggest on this problem?
>>
>>
>> Eelco Hillenius wrote:
>> >
>> >> Thanks for reply.
>> >>
>> >> One more thing, Can I have this setting of markup for particular
>> module
>> >> (Page) and not for whole application?
>> >
>> > Yep, see PageWithCustomLoading from that example. Also note that the
>> > application scoped setting is a strategy, so with a bit of thinking
>> > you can bend it every way you want it.
>> >
>> > Eelco
>> >
>> >
>> -
>> > This SF.net email is sponsored by DB2 Express
>> > Download DB2 Express C - the FREE version of DB2 express and take
>> > control of your XML. No limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > ___
>> > Wicket-user mailing list
>> > Wicket-user@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wicket-user
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10871813
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10876450
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Eelco Hillenius
Look at PageWithCustomLoading. It implements IMarkupCacheKeyProvider
and has method:

/**
 * Prevent the markup from ever be cached. This is optionally - 
components
 * that don't implement [EMAIL PROTECTED] IMarkupCacheKeyProvider} will 
just have their
 * markup cached - but is useful when markup varies. If you don't need 
such
 * dynamic loading, it is advisible to not implement
 * [EMAIL PROTECTED] IMarkupCacheKeyProvider}.
 *
 * @see 
org.apache.wicket.markup.IMarkupCacheKeyProvider#getCacheKey(org.apache.wicket.MarkupContainer,
 *  java.lang.Class)
 */
public CharSequence getCacheKey(MarkupContainer container, Class
containerClass)
{
return null;
}

Eelco

On 5/30/07, Javed <[EMAIL PROTECTED]> wrote:
>
> I tried with customresourceloading from wicket-examples its working but the
> problem is with markup cache.
>
> I am having to different markups for the same page(java file) so when I
> start my server and hit that page it with criteria that selects markup
> dynamically it displays that page with that markup but when I hit it one
> more time (without restarting server) with different criteria which should
> change the markup but it is showing first(old or previous) markup.
> After doing google, I came across this markup cache thing. but didnt get any
> solution.
>
> Could you please suggest on this problem?
>
>
> Eelco Hillenius wrote:
> >
> >> Thanks for reply.
> >>
> >> One more thing, Can I have this setting of markup for particular module
> >> (Page) and not for whole application?
> >
> > Yep, see PageWithCustomLoading from that example. Also note that the
> > application scoped setting is a strategy, so with a bit of thinking
> > you can bend it every way you want it.
> >
> > Eelco
> >
> > -
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10871813
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-30 Thread Javed

I tried with customresourceloading from wicket-examples its working but the
problem is with markup cache.

I am having to different markups for the same page(java file) so when I
start my server and hit that page it with criteria that selects markup
dynamically it displays that page with that markup but when I hit it one
more time (without restarting server) with different criteria which should
change the markup but it is showing first(old or previous) markup. 
After doing google, I came across this markup cache thing. but didnt get any
solution.

Could you please suggest on this problem?


Eelco Hillenius wrote:
> 
>> Thanks for reply.
>>
>> One more thing, Can I have this setting of markup for particular module
>> (Page) and not for whole application?
> 
> Yep, see PageWithCustomLoading from that example. Also note that the
> application scoped setting is a strategy, so with a bit of thinking
> you can bend it every way you want it.
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10871813
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Eelco Hillenius
> Thanks for reply.
>
> One more thing, Can I have this setting of markup for particular module
> (Page) and not for whole application?

Yep, see PageWithCustomLoading from that example. Also note that the
application scoped setting is a strategy, so with a bit of thinking
you can bend it every way you want it.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Javed

Thanks for reply.

One more thing, Can I have this setting of markup for particular module
(Page) and not for whole application?




Eelco Hillenius wrote:
> 
>> Can I some how keep each of the html pages in separate folders?
>> Can I locate markup from particular folder dynamically?
> 
> You can, but you'll have to do some extra work. Look at the
> customresourceloading example in wicket-examples for some ideas.
> 
> Eelco
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10867825
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Eelco Hillenius
> Can I some how keep each of the html pages in separate folders?
> Can I locate markup from particular folder dynamically?

You can, but you'll have to do some extra work. Look at the
customresourceloading example in wicket-examples for some ideas.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Javed

Thanks for reply.

My real concern is to keep html,images and css in separate folder, so it
will be easy to add new html page with its images and css.
Can I some how keep each of the html pages in separate folders?
Can I locate markup from particular folder dynamically?


Marc-Andre Houle wrote:
> 
> The two way I know of :
> 
> 1. It can be done using variation :
> http://cwiki.apache.org/WICKET/multiple-markups-per-page.html
> 
> 2. Also possible by using a Header contributor for CSS...
> http://wicketframework.org/apidocs/wicket/behavior/HeaderContributor.html
> 
> Have fun
> 
> Marc
> 
> On 5/29/07, Javed <[EMAIL PROTECTED]> wrote:
>>
>>
>> I want to give skin effect to my web application. This means, can I have
>> option to select different html (look and feel) at the runtime depending
>> on
>> the selected skin usinging the java file (page)?
>>
>> if there is any provision in wicket, please let me know.
>>
>> Thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10852794
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10867201
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Dipu
i think you can override  getVariation() to do  this.

Regards
Dipu

- Original Message - 
From: "Javed" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 29, 2007 1:10 PM
Subject: [Wicket-user] Skin effect in wicket


>
> I want to give skin effect to my web application. This means, can I have
> option to select different html (look and feel) at the runtime depending 
> on
> the selected skin usinging the java file (page)?
>
> if there is any provision in wicket, please let me know.
>
> Thanks in advance.
> -- 
> View this message in context: 
> http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10852794
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Skin effect in wicket

2007-05-29 Thread Marc-Andre Houle

The two way I know of :

1. It can be done using variation :
http://cwiki.apache.org/WICKET/multiple-markups-per-page.html

2. Also possible by using a Header contributor for CSS...
http://wicketframework.org/apidocs/wicket/behavior/HeaderContributor.html

Have fun

Marc

On 5/29/07, Javed <[EMAIL PROTECTED]> wrote:



I want to give skin effect to my web application. This means, can I have
option to select different html (look and feel) at the runtime depending
on
the selected skin usinging the java file (page)?

if there is any provision in wicket, please let me know.

Thanks in advance.
--
View this message in context:
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10852794
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Skin effect in wicket

2007-05-29 Thread Javed

I want to give skin effect to my web application. This means, can I have
option to select different html (look and feel) at the runtime depending on
the selected skin usinging the java file (page)? 

if there is any provision in wicket, please let me know.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Skin-effect-in-wicket-tf3833465.html#a10852794
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user