Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread miguel
by tabs do you mean browser tabs? if you have 2 tabs: http://localhost:8080/Foo and http://localhost:8081/Bar then reloading each tab will often invalidate the previous tab. the session cookie is overwritten. -- View this message in context:

Re: Wicket - Apache URL rewrite Access-Control-Allow-Origin issue

2013-09-27 Thread Sergio Paganoni
Hi Martin, Thanks for the response, your workaround did the trick! Thanks a lot, I'll wait to the official bug fix on version 7.0.0 and for now stay with your workaround. Bye On Thu, Sep 26, 2013 at 11:34 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Thu, Sep 26, 2013 at 11:22

custom markup from db

2013-09-27 Thread miguel
i'm trying to be a proof-of-concept where I use wicket to use styles that are loaded from the database. I've managed to get my custom markup to load but it seems that its only loaded once then cached (even in dev mode). This is what I've tried: IResourceSettings settings =

Re: wicket + autowired annotation

2013-09-27 Thread miguel
how do you instantiate ClsDb? I don't see a @Component/@Service/etc annotation on it so my guess is you use something like... clsdb = new ClsDb(); clsdb.save(); You need to have the class creaed by spring's bean factory or injected by wicket's component instantiation listener. -- View this

Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Martin Grigorov
On Fri, Sep 27, 2013 at 8:20 AM, miguel mig...@thedeanda.com wrote: by tabs do you mean browser tabs? if you have 2 tabs: http://localhost:8080/Foo and http://localhost:8081/Bar then reloading each tab will often invalidate the previous tab. the session cookie is overwritten. This

Re: wicket + autowired annotation

2013-09-27 Thread Martin Grigorov
Hi, On Fri, Sep 27, 2013 at 8:41 AM, miguel mig...@thedeanda.com wrote: how do you instantiate ClsDb? I don't see a @Component/@Service/etc annotation on it so my guess is you use something like... clsdb = new ClsDb(); clsdb.save(); You need to have the class creaed by spring's bean

Re: custom markup from db

2013-09-27 Thread Martin Grigorov
Hi, I think there shouldn't be caching involved here. Put a breakpoint at org.apache.wicket.core.util.resource.locator.caching.CachingResourceStreamLocator#locate methods and see what happens. On Fri, Sep 27, 2013 at 8:33 AM, miguel mig...@thedeanda.com wrote: i'm trying to be a

Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Sven Meier
Hi, With this change any kind of attribute added to the http session causes total removal a HttpSessionBindingListener listens to removal of itself only. Any other session attribute is irrelevant. It seems an existing sessionEntry is replaced with a new one:

Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Martin Grigorov
It is the buggy Glassfish. Jetty 7.6.13 and Tomcat 7.0.45 (being voted atm) work fine. But Glassfish 4.0 (build 89) calls org.apache.wicket.page.PageStoreManager.SessionEntry#valueUnbound for any attribute added to the session. On Fri, Sep 27, 2013 at 9:41 AM, Sven Meier s...@meiers.net wrote:

Additional ajax request before ajax form submit

2013-09-27 Thread Tom Götz
Hi, I have the following situation: we use a tabpanel (8-10 tabs) to display lots of form components. On tab change the content of the activated tab is made visible via ajax, content of all other tabs is made invisible (setVisible(false)). To not lose user input we do a form submit when

Re: Additional ajax request before ajax form submit

2013-09-27 Thread Ernesto Reinaldo Barreiro
I think that if your are using AJAXTabbedPanel only one tab will be present at client side at any time: as far as I remember the component does an AJAX replace when you choose tabs. One alternative would be using a tabs components that displays all tabs on client and uses JavaScript to make them

Re: Additional ajax request before ajax form submit

2013-09-27 Thread Martin Grigorov
Hi, On Fri, Sep 27, 2013 at 10:41 AM, Tom Götz t...@decoded.de wrote: Hi, I have the following situation: we use a tabpanel (8-10 tabs) to display lots of form components. On tab change the content of the activated tab is made visible via ajax, content of all other tabs is made invisible

UPDATE A COMPONENT INTO DATATABLE

2013-09-27 Thread lc991
hi, I have a dataTable which contains label, textfield and normal property columns. I should update only labels element. When i add a label i add a panel which contains a label When i add a TextField i add a panel which contains a textField bye lorenzo -- View this message in context:

[ANNOUNCE] Apache Wicket 6.11.0 released!

2013-09-27 Thread Martijn Dashorst
The Apache Wicket PMC is proud to announce Apache Wicket 6.11.0! This release marks the eleventh minor release of Wicket 6. Starting with Wicket 6 we use semantic versioning for the future development of Wicket, and as such no API breaks are present in this release compared to 6.0.0. New and

Re: UPDATE A COMPONENT INTO DATATABLE

2013-09-27 Thread Martin Grigorov
Hi, Please do not use CapsLock next time. On Fri, Sep 27, 2013 at 11:13 AM, lc991 lorenzoc...@live.it wrote: hi, I have a dataTable which contains label, textfield and normal property columns. I should update only labels element. When i add a label i add a panel which contains a label

Re: wicket + autowired annotation

2013-09-27 Thread Kristian Rosenvold
You cannot use new to create a spring bean in you HomePage class. You must use @SpringBean on ClsDb Kristian 2013/9/26 dan123 c...@email.cz: Hi, I have simple project created from Quickstart, and I have deffined in springContext.xml bean named dbAccess. When I use: *@SpringBean private

Auto add component

2013-09-27 Thread lc991
hi I add a component without wicket:id in html page. is this possible? bye -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-add-component-tp4661566.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Auto add component

2013-09-27 Thread Martin Grigorov
On Fri, Sep 27, 2013 at 1:56 PM, lc991 lorenzoc...@live.it wrote: hi I add a component without wicket:id in html page. is this possible? yes bye -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-add-component-tp4661566.html Sent from the Users forum

Re: Auto add component

2013-09-27 Thread lc991
could I have a mini example? I've used wicket for only 2 months -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-add-component-tp4661566p4661568.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Auto add component

2013-09-27 Thread Martin Grigorov
On Fri, Sep 27, 2013 at 2:05 PM, lc991 lorenzoc...@live.it wrote: could I have a mini example? I've used wicket for only 2 months getResponse().write(someelement/some); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-add-component-tp4661566p4661568.html

Re: Auto add component

2013-09-27 Thread lc991
??? I add a wicket component like Label, texfield ecc not html element. if i write getResponse.write() and after i add(new Label(componentName)) work? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Auto-add-component-tp4661566p4661570.html Sent from the

Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Sven Meier
Do you have a reference? Do we have to do something about it? Regards Sven On 09/27/2013 10:24 AM, Martin Grigorov wrote: It is the buggy Glassfish. Jetty 7.6.13 and Tomcat 7.0.45 (being voted atm) work fine. But Glassfish 4.0 (build 89) calls

Re: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Martin Grigorov
I created a simple app and tested it on these 3 servers + Jetty 8.1.13. The app shows that SessionEntry#valueUnbound is called only for Glassfish 4.0. Reading HttpSessionBindingListener's javadoc: * Causes an object to be notified when it is bound to * or unbound from a session. The object is

RE: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Paul Bors
No, I mean TabbedPanel or the Ajax equivalent. http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/or g.apache.wicket.examples.compref.TabbedPanelPage;jsessionid=1D5D59D85C73C7FA E205D7C7C0154C5A?0 However, this is simply reproducible via any access to a page from the disk

RE: Bunch of Page Expired exceptions in Wicket 6.10.0

2013-09-27 Thread Paul Bors
I so knew it! It also affects GlassFish v3.1.2.2 which I am using. Thanks again guys, I'll look into it from my end and see what GF team has to say about it. In the mid time, I'll go back to Wicket 6.10.0 and just register my own PageStoreManager. ~ Thank you, Paul Bors -Original

RE: Bunch of Page Expired exceptions in Wicket 6.10.0 (GlassFish v3 and v4)

2013-09-27 Thread Paul Bors
The closest I came to finding any ticket in GF's queue was: https://java.net/jira/browse/GLASSFISH-4373 Remove http session attributes only after invoking HttpSessionListener.sessionDestroyed() Which was closed with some defensive comment about how GF does obey the servlet specs and ... Now

Re: wicket + autowired annotation

2013-09-27 Thread miguel
I forgot to also mention... I've noticed that @Autowired does NOT work whereas @Inject does. Also, @Value annotations don't work either. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661575.html Sent from the Users forum

Translation of wicket properties files

2013-09-27 Thread Filipe Roque
Hi, are there any tools to review and translate all the messages in the *.properties.xml wicket files that we have created ? I am thinking something as Poedit for *.po files. flip - To unsubscribe, e-mail:

RE: wicket + autowired annotation

2013-09-27 Thread Paul Bors
Read section 17.2 Integrating Wicket with Spring starting on page 176 of the Free Wicket Guide: http://wicket.apache.org/learn/books/freeguide.html As far as I can tell you the Spring native annotations work within the implementation of a bean you already injected in your wicket component. First

Re: Translation of wicket properties files

2013-09-27 Thread Martin Grigorov
Hi, See http://stackoverflow.com/questions/7768997/software-for-managing-java-lang-properties-files-for-translation On Fri, Sep 27, 2013 at 7:42 PM, Filipe Roque filipe.ro...@premium-minds.com wrote: Hi, are there any tools to review and translate all the messages in the *.properties.xml

How to turn off email delivery without unsubscribe?

2013-09-27 Thread Ben Stover
I don't want to receive email delivery from this mailing-list any more. Instead I want to read posting through nabble forum at http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html How can I turn off email delivery but keep my permission to post emails by email? Ben

RE: How to turn off email delivery without unsubscribe?

2013-09-27 Thread Paul Bors
See http://wicket.apache.org/help/email.html and follow the Unsubscribe link. From then on, log in to Nabble with your account to read the list content. ~ Thank you, Paul Bors -Original Message- From: Ben Stover [mailto:bxsto...@yahoo.co.uk] Sent: Friday, September 27, 2013 2:54 PM

RE: Bunch of Page Expired exceptions in Wicket 6.10.0 (GlassFish v3 and v4)

2013-09-27 Thread Paul Bors
Created https://java.net/jira/browse/GLASSFISH-20828 HttpSessionBindingListener.valueUnbound() is always called right after valueBound() with a null HttpSessionBindingEvent.getValue() Let's see what becomes of this... - ~ Thank you, p...@bors.ws -- View this message in context:

Re: wicket + autowired annotation

2013-09-27 Thread dan123
Thanks to everybody for help. Paul Bors wrote As far as I can tell you the Spring native annotations work within the implementation of a bean you already injected in your wicket component. First crate a service for yourself and inject it where needed in Wicket via @SpringBean. Then inside

Re: Bunch of Page Expired exceptions in Wicket 6.10.0 (GlassFish v3 and v4)

2013-09-27 Thread Martin Grigorov
Reading your ticket against GF I think GF behaves correctly. But I wonder why Tomcat/Jetty don't do this. So here is what happens: org.apache.wicket.page.PageStoreManager.PersistentRequestAdapter#getSessionEntry looks like : private SessionEntry getSessionEntry(boolean create) { SessionEntry

Re: wicket + autowired annotation

2013-09-27 Thread miguel
If you are using _only_ spring and no wicket you _still_ can't do the new ClsDb() method and have the @Autowired fields populated. You're question isn't really specific to wicket anymore in that situation. On Fri, Sep 27, 2013 at 12:32 PM, dan123 [via Apache Wicket]

RE: Bunch of Page Expired exceptions in Wicket 6.10.0 (GlassFish v3 and v4)

2013-09-27 Thread Paul Bors
I tested with the proposed o.a.w.p.PageStoreManager.PersistentRequestAdapter#getSessionEntry() new implementation and it's working fine in GlassFish v3.1.2.2 I'll withdraw my GLASSFISH-20828 bug. Should I open a new Wicket ticket instead? I do think the second suggestion of using

RE: Bunch of Page Expired exceptions in Wicket 6.10.0 (GlassFish v3 and v4)

2013-09-27 Thread Paul Bors
I take that back, the new implementation breaks the session timeout. ~ Thank you, Paul Bors -Original Message- From: Paul Bors [mailto:p...@bors.ws] Sent: Friday, September 27, 2013 5:51 PM To: users@wicket.apache.org Cc: d...@wicket.apache.org Subject: RE: Bunch of Page Expired