Re: Howto go for editable grid with add/remove row in wicket 1.4?

2012-02-20 Thread Emmanouil Batsis (Manos)

On 02/20/2012 03:49 AM, Emmanouil Batsis (Manos) wrote:

On 02/19/2012 10:56 PM, Jorge Rodrigez wrote:

You just need to add/remove an item to your data source.
Next time you rerender the grid it will show/hide the added/removed


Any custom datasource examples out there? Essentially I'd like to bind
the grid to a POJO collection member.


That was easy:
final ListDataProvider listDataProvider = new 
ListDataProvider(pojo.getChildren());


final DataGrid grid = new DefaultDataGrid(foo, new 
DataProviderAdapter(listDataProvider), cols);


Manos

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



Show pdf

2012-02-20 Thread Javier Leyba
Hi

I did a page that will upload a file to a folder.

Another application will convert the file to pdf and left it in a
different folder where my web app will pick it up and show it.

How can I show that pdf?

I have checked many tutorials, even in wicket how-to, but all of them
are using DynamicWebResource or some other classes that seems were
deprecated on Wicket 1.5.

Thanks in advance!


Regards

-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

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



setRenderBodyOnly(true) doesn't work for label in title

2012-02-20 Thread Илья Нарыжный
Hello,

I have following code in HTML:

titlespan wicket:id=pagetitle/wicket:message
key=site.title.suffix/wicket:message/title

and in Java:

add(new Label(pagetitle, titleModel).setRenderBodyOnly(true));

But as output on page, I have following title:

 titlespanActual title here/spansite suffix/title

It seems to be a bug... Wicket version is 1.5.4

Is it a bug and Jira ticket should be created?

Thanks,

Ilia

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



RE: Show pdf

2012-02-20 Thread Michal Wegrzyn
Hi Javier,

Check 

org.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler 

Best regards,
Michal Wegrzyn


 -Original Message-
 From: Javier Leyba [mailto:xle...@gmail.com]
 Sent: Monday, February 20, 2012 12:59
 To: users@wicket.apache.org
 Subject: Show pdf
 
 Hi
 
 I did a page that will upload a file to a folder.
 
 Another application will convert the file to pdf and left it in a
 different folder where my web app will pick it up and show it.
 
 How can I show that pdf?
 
 I have checked many tutorials, even in wicket how-to, but all of them
 are using DynamicWebResource or some other classes that seems were
 deprecated on Wicket 1.5.
 
 Thanks in advance!
 
 
 Regards
 
 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



Re: setRenderBodyOnly(true) doesn't work for label in title

2012-02-20 Thread Martin Grigorov
Hi,

Create a quickstart and attach it to Jira. It is interesting to see what is the 
problem.
In the meantime use wicket:container wicket:id=pagetitle/ instead.



 From: Илья Нарыжный phan...@ydn.ru
To: users@wicket.apache.org 
Sent: Monday, 20 February 2012, 13:01
Subject: setRenderBodyOnly(true) doesn't work for label in title
 
Hello,

I have following code in HTML:

titlespan wicket:id=pagetitle/wicket:message
key=site.title.suffix/wicket:message/title

and in Java:

add(new Label(pagetitle, titleModel).setRenderBodyOnly(true));

But as output on page, I have following title:

titlespanActual title here/spansite suffix/title

It seems to be a bug... Wicket version is 1.5.4

Is it a bug and Jira ticket should be created?

Thanks,

Ilia

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

Re: Show pdf

2012-02-20 Thread Martin Grigorov
Hi,

I think the easiest is to use ResourceLink or DownloadLink.
Otherwise using ByteArrayResource should be almost the same as 
DynamicWebResource from 1.4.



 From: Javier Leyba xle...@gmail.com
To: users@wicket.apache.org 
Sent: Monday, 20 February 2012, 12:59
Subject: Show pdf
 
Hi

I did a page that will upload a file to a folder.

Another application will convert the file to pdf and left it in a
different folder where my web app will pick it up and show it.

How can I show that pdf?

I have checked many tutorials, even in wicket how-to, but all of them
are using DynamicWebResource or some other classes that seems were
deprecated on Wicket 1.5.

Thanks in advance!


Regards

-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

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

Re: setRenderBodyOnly(true) doesn't work for label in title

2012-02-20 Thread Chantal Ackermann
Hi Ilia,

it works for me in 1.5.4. My markup looks like that:

titleWindow : span wicket:id=headerPageTitle/span/title

The difference might be that I am using an explicit closing tag /span.
(I have not played around with it.)

Chantal


On Mon, 2012-02-20 at 13:01 +0100, Илья Нарыжный wrote:
 Hello,
 
 I have following code in HTML:
 
 titlespan wicket:id=pagetitle/wicket:message
 key=site.title.suffix/wicket:message/title
 
 and in Java:
 
 add(new Label(pagetitle, titleModel).setRenderBodyOnly(true));
 
 But as output on page, I have following title:
 
  titlespanActual title here/spansite suffix/title
 
 It seems to be a bug... Wicket version is 1.5.4
 
 Is it a bug and Jira ticket should be created?
 
 Thanks,
 
 Ilia
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


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



Re: Show pdf

2012-02-20 Thread Javier Leyba
Hi

Thanks for your replies.

However, I am totally new with Wicket and my development was done
following examples and tutorials. I really have no idea how to
implement the recommended classes.

Could you please show some sample code or provide a link to samples?

Regards
J


On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov
martingrigo...@yahoo.com wrote:
 Hi,

 I think the easiest is to use ResourceLink or DownloadLink.
 Otherwise using ByteArrayResource should be almost the same as 
 DynamicWebResource from 1.4.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, 20 February 2012, 12:59
 Subject: Show pdf

 Hi

 I did a page that will upload a file to a folder.

 Another application will convert the file to pdf and left it in a
 different folder where my web app will pick it up and show it.

 How can I show that pdf?

 I have checked many tutorials, even in wicket how-to, but all of them
 are using DynamicWebResource or some other classes that seems were
 deprecated on Wicket 1.5.

 Thanks in advance!


 Regards

 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

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



Re: Show pdf

2012-02-20 Thread Martin Grigorov
add(new DownloadLink(someId, the/path/to/the.pdf));

This is the simplest way.



 From: Javier Leyba xle...@gmail.com
To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com 
Sent: Monday, 20 February 2012, 13:38
Subject: Re: Show pdf
 
Hi

Thanks for your replies.

However, I am totally new with Wicket and my development was done
following examples and tutorials. I really have no idea how to
implement the recommended classes.

Could you please show some sample code or provide a link to samples?

Regards
J


On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov
martingrigo...@yahoo.com wrote:
 Hi,

 I think the easiest is to use ResourceLink or DownloadLink.
 Otherwise using ByteArrayResource should be almost the same as 
 DynamicWebResource from 1.4.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, 20 February 2012, 12:59
 Subject: Show pdf

 Hi

 I did a page that will upload a file to a folder.

 Another application will convert the file to pdf and left it in a
 different folder where my web app will pick it up and show it.

 How can I show that pdf?

 I have checked many tutorials, even in wicket how-to, but all of them
 are using DynamicWebResource or some other classes that seems were
 deprecated on Wicket 1.5.

 Thanks in advance!


 Regards

 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

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

Announcing Built with Wicket

2012-02-20 Thread Martijn Dashorst
We all know that Apache Wicket is an amazing framework for building
web applications, so why not share the love? Built with Wicket is a
blog for showcasing all websites and applications that use Wicket as
the web framework.

Follow Built with Wicket at http://builtwithwicket.tumblr.com and
enjoy these websites and applications. Bask in the knowledge that you
are not the only one making beautiful applications with Apache Wicket.

Want to share your own application or website built with Wicket? Take
a screenshot and submit your description at
http://builtwithwicket.tumblr.com/submit and we'll take care of the
rest.

Thank you for using Wicket and let us know about your work!

The Apache Wicket Team

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



Re: Show pdf

2012-02-20 Thread Javier Leyba
Hi

Thanks, it worked!!

However, how can I do it if after upload my file I want to show the
pdf without force the user to click on link?


Regards

J


On Mon, Feb 20, 2012 at 1:46 PM, Martin Grigorov
martingrigo...@yahoo.com wrote:
 add(new DownloadLink(someId, the/path/to/the.pdf));

 This is the simplest way.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com
 Sent: Monday, 20 February 2012, 13:38
 Subject: Re: Show pdf

 Hi

 Thanks for your replies.

 However, I am totally new with Wicket and my development was done
 following examples and tutorials. I really have no idea how to
 implement the recommended classes.

 Could you please show some sample code or provide a link to samples?

 Regards
 J


 On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov
 martingrigo...@yahoo.com wrote:
 Hi,

 I think the easiest is to use ResourceLink or DownloadLink.
 Otherwise using ByteArrayResource should be almost the same as 
 DynamicWebResource from 1.4.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, 20 February 2012, 12:59
 Subject: Show pdf

 Hi

 I did a page that will upload a file to a folder.

 Another application will convert the file to pdf and left it in a
 different folder where my web app will pick it up and show it.

 How can I show that pdf?

 I have checked many tutorials, even in wicket how-to, but all of them
 are using DynamicWebResource or some other classes that seems were
 deprecated on Wicket 1.5.

 Thanks in advance!


 Regards

 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar
http://www.leybafendrik.com.ar

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



Re: Show pdf

2012-02-20 Thread Martin Grigorov
See DownloadLink does it:

https://github.com/apache/wicket/blob/wicket-1.5.x/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DownloadLink.java#L159


On Mon, Feb 20, 2012 at 2:46 PM, Javier Leyba xle...@gmail.com wrote:
 Hi

 Thanks, it worked!!

 However, how can I do it if after upload my file I want to show the
 pdf without force the user to click on link?


 Regards

 J


 On Mon, Feb 20, 2012 at 1:46 PM, Martin Grigorov
 martingrigo...@yahoo.com wrote:
 add(new DownloadLink(someId, the/path/to/the.pdf));

 This is the simplest way.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com
 Sent: Monday, 20 February 2012, 13:38
 Subject: Re: Show pdf

 Hi

 Thanks for your replies.

 However, I am totally new with Wicket and my development was done
 following examples and tutorials. I really have no idea how to
 implement the recommended classes.

 Could you please show some sample code or provide a link to samples?

 Regards
 J


 On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov
 martingrigo...@yahoo.com wrote:
 Hi,

 I think the easiest is to use ResourceLink or DownloadLink.
 Otherwise using ByteArrayResource should be almost the same as 
 DynamicWebResource from 1.4.


 
  From: Javier Leyba xle...@gmail.com
 To: users@wicket.apache.org
 Sent: Monday, 20 February 2012, 12:59
 Subject: Show pdf

 Hi

 I did a page that will upload a file to a folder.

 Another application will convert the file to pdf and left it in a
 different folder where my web app will pick it up and show it.

 How can I show that pdf?

 I have checked many tutorials, even in wicket how-to, but all of them
 are using DynamicWebResource or some other classes that seems were
 deprecated on Wicket 1.5.

 Thanks in advance!


 Regards

 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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



 --
 Javier Leyba
 Barcelona - Spain
 http://blog.leyba.com.ar
 http://www.leybafendrik.com.ar

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: JavaSerializer in 1.5.4 causes exceptions with GAE

2012-02-20 Thread Martin Grigorov
This is a known limitation in GAE.

https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/gae-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae/GaeObjectSerializer.java

And there is a ticket about this in GAE issues tracker since few years
now. I cannot find it at the moment.

On Mon, Feb 20, 2012 at 4:00 PM, Ian Marshall ianmarshall...@gmail.com wrote:
 The web application default serialiser
 org.apache.wicket.serialize.java.JavaSerializer has been amended in Wicket
 1.5.4. When running an application in Google App Engine for Java (GAE/J),
 these changes cause GAE/J to throw the exception

  java.security.AccessControlException: access denied
  (java.io.SerializablePermission enableSubclassImplementation)

 during web page serialisation, since GAE/J does not allow the changes made.

 As a work-around, I have developed a class (called GaeSerialiser) which
 implements ISerializer and uses default Java serialisation and
 deserialisation behaviour. I set my application's serialiser to an instance
 of this class instead of the default. This prevents the above exception
 being raised.

 If anyone wants any further details (or code for my new class, although it
 is simple) then please let me know.

 Ian Marshall


 My environment
 --
 Wicket:    1.5.4
 GAE/J SDK: 1.6.2.1
 Java SDK:  1.6.0_29

 Stack trace
 ---
 18-Feb-2012 13:45:08 org.apache.wicket.serialize.java.JavaSerializer
 serialize
 SEVERE: Error serializing object class [...].PageHome [object=[Page class =
 [...].PageHome, id = 0, render count = 1]]
 java.security.AccessControlException: access denied
 (java.io.SerializablePermission enableSubclassImplementation)
        at java.security.AccessControlContext.checkPermission(Unknown
 Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at
 com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:252)
        at java.io.ObjectOutputStream.init(Unknown Source)
        at
 org.apache.wicket.serialize.java.JavaSerializer$CheckerObjectOutputStream.init(JavaSerializer.java:241)
        at
 org.apache.wicket.serialize.java.JavaSerializer.newObjectOutputStream(JavaSerializer.java:174)
        at
 org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:75)
        at
 org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:368)
        at
 org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:146)
        at
 org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383)
        at
 org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
        at
 org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94)
        at
 org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68)
        at
 org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281)
        at org.apache.wicket.Application$2.onDetach(Application.java:1598)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97)
        at
 org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119)
        at
 org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:143)
        at
 org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95)
        at
 org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:600)
        at
 org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:539)
        at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:287)
        at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
        at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
        at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
        at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60)
        at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
 

Re: JavaSerializer in 1.5.4 causes exceptions with GAE

2012-02-20 Thread Martin Grigorov
On Mon, Feb 20, 2012 at 4:08 PM, Martin Grigorov mgrigo...@apache.org wrote:
 This is a known limitation in GAE.

 https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/gae-initializer-parent/gae-initializer/src/main/java/org/wicketstuff/gae/GaeObjectSerializer.java

 And there is a ticket about this in GAE issues tracker since few years
 now. I cannot find it at the moment.

http://code.google.com/p/googleappengine/issues/detail?id=2500


 On Mon, Feb 20, 2012 at 4:00 PM, Ian Marshall ianmarshall...@gmail.com 
 wrote:
 The web application default serialiser
 org.apache.wicket.serialize.java.JavaSerializer has been amended in Wicket
 1.5.4. When running an application in Google App Engine for Java (GAE/J),
 these changes cause GAE/J to throw the exception

  java.security.AccessControlException: access denied
  (java.io.SerializablePermission enableSubclassImplementation)

 during web page serialisation, since GAE/J does not allow the changes made.

 As a work-around, I have developed a class (called GaeSerialiser) which
 implements ISerializer and uses default Java serialisation and
 deserialisation behaviour. I set my application's serialiser to an instance
 of this class instead of the default. This prevents the above exception
 being raised.

 If anyone wants any further details (or code for my new class, although it
 is simple) then please let me know.

 Ian Marshall


 My environment
 --
 Wicket:    1.5.4
 GAE/J SDK: 1.6.2.1
 Java SDK:  1.6.0_29

 Stack trace
 ---
 18-Feb-2012 13:45:08 org.apache.wicket.serialize.java.JavaSerializer
 serialize
 SEVERE: Error serializing object class [...].PageHome [object=[Page class =
 [...].PageHome, id = 0, render count = 1]]
 java.security.AccessControlException: access denied
 (java.io.SerializablePermission enableSubclassImplementation)
        at java.security.AccessControlContext.checkPermission(Unknown
 Source)
        at java.security.AccessController.checkPermission(Unknown Source)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at
 com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:252)
        at java.io.ObjectOutputStream.init(Unknown Source)
        at
 org.apache.wicket.serialize.java.JavaSerializer$CheckerObjectOutputStream.init(JavaSerializer.java:241)
        at
 org.apache.wicket.serialize.java.JavaSerializer.newObjectOutputStream(JavaSerializer.java:174)
        at
 org.apache.wicket.serialize.java.JavaSerializer.serialize(JavaSerializer.java:75)
        at
 org.apache.wicket.pageStore.DefaultPageStore.serializePage(DefaultPageStore.java:368)
        at
 org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:146)
        at
 org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:383)
        at
 org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:171)
        at
 org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:94)
        at
 org.apache.wicket.page.PageManagerDecorator.commitRequest(PageManagerDecorator.java:68)
        at
 org.apache.wicket.page.PageAccessSynchronizer$2.commitRequest(PageAccessSynchronizer.java:281)
        at org.apache.wicket.Application$2.onDetach(Application.java:1598)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:99)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection$3.notify(RequestCycleListenerCollection.java:97)
        at
 org.apache.wicket.util.listener.ListenerCollection$1.notify(ListenerCollection.java:119)
        at
 org.apache.wicket.util.listener.ListenerCollection.reversedNotify(ListenerCollection.java:143)
        at
 org.apache.wicket.util.listener.ListenerCollection.reversedNotifyIgnoringExceptions(ListenerCollection.java:113)
        at
 org.apache.wicket.request.cycle.RequestCycleListenerCollection.onDetach(RequestCycleListenerCollection.java:95)
        at
 org.apache.wicket.request.cycle.RequestCycle.onDetach(RequestCycle.java:600)
        at
 org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:539)
        at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:287)
        at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:162)
        at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:218)
        at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
        at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
        at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:60)
        at
 

Re: Shrinking the session size, simply by zipping it. Saved my day.

2012-02-20 Thread Emond Papegaaij
Thanks for the suggestion! I've just implemented this. It should be available 
in 1.5.5 and 6.0.0, see https://issues.apache.org/jira/browse/WICKET-4419 for 
details.

Best regards,
Emond

On Monday 20 February 2012 10:48:52 Josh Kamau wrote:
 Thanks for the post.
 
 I wish this could be integrated into the core.
 
 Josh.
 
 On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness 
 
 robert.mcguinness@gmail.com wrote:
  very nice thanks!
  
  --
  View this message in context:
  http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simp
  ly-by-zipping-it-Saved-my-day-tp4402980p4403065.html Sent from the Users
  forum mailing list archive at Nabble.com.
  
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org

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



Re: Shrinking the session size, simply by zipping it. Saved my day.

2012-02-20 Thread Josh Kamau
Thanks Emond Papegaaij

Thats fantastic.

Josh

On Mon, Feb 20, 2012 at 7:08 PM, Emond Papegaaij emond.papega...@topicus.nl
 wrote:

 Thanks for the suggestion! I've just implemented this. It should be
 available
 in 1.5.5 and 6.0.0, see https://issues.apache.org/jira/browse/WICKET-4419for
 details.

 Best regards,
 Emond

 On Monday 20 February 2012 10:48:52 Josh Kamau wrote:
  Thanks for the post.
 
  I wish this could be integrated into the core.
 
  Josh.
 
  On Mon, Feb 20, 2012 at 5:32 AM, robmcguinness 
 
  robert.mcguinness@gmail.com wrote:
   very nice thanks!
  
   --
   View this message in context:
  
 http://apache-wicket.1842946.n4.nabble.com/Shrinking-the-session-size-simp
   ly-by-zipping-it-Saved-my-day-tp4402980p4403065.html Sent from the
 Users
   forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org

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




Re: Announcing Built with Wicket

2012-02-20 Thread Josh Kamau
The list is likely to be too long. May be you could add categories or tags
e.g ecommerce, social networking, cms, .

Josh.

On Mon, Feb 20, 2012 at 4:00 PM, Martijn Dashorst 
martijn.dasho...@gmail.com wrote:

 We all know that Apache Wicket is an amazing framework for building
 web applications, so why not share the love? Built with Wicket is a
 blog for showcasing all websites and applications that use Wicket as
 the web framework.

 Follow Built with Wicket at http://builtwithwicket.tumblr.com and
 enjoy these websites and applications. Bask in the knowledge that you
 are not the only one making beautiful applications with Apache Wicket.

 Want to share your own application or website built with Wicket? Take
 a screenshot and submit your description at
 http://builtwithwicket.tumblr.com/submit and we'll take care of the
 rest.

 Thank you for using Wicket and let us know about your work!

 The Apache Wicket Team

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




Re: JavaSerializer in 1.5.4 causes exceptions with GAE

2012-02-20 Thread Ian Marshall
Thanks for pointing me to WicketStuff and the fix it gives. Strangely enough,
for me I only encountered this problem for 1.5.4 but not before then.

Thanks too for the link to the GAE/J issue. I already had it starred, and
had already noted the lack of attention it receives.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/JavaSerializer-in-1-5-4-causes-exceptions-with-GAE-tp4404222p4404553.html
Sent from the Users forum mailing list archive at Nabble.com.

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



2 small improvements that wickettester can have

2012-02-20 Thread vineet semwal
Hellos,

 there are times i need these 2 versions of methods in wickettester,i
think these are usual use cases and can be added in wicketester .

1)  startcomponentInPage(component,pageparameters)
the parameters that can be added to the parameters of the  page
created for component by wickettester this will help in the case when
a component is trying to access parameters from the page

2) startcomponentinstatelesspage(component)/
startcomponentinstatelesspage(component,parameters)

currently wickettester creates a stateful page by default
(setStatelessHint(false) in constructor for the page) ,i think a new
derived class from statefulpage
with setStatelessHint(true) can be created for this usecase


-- 
thank you,

regards,
Vineet Semwal

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



How to Load a Wizard in a popup

2012-02-20 Thread Sameer Patil
Hi,
I understood that we need to use the reflection api as shown in the
WizardPage and WizardLink at wicketstuff.org for getting the wizard to work.
But i am missing the point how can i load a wizard in a popup window.
Please advise.
Regards,
Sameer.


AutoCompleteTextField broken in IE9, wicket 1.5?

2012-02-20 Thread northar
Found that i don't get the basic autocompletetextfield to work in IE9,
To repeat, just try the example on wicketstuff.org/wicket/ajax/
in IE9 and Firefox. 
Works fine in Firefox, not at all in IE9.

Repeated locally. 1.4x version works fine in IE9, firefox etc.
Could anyone else verify/discard this, before i make an bugreport?
Just try the link for an quick way.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-broken-in-IE9-wicket-1-5-tp4405026p4405026.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AutoCompleteTextField broken in IE9, wicket 1.5?

2012-02-20 Thread Martin Grigorov
wicketstuff.org is not updated. It uses Wicket 1.5.1.
Better check at http://www.wicket-library.com/wicket-examples/index.html

P.S. I don't use Windows to try for you.

On Mon, Feb 20, 2012 at 9:35 PM, northar josef.anders...@gmail.com wrote:
 Found that i don't get the basic autocompletetextfield to work in IE9,
 To repeat, just try the example on wicketstuff.org/wicket/ajax/
 in IE9 and Firefox.
 Works fine in Firefox, not at all in IE9.

 Repeated locally. 1.4x version works fine in IE9, firefox etc.
 Could anyone else verify/discard this, before i make an bugreport?
 Just try the link for an quick way.



 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-broken-in-IE9-wicket-1-5-tp4405026p4405026.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: AutoCompleteTextField broken in IE9, wicket 1.5?

2012-02-20 Thread northar
Worked fine for 1.5.4! Thanks. Must have been fixed in between



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoCompleteTextField-broken-in-IE9-wicket-1-5-tp4405026p4405051.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Wicket jQuery Validator integration

2012-02-20 Thread Maarten Bosteels
On Wed, Feb 15, 2012 at 5:41 PM, Paul Jackson paul.jack...@cdl.co.ukwrote:

 We do something very similar to this, and agree that it works really
 well. We also use JSR303 annotations on our domain models and use them
 to drive adding both wicket and jquery validators.

 We have a bunch of ValdiationConfiguration classes that know what to add
 to the markup and javascript to get the client side validation to work,
 so we don't need an extension to IValidator.

 Cheers,
 Paul

 -Original Message-
 From: Zachary Bedell [mailto:zacl...@thebedells.org]
 Sent: 15 February 2012 15:52
 To: users@wicket.apache.org
 Subject: Wicket jQuery Validator integration

 Good morning,

 Reading a recent thread about accessing jQuery Validation from Wicket
 reminded me that I've developed some code that might be of use.  I'm not
 sure if this is something anyone else would be interested in or if it's
 something that might eventually be integrated into Wicket core or if it
 would be more appropriate for one of the existing jQuery/Wicket
 integration libraries.  I wanted to describe what I've cooked up so far.
 If this is anything that would be useful, I'd be willing to clean the
 code up a bit to extract a few bits that are specific to our environment
 and post the code somewhere.

 My intent was to get client-side validation using Wicket's existing
 validation classes without requiring AJAX calls to make them work and
 preferably without requiring Page's to include lots of unsightly
 JavaScript.  Also, not duplicating validation logic on the client 
 server tiers was desirable.  The code was originally developed for a
 site that was expected to receive a high amount of traffic in a short
 period of time, and avoiding unnecessary server calls was a priority.

 I created a subclass of Form (ClientSideValidatingForm) which examines
 each FormComponent (and sub-Form) added to it and extracts information
 about the standard Wicket validations.  It generates JavaScript which
 uses jQuery's Validator library to apply client-side checks equivalent
 to the Wicket server side checks.  The nice thing about this is that you
 get client-side validation for free just by adding the normal Wicket
 validations plus you still get all your validations backed up in the
 server side in case JavaScript is unavailable or disabled.

 The implementation of the class does lack a bit in terms of elegance
 unfortunately.  As the Wicket validation interface doesn't currently
 know anything about JavaScript, it was necessary to run a chain of
 instanceof checks against all the known Wicket validations and emit
 JavaScript to mirror their logic.  I also created an extension of the
 Wicket IValidator interface which can provide JavaScript functions to
 perform validation equivalent to the server-side Java code.  The
 extraction code in ClientSideValidatingForm preferentially checks for
 this interface and uses provided JavaScript if available.  Otherwise,
 it's a bunch of instanceof's to check for known validations or log an
 error if an unknown instance of IValidator is found.

 Long term, it would be helpful if the stock Wicket IValidator interface
 could include a method to get JavaScript validations for all of the
 stock validations.

 The code is pretty tightly bound to jQuery Validator at this point, but
 it's likely the methodology could be abstracted to other validation
 frameworks.  It's also built using WiQuery, though that's mostly as a
 convenience to get the same version of jQuery that we use elsewhere.
 The same could easily be implemented without WiQuery provided a version
 of jQuery was contributed to the response via some other mechanism.

 Is this something anyone would be interested in?



yes ;-)



 Best regards,
 Zac Bedell

 (Apologies if this is a dupe. I had some email client config issues this
 morning...)


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

 **
 Please consider the environment - do you really need to print this email?

 This email is intended only for the person(s) named above and may contain
 private and confidential information. If it has come to you in error,
 please destroy and permanently delete any copy in your possession and
 contact us on +44 (0) 161 480 4420. The information in this email is
 copyright © CDL Group Holdings Limited. We cannot accept any liability for
 any loss or damage sustained as a result of software viruses. It is your
 responsibility to carry out such virus checking as is necessary before
 opening any attachment.

 Cheshire Datasystems Limited uses software which automatically screens
 incoming emails for inappropriate content and attachments. If the software
 identifies such content or attachment, the email will be forwarded to our
 Technology Department for 

Re: AjaxLink.onClick() Not Triggered

2012-02-20 Thread Richard W. Adams
Hm.. more mystery. I put a break point on wicketAjaxGet. But it never 
gets executed. Clicking the link, apparently does absolutely nothing. 
Doesn't even cause the Javascript to be called.

Anyone have any ideas?



From:   Andrea Del Bene an.delb...@gmail.com
To: users@wicket.apache.org
Date:   02/19/2012 07:26 AM
Subject:Re: AjaxLink.onClick() Not Triggered



Hi,

  at first glance I can't say what's wrong with your code, but you 
should try debugging wicketAjaxGet function with FireBug or some other 
dev tool. In this way you should find why there's no AJAX call.
 I have an Ajax link in a drop down menu, created like this:

  final MenuChoice item = new MenuChoice(Delete) {
  private static final long serialVersionUID = 
1L;

  @Override protected AbstractLink newLink(final
 String id) {
  final AjaxLinkString  link = new
 AjaxLinkString(id) {
  private static final long
 serialVersionUID = 1L;
  @Override public void
  onClick(final AjaxRequestTarget
 target) {
   confirmer.confirm(model.getTrack(), target);
  }
  };
  return link;
  }
  };

 The generated HTML looks like this:

 a href=# id=id28 onclick=var
 
wcall=wicketAjaxGet('?wicket:interface=:1:resultForm:track-list:gridViewportContainer:viewPortTable:dataGridBody:rows:2:cells:12:cell:smartMenu:menuItemRepeater:5:menuItem:labelContainer:menuLink:1:IBehaviorListener:0:',function()
 { }.bind(this),function() { }.bind(this), function() {return
 Wicket.$('id28') != null;}.bind(this));return !wcall;Delete/a

 However, when I click the link, the onClick() handler is not called. The
 Wicket Ajax debug window shows no Ajax activity occurring.

 Can anyone see what I'm doing wrong?

 **

 This email and any attachments may contain information that is 
confidential and/or privileged for the sole use of the intended recipient. 
 Any use, review, disclosure, copying, distribution or reliance by others, 
and any forwarding of this email or its contents, without the express 
permission of the sender is strictly prohibited by law.  If you are not 
the intended recipient, please contact the sender immediately, delete the 
e-mail and destroy all copies.
 **



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




**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


Re: AjaxLink.onClick() Not Triggered

2012-02-20 Thread Martin Grigorov
Hi,

The produced a ... looks OK. Clicking on it should execute the
script in onclick.
Try with a different browser. Maybe JavaScript is disabled at the one
you use...

On Mon, Feb 20, 2012 at 11:12 PM, Richard W. Adams rwada...@up.com wrote:
 Hm.. more mystery. I put a break point on wicketAjaxGet. But it never
 gets executed. Clicking the link, apparently does absolutely nothing.
 Doesn't even cause the Javascript to be called.

 Anyone have any ideas?



 From:   Andrea Del Bene an.delb...@gmail.com
 To:     users@wicket.apache.org
 Date:   02/19/2012 07:26 AM
 Subject:        Re: AjaxLink.onClick() Not Triggered



 Hi,

  at first glance I can't say what's wrong with your code, but you
 should try debugging wicketAjaxGet function with FireBug or some other
 dev tool. In this way you should find why there's no AJAX call.
 I have an Ajax link in a drop down menu, created like this:

                  final MenuChoice item = new MenuChoice(Delete) {
                          private static final long serialVersionUID =
 1L;

                          @Override protected AbstractLink newLink(final
 String id) {
                                  final AjaxLinkString  link = new
 AjaxLinkString(id) {
                                          private static final long
 serialVersionUID = 1L;
                                          @Override public void
                                          onClick(final AjaxRequestTarget
 target) {
   confirmer.confirm(model.getTrack(), target);
                                          }
                                  };
                                  return link;
                          }
                  };

 The generated HTML looks like this:

 a href=# id=id28 onclick=var

 wcall=wicketAjaxGet('?wicket:interface=:1:resultForm:track-list:gridViewportContainer:viewPortTable:dataGridBody:rows:2:cells:12:cell:smartMenu:menuItemRepeater:5:menuItem:labelContainer:menuLink:1:IBehaviorListener:0:',function()
 { }.bind(this),function() { }.bind(this), function() {return
 Wicket.$('id28') != null;}.bind(this));return !wcall;Delete/a

 However, when I click the link, the onClick() handler is not called. The
 Wicket Ajax debug window shows no Ajax activity occurring.

 Can anyone see what I'm doing wrong?

 **

 This email and any attachments may contain information that is
 confidential and/or privileged for the sole use of the intended recipient.
  Any use, review, disclosure, copying, distribution or reliance by others,
 and any forwarding of this email or its contents, without the express
 permission of the sender is strictly prohibited by law.  If you are not
 the intended recipient, please contact the sender immediately, delete the
 e-mail and destroy all copies.
 **



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




 **

 This email and any attachments may contain information that is confidential 
 and/or privileged for the sole use of the intended recipient.  Any use, 
 review, disclosure, copying, distribution or reliance by others, and any 
 forwarding of this email or its contents, without the express permission of 
 the sender is strictly prohibited by law.  If you are not the intended 
 recipient, please contact the sender immediately, delete the e-mail and 
 destroy all copies.
 **



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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