Re: Apache Wicket 1.5.4 is released

2012-02-06 Thread Kayode Odeyemi
On Mon, Feb 6, 2012 at 7:24 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Sun, Feb 5, 2012 at 1:51 PM, Kayode Odeyemi drey...@gmail.com wrote: Does this mean this is the recommended branch to work from? There's a fix on 1.5 RC5 that I need. Is it advisable to work off wicket dev

Re: Set Wicket User Session to Servlet's HttpSession

2012-02-06 Thread Kayode Odeyemi
On Mon, Feb 6, 2012 at 7:18 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Sat, Feb 4, 2012 at 3:25 PM, Kayode Odeyemi drey...@gmail.com wrote: Hi, thanks. On Fri, Feb 3, 2012 at 8:05 PM, Serban.Balamaci thespamtr...@gmail.com wrote: Hello, It's not really clear what you

Re: Set Wicket User Session to Servlet's HttpSession

2012-02-06 Thread Martin Grigorov
Hi, As I answered in the ticket - RequestCycle is not created for non-Wicket requests. It will be always 'null'. On Mon, Feb 6, 2012 at 11:15 AM, Kayode Odeyemi drey...@gmail.com wrote: On Mon, Feb 6, 2012 at 7:18 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Sat, Feb 4, 2012 at

Re: Apache Wicket 1.5.4 is released

2012-02-06 Thread Martin Grigorov
On Mon, Feb 6, 2012 at 11:11 AM, Kayode Odeyemi drey...@gmail.com wrote: On Mon, Feb 6, 2012 at 7:24 AM, Martin Grigorov mgrigo...@apache.orgwrote: On Sun, Feb 5, 2012 at 1:51 PM, Kayode Odeyemi drey...@gmail.com wrote: Does this mean this is the recommended branch to work from? There's a

MulitFileUploadField looses state after validation error

2012-02-06 Thread Daniel Meier
Hi everyone Little advice needed: I have a Form with several TextField's and a MultiFileUploadField. If you select some files to upload and enter some text in the TextFields - after the submit everything is fine. Now if in case some TextField fire a validation error and the page is rendered

RE: MulitFileUploadField looses state after validation error

2012-02-06 Thread Wilhelmsen Tor Iver
No, the only workaround is probably to do the FileUpload logic during validation, and flag the upload field as completed somehow (or just show that files have been uploaded) - Tor Iver -Original Message- From: Daniel Meier [mailto:meier_dan...@sunrise.ch] Sent: 6. februar 2012 14:34

Re: Add items and then submit a form

2012-02-06 Thread Tito
Well, I solved the problem. Just submitting the form that adds items by ajax in order to avoid the reload of the entire page and keep fields of the other form. Thanks! Tito On Tue, Jan 31, 2012 at 9:07 AM, Tito njyt...@gmail.com wrote: Hi, I'm working again on this. And I realized that I have

Re: ResourceReference for resource in webapp dir

2012-02-06 Thread Bertrand Guay-Paquet
Hi, Thanks for your reply. I'll try to explain why I require this. I want to use a ResRef to implement dependent resources based on AbstractResourceDependentResourceReference. Essentially, when a resource A.js is added to the response, I want B.js to be also automatically added. A.js and

Re: ResourceReference for resource in webapp dir

2012-02-06 Thread Martin Grigorov
Hi, I'd not invest in AbstractResourceDependentResourceReference. This has been re-implemented in Wicket 6.0 and this class is no more there. For your case I can recommend you to take a look at Wro4j. With this library you can merge all resources which depend on each other at build time. For

Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
Hi, what is the best way to clean all sessions at once? I want to get rid of all sessions' data when I terminate Wicket application. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: MulitFileUploadField looses state after validation error

2012-02-06 Thread Martin Grigorov
Hi, You can add AjaxFormComponentUpdatingBehavior to all TextFields and set some error class when they are invalid. Add onsubmit event listener (pure JS) to the form that will check all form elements for such class and refuse the submit (by returning false) if there is at least one invalid text

Re: Best way to clean all sessions

2012-02-06 Thread Martin Grigorov
Hi, What exactly is not cleared ? See org.apache.wicket.Application#internalDestroy() On Mon, Feb 6, 2012 at 5:11 PM, Andrea Del Bene adelb...@ciseonweb.it wrote: Hi, what is the best way to clean all sessions at once? I want to get rid of all sessions' data when I terminate Wicket

Re: ResourceReference for resource in webapp dir

2012-02-06 Thread Bertrand Guay-Paquet
Thanks a lot! I'm glad I gave more details :) On 06/02/2012 10:08 AM, Martin Grigorov wrote: Hi, I'd not invest in AbstractResourceDependentResourceReference. This has been re-implemented in Wicket 6.0 and this class is no more there. For your case I can recommend you to take a look at Wro4j.

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
if I turn off Tomcat and turn it on later, pressing F5 I see the page I was on when I stopped Tomcat. I think is due to DiskDataStore which saves page versions into file. How can I clean Data Store files when Wicket Application is terminated? Hi, What exactly is not cleared ? See

Re: Best way to clean all sessions

2012-02-06 Thread Martin Grigorov
See org.apache.wicket.pageStore.DiskDataStore#destroy() org.apache.wicket.DefaultPageManagerProvider#newDataStore() http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Across_Restarts On Mon, Feb 6, 2012 at 6:10 PM, Andrea Del Bene adelb...@ciseonweb.it wrote: if I turn off

Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
I need help for converting our application from Wicket 1.4 to 1.5. We have following code: MarkupContainer container = ... ... MarkupStream markupStream = container.getMarkupStream(); if (markupStream == null) { return null; } Class tagMarkupClass = markupStream.atTag()

Re: Best way to clean all sessions

2012-02-06 Thread Andrea Del Bene
It is exactly what I needed! Thank you! http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html#Persistence_Across_Restarts - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Wicket 1.4 - 1.5: RequestCycle.urlFor

2012-02-06 Thread Thomas Singer
According to https://cwiki.apache.org/WICKET/migration-to-wicket-15.html org.apache.wicket.RequestCycle.urlFor has been renamed to org.apache.wicket.request.cycle.RequestCycle.renderUrlFor but there is no such method renderUrlFor. Tom

Serializing server objects

2012-02-06 Thread Kayode Odeyemi
Hi, Please I will like to know if all IModel class implementations are capable of serializing all type of objects without necessarily having to do custom serialization? I'm asking because I want to know the underlying architecture of how server objects are being transported to Wicket. I had a

Re: WICKET AJAX QUESTION

2012-02-06 Thread Andrea Del Bene
How are you attempting to clean textbox? For example you could clear textbox setting model object to empty string and adding textbox to AjaxRequestTarget. Hi, i have one textbox. we send the value of text box to listchoice. On add button , we used ajax. But i am unable to clear the textbox

Re: Wicket 1.4 - 1.5: RequestCycle.urlFor

2012-02-06 Thread vineet semwal
RequestCycle#urlFor still exists,that needs to be corrected.. On Mon, Feb 6, 2012 at 10:44 PM, Thomas Singer wic...@regnis.de wrote: According to https://cwiki.apache.org/WICKET/migration-to-wicket-15.html  org.apache.wicket.RequestCycle.urlFor has been renamed to  

Re: Wicket 1.4 - 1.5: RequestCycle.urlFor

2012-02-06 Thread Thomas Singer
Unfortunately, a new parameter for PageParameters was added. Is passing null the same as in 1.4? Tom On 06.02.2012 18:29, vineet semwal wrote: RequestCycle#urlFor still exists,that needs to be corrected.. On Mon, Feb 6, 2012 at 10:44 PM, Thomas Singer wic...@regnis.de wrote: According to

Re: Serializing server objects

2012-02-06 Thread Andrea Del Bene
Hi, Wicket uses an implementation of org.apache.wicket.serialize.ISerializer to serialize all objects (pages, models, ecc...) The default serializer is based on standard classes ObjectOutputStream and ObjectInputStream. IModel implementations have nothing to do with the concrete ISerializer

Re: Wicket 1.4 - 1.5: RequestCycle.urlFor

2012-02-06 Thread vineet semwal
its not unfortunate,its a good thing ,will help you in retrieving url for dynamic resources. yeah you can leave it as null for static package resources On Mon, Feb 6, 2012 at 11:17 PM, Thomas Singer wic...@regnis.de wrote: Unfortunately, a new parameter for PageParameters was added. Is passing

Re: Serializing server objects

2012-02-06 Thread Kayode Odeyemi
On Mon, Feb 6, 2012 at 5:52 PM, Andrea Del Bene adelb...@ciseonweb.itwrote: Wicket uses an implementation of org.apache.wicket.serialize.**ISerializer to serialize all objects (pages, models, ecc...) Thanks Andrea. Meaning if I have a custom model that extends one of the IModel implementing

Re: Wicket-Source: Click-through from browser back to Java source

2012-02-06 Thread Minas Manthos
Thanks for explanations Jenny. It was very easy to port... :-) And thank you again for your great work and for sharing. Well done. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Source-Click-through-from-browser-back-to-Java-source-tp4346532p4362279.html Sent

Re: Wicket-Source: Click-through from browser back to Java source

2012-02-06 Thread Jenny Brown
Thanks! When you have a project url for the port, let me know, and I'll link it in from the project wiki. Jenny On Mon, Feb 6, 2012 at 12:30 PM, Minas Manthos minas.mant...@gmail.comwrote: Thanks for explanations Jenny. It was very easy to port... :-) And thank you again for your great

Re: Serializing server objects

2012-02-06 Thread Martin Baez
You can configure your own serializer. You can follow this: https://cwiki.apache.org/WICKET/using-jboss-serialization-in-wicket-15.html in order to use JBossSerializer. By using JbossSerialiser you can serialize objects that don´t implement ISerializable. On Mon, Feb 6, 2012 at 6:12 PM, Kayode

Re: Wicket-Source: Click-through from browser back to Java source

2012-02-06 Thread Minas Manthos
@armhold I've also already started a plugin, but was too busy and had not the time to test and to do some cleanup. :-) I think it's better to have a independent plugin rather than integrate in WicketForge, so each plugin can have own deploy cycle. Anyway... I'm glad that you already deployed your

Re: Serializing server objects

2012-02-06 Thread Andrea Del Bene
Yes, provided that the object returned by model implements java.io.Serializable. When you serialize an object (no matter if it is a Wicket page or a model or whatever else), you serialize also all its references. So when Wicket serializes a page or a component also its model and the object

Re: Wicket Ajax direction and roadmap regarding push-like updates

2012-02-06 Thread pkc
It is a tricky topic because what can be done from the wicket api level doesn't have to use true push for the default implementation. I don't like the push solutions out there. Ice-push looked promising because of the hype but after issues with memory leaks and overly complicated requirements,

Re: Wicket Ajax direction and roadmap regarding push-like updates

2012-02-06 Thread Pierre Goupil
Just to mention that I'm personally more than happy with Atmosphere. There's a little work coming in order to support lots of Comet channels (it will be contributed back when it's done) but for a simple use with two or three channels it works like a charm. Plus there's a working Wicket example

Best practices for using CSS resource references

2012-02-06 Thread Alec Swan
Hello, I have a LocalResourceScope class (aliased as local shared resource) and style.css in the same package. I can access resources/local/style.css directly from the browser and track the size of HTTP request/response to retrieve CSS. I also tried to do bind the CSS file as follows new

Re: Wicket 1.5 redirect to an external site.

2012-02-06 Thread Dan Retzlaff
This doesn't look related to a Wicket version change. OpenID4Java requires HttpClient. Do you have HttpComponents' HttpClient JAR on your classpath? On Mon, Feb 6, 2012 at 12:54 PM, singh13 gso...@gmail.com wrote: Hi there I am creating a web app that acts as an openID relying party. I am

Re: StalePageException with CryptoMapper

2012-02-06 Thread jchappelle
Hi Martin, The reason I don't extend the AjaxEventBehavior is because I'm using the YUI javascript library to create my menu and my behavior is not being attached to a dom element. There are two ways they allow you to create the menu. One way is by having some markup that backs up the javascript

Tighter Wicket-Spring integration

2012-02-06 Thread Lukáš Šembera
Hello, my application communicates with various erlang processes in a background. The communication is done via AMQP messages and handling of those messages in already done in the spring-based service layer. Now I'm in the situation that I need wicket components to display those messages (ideally

Reload html in Wicket + GAE

2012-02-06 Thread Daniel Watrous
Hi, I'm following up on a previous thread that's still unresolved. I would like GAE to automatically reload my HTML when I save changes. Classes are reloaded when I save (compile) them, but I have to restart each time for HTML changes. There are some old articles that show how to do this, but

clustering wicket webapps

2012-02-06 Thread Martin Baez
After considering several alternatives I have choosen wicket. Nowadays I am considering clustering my webapp. Do you hace any recommendation or lecture about clustering in wicket?. why are sticky sessions recommended?, in case of session replication is it necesary to replace the default

pooling validators

2012-02-06 Thread jsanca
Hi All, As a common practice in Wicket we create IValidator objects for each component we need to add a validation, there are some scenarios when we use the same validator for several objects, so I was wondering if there is any issue if I create a pooling to provide this validators Thread Safe

Re: pooling validators

2012-02-06 Thread Jeremy Thomerson
On Mon, Feb 6, 2012 at 5:43 PM, jsanca jsa...@gmail.com wrote: Hi All, As a common practice in Wicket we create IValidator objects for each component we need to add a validation, there are some scenarios when we use the same validator for several objects, so I was wondering if there is any

Re: pooling validators

2012-02-06 Thread jsanca
Hi Jeremy Thanks for your answer, I agree with you (reason why I sent this email, to double check my theory) I am just trying to find way to optimize the app, I am new with Wicket and I feel the Framework creates so much instances just to render a page, so I see the validators everywhere might a

Re: Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
Does nobody have an idea? This code prevents me from making progress in converting our application to Wicket 1.5. Tom On 06.02.2012 18:06, Thomas Singer wrote: I need help for converting our application from Wicket 1.4 to 1.5. We have following code: MarkupContainer container = ...

Re: Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Jenny Brown
I'm still a beginner myself, but upon looking at the Javadocs for MarkupContainer and MarkupStream, I am not sure where exactly the code is giving you trouble. Compile error? Runtime exception? Can you be more specific? On Mon, Feb 6, 2012 at 11:14 PM, Thomas Singer wic...@regnis.de wrote:

Re: Tighter Wicket-Spring integration

2012-02-06 Thread vineet semwal
i think you need something like wicketstuff push 2012/2/7 Lukáš Šembera mailing-li...@semberal.eu: Hello, my application communicates with various erlang processes in a background. The communication is done via AMQP messages and handling of those messages in already done in the spring-based

Re: Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Thomas Singer
MarkupContainer.getMarkupStream() does not exist any more in Wicket 1.5. Tom On 07.02.2012 06:37, Jenny Brown wrote: I'm still a beginner myself, but upon looking at the Javadocs for MarkupContainer and MarkupStream, I am not sure where exactly the code is giving you trouble. Compile

Re: Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread vineet semwal
use MarkupContainer#getAssociatedMarkupStream(boolean) On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer wic...@regnis.de wrote: MarkupContainer.getMarkupStream() does not exist any more in Wicket 1.5. Tom On 07.02.2012 06:37, Jenny Brown wrote: I'm still a beginner myself, but upon looking

Re: StalePageException with CryptoMapper

2012-02-06 Thread Martin Grigorov
On Tue, Feb 7, 2012 at 12:10 AM, jchappelle jchappe...@4redi.com wrote: Hi Martin, The reason I don't extend the AjaxEventBehavior is because I'm using the YUI javascript library to create my menu and my behavior is not being attached to a dom element. There are two ways they allow you to

Re: Reload html in Wicket + GAE

2012-02-06 Thread Martin Grigorov
Hi, On Tue, Feb 7, 2012 at 1:32 AM, Daniel Watrous daniel.watr...@gmail.com wrote: Hi, I'm following up on a previous thread that's still unresolved. I would like GAE to automatically reload my HTML when I save changes. Classes are reloaded when I save (compile) them, but I have to restart

Re: Wicket 1.4 - 1.5: MarkupContainer.getMarkupStream()

2012-02-06 Thread Martin Grigorov
IMarkupFragment markup = component.getMarkup(); MarkupStream stream = new MarkupStream(markup); On Tue, Feb 7, 2012 at 7:54 AM, vineet semwal vineetsemwal1...@gmail.com wrote: use MarkupContainer#getAssociatedMarkupStream(boolean) On Tue, Feb 7, 2012 at 11:13 AM, Thomas Singer wic...@regnis.de

Re: Best practices for using CSS resource references

2012-02-06 Thread Serban.Balamaci
Hi Alec, Not really a direct reply to your question rather another. Wro4j project is more powerful(configurable) when it comes to grouping and minification css/jss, and I think maybe the WroFilter can easily be turned into a Wicket Resource, for a tighter wicket integration, I'm wondering if this

Re: Tighter Wicket-Spring integration

2012-02-06 Thread kamiseq
also you need to consider that wicket components will be accessed from different threads pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: