<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>dev@wicket.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/wicket-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/wicket-dev/</id>
<updated>2009-12-06T22:28:23Z</updated>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c23eb48360912030801k403339b1odda2ffe0615a8763@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360912030801k403339b1odda2ffe0615a8763@mail-gmail-com%3e</id>
<updated>2009-12-03T16:01:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
PropertyModel.of(x,y) is what we use in Model

-igor

On Thu, Dec 3, 2009 at 3:11 AM, Johan Compagner &lt;jcompagner@gmail.com&gt; wrote:
&gt; the bad news is that it seems it is delayed again until the end of 2010??
&gt;
&gt;
&gt; back on the static methods, PropertyModel.getInstance(x,y) is a bit to long
&gt; i guess and PropertyModel.get(x.y)  is also not not sounding quite right.
&gt;
&gt;
&gt;
&gt; On Thu, Dec 3, 2009 at 11:42, Vladimir K &lt;kovalyuk@gmail.com&gt; wrote:
&gt;
&gt;&gt;
&gt;&gt; Martijn,
&gt;&gt;
&gt;&gt; I hope a new feature called "type inference" coming in JDK7 could help java
&gt;&gt; devs to omit repetitive typing of generic parameters.
&gt;&gt;
&gt;&gt; And another good news - JDK 7 will do provide closures.
&gt;&gt;
&gt;&gt;
&gt;&gt; Martijn Dashorst wrote:
&gt;&gt; &gt;
&gt;&gt; &gt; I hate repeating myself and being the compiler's teacher. IMHO the
&gt;&gt; &gt; generics that are implemented in Java resulted in terrible code where
&gt;&gt; &gt; you have to repeat yourself over and over and over. Are you sure your
&gt;&gt; &gt; text field holds a String and your model returns a String?
&gt;&gt; &gt;
&gt;&gt; &gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId", new
&gt;&gt; &gt; PropertyModel&lt;String&gt;(foo, "property"));
&gt;&gt; &gt;
&gt;&gt; &gt; This counts for 3 times the type String. In a recent discussion with
&gt;&gt; &gt; Igor on ##wicket, we saw a way to remove at least 1 String. By
&gt;&gt; &gt; providing model factory methods for concrete models: Model,
&gt;&gt; &gt; CompoundPropertyModel and PropertyModel. For abstract models it
&gt;&gt; &gt; doesn't make sense...
&gt;&gt; &gt;
&gt;&gt; &gt; Igor suggested the following syntax:
&gt;&gt; &gt;
&gt;&gt; &gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId",
&gt;&gt; &gt; PropertyModel.of(foo, "property"));
&gt;&gt; &gt;
&gt;&gt; &gt; i.e. ModelType.of(....)
&gt;&gt; &gt;
&gt;&gt; &gt; I am +1 for adding these methods.
&gt;&gt; &gt;
&gt;&gt; &gt; We can do the same for components, although the benefit is typically
&gt;&gt; &gt; less, and it might even send our users down the wrong path thinking
&gt;&gt; &gt; they can't use the 'new' keyword.
&gt;&gt; &gt;
&gt;&gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt;&gt; &gt; "property"));
&gt;&gt; &gt;
&gt;&gt; &gt; WDYT?
&gt;&gt; &gt;
&gt;&gt; &gt; Martijn
&gt;&gt; &gt; --
&gt;&gt; &gt; Become a Wicket expert, learn from the best: http://wicketinaction.com
&gt;&gt; &gt; Apache Wicket 1.4 increases type safety for web applications
&gt;&gt; &gt; Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://old.nabble.com/Cutting-down-on-the-repetitive-type-identifiers-for-generics-tp26361334p26623904.html
&gt;&gt; Sent from the Wicket - Dev mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Johan Compagner &lt;jcompagner@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c2e1ce7cd0912030311x40f0cac6t99b92bdd936f04b7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2e1ce7cd0912030311x40f0cac6t99b92bdd936f04b7@mail-gmail-com%3e</id>
<updated>2009-12-03T11:11:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
the bad news is that it seems it is delayed again until the end of 2010??


back on the static methods, PropertyModel.getInstance(x,y) is a bit to long
i guess and PropertyModel.get(x.y)  is also not not sounding quite right.



On Thu, Dec 3, 2009 at 11:42, Vladimir K &lt;kovalyuk@gmail.com&gt; wrote:

&gt;
&gt; Martijn,
&gt;
&gt; I hope a new feature called "type inference" coming in JDK7 could help java
&gt; devs to omit repetitive typing of generic parameters.
&gt;
&gt; And another good news - JDK 7 will do provide closures.
&gt;
&gt;
&gt; Martijn Dashorst wrote:
&gt; &gt;
&gt; &gt; I hate repeating myself and being the compiler's teacher. IMHO the
&gt; &gt; generics that are implemented in Java resulted in terrible code where
&gt; &gt; you have to repeat yourself over and over and over. Are you sure your
&gt; &gt; text field holds a String and your model returns a String?
&gt; &gt;
&gt; &gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId", new
&gt; &gt; PropertyModel&lt;String&gt;(foo, "property"));
&gt; &gt;
&gt; &gt; This counts for 3 times the type String. In a recent discussion with
&gt; &gt; Igor on ##wicket, we saw a way to remove at least 1 String. By
&gt; &gt; providing model factory methods for concrete models: Model,
&gt; &gt; CompoundPropertyModel and PropertyModel. For abstract models it
&gt; &gt; doesn't make sense...
&gt; &gt;
&gt; &gt; Igor suggested the following syntax:
&gt; &gt;
&gt; &gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId",
&gt; &gt; PropertyModel.of(foo, "property"));
&gt; &gt;
&gt; &gt; i.e. ModelType.of(....)
&gt; &gt;
&gt; &gt; I am +1 for adding these methods.
&gt; &gt;
&gt; &gt; We can do the same for components, although the benefit is typically
&gt; &gt; less, and it might even send our users down the wrong path thinking
&gt; &gt; they can't use the 'new' keyword.
&gt; &gt;
&gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; &gt; "property"));
&gt; &gt;
&gt; &gt; WDYT?
&gt; &gt;
&gt; &gt; Martijn
&gt; &gt; --
&gt; &gt; Become a Wicket expert, learn from the best: http://wicketinaction.com
&gt; &gt; Apache Wicket 1.4 increases type safety for web applications
&gt; &gt; Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
&gt; &gt;
&gt; &gt;
&gt;
&gt; --
&gt; View this message in context:
&gt; http://old.nabble.com/Cutting-down-on-the-repetitive-type-identifiers-for-generics-tp26361334p26623904.html
&gt; Sent from the Wicket - Dev mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Vladimir K &lt;kovalyuk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c26623904.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26623904-post@talk-nabble-com%3e</id>
<updated>2009-12-03T10:42:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Martijn,

I hope a new feature called "type inference" coming in JDK7 could help java
devs to omit repetitive typing of generic parameters.

And another good news - JDK 7 will do provide closures.


Martijn Dashorst wrote:
&gt; 
&gt; I hate repeating myself and being the compiler's teacher. IMHO the
&gt; generics that are implemented in Java resulted in terrible code where
&gt; you have to repeat yourself over and over and over. Are you sure your
&gt; text field holds a String and your model returns a String?
&gt; 
&gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId", new
&gt; PropertyModel&lt;String&gt;(foo, "property"));
&gt; 
&gt; This counts for 3 times the type String. In a recent discussion with
&gt; Igor on ##wicket, we saw a way to remove at least 1 String. By
&gt; providing model factory methods for concrete models: Model,
&gt; CompoundPropertyModel and PropertyModel. For abstract models it
&gt; doesn't make sense...
&gt; 
&gt; Igor suggested the following syntax:
&gt; 
&gt; TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId",
&gt; PropertyModel.of(foo, "property"));
&gt; 
&gt; i.e. ModelType.of(....)
&gt; 
&gt; I am +1 for adding these methods.
&gt; 
&gt; We can do the same for components, although the benefit is typically
&gt; less, and it might even send our users down the wrong path thinking
&gt; they can't use the 'new' keyword.
&gt; 
&gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; "property"));
&gt; 
&gt; WDYT?
&gt; 
&gt; Martijn
&gt; -- 
&gt; Become a Wicket expert, learn from the best: http://wicketinaction.com
&gt; Apache Wicket 1.4 increases type safety for web applications
&gt; Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
&gt; 
&gt; 

-- 
View this message in context: http://old.nabble.com/Cutting-down-on-the-repetitive-type-identifiers-for-generics-tp26361334p26623904.html
Sent from the Wicket - Dev mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Why is Panel not abstract?</title>
<author><name>James Carman &lt;jcarman@carmanconsulting.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3cf2e8eedf0912020739p38e2ada5r944ea3c81967538c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf2e8eedf0912020739p38e2ada5r944ea3c81967538c@mail-gmail-com%3e</id>
<updated>2009-12-02T15:39:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Would it break the API in 1.4.x?  The Panel class isn't usable as a
concrete class, so folks probably aren't doing new Panel() (and if
they are, they shouldn't be).  No big deal, really I guess.

On Wed, Dec 2, 2009 at 9:35 AM, Jonas &lt;barney2k7@gmail.com&gt; wrote:
&gt; I raised the same question a while ago:
&gt;
&gt; http://old.nabble.com/Panel-instances-ts25922356.html#a25922356
&gt;
&gt; seems to be fixed in 1.5, but left as-is in 1.4 in order not to create
&gt; an api break
&gt;
&gt; cheers,
&gt; Jonas
&gt;
&gt;
&gt; On Wed, Dec 2, 2009 at 12:24 PM, Johan Compagner &lt;jcompagner@gmail.com&gt; wrote:
&gt;&gt; I just got a question about:
&gt;&gt;
&gt;&gt; Markup of type 'html' for component
&gt;&gt; 'org.apache.wicket.markup.html.panel.Panel' not found
&gt;&gt;
&gt;&gt; because it used a panel (but he meant to use in this example a
&gt;&gt; WebMarkupContainer)
&gt;&gt; But i think he shouldnt be allowed to say new Panel() at all...
&gt;&gt; I would expect that it would be abstract just like Page or am i missing
&gt;&gt; something obvious here?
&gt;&gt;
&gt;&gt; johan
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Why is Panel not abstract?</title>
<author><name>Jonas &lt;barney2k7@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3cc767fd000912020635n2854ee0aq3836c8df4800ed48@mail.gmail.com%3e"/>
<id>urn:uuid:%3cc767fd000912020635n2854ee0aq3836c8df4800ed48@mail-gmail-com%3e</id>
<updated>2009-12-02T14:35:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I raised the same question a while ago:

http://old.nabble.com/Panel-instances-ts25922356.html#a25922356

seems to be fixed in 1.5, but left as-is in 1.4 in order not to create
an api break

cheers,
Jonas


On Wed, Dec 2, 2009 at 12:24 PM, Johan Compagner &lt;jcompagner@gmail.com&gt; wrote:
&gt; I just got a question about:
&gt;
&gt; Markup of type 'html' for component
&gt; 'org.apache.wicket.markup.html.panel.Panel' not found
&gt;
&gt; because it used a panel (but he meant to use in this example a
&gt; WebMarkupContainer)
&gt; But i think he shouldnt be allowed to say new Panel() at all...
&gt; I would expect that it would be abstract just like Page or am i missing
&gt; something obvious here?
&gt;
&gt; johan
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Why is Panel not abstract?</title>
<author><name>Johan Compagner &lt;jcompagner@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c2e1ce7cd0912020324s53bb1a13i94e143f736e10bbc@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2e1ce7cd0912020324s53bb1a13i94e143f736e10bbc@mail-gmail-com%3e</id>
<updated>2009-12-02T11:24:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I just got a question about:

Markup of type 'html' for component
'org.apache.wicket.markup.html.panel.Panel' not found

because it used a panel (but he meant to use in this example a
WebMarkupContainer)
But i think he shouldnt be allowed to say new Panel() at all...
I would expect that it would be abstract just like Page or am i missing
something obvious here?

johan


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Erik van Oosten &lt;e.vanoosten@grons.nl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c4B157175.5030600@grons.nl%3e"/>
<id>urn:uuid:%3c4B157175-5030600@grons-nl%3e</id>
<updated>2009-12-01T19:41:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Michael.

     Erik.

Michael Mosmann wrote:
&gt; Hope this code will make something clear.
&gt;
&gt; mm:)
-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Automatic detaching of IDetachables</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c23eb48360912010758s9998817vf853e80540f68058@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360912010758s9998817vf853e80540f68058@mail-gmail-com%3e</id>
<updated>2009-12-01T15:58:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
we can easily do this via reflection and an icomponentdetachlistener,
i was going to start looking into it after we sort the urls and push
1.5 out.

-igor

On Tue, Dec 1, 2009 at 2:41 AM, Martijn Dashorst
&lt;martijn.dashorst@gmail.com&gt; wrote:
&gt; Not sure if it will fly, but couldn't we utilize the same tech as
&gt; project lombok [1] uses to automatically generate detach code for
&gt; IDetachables?
&gt;
&gt; Note that I have no idea if it will work, but considering they are
&gt; able to generate try/finally blocks, we might be able to do something
&gt; similar.
&gt;
&gt; Martijn
&gt;
&gt; [1] http://projectlombok.org
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Automatic detaching of IDetachables</title>
<author><name>Johan Compagner &lt;jcompagner@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c2e1ce7cd0912010627p5b6dd3a0h71af3ab2ec5ffd30@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2e1ce7cd0912010627p5b6dd3a0h71af3ab2ec5ffd30@mail-gmail-com%3e</id>
<updated>2009-12-01T14:27:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
So generate a detach() methods that looks up all the fields and do what on
those?
I guess if that is a detachable call it through and annotate other fields
that should be set to null?

so i we have this

class @detachable MyModel
{
     private IModel innerModel;

    private @detach Object myVar;

    private Object id;
}

that is the same as

class MyModel
{
     private IModel innerModel;

    private myVar;

    private Object id;

    void detach()
   {
        innerModel.detach();
        myVar= null;

   }
}

but then somewhere you have to make sure that the id is set


On Tue, Dec 1, 2009 at 11:41, Martijn Dashorst
&lt;martijn.dashorst@gmail.com&gt;wrote:

&gt; Not sure if it will fly, but couldn't we utilize the same tech as
&gt; project lombok [1] uses to automatically generate detach code for
&gt; IDetachables?
&gt;
&gt; Note that I have no idea if it will work, but considering they are
&gt; able to generate try/finally blocks, we might be able to do something
&gt; similar.
&gt;
&gt; Martijn
&gt;
&gt; [1] http://projectlombok.org
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Automatic detaching of IDetachables</title>
<author><name>Martijn Dashorst &lt;martijn.dashorst@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200912.mbox/%3c918312fe0912010241w5924cbe8j405e43ed1dfaa5f8@mail.gmail.com%3e"/>
<id>urn:uuid:%3c918312fe0912010241w5924cbe8j405e43ed1dfaa5f8@mail-gmail-com%3e</id>
<updated>2009-12-01T10:41:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Not sure if it will fly, but couldn't we utilize the same tech as
project lombok [1] uses to automatically generate detach code for
IDetachables?

Note that I have no idea if it will work, but considering they are
able to generate try/finally blocks, we might be able to do something
similar.

Martijn

[1] http://projectlombok.org


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: A new home for Wicket news</title>
<author><name>Martijn Dashorst &lt;martijn.dashorst@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c918312fe0911300320v7f3008a1od4a31d5cfb964ecb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c918312fe0911300320v7f3008a1od4a31d5cfb964ecb@mail-gmail-com%3e</id>
<updated>2009-11-30T11:20:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
While yeswicket.com won't become the new home for Wicket news (Apache
policy is: "If it isn't from *.apache.org, it ain't from Apache"),
there's nothing holding back anybody from contributing in one way or
another to this and other websites/blogs/etc.

Just keep in mind that as an Apache project, we have to be neutral and
not favor one company over another. So please continue to contribute
to yeswicket.com, wicketbyexample.com, wicketinaction.com,
martijndashorst.com, stuq.nl, java.dzone.com, infoq.com,
theserverside.com, ajaxian.com, developerworks.ibm.com, javaworld.com,
etc —to list a couple of known sites from the top of my head.

Also, please make sure your site(s) are compliant with Apache
trademark policy: http://apache.org/foundation/marks/trademarks.html

Martijn

On Mon, Nov 30, 2009 at 10:46 AM, Olivier Croisier
&lt;olivier.croisier@gmail.com&gt; wrote:
&gt; Hi,
&gt;
&gt; We at Zenika &lt;http://www.zenika.com&gt; are running a site named YesWicket.com,
&gt; on which we publish Wicket-related news (new releases...), tutorials, and
&gt; technical articles. Until now, it targeted mainly a French audience, but we
&gt; are willing to expand its reach by translating all articles into english, in
&gt; the hope to gather a larger audience and build a stronger community around
&gt; Wicket.
&gt;
&gt; If you are interested, we'd like to give the main Wicket leaders (Igor
&gt; Vaynberg, Martijn Dashorst...) a write access on the blog, so they could
&gt; publish announces, links, and articles in a more convenient and dynamic way
&gt; than on the official site - which of course would still be the main
&gt; reference.
&gt; Although the categories &amp; tags need to be reorganized, the infrastructure is
&gt; here, ready to be used (code highlighting, attached files...).
&gt;
&gt; Please let us know what you think about it ! (blog~at~zenika.com if you
&gt; prefer a more private way)
&gt; (FYI, Carl Azoury already submitted this idea to Martijn by mail last
&gt; Friday.)
&gt;
&gt; Olivier
&gt;



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0


</pre>
</div>
</content>
</entry>
<entry>
<title>A new home for Wicket news</title>
<author><name>Olivier Croisier &lt;olivier.croisier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c54ce0cdf0911300146h7d7111a5q955adaa5a0de4d41@mail.gmail.com%3e"/>
<id>urn:uuid:%3c54ce0cdf0911300146h7d7111a5q955adaa5a0de4d41@mail-gmail-com%3e</id>
<updated>2009-11-30T09:46:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

We at Zenika &lt;http://www.zenika.com&gt; are running a site named YesWicket.com,
on which we publish Wicket-related news (new releases...), tutorials, and
technical articles. Until now, it targeted mainly a French audience, but we
are willing to expand its reach by translating all articles into english, in
the hope to gather a larger audience and build a stronger community around
Wicket.

If you are interested, we'd like to give the main Wicket leaders (Igor
Vaynberg, Martijn Dashorst...) a write access on the blog, so they could
publish announces, links, and articles in a more convenient and dynamic way
than on the official site - which of course would still be the main
reference.
Although the categories &amp; tags need to be reorganized, the infrastructure is
here, ready to be used (code highlighting, attached files...).

Please let us know what you think about it ! (blog~at~zenika.com if you
prefer a more private way)
(FYI, Carl Azoury already submitted this idea to Martijn by mail last
Friday.)

Olivier


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Michael Mosmann &lt;michael@mosmann.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c1259566357.11471.75.camel@localhost%3e"/>
<id>urn:uuid:%3c1259566357-11471-75-camel@localhost%3e</id>
<updated>2009-11-30T07:32:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Am Sonntag, den 29.11.2009, 20:15 +0100 schrieb Erik van Oosten:
&gt; Michael,
&gt; 
&gt; What kind of container are you referring to? 

public class MyUserSession implements Serializable
{
  /* hold user relevant stuff */
}

public class MyWicketSession extends WebSession
{
  MyUserSession _container=new MyUserSession();

  public void invalidateUserSessionAndNotWicketSession()
  {
    _container=new MyUserSession();
  }
}

&gt; And which session, the 
&gt; servlet session or the Wicket session?

The Wicket session.

Hope this code will make something clear.

mm:)



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Johan Compagner &lt;jcompagner@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c2e1ce7cd0911291249r715298d4ye1c3428c48e45aff@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2e1ce7cd0911291249r715298d4ye1c3428c48e45aff@mail-gmail-com%3e</id>
<updated>2009-11-29T20:49:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
if you never want sessions to invalidate then just have an ajax timer
that polls the server just before your container time out like 29
minutes if the time out is 30

On 19/11/2009, Hawk Newton &lt;hnewton@cobaltgroup.com&gt;i wrote:
&gt; Hello Wicket folx.
&gt;
&gt; First and foremost I want to commend you on an excellent job putting
&gt; together a truly impressive best-in-class framework.
&gt;
&gt; I'm in the process of evaluating Wicket for a large-scale ajax-heavy
&gt; enterprise application.
&gt;
&gt; I've got a business requirement that session invalidation must not be a
&gt; disruptive event (no "expired session" warning or anything similar).
&gt;
&gt; Some of the most obvious options:
&gt;
&gt; 1. Get rid of session requirements all together by using client-side models
&gt; instead of server side models so we don't have the session invalidation
&gt; issue.  This seems to be in line with "The next version of Wicket will
&gt; support client-side models for zero-state scalability" line item on the
&gt; features page.  After searching the list archives I've not seen much
&gt; traction on this front.  Are there any potential designs being considered or
&gt; other resources I could use to educate myself?
&gt;
&gt; 2. Extend WebRequestCycle.onRuntimeException() to redirect the browser back
&gt; to the target page instead of the "expired session" error page.  This
&gt; approach has the drawback that the model will be reset which will cause the
&gt; page to revert to default values.  Ultimately, initializing the page using
&gt; values from a cookie or some other stateful store that is not tied to the
&gt; user's session would be ideal, if possible.
&gt;
&gt; 3. Use an external store instead of the J2EE session (like a RDBMS) with a
&gt; data-retention policy so high the chance of a ajax request being issued
&gt; against a page which has expired is practically nil.  We'd also probably
&gt; need to implement our own encoder to ensure the session id is placed on
&gt; every link to survive J2EE session invalidation.
&gt;
&gt; We are most-interested in contributing any substantial work back to the
&gt; community so pointers to style guidelines or other contribution-centric
&gt; resources are greatly appreciated.
&gt;
&gt; Thank you very much.
&gt;
&gt; -- Hawk Newton
&gt; Enterprise Architect
&gt; Cobalt Group, Inc.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Erik van Oosten &lt;e.vanoosten@grons.nl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c4B12C83B.8050409@grons.nl%3e"/>
<id>urn:uuid:%3c4B12C83B-8050409@grons-nl%3e</id>
<updated>2009-11-29T19:15:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Michael,

What kind of container are you referring to? And which session, the 
servlet session or the Wicket session?

Regards,
    Erik.


Michael Mosmann wrote:
&gt; Hi,
&gt;
&gt;   
&gt;&gt; I've got a business requirement that session invalidation must not be a disruptive
event (no "expired session" warning or anything similar).
&gt;&gt;     
&gt;
&gt; Is session invalidation an requirement? Put a container into your
&gt; session and throw it away if you want to invalidate the "user session".
&gt;
&gt; mm:)
&gt;
&gt;   


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/



</pre>
</div>
</content>
</entry>
<entry>
<title>PropertyModels *without* strings</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911251356n4f8a9321td9451c293a68471f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911251356n4f8a9321td9451c293a68471f@mail-gmail-com%3e</id>
<updated>2009-11-25T21:56:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/

-igor


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>nino martinez wael &lt;nino.martinez.wael@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cbbf56fae0911240200g4e560995r28d24cda96543543@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbbf56fae0911240200g4e560995r28d24cda96543543@mail-gmail-com%3e</id>
<updated>2009-11-24T10:00:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Argh, that is horrible. :(


2009/11/17 Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;

&gt; not to mention that some components have 6 constructors, and that
&gt; means having 6 of methods :|
&gt;
&gt; -igor
&gt;
&gt; On Tue, Nov 17, 2009 at 9:33 AM, Jeremy Thomerson
&gt; &lt;jeremy@wickettraining.com&gt; wrote:
&gt; &gt; Because we'll get questions to the list like:
&gt; &gt;
&gt; &gt; How can I create my own component since I have to instantiate them using
&gt; &gt; Label.of("foo", PropertyModel.of(bar, "foo"))?  How can I override that?
&gt;  Do
&gt; &gt; I have to override the static method "of"?
&gt; &gt;
&gt; &gt; Sadly, I think that's what it will cause.
&gt; &gt;
&gt; &gt; --
&gt; &gt; Jeremy Thomerson
&gt; &gt; http://www.wickettraining.com
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; On Tue, Nov 17, 2009 at 10:50 AM, nino martinez wael &lt;
&gt; &gt; nino.martinez.wael@gmail.com&gt; wrote:
&gt; &gt;
&gt; &gt;&gt; im +1, unless Jeremy can tell why he believes it will hit a anti
&gt; patter..
&gt; &gt;&gt;
&gt; &gt;&gt; 2009/11/16 Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;
&gt; &gt;&gt;
&gt; &gt;&gt; &gt; On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
&gt; &gt;&gt; &gt; martijn.dashorst@gmail.com&gt; wrote:
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt; i.e. ModelType.of(....)
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; I am +1 for adding these methods.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I'm +1 for the model-type methods, although there are so many models
&gt; that
&gt; &gt;&gt; &gt; are not final classes that it really won't save tons of code.  Mainly
&gt; in
&gt; &gt;&gt; &gt; the
&gt; &gt;&gt; &gt; *PropertyModel family.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; &gt; We can do the same for components, although the benefit is typically
&gt; &gt;&gt; &gt; &gt; less, and it might even send our users down the wrong path thinking
&gt; &gt;&gt; &gt; &gt; they can't use the 'new' keyword.
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt; &gt; TextField&lt;String&gt; field = TextField.of("someId",
&gt; PropertyModel.of(foo,
&gt; &gt;&gt; &gt; &gt; "property"));
&gt; &gt;&gt; &gt; &gt;
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I'm -1 on doing it for components.  I think it will lead to an
&gt; &gt;&gt; &gt; anti-pattern.
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; --
&gt; &gt;&gt; &gt; Jeremy Thomerson
&gt; &gt;&gt; &gt; http://www.wickettraining.com
&gt; &gt;&gt; &gt;
&gt; &gt;&gt;
&gt; &gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: http://wicket.apache.org</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911231331l364c2826q86c619d66d1398cb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911231331l364c2826q86c619d66d1398cb@mail-gmail-com%3e</id>
<updated>2009-11-23T21:31:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
ok :( do you have time to fix up what is there now and add a note to
our release doc?

-igor

On Mon, Nov 23, 2009 at 1:29 PM, Martijn Dashorst
&lt;martijn.dashorst@gmail.com&gt; wrote:
&gt; On Mon, Nov 23, 2009 at 10:01 PM, Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt; wrote:
&gt;&gt; or are we stuck having to add news in two different places?
&gt;
&gt; Usually I move stuff from the homepage to the news archive... to make
&gt; the home page load faster. Typically only the last 3 news items on the
&gt; front page are useful.
&gt;
&gt; There's no cms available that suits infra needs, and that is
&gt; manageable by us. Or you'd rather work with anakia (again).
&gt;
&gt; Martijn
&gt;
&gt; --
&gt; Become a Wicket expert, learn from the best: http://wicketinaction.com
&gt; Apache Wicket 1.4 increases type safety for web applications
&gt; Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>nino martinez wael &lt;nino.martinez.wael@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cbbf56fae0911231330o2092c4d3w98a6bce477793c6e@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbbf56fae0911231330o2092c4d3w98a6bce477793c6e@mail-gmail-com%3e</id>
<updated>2009-11-23T21:30:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hehe, nice one. Never thought of that.

regards Nino
2009/11/20 Michael Mosmann &lt;michael@mosmann.de&gt;

&gt; Hi,
&gt;
&gt; &gt; I've got a business requirement that session invalidation must not be a
&gt; disruptive event (no "expired session" warning or anything similar).
&gt;
&gt; Is session invalidation an requirement? Put a container into your
&gt; session and throw it away if you want to invalidate the "user session".
&gt;
&gt; mm:)
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: http://wicket.apache.org</title>
<author><name>Martijn Dashorst &lt;martijn.dashorst@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c918312fe0911231329ha03570i77b0227c7ea7e44b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c918312fe0911231329ha03570i77b0227c7ea7e44b@mail-gmail-com%3e</id>
<updated>2009-11-23T21:29:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Mon, Nov 23, 2009 at 10:01 PM, Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt; wrote:
&gt; or are we stuck having to add news in two different places?

Usually I move stuff from the homepage to the news archive... to make
the home page load faster. Typically only the last 3 news items on the
front page are useful.

There's no cms available that suits infra needs, and that is
manageable by us. Or you'd rather work with anakia (again).

Martijn

-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: http://wicket.apache.org</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911231301i101cc8a1se7d4ab852f2f7685@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911231301i101cc8a1se7d4ab852f2f7685@mail-gmail-com%3e</id>
<updated>2009-11-23T21:01:54Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
martijn, considering we are already limited to static-only content by
our publishing, what are our options for using something then then
confluence to generate the site?

can we use some cms to manage the site somewhere and then push a
static export to apache?

or are we stuck having to add news in two different places?

-igor

On Mon, Nov 23, 2009 at 2:51 AM, nino martinez wael
&lt;nino.martinez.wael@gmail.com&gt; wrote:
&gt; Hi Guys
&gt;
&gt; Im wondering why:
&gt;
&gt; http://wicket.apache.org/news.html
&gt;
&gt; Does not contain same information as this:
&gt;
&gt; http://wicket.apache.org/
&gt;
&gt; Mainly the information about releases..
&gt;
&gt; regards Nino
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>http://wicket.apache.org</title>
<author><name>nino martinez wael &lt;nino.martinez.wael@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cbbf56fae0911230251y431f67e0g24bd1bd915e49ab2@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbbf56fae0911230251y431f67e0g24bd1bd915e49ab2@mail-gmail-com%3e</id>
<updated>2009-11-23T10:51:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Guys

Im wondering why:

http://wicket.apache.org/news.html

Does not contain same information as this:

http://wicket.apache.org/

Mainly the information about releases..

regards Nino


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Michael Mosmann &lt;michael@mosmann.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c1258718547.29163.8.camel@wub01.hypoport.local%3e"/>
<id>urn:uuid:%3c1258718547-29163-8-camel@wub01-hypoport-local%3e</id>
<updated>2009-11-20T12:02:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

&gt; I've got a business requirement that session invalidation must not be a disruptive event
(no "expired session" warning or anything similar).

Is session invalidation an requirement? Put a container into your
session and throw it away if you want to invalidate the "user session".

mm:)



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Hawk Newton &lt;hnewton@cobaltgroup.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cF502CCB3-F121-42D3-B7A6-61623398A180@cobaltgroup.com%3e"/>
<id>urn:uuid:%3cF502CCB3-F121-42D3-B7A6-61623398A180@cobaltgroup-com%3e</id>
<updated>2009-11-19T23:18:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Nov 19, 2009, at 2:24 PM, Igor Vaynberg wrote:

&gt; On Thu, Nov 19, 2009 at 2:15 PM, Hawk Newton &lt;hnewton@cobaltgroup.com&gt; wrote:
&gt;&gt; 2. Extend WebRequestCycle.onRuntimeException() to redirect the browser back to the
target page instead of the "expired session" error page.  This approach has the drawback that
the model will be reset which will cause the page to revert to default values.  Ultimately,
initializing the page using values from a cookie or some other stateful store that is not
tied to the user's session would be ideal, if possible.
&gt; 
&gt; unless you encode the page class into every url there is no way to
&gt; know what page was being accessed once the session is expired.

I got this working today provided each page is mounted as bookmarkable.  I might be missing
some of the long-reaching implications, but here's the code if anyone is interested in it:
	// In my WicketApplication class:
	public RequestCycle newRequestCycle(Request request, Response response) {
		return new WebRequestCycle(this, (WebRequest)request, (WebResponse)response) {
			@Override
			public Page onRuntimeException(Page page, RuntimeException e) {
				if(e instanceof PageExpiredException) {
					IRequestCycleProcessor processor = WicketApplication.this.getRequestCycleProcessor();
					RequestParameters params = request.getRequestParameters();
					
					// We're just looking for the original page, not a component on that page.
					String interfaceName = params.getInterfaceName();
					
					// Strip the interfaceName from the request so we can get the original target
					params.setInterfaceName(null);
					IRequestTarget target = processor.resolve(this, params);
					params.setInterfaceName(interfaceName);
					
					if(target != null &amp;&amp; target instanceof BookmarkablePageRequestTarget) {
						Class&lt;? extends Page&gt; pageClass = ((BookmarkablePageRequestTarget)target).getPageClass();
						
						RequestCycle.get();	// I'm not 100% on why I need this.
						CharSequence path = processor.getRequestCodingStrategy().pathForTarget(
								new BookmarkablePageRequestTarget(pageClass));
						
						if(path != null) {
							// This is a bookmarkable page, so lets send the user to the bookmark
							RequestCycle.get().setRedirect(true);
							throw new RestartResponseException(pageClass);
						}
					}
				}
				return null;
			}
		};
	}


&gt; 
&gt;&gt; 3. Use an external store instead of the J2EE session (like a RDBMS) with a data-retention
policy so high the chance of a ajax request being issued against a page which has expired
is practically nil.  We'd also probably need to implement our own encoder to ensure the session
id is placed on every link to survive J2EE session invalidation.
&gt; 
&gt; or simply set the j2ee session timeout to a high value. servlet
&gt; containers these days can swap inactive sessions to disk to keep the
&gt; memory overhead low. same effect and no need to deal with a database.
&gt; 
&gt; -igor

Thank you, with a high enough session timeout and a disk-backed session overflow we should
be good.

-- Hawk

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Session Invalidation Options</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911191424o3d72efe4ra065591ce9972519@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911191424o3d72efe4ra065591ce9972519@mail-gmail-com%3e</id>
<updated>2009-11-19T22:24:35Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Nov 19, 2009 at 2:15 PM, Hawk Newton &lt;hnewton@cobaltgroup.com&gt; wrote:
&gt; Hello Wicket folx.
&gt;
&gt; First and foremost I want to commend you on an excellent job putting together a truly
impressive best-in-class framework.
&gt;
&gt; I'm in the process of evaluating Wicket for a large-scale ajax-heavy enterprise application.
&gt;
&gt; I've got a business requirement that session invalidation must not be a disruptive event
(no "expired session" warning or anything similar).

if this is a hard requirement you may be best served by a client-side
framework like gwt or extjs.

&gt; Some of the most obvious options:
&gt;
&gt; 1. Get rid of session requirements all together by using client-side models instead of
server side models so we don't have the session invalidation issue.  This seems to be in line
with "The next version of Wicket will support client-side models for zero-state scalability"
line item on the features page.  After searching the list archives I've not seen much traction
on this front.  Are there any potential designs being considered or other resources I could
use to educate myself?

no, we have evaluated this option and decided not to pursue it
further. the discussions are on the list if you want to search, but
the agreement was that ram is cheap, disks are even cheaper, and the
overhead of pushing all relevant state to the client is too high. we
have built support for stateless pages, but there is no support for
stateless ajax, and in order to keep a stateless page stateless you
are limited to a subset of components offered by wicket which are
themselves stateless.

&gt; 2. Extend WebRequestCycle.onRuntimeException() to redirect the browser back to the target
page instead of the "expired session" error page.  This approach has the drawback that the
model will be reset which will cause the page to revert to default values.  Ultimately, initializing
the page using values from a cookie or some other stateful store that is not tied to the user's
session would be ideal, if possible.

unless you encode the page class into every url there is no way to
know what page was being accessed once the session is expired.

&gt; 3. Use an external store instead of the J2EE session (like a RDBMS) with a data-retention
policy so high the chance of a ajax request being issued against a page which has expired
is practically nil.  We'd also probably need to implement our own encoder to ensure the session
id is placed on every link to survive J2EE session invalidation.

or simply set the j2ee session timeout to a high value. servlet
containers these days can swap inactive sessions to disk to keep the
memory overhead low. same effect and no need to deal with a database.

-igor

&gt; We are most-interested in contributing any substantial work back to the community so
pointers to style guidelines or other contribution-centric resources are greatly appreciated.
&gt;
&gt; Thank you very much.
&gt;
&gt; -- Hawk Newton
&gt; Enterprise Architect
&gt; Cobalt Group, Inc.


</pre>
</div>
</content>
</entry>
<entry>
<title>Session Invalidation Options</title>
<author><name>Hawk Newton &lt;hnewton@cobaltgroup.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cA28385F1-CFEC-4E42-BF7D-B56D0650C00F@cobaltgroup.com%3e"/>
<id>urn:uuid:%3cA28385F1-CFEC-4E42-BF7D-B56D0650C00F@cobaltgroup-com%3e</id>
<updated>2009-11-19T22:15:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello Wicket folx.

First and foremost I want to commend you on an excellent job putting together a truly impressive
best-in-class framework.

I'm in the process of evaluating Wicket for a large-scale ajax-heavy enterprise application.

I've got a business requirement that session invalidation must not be a disruptive event (no
"expired session" warning or anything similar).

Some of the most obvious options:

1. Get rid of session requirements all together by using client-side models instead of server
side models so we don't have the session invalidation issue.  This seems to be in line with
"The next version of Wicket will support client-side models for zero-state scalability" line
item on the features page.  After searching the list archives I've not seen much traction
on this front.  Are there any potential designs being considered or other resources I could
use to educate myself?

2. Extend WebRequestCycle.onRuntimeException() to redirect the browser back to the target
page instead of the "expired session" error page.  This approach has the drawback that the
model will be reset which will cause the page to revert to default values.  Ultimately, initializing
the page using values from a cookie or some other stateful store that is not tied to the user's
session would be ideal, if possible.

3. Use an external store instead of the J2EE session (like a RDBMS) with a data-retention
policy so high the chance of a ajax request being issued against a page which has expired
is practically nil.  We'd also probably need to implement our own encoder to ensure the session
id is placed on every link to survive J2EE session invalidation.

We are most-interested in contributing any substantial work back to the community so pointers
to style guidelines or other contribution-centric resources are greatly appreciated.

Thank you very much.

-- Hawk Newton
Enterprise Architect
Cobalt Group, Inc.

</pre>
</div>
</content>
</entry>
<entry>
<title>Re: if this is true.</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911181542t6b7d8bf8q635484ff276e8f4d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911181542t6b7d8bf8q635484ff276e8f4d@mail-gmail-com%3e</id>
<updated>2009-11-18T23:42:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
meanwhile i am working on bindgen.org to make it play nice with wicket.

-igor

On Wed, Nov 18, 2009 at 3:38 PM, Johan Compagner &lt;jcompagner@gmail.com&gt; wrote:
&gt; http://java.dzone.com/news/closures-coming-java-7 -&gt;
&gt; http://docs.google.com/Doc?id=ddhp95vd_6hg3qhc
&gt;
&gt; then that would pretty much solve our none static typed property model in
&gt; java 7
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>if this is true.</title>
<author><name>Johan Compagner &lt;jcompagner@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c2e1ce7cd0911181538h4bad0a10sac443410d73cff41@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2e1ce7cd0911181538h4bad0a10sac443410d73cff41@mail-gmail-com%3e</id>
<updated>2009-11-18T23:38:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
http://java.dzone.com/news/closures-coming-java-7 -&gt;
http://docs.google.com/Doc?id=ddhp95vd_6hg3qhc

then that would pretty much solve our none static typed property model in
java 7


</pre>
</div>
</content>
</entry>
<entry>
<title>Wicket-auth-roles : French translation</title>
<author><name>Olivier Croisier &lt;olivier.croisier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c54ce0cdf0911181507y7733f7e4x78c419c795e0033e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c54ce0cdf0911181507y7733f7e4x78c419c795e0033e@mail-gmail-com%3e</id>
<updated>2009-11-18T23:07:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

I opened a JIRA
(WICKET-2581&lt;https://issues.apache.org/jira/browse/WICKET-2581&gt;)
asking to translate wicket-auth-roles resources to French, and provided a
patch that does just that.
Hope that helps !

Olivier


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911170936l47e59552mee23c2462df2b4a2@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911170936l47e59552mee23c2462df2b4a2@mail-gmail-com%3e</id>
<updated>2009-11-17T17:36:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
not to mention that some components have 6 constructors, and that
means having 6 of methods :|

-igor

On Tue, Nov 17, 2009 at 9:33 AM, Jeremy Thomerson
&lt;jeremy@wickettraining.com&gt; wrote:
&gt; Because we'll get questions to the list like:
&gt;
&gt; How can I create my own component since I have to instantiate them using
&gt; Label.of("foo", PropertyModel.of(bar, "foo"))?  How can I override that?  Do
&gt; I have to override the static method "of"?
&gt;
&gt; Sadly, I think that's what it will cause.
&gt;
&gt; --
&gt; Jeremy Thomerson
&gt; http://www.wickettraining.com
&gt;
&gt;
&gt;
&gt; On Tue, Nov 17, 2009 at 10:50 AM, nino martinez wael &lt;
&gt; nino.martinez.wael@gmail.com&gt; wrote:
&gt;
&gt;&gt; im +1, unless Jeremy can tell why he believes it will hit a anti patter..
&gt;&gt;
&gt;&gt; 2009/11/16 Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;
&gt;&gt;
&gt;&gt; &gt; On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
&gt;&gt; &gt; martijn.dashorst@gmail.com&gt; wrote:
&gt;&gt; &gt;
&gt;&gt; &gt; &gt; i.e. ModelType.of(....)
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; I am +1 for adding these methods.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; I'm +1 for the model-type methods, although there are so many models that
&gt;&gt; &gt; are not final classes that it really won't save tons of code.  Mainly in
&gt;&gt; &gt; the
&gt;&gt; &gt; *PropertyModel family.
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; &gt; We can do the same for components, although the benefit is typically
&gt;&gt; &gt; &gt; less, and it might even send our users down the wrong path thinking
&gt;&gt; &gt; &gt; they can't use the 'new' keyword.
&gt;&gt; &gt; &gt;
&gt;&gt; &gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt;&gt; &gt; &gt; "property"));
&gt;&gt; &gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; I'm -1 on doing it for components.  I think it will lead to an
&gt;&gt; &gt; anti-pattern.
&gt;&gt; &gt;
&gt;&gt; &gt; --
&gt;&gt; &gt; Jeremy Thomerson
&gt;&gt; &gt; http://www.wickettraining.com
&gt;&gt; &gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c3909c0fc0911170933o610e123fgd8c563688b6c5ee6@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3909c0fc0911170933o610e123fgd8c563688b6c5ee6@mail-gmail-com%3e</id>
<updated>2009-11-17T17:33:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Because we'll get questions to the list like:

How can I create my own component since I have to instantiate them using
Label.of("foo", PropertyModel.of(bar, "foo"))?  How can I override that?  Do
I have to override the static method "of"?

Sadly, I think that's what it will cause.

--
Jeremy Thomerson
http://www.wickettraining.com



On Tue, Nov 17, 2009 at 10:50 AM, nino martinez wael &lt;
nino.martinez.wael@gmail.com&gt; wrote:

&gt; im +1, unless Jeremy can tell why he believes it will hit a anti patter..
&gt;
&gt; 2009/11/16 Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;
&gt;
&gt; &gt; On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
&gt; &gt; martijn.dashorst@gmail.com&gt; wrote:
&gt; &gt;
&gt; &gt; &gt; i.e. ModelType.of(....)
&gt; &gt; &gt;
&gt; &gt; &gt; I am +1 for adding these methods.
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; I'm +1 for the model-type methods, although there are so many models that
&gt; &gt; are not final classes that it really won't save tons of code.  Mainly in
&gt; &gt; the
&gt; &gt; *PropertyModel family.
&gt; &gt;
&gt; &gt;
&gt; &gt; &gt; We can do the same for components, although the benefit is typically
&gt; &gt; &gt; less, and it might even send our users down the wrong path thinking
&gt; &gt; &gt; they can't use the 'new' keyword.
&gt; &gt; &gt;
&gt; &gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; &gt; &gt; "property"));
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; I'm -1 on doing it for components.  I think it will lead to an
&gt; &gt; anti-pattern.
&gt; &gt;
&gt; &gt; --
&gt; &gt; Jeremy Thomerson
&gt; &gt; http://www.wickettraining.com
&gt; &gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Pedro Santos &lt;pedrosans@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c341aa5500911170917o11828cd8wfeecf670bf0d620b@mail.gmail.com%3e"/>
<id>urn:uuid:%3c341aa5500911170917o11828cd8wfeecf670bf0d620b@mail-gmail-com%3e</id>
<updated>2009-11-17T17:17:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I know it is an minor thing, but the creation act that the new keyword
exposes, the 'of' method don't has. IMO the simple fact of an method name
does not contain an verb is an anti-pattern.

On Tue, Nov 17, 2009 at 2:50 PM, nino martinez wael &lt;
nino.martinez.wael@gmail.com&gt; wrote:

&gt; im +1, unless Jeremy can tell why he believes it will hit a anti patter..
&gt;
&gt; 2009/11/16 Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;
&gt;
&gt; &gt; On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
&gt; &gt; martijn.dashorst@gmail.com&gt; wrote:
&gt; &gt;
&gt; &gt; &gt; i.e. ModelType.of(....)
&gt; &gt; &gt;
&gt; &gt; &gt; I am +1 for adding these methods.
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; I'm +1 for the model-type methods, although there are so many models that
&gt; &gt; are not final classes that it really won't save tons of code.  Mainly in
&gt; &gt; the
&gt; &gt; *PropertyModel family.
&gt; &gt;
&gt; &gt;
&gt; &gt; &gt; We can do the same for components, although the benefit is typically
&gt; &gt; &gt; less, and it might even send our users down the wrong path thinking
&gt; &gt; &gt; they can't use the 'new' keyword.
&gt; &gt; &gt;
&gt; &gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; &gt; &gt; "property"));
&gt; &gt; &gt;
&gt; &gt;
&gt; &gt; I'm -1 on doing it for components.  I think it will lead to an
&gt; &gt; anti-pattern.
&gt; &gt;
&gt; &gt; --
&gt; &gt; Jeremy Thomerson
&gt; &gt; http://www.wickettraining.com
&gt; &gt;
&gt;



-- 
Pedro Henrique Oliveira dos Santos


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>nino martinez wael &lt;nino.martinez.wael@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3cbbf56fae0911170850mb2216a1i3a408d0e6075ecf1@mail.gmail.com%3e"/>
<id>urn:uuid:%3cbbf56fae0911170850mb2216a1i3a408d0e6075ecf1@mail-gmail-com%3e</id>
<updated>2009-11-17T16:50:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
im +1, unless Jeremy can tell why he believes it will hit a anti patter..

2009/11/16 Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;

&gt; On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
&gt; martijn.dashorst@gmail.com&gt; wrote:
&gt;
&gt; &gt; i.e. ModelType.of(....)
&gt; &gt;
&gt; &gt; I am +1 for adding these methods.
&gt; &gt;
&gt;
&gt; I'm +1 for the model-type methods, although there are so many models that
&gt; are not final classes that it really won't save tons of code.  Mainly in
&gt; the
&gt; *PropertyModel family.
&gt;
&gt;
&gt; &gt; We can do the same for components, although the benefit is typically
&gt; &gt; less, and it might even send our users down the wrong path thinking
&gt; &gt; they can't use the 'new' keyword.
&gt; &gt;
&gt; &gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; &gt; "property"));
&gt; &gt;
&gt;
&gt; I'm -1 on doing it for components.  I think it will lead to an
&gt; anti-pattern.
&gt;
&gt; --
&gt; Jeremy Thomerson
&gt; http://www.wickettraining.com
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>WICKET-1355 autocomplete positioning</title>
<author><name>Erik van Oosten &lt;e.vanoosten@grons.nl&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c4B02BBF6.60607@grons.nl%3e"/>
<id>urn:uuid:%3c4B02BBF6-60607@grons-nl%3e</id>
<updated>2009-11-17T15:06:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

After 13 months I finally got around creating a proper patch for the 
wrong autocomplete dropdown positioning, 
(https://issues.apache.org/jira/browse/WICKET-1355).

I added 2 patch files to the issue, one for 1.3.x, and one for 1.4.x/trunk.

The patches are based on a version I created to patch wicket 1.3.6. The 
changes are very straight forward but I did not actually test the 
patches on 1.3.x, 1.4.x nor trunk. Please let me know if it works for you.

Regards,
    Erik.

-- 
Erik van Oosten
http://day-to-day-stuff.blogspot.com/




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Cutting down on the repetitive type identifiers for generics</title>
<author><name>Jeremy Thomerson &lt;jeremy@wickettraining.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c3909c0fc0911151614p32b32f41lc4a2a63b1aa4c9ad@mail.gmail.com%3e"/>
<id>urn:uuid:%3c3909c0fc0911151614p32b32f41lc4a2a63b1aa4c9ad@mail-gmail-com%3e</id>
<updated>2009-11-16T00:14:13Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Sun, Nov 15, 2009 at 11:39 AM, Martijn Dashorst &lt;
martijn.dashorst@gmail.com&gt; wrote:

&gt; i.e. ModelType.of(....)
&gt;
&gt; I am +1 for adding these methods.
&gt;

I'm +1 for the model-type methods, although there are so many models that
are not final classes that it really won't save tons of code.  Mainly in the
*PropertyModel family.


&gt; We can do the same for components, although the benefit is typically
&gt; less, and it might even send our users down the wrong path thinking
&gt; they can't use the 'new' keyword.
&gt;
&gt; TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
&gt; "property"));
&gt;

I'm -1 on doing it for components.  I think it will lead to an
anti-pattern.

--
Jeremy Thomerson
http://www.wickettraining.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Cutting down on the repetitive type identifiers for generics</title>
<author><name>Martijn Dashorst &lt;martijn.dashorst@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c918312fe0911150939h2b874796n2fd3760d72c04824@mail.gmail.com%3e"/>
<id>urn:uuid:%3c918312fe0911150939h2b874796n2fd3760d72c04824@mail-gmail-com%3e</id>
<updated>2009-11-15T17:39:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I hate repeating myself and being the compiler's teacher. IMHO the
generics that are implemented in Java resulted in terrible code where
you have to repeat yourself over and over and over. Are you sure your
text field holds a String and your model returns a String?

TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId", new
PropertyModel&lt;String&gt;(foo, "property"));

This counts for 3 times the type String. In a recent discussion with
Igor on ##wicket, we saw a way to remove at least 1 String. By
providing model factory methods for concrete models: Model,
CompoundPropertyModel and PropertyModel. For abstract models it
doesn't make sense...

Igor suggested the following syntax:

TextField&lt;String&gt; field = new TextField&lt;String&gt;("someId",
PropertyModel.of(foo, "property"));

i.e. ModelType.of(....)

I am +1 for adding these methods.

We can do the same for components, although the benefit is typically
less, and it might even send our users down the wrong path thinking
they can't use the 'new' keyword.

TextField&lt;String&gt; field = TextField.of("someId", PropertyModel.of(foo,
"property"));

WDYT?

Martijn
-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.0


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Wicket Stuff commit access</title>
<author><name>Igor Vaynberg &lt;igor.vaynberg@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c23eb48360911121431h15692311u56c7fb2293636f6f@mail.gmail.com%3e"/>
<id>urn:uuid:%3c23eb48360911121431h15692311u56c7fb2293636f6f@mail-gmail-com%3e</id>
<updated>2009-11-12T22:31:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
done

-igor

On Thu, Nov 12, 2009 at 1:06 PM, phpmedia &lt;phpmedia@gmail.com&gt; wrote:
&gt; hello list,
&gt;
&gt; i would like to have commit access.
&gt;
&gt; my sourceforge-id is "blade23" .
&gt;
&gt; thx,
&gt;
&gt; dirk
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Wicket Stuff commit access</title>
<author><name>phpmedia &lt;phpmedia@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c4a7cc05d0911121306p55785490x1550899bffcc5b9@mail.gmail.com%3e"/>
<id>urn:uuid:%3c4a7cc05d0911121306p55785490x1550899bffcc5b9@mail-gmail-com%3e</id>
<updated>2009-11-12T21:06:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
hello list,

i would like to have commit access.

my sourceforge-id is "blade23" .

thx,

dirk


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Patch for easy Enums I18N</title>
<author><name>Martin Makundi &lt;martin.makundi@koodaripalvelut.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c303141550911112130o7a309c4bm7add41367216d124@mail.gmail.com%3e"/>
<id>urn:uuid:%3c303141550911112130o7a309c4bm7add41367216d124@mail-gmail-com%3e</id>
<updated>2009-11-12T05:30:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Component is optional so it can be given optionally to the renderer.

I have attached a patch. However, it should still be coupled with
TypeChoiceModel so that they fetch the localized label using the same
method. I uploaded that too.

I also provided factory methods so that it is easier to construct these objects.

**
Martin

2009/11/12 Olivier Croisier &lt;olivier.croisier@gmail.com&gt;:
&gt; The Localizer methods also require a Component as a parameter, so we're back
&gt; to square one : we must provide a Component.
&gt; Also, it would be helpful if you provided your alternative implementation as
&gt; a well-formed patch instead of plain-text code in the Jira comment.
&gt;
&gt;
&gt; On Wed, Nov 11, 2009 at 8:44 PM, Martin Makundi &lt;
&gt; martin.makundi@koodaripalvelut.com&gt; wrote:
&gt;
&gt;&gt; &gt; I admit the EnumDropDownChoice is more of a convenient class that a
&gt;&gt; &gt; real new feature.
&gt;&gt;
&gt;&gt; It's simply an overkill for the purpose. I loved the idea of a
&gt;&gt; TypeChoiceModel, though. Maybe it should also be tuned to be non
&gt;&gt; enum-specific, like the TypeChoiceRenderer.
&gt;&gt;
&gt;&gt; &gt; A standalone EnumChoiceRenderer would need to take a Component as a
&gt;&gt; &gt; constructor parameter, to call getString() on,
&gt;&gt;
&gt;&gt; This is not true. Localizer is available everywhere.
&gt;&gt;
&gt;&gt; Application.get().getResourceSettings().getLocalizer();
&gt;&gt;
&gt;&gt;
&gt;&gt; **
&gt;&gt; Martin
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt;
&gt;&gt; &gt; On Wed, Nov 11, 2009 at 7:58 PM, Martin Makundi &lt;
&gt;&gt; &gt; martin.makundi@koodaripalvelut.com&gt; wrote:
&gt;&gt; &gt;
&gt;&gt; &gt;&gt; I vote for EnumChoiceRender instead of full DropDownChoice.
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; However. EnumChoiceRenderer can render any TYPE so that's why I have
&gt;&gt; &gt;&gt; proposed TypeChoiceRenderer. You can directly use it with existing
&gt;&gt; &gt;&gt; wicket and no need for specific dropdown.
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; **
&gt;&gt; &gt;&gt; Martin
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;&gt; 2009/11/11 Olivier Croisier &lt;olivier.croisier@gmail.com&gt;:
&gt;&gt; &gt;&gt; &gt; Hi,
&gt;&gt; &gt;&gt; &gt;
&gt;&gt; &gt;&gt; &gt; I just submitted a patch to the very old
&gt;&gt; &gt;&gt; &gt; WICKET-1157&lt;https://issues.apache.org/jira/browse/WICKET-1157&gt;JIRA
&gt;&gt; (no
&gt;&gt; &gt;&gt; &gt; activity for the last 2 years).
&gt;&gt; &gt;&gt; &gt; It provides a simple and flexible way to internationalize enums :
&gt;&gt; &gt;&gt; &gt; - An EnumMessageKeyProvided that implements a Strategy pattern to
&gt;&gt; &gt;&gt; generate
&gt;&gt; &gt;&gt; &gt; I18N keys from enums.
&gt;&gt; &gt;&gt; &gt; - An EnumDropDownChoice to render HTML &lt;select&gt; components
&gt;&gt; &gt;&gt; &gt; - An EnumModel to internationalize any enum provided by another Model
&gt;&gt; (so
&gt;&gt; &gt;&gt; &gt; there is no need of EnumLabels and such).
&gt;&gt; &gt;&gt; &gt;
&gt;&gt; &gt;&gt; &gt; Hope that helps,
&gt;&gt; &gt;&gt; &gt;
&gt;&gt; &gt;&gt; &gt; Olivier
&gt;&gt; &gt;&gt; &gt;
&gt;&gt; &gt;&gt;
&gt;&gt; &gt;
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Patch for easy Enums I18N</title>
<author><name>Olivier Croisier &lt;olivier.croisier@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/wicket-dev/200911.mbox/%3c54ce0cdf0911111420r45999b82q87099b15831e7674@mail.gmail.com%3e"/>
<id>urn:uuid:%3c54ce0cdf0911111420r45999b82q87099b15831e7674@mail-gmail-com%3e</id>
<updated>2009-11-11T22:20:52Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The Localizer methods also require a Component as a parameter, so we're back
to square one : we must provide a Component.
Also, it would be helpful if you provided your alternative implementation as
a well-formed patch instead of plain-text code in the Jira comment.


On Wed, Nov 11, 2009 at 8:44 PM, Martin Makundi &lt;
martin.makundi@koodaripalvelut.com&gt; wrote:

&gt; &gt; I admit the EnumDropDownChoice is more of a convenient class that a
&gt; &gt; real new feature.
&gt;
&gt; It's simply an overkill for the purpose. I loved the idea of a
&gt; TypeChoiceModel, though. Maybe it should also be tuned to be non
&gt; enum-specific, like the TypeChoiceRenderer.
&gt;
&gt; &gt; A standalone EnumChoiceRenderer would need to take a Component as a
&gt; &gt; constructor parameter, to call getString() on,
&gt;
&gt; This is not true. Localizer is available everywhere.
&gt;
&gt; Application.get().getResourceSettings().getLocalizer();
&gt;
&gt;
&gt; **
&gt; Martin
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt;
&gt; &gt; On Wed, Nov 11, 2009 at 7:58 PM, Martin Makundi &lt;
&gt; &gt; martin.makundi@koodaripalvelut.com&gt; wrote:
&gt; &gt;
&gt; &gt;&gt; I vote for EnumChoiceRender instead of full DropDownChoice.
&gt; &gt;&gt;
&gt; &gt;&gt; However. EnumChoiceRenderer can render any TYPE so that's why I have
&gt; &gt;&gt; proposed TypeChoiceRenderer. You can directly use it with existing
&gt; &gt;&gt; wicket and no need for specific dropdown.
&gt; &gt;&gt;
&gt; &gt;&gt; **
&gt; &gt;&gt; Martin
&gt; &gt;&gt;
&gt; &gt;&gt; 2009/11/11 Olivier Croisier &lt;olivier.croisier@gmail.com&gt;:
&gt; &gt;&gt; &gt; Hi,
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; I just submitted a patch to the very old
&gt; &gt;&gt; &gt; WICKET-1157&lt;https://issues.apache.org/jira/browse/WICKET-1157&gt;JIRA
&gt; (no
&gt; &gt;&gt; &gt; activity for the last 2 years).
&gt; &gt;&gt; &gt; It provides a simple and flexible way to internationalize enums :
&gt; &gt;&gt; &gt; - An EnumMessageKeyProvided that implements a Strategy pattern to
&gt; &gt;&gt; generate
&gt; &gt;&gt; &gt; I18N keys from enums.
&gt; &gt;&gt; &gt; - An EnumDropDownChoice to render HTML &lt;select&gt; components
&gt; &gt;&gt; &gt; - An EnumModel to internationalize any enum provided by another Model
&gt; (so
&gt; &gt;&gt; &gt; there is no need of EnumLabels and such).
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Hope that helps,
&gt; &gt;&gt; &gt;
&gt; &gt;&gt; &gt; Olivier
&gt; &gt;&gt; &gt;
&gt; &gt;&gt;
&gt; &gt;
&gt;


</pre>
</div>
</content>
</entry>
</feed>
