Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-30 Thread Raoul Zander
Hi Sven, okay, I created a jira issue + quickstart: https://issues.apache.org/jira/browse/WICKET-5655 . Hope that helps :) Kind regards, rza 2014-07-29 19:53 GMT+02:00 Sven Meier s...@meiers.net: Hi, I agree, that look bogus. WICKET-3413 tried to improve on a similar issue though:

Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
Hi everyone, I think there is some kind of bug in the handling of CompoundPropertyModel (or any IComponentInheritedModel). In Component exists a Flag FLAG_INHERITABLE_MODEL - which is set to true whenever a model is inherited from a parent, so that the model can be nulled onDetach. Thing is: The

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, the setModel(CompoundPropertyModel ...) actually KEEPS the FLAG_INHERITABLE_MODEL on true where is that? Sven On 07/29/2014 04:29 PM, Raoul Zander wrote: Hi everyone, I think there is some kind of bug in the handling of CompoundPropertyModel (or any IComponentInheritedModel). In

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
In Component.setModelImpl(IModel) - rza 2014-07-29 16:37 GMT+02:00 Sven Meier s...@meiers.net: Hi, the setModel(CompoundPropertyModel ...) actually KEEPS the FLAG_INHERITABLE_MODEL on true where is that? Sven On 07/29/2014 04:29 PM, Raoul Zander wrote: Hi everyone, I think

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, if I look for setFlag(FLAG_INHERITABLE_MODEL, true), it is called in initModel() only. Please paste the relevant code or even better create a quickstart. Regards Sven On 07/29/2014 04:59 PM, Raoul Zander wrote: In Component.setModelImpl(IModel) - rza 2014-07-29 16:37 GMT+02:00 Sven

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Raoul Zander
Hi, the flag is not set to true - that's the problem :) See the method Component.setModelImpl(IModel) especially (Line 2981 in Wicket-Core 6.16.0): if (getFlag(FLAG_INHERITABLE_MODEL) !(model instanceof IComponentInheritedModel)) { setFlag(FLAG_INHERITABLE_MODEL, false); } Which should

Re: Possible error with IComponentInheritedModel(s) and stateful pages

2014-07-29 Thread Sven Meier
Hi, I agree, that look bogus. WICKET-3413 tried to improve on a similar issue though: https://issues.apache.org/jira/browse/WICKET-3413 Wouldn't it be easier, just to always clear FLAG_INHERITABLE_MODEL in #setDefaultModel(), i.e. when a model is set explicitely? Please create a Jira

Re: Wicket localization in stateful pages

2013-11-17 Thread meduolis
to update all components to use dynamic models. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662461.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket localization in stateful pages

2013-11-13 Thread Martin Grigorov
-issue-when-localizing-in-stateful-pages-tp4662260p4662326.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

Re: Wicket localization in stateful pages

2013-11-12 Thread Martin Grigorov
.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662326.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Wicket localization in stateful pages

2013-11-12 Thread meduolis
} stays in german. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662342.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket localization in stateful pages

2013-11-11 Thread Sven Meier
this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662262.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: Wicket localization in stateful pages

2013-11-11 Thread Martin Grigorov
. I thought that back action should behave exactly the same when you navigating the site using wicket controls. Should I override back action somehow and do it myself? -- View this message in context: http://apache-wicket.1842946. n4.nabble.com/Back-button-issue-when-localizing-in-stateful

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
here :). Shouldn't it be consistent? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662319.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket localization in stateful pages

2013-11-11 Thread Martin Grigorov
will get different results when backing to older page version? I am really not getting the thing here :). Shouldn't it be consistent? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662319.html Sent from

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
question related to this topic (sorry for that spam): 1. Is there a way to restore locale for dynamic models when navigating between page versions? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662323

Re: Wicket localization in stateful pages

2013-11-11 Thread Sven Meier
last question related to this topic (sorry for that spam): 1. Is there a way to restore locale for dynamic models when navigating between page versions? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages

Re: Wicket localization in stateful pages

2013-11-11 Thread meduolis
://apache-wicket.1842946.n4.nabble.com/file/n4662326/versionLocale.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662326.html Sent from the Users forum mailing list archive at Nabble.com

Wicket localization in stateful pages

2013-11-10 Thread meduolis
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-localization-in-stateful-pages-tp4662260.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Wicket localization in stateful pages

2013-11-10 Thread Sven Meier
.nabble.com/file/n4662260/versionLocale.zip -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-localization-in-stateful-pages-tp4662260.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket localization in stateful pages

2013-11-10 Thread meduolis
: http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662262.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

No page id appended to some stateful pages

2013-08-07 Thread Bertrand Guay-Paquet
Hello, After investigating why some of my stateful pages had a ?n redirect while others did not, I think I found a bug with the stateless page checking. My test case is a page containing only an AjaxFallbackDefaultDataTable, but it can be reduced to a page containing a ListView

Re: No page id appended to some stateful pages

2013-08-07 Thread Martin Grigorov
On Wed, Aug 7, 2013 at 7:48 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, After investigating why some of my stateful pages had a ?n redirect while others did not, I think I found a bug with the stateless page checking. My test case is a page containing only

Re: No page id appended to some stateful pages

2013-08-07 Thread Carl-Eric Menzel
On Wed, 07 Aug 2013 13:48:38 -0400 Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: The problem I see is that AbstractRepeater's onPopulate() is called during onBeforeRender() and this is not done when the stateless status of the page is first checked. Therefore, no pageId is added unless

Re: No page id appended to some stateful pages

2013-08-07 Thread Sven Meier
My changes for WICKET-4995 are probably to blame for this. Let's await the quickstart. Sven On 08/07/2013 07:56 PM, Martin Grigorov wrote: On Wed, Aug 7, 2013 at 7:48 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, After investigating why some of my stateful pages had a ?n

Can we use stateful pages for web sites?

2013-02-03 Thread Bernard
Hi all, It takes us more time to work around Wicket bugs than the gain of using Wicket's statefulness. It is productive to use Wicket's AJAX and passing around IModel between pages. But when doing this we get bugs where page links are no longer bookmarkable even if the pages are in fact

jsessionid not appended for stateful pages

2011-11-16 Thread thomas willomitzer
Dear all, I've spent quite a bit of time tracking down a problem I'm having using wicket and stateful pages. I've enabled the jsessionid url rewriting in tomcat (by simply using the default settings) but I get a redirect url without the jsessionid. I've traced into tomcat's Response.encodeUrl

Re: jsessionid not appended for stateful pages

2011-11-16 Thread Martin Grigorov
Hi, On Wed, Nov 16, 2011 at 2:29 PM, thomas willomitzer willomit...@gmail.com wrote: Dear all, I've spent quite a bit of time tracking down a problem I'm having using wicket and stateful pages. I've enabled the jsessionid url rewriting in tomcat (by simply using the default settings) but I

Re: jsessionid not appended for stateful pages

2011-11-16 Thread thomas willomitzer
, Martin Grigorov mgrigo...@apache.orgwrote: Hi, On Wed, Nov 16, 2011 at 2:29 PM, thomas willomitzer willomit...@gmail.com wrote: Dear all, I've spent quite a bit of time tracking down a problem I'm having using wicket and stateful pages. I've enabled the jsessionid url rewriting

Re: jsessionid not appended for stateful pages

2011-11-16 Thread Martin Grigorov
wicket and stateful pages. I've enabled the jsessionid url rewriting in tomcat (by simply using the default settings) but I get a redirect url without the jsessionid. I've traced into tomcat's Response.encodeUrl and saw that the jsessionid is in fact appended (but later removed for in page

Re: jsessionid not appended for stateful pages

2011-11-16 Thread thomas willomitzer
a problem I'm having using wicket and stateful pages. I've enabled the jsessionid url rewriting in tomcat (by simply using the default settings) but I get a redirect url without the jsessionid. I've traced into tomcat's Response.encodeUrl and saw that the jsessionid is in fact

Re: jsessionid not appended for stateful pages

2011-11-16 Thread thomas willomitzer
willomitzer willomit...@gmail.com wrote: Dear all, I've spent quite a bit of time tracking down a problem I'm having using wicket and stateful pages. I've enabled the jsessionid url rewriting in tomcat (by simply using the default settings) but I get a redirect url without

Re: Stateful pages without page Id in the url

2011-09-16 Thread Martin Grigorov
she will go to the previous page instead of to the previous version of that page. This way she will always see the last state of the page. On Fri, Sep 16, 2011 at 2:24 AM, hok ivanvasi...@gmail.com wrote: Thanks Martin, your solution seems to work. There are two cases where I need stateful pages

Stateful pages without page Id in the url

2011-09-15 Thread hok
revisions (currently in 1.5-SNAPSHOT) this technique doesn't work anymore - the ajax in the pages using NoPageIdMountedMapper is not working, because the ajax request url doesn't contain the page id anymore. Is it still possible to have stateful pages without having the page id in the url? Thanks

Re: Stateful pages without page Id in the url

2011-09-15 Thread Pedro Santos
) this technique doesn't work anymore - the ajax in the pages using NoPageIdMountedMapper is not working, because the ajax request url doesn't contain the page id anymore. Is it still possible to have stateful pages without having the page id in the url? Thanks in advance. -- View this message

Re: Stateful pages without page Id in the url

2011-09-15 Thread hok
NoPageIdMountedMapper the ajax in the page is not working. So is there another way besides this for achieving stateful page without page id in the url? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateful-pages-without-page-Id-in-the-url-tp3816663p3816779.html Sent from the Users

Re: Stateful pages without page Id in the url

2011-09-15 Thread Martin Grigorov
this for achieving stateful page without page id in the url? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Stateful-pages-without-page-Id-in-the-url-tp3816663p3816779.html Sent from the Users forum mailing list archive at Nabble.com

Re: Stateful pages without page Id in the url

2011-09-15 Thread hok
Thanks Martin, your solution seems to work. There are two cases where I need stateful pages without page id. The first one is for purely aesthetic reasons and concerns bookmarkable pages which can be opened with page parameters. The second is a bit more important. I have a user profile page

Re: Stateful pages without page Id in the url

2011-09-15 Thread Dan Retzlaff
it causes a myriad of problems. But of course your mileage may vary. :) Regards, Dan On Thu, Sep 15, 2011 at 4:24 PM, hok ivanvasi...@gmail.com wrote: Thanks Martin, your solution seems to work. There are two cases where I need stateful pages without page id. The first one is for purely aesthetic

Stateful pages

2010-09-10 Thread Hiren Patel
Hi all, I have some doubts regarding the /stateful Wicket page/ of Wicket. I have one page with three components. 1.Label 2.TextFieldString 3.TextFieldInteger. 1. What will be stateful? 2. What will be stored in the session? for example whole page or only the component that is

Re: Stateful pages

2010-09-10 Thread Hiren Patel
Hiren Patel wrote: Hi all, I have some doubts regarding the /stateful Wicket page/ of Wicket. I have one page with three components. 1.Label 2.TextFieldString 3.TextFieldInteger. 1. What will be stateful? 2. What will be stored in the session? for example whole page or only the

Re: Stateful pages

2010-09-10 Thread Martin Grigorov
On Fri, Sep 10, 2010 at 8:09 AM, Hiren Patel hiren_pa...@kaleconsultants.com wrote: Hi all, I have some doubts regarding the /stateful Wicket page/ of Wicket. I have one page with three components. 1.Label 2.TextFieldString 3.TextFieldInteger. 1. What will be stateful?

DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread pixologe
form wicket:id=testform select wicket:id=testselect/select /form /body /html -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18606819.html Sent from the Wicket - User mailing list archive

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread Michael Sparer
/form /body /html - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread Martijn Dashorst
=testform select wicket:id=testselect/select /form /body /html -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18606819.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread Martijn Dashorst
://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread Michael Sparer
http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607288.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread pixologe
); -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607771.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread Martijn Dashorst
On Wed, Jul 23, 2008 at 12:25 PM, pixologe [EMAIL PROTECTED] wrote: there are methods: setResponsePage(java.lang.Class cls) setResponsePage(java.lang.Class cls, PageParameters parameters) setResponsePage(Page page) but not: setResponsePage(Page page, PageParameters parameters) correct. is

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread pixologe
was set. -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18607950.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread pixologe
] -- View this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18608007.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL

Re: DropDownChoice, PropertyModel and stateful pages

2008-07-23 Thread pixologe
this message in context: http://www.nabble.com/DropDownChoice%2C-PropertyModel-and-stateful-pages-tp18606819p18615095.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED