Re: Prettier URLs for ResourceReference images
Well ok, this is helpful. But: what do you do if you have a lot of embedded resources referenced from a lot of different components? Do I have to put an alias for every single class? This is quite verbose, isn't there an easier way to e.g. set an alias for a complete Java package? Sure, I could do this with reflection (iterate over each class in a given package and assign alias), but this is not very nifty ;-) -Tom Am 12.03.2010 um 22:35 schrieb Igor Vaynberg: see sharedresources#putclassalias -igor On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote: Is there a way to have prettier URLs when including images that are referenced with a ResourceReference? When I add an image like that: Image image = new Image(image, new ResourceReference(some.package.name.and.Class.class, my_image.gif)); add(image); ... this results in a rather technical URL (resources/some.package.name.and.Class/my_image.gif), and I'd also prefer that my internal package structure is not visible to the rest of the world. Can this be somewhat prettier maybe? ;-) Thanks, -Tom - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prettier URLs for ResourceReference images
Extend ResourceRefrence class and do the aliasing in its constructor. There you have all the needed information - class and resource name. Then in MyComponent.java: ... Image image = new Image(image, new AutoAliasResourceReference(...)); On Sat, 2010-03-13 at 10:47 +0100, Thomas Götz wrote: Well ok, this is helpful. But: what do you do if you have a lot of embedded resources referenced from a lot of different components? Do I have to put an alias for every single class? This is quite verbose, isn't there an easier way to e.g. set an alias for a complete Java package? Sure, I could do this with reflection (iterate over each class in a given package and assign alias), but this is not very nifty ;-) -Tom Am 12.03.2010 um 22:35 schrieb Igor Vaynberg: see sharedresources#putclassalias -igor On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote: Is there a way to have prettier URLs when including images that are referenced with a ResourceReference? When I add an image like that: Image image = new Image(image, new ResourceReference(some.package.name.and.Class.class, my_image.gif)); add(image); ... this results in a rather technical URL (resources/some.package.name.and.Class/my_image.gif), and I'd also prefer that my internal package structure is not visible to the rest of the world. Can this be somewhat prettier maybe? ;-) Thanks, -Tom - 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 - 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
Using SetResponsePage in Session
Hi, In my custom session, I have a method which, on certain condition, wants to redirect the request to some page, other than the original. This is what I am doing, in the method: RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); But the response continues to land on the originally requested page requested page. Is there any way to do this without invalidating the session? Thanks Nishant
Re: Using SetResponsePage in Session
What's the use case? Session events won't always occur within the context of a RequestCycle, say, expiry. Even If the use case is related to a request something like this might be cleaner: YourPage if (getYourApp().getYourSession().isWhatever()) { RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); } else { Ed. On Sat, Mar 13, 2010 at 7:06 AM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: Hi, In my custom session, I have a method which, on certain condition, wants to redirect the request to some page, other than the original. This is what I am doing, in the method: RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); But the response continues to land on the originally requested page requested page. Is there any way to do this without invalidating the session? Thanks Nishant - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Prettier URLs for ResourceReference images
Ok, this is sexy, thanks for pointing me into the right direction ;-) -Tom Am 13.03.2010 um 12:08 schrieb Martin Grigorov: Extend ResourceRefrence class and do the aliasing in its constructor. There you have all the needed information - class and resource name. Then in MyComponent.java: ... Image image = new Image(image, new AutoAliasResourceReference(...)); On Sat, 2010-03-13 at 10:47 +0100, Thomas Götz wrote: Well ok, this is helpful. But: what do you do if you have a lot of embedded resources referenced from a lot of different components? Do I have to put an alias for every single class? This is quite verbose, isn't there an easier way to e.g. set an alias for a complete Java package? Sure, I could do this with reflection (iterate over each class in a given package and assign alias), but this is not very nifty ;-) -Tom Am 12.03.2010 um 22:35 schrieb Igor Vaynberg: see sharedresources#putclassalias -igor On Fri, Mar 12, 2010 at 1:23 PM, Thomas Götz t...@richmountain.de wrote: Is there a way to have prettier URLs when including images that are referenced with a ResourceReference? When I add an image like that: Image image = new Image(image, new ResourceReference(some.package.name.and.Class.class, my_image.gif)); add(image); ... this results in a rather technical URL (resources/some.package.name.and.Class/my_image.gif), and I'd also prefer that my internal package structure is not visible to the rest of the world. Can this be somewhat prettier maybe? ;-) Thanks, -Tom - 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 - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: onkeyup ajax call with the key pressed
what about wicketstuff input events? should give you an idea..? 2010/3/12 Istvan Soos istvan.s...@gmail.com Thanks! Is there somewhere an example for this? E.g. with Java callback codes and like... Thanks, Istvan On Fri, Mar 12, 2010 at 1:40 PM, Pedro Santos pedros...@gmail.com wrote: Yes, for example you can add an ajax behaviour to you page, and using his callback url mount an script like wicketAjaxGet(callbackUrl + 'key=' + event.keyCode); on your div onkeyup event. On Fri, Mar 12, 2010 at 6:55 AM, Istvan Soos istvan.s...@gmail.com wrote: Hi, Is there a way to combine onkeyup event (on a div panel, not on form component) into an ajax call, that will contain the character of thein key pressed? Thanks, Istvan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using SetResponsePage in Session
The use case is like this. You have logged-in in a browser's tab and in another tab, you click on a moderate-comment mail that automatically logs you in as another user, and takes you to the comments-moderation page of the application. Now, at this point, I want to ask the user if he wants to switch account. [The way Google does if you are signing-in in two tabs as different users] So, instead of comment-moderation page, I want to take user to Do want to switch account? page (if another user is already logged-in in another tab). Depending on the users decision I will either invalidate the old session and log-in as new user or will just take the user to already logged in session's home page. The thing is, I wanted to do this all the time. Whenever I am calling MySession.get().setUser(UserVO uvo), I want to check if there already exists a different userVO in the same session. If so, the end user must be notified. Thanks Nishant On Sat, Mar 13, 2010 at 7:24 PM, Edward Zarecor edw...@indeterminate.orgwrote: What's the use case? Session events won't always occur within the context of a RequestCycle, say, expiry. Even If the use case is related to a request something like this might be cleaner: YourPage if (getYourApp().getYourSession().isWhatever()) { RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); } else { Ed. On Sat, Mar 13, 2010 at 7:06 AM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: Hi, In my custom session, I have a method which, on certain condition, wants to redirect the request to some page, other than the original. This is what I am doing, in the method: RequestCycle.get().setRedirect(true); RequestCycle.get().setResponsePage(SomePage.class); But the response continues to land on the originally requested page requested page. Is there any way to do this without invalidating the session? Thanks Nishant - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using SetResponsePage in Session
I would check if the user already exists in the session, but send the redirect from a Page. You can refactor the redirection code into a base class and extend as required. Ed. On Mar 13, 2010 2:04 PM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: The use case is like this. You have logged-in in a browser's tab and in another tab, you click on a moderate-comment mail that automatically logs you in as another user, and takes you to the comments-moderation page of the application. Now, at this point, I want to ask the user if he wants to switch account. [The way Google does if you are signing-in in two tabs as different users] So, instead of comment-moderation page, I want to take user to Do want to switch account? page (if another user is already logged-in in another tab). Depending on the users decision I will either invalidate the old session and log-in as new user or will just take the user to already logged in session's home page. The thing is, I wanted to do this all the time. Whenever I am calling MySession.get().setUser(UserVO uvo), I want to check if there already exists a different userVO in the same session. If so, the end user must be notified. Thanks Nishant On Sat, Mar 13, 2010 at 7:24 PM, Edward Zarecor edw...@indeterminate.org wrote: What's the use case? Session events won't always occur within the context of a RequestCycle, s... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using SetResponsePage in Session
Right. Thanks. So, I am doing this check in my custom base page (which is extended by all others). I am able to redirect user to switch accounts page. My initial understanding was that Session.replaceSession() or Session.invalidateNow() + Session.bind() will reset the current session and hence all the objects in current session. but unfortunately, it does not. Right now, I want to start a new session on an button onClick. I'm wondering if it's possible. Any clue? Thanks - Nishant On Sun, Mar 14, 2010 at 1:37 AM, Edward Zarecor edw...@indeterminate.orgwrote: I would check if the user already exists in the session, but send the redirect from a Page. You can refactor the redirection code into a base class and extend as required. Ed. On Mar 13, 2010 2:04 PM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: The use case is like this. You have logged-in in a browser's tab and in another tab, you click on a moderate-comment mail that automatically logs you in as another user, and takes you to the comments-moderation page of the application. Now, at this point, I want to ask the user if he wants to switch account. [The way Google does if you are signing-in in two tabs as different users] So, instead of comment-moderation page, I want to take user to Do want to switch account? page (if another user is already logged-in in another tab). Depending on the users decision I will either invalidate the old session and log-in as new user or will just take the user to already logged in session's home page. The thing is, I wanted to do this all the time. Whenever I am calling MySession.get().setUser(UserVO uvo), I want to check if there already exists a different userVO in the same session. If so, the end user must be notified. Thanks Nishant On Sat, Mar 13, 2010 at 7:24 PM, Edward Zarecor edw...@indeterminate.org wrote: What's the use case? Session events won't always occur within the context of a RequestCycle, s... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Don't increment the Session.pageIdCounter for stateless pages?
Hi, just submitted this as https://issues.apache.org/jira/browse/WICKET-2782 I tried incrementing the pageId when the page's numericId is first accessed, but soon realized, that this does happen rather often (also e.g. to construct bookmarkable page links) ;-) Seems to be not as easy as I thought. Still, it would be really cool if this could be implemented! Cheers, Martin On Wed, 2010-03-10 at 08:49 -0800, Igor Vaynberg wrote: i think we can do this in 1.5 i would rather not mess with 1.4 because i think there is a lot of code there that depends on the fact that the id is available right away. please create a jira issue for this -igor On Mon, Mar 8, 2010 at 4:30 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Hi, the Page.init(PageMap) invokes setNextAvailableId(), which invokes getSession().nextPageId() if isPageIdUniquePerSession is set. getSession().nextPageId() modifies the Session.pageIdCounter. When I have a session and afterwards access a stateless page, the Session.pageIdCounter is the only data that is changed in the session AFAICS, everything else is the same as in the request before. Is it possible _not_ to modify the Session.pageIdCounter if the page is really stateless (or just don't invoke Page.setNextAvailableId())? I'm interested in this, as I'm just implementing a feature for the memcached-session-manager ([1], memcached based session replication), which checks if session data has changed and replicates sessions only if this is provided. If session data did not change, the replication is omitted. Therefore, if the Session.pageIdCounter would be left unchanged for stateless pages, this would allow to make use of this feature in wicket apps. Thanx cheers, Martin [1] http://code.google.com/p/memcached-session-manager/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org signature.asc Description: This is a digitally signed message part
Re: Don't increment the Session.pageIdCounter for stateless pages?
I'm not sure about all this. If the session has not been bound the page id will always be 0. If the session has been bound, I don't think we shouldn't increment page Id. Stateless page can became stateful any time, not incrementing the id can have sideeffects. -Matej On Sat, Mar 13, 2010 at 10:55 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Hi, just submitted this as https://issues.apache.org/jira/browse/WICKET-2782 I tried incrementing the pageId when the page's numericId is first accessed, but soon realized, that this does happen rather often (also e.g. to construct bookmarkable page links) ;-) Seems to be not as easy as I thought. Still, it would be really cool if this could be implemented! Cheers, Martin On Wed, 2010-03-10 at 08:49 -0800, Igor Vaynberg wrote: i think we can do this in 1.5 i would rather not mess with 1.4 because i think there is a lot of code there that depends on the fact that the id is available right away. please create a jira issue for this -igor On Mon, Mar 8, 2010 at 4:30 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Hi, the Page.init(PageMap) invokes setNextAvailableId(), which invokes getSession().nextPageId() if isPageIdUniquePerSession is set. getSession().nextPageId() modifies the Session.pageIdCounter. When I have a session and afterwards access a stateless page, the Session.pageIdCounter is the only data that is changed in the session AFAICS, everything else is the same as in the request before. Is it possible _not_ to modify the Session.pageIdCounter if the page is really stateless (or just don't invoke Page.setNextAvailableId())? I'm interested in this, as I'm just implementing a feature for the memcached-session-manager ([1], memcached based session replication), which checks if session data has changed and replicates sessions only if this is provided. If session data did not change, the replication is omitted. Therefore, if the Session.pageIdCounter would be left unchanged for stateless pages, this would allow to make use of this feature in wicket apps. Thanx cheers, Martin [1] http://code.google.com/p/memcached-session-manager/ - 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: Don't increment the Session.pageIdCounter for stateless pages?
There are cases where pages are intended to be stateless (and might get annotated with @StatelessComponent). At least for these pages the page id should not be incremented, even if the session already has been bound. Cheers, Martin On Sat, 2010-03-13 at 22:58 +0100, Matej Knopp wrote: I'm not sure about all this. If the session has not been bound the page id will always be 0. If the session has been bound, I don't think we shouldn't increment page Id. Stateless page can became stateful any time, not incrementing the id can have sideeffects. -Matej On Sat, Mar 13, 2010 at 10:55 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Hi, just submitted this as https://issues.apache.org/jira/browse/WICKET-2782 I tried incrementing the pageId when the page's numericId is first accessed, but soon realized, that this does happen rather often (also e.g. to construct bookmarkable page links) ;-) Seems to be not as easy as I thought. Still, it would be really cool if this could be implemented! Cheers, Martin On Wed, 2010-03-10 at 08:49 -0800, Igor Vaynberg wrote: i think we can do this in 1.5 i would rather not mess with 1.4 because i think there is a lot of code there that depends on the fact that the id is available right away. please create a jira issue for this -igor On Mon, Mar 8, 2010 at 4:30 PM, Martin Grotzke martin.grot...@javakaffee.de wrote: Hi, the Page.init(PageMap) invokes setNextAvailableId(), which invokes getSession().nextPageId() if isPageIdUniquePerSession is set. getSession().nextPageId() modifies the Session.pageIdCounter. When I have a session and afterwards access a stateless page, the Session.pageIdCounter is the only data that is changed in the session AFAICS, everything else is the same as in the request before. Is it possible _not_ to modify the Session.pageIdCounter if the page is really stateless (or just don't invoke Page.setNextAvailableId())? I'm interested in this, as I'm just implementing a feature for the memcached-session-manager ([1], memcached based session replication), which checks if session data has changed and replicates sessions only if this is provided. If session data did not change, the replication is omitted. Therefore, if the Session.pageIdCounter would be left unchanged for stateless pages, this would allow to make use of this feature in wicket apps. Thanx cheers, Martin [1] http://code.google.com/p/memcached-session-manager/ - 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 signature.asc Description: This is a digitally signed message part
Wicket Forms on PS3 Browser
I just tried out my Wicket-based site on the PS3's native browser. The strange thing is that none of the forms worked. It's as if the onSubmit is never called. I went to the Wicket home page and confirmed this behavior. I don't recall seeing this happen with other forms. I suppose it's not a big deal but it makes me wonder what's going on.
Page reload after submit action
Hi there. I have the following problem with reloading the same page that is currently loaded. I'm working on a blog application. Normally the URL in the browser for a specific blog entry is like this: http://host/blog/id/someblogid where /blog is mounted as bookmarkable in Application to Blog WebPage subclass which has a constructor with PageParameters which accepts id=someblogid which then is translated to /blog/id/someblogid by Wicket. Now there is an add comment panel on the page that, when a user submits it, should load the Blog page for the same someblogid. In onSubmit I tried with: setResponsePage(Blog.class, new PageParameters(id=+someblogid) which ends up that a page with this URL is loaded /blog/id/blog/id/someblogid which of course doesn't work. Reloading the same page using setResponsePage(getWebPage) doesn't work either. I'm probably missing the obvious but I'd appreciate if someone could help me here. Manfred - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket Forms on PS3 Browser
Perhaps has to do with: ..., the PS3 browser reports nothing except a user-agent of Mozilla/5.0 (PLAYSTATION 3; 1.00). Everything else is blank. The PS3 apparently does not send an HTTP-Accept header to the server. It supports Javascript but will not divulge which version. Finally, it reports no mime types, no plugins, and no Javascript errors That and more here: http://www.design215.com/read.php?title=playstation%203%20browser%20specs - Alex. -Original Message- From: Brad Grier [mailto:brad.gr...@salusnovus.com] Sent: Saturday, March 13, 2010 6:24 PM To: users@wicket.apache.org Subject: Wicket Forms on PS3 Browser I just tried out my Wicket-based site on the PS3's native browser. The strange thing is that none of the forms worked. It's as if the onSubmit is never called. I went to the Wicket home page and confirmed this behavior. I don't recall seeing this happen with other forms. I suppose it's not a big deal but it makes me wonder what's going on. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Forms on PS3 Browser
Good link. I didn't really expect the app to work but I thought the form submit would be the least of my problems. I still find it interesting that forms seem to work for other sites. -- From: Alex Rass a...@itbsllc.com Sent: Saturday, March 13, 2010 5:57 PM To: users@wicket.apache.org Subject: RE: Wicket Forms on PS3 Browser Perhaps has to do with: ..., the PS3 browser reports nothing except a user-agent of Mozilla/5.0 (PLAYSTATION 3; 1.00). Everything else is blank. The PS3 apparently does not send an HTTP-Accept header to the server. It supports Javascript but will not divulge which version. Finally, it reports no mime types, no plugins, and no Javascript errors That and more here: http://www.design215.com/read.php?title=playstation%203%20browser%20specs - Alex. -Original Message- From: Brad Grier [mailto:brad.gr...@salusnovus.com] Sent: Saturday, March 13, 2010 6:24 PM To: users@wicket.apache.org Subject: Wicket Forms on PS3 Browser I just tried out my Wicket-based site on the PS3's native browser. The strange thing is that none of the forms worked. It's as if the onSubmit is never called. I went to the Wicket home page and confirmed this behavior. I don't recall seeing this happen with other forms. I suppose it's not a big deal but it makes me wonder what's going on. - 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: Wicket Forms on PS3 Browser
Yeah, but forms that work for other sites don't do all the sweet things that wicket does for you. Most sites still have forms that you can double-click. Then spend hours coding backend to avoid double entry etc. Someone will fix it... eventually. ;) Anyone cares to donate a PS3 to Igor? I am sure he'd oblige, right Igor? ;) Or, at least, record the traffic on the server (wireshark) and post it for this forum. - Alex. -Original Message- From: Brad Grier [mailto:brad.gr...@salusnovus.com] Sent: Saturday, March 13, 2010 8:39 PM To: users@wicket.apache.org Subject: Re: Wicket Forms on PS3 Browser Good link. I didn't really expect the app to work but I thought the form submit would be the least of my problems. I still find it interesting that forms seem to work for other sites. -- From: Alex Rass a...@itbsllc.com Sent: Saturday, March 13, 2010 5:57 PM To: users@wicket.apache.org Subject: RE: Wicket Forms on PS3 Browser Perhaps has to do with: ..., the PS3 browser reports nothing except a user-agent of Mozilla/5.0 (PLAYSTATION 3; 1.00). Everything else is blank. The PS3 apparently does not send an HTTP-Accept header to the server. It supports Javascript but will not divulge which version. Finally, it reports no mime types, no plugins, and no Javascript errors That and more here: http://www.design215.com/read.php?title=playstation%203%20browser%20specs - Alex. -Original Message- From: Brad Grier [mailto:brad.gr...@salusnovus.com] Sent: Saturday, March 13, 2010 6:24 PM To: users@wicket.apache.org Subject: Wicket Forms on PS3 Browser I just tried out my Wicket-based site on the PS3's native browser. The strange thing is that none of the forms worked. It's as if the onSubmit is never called. I went to the Wicket home page and confirmed this behavior. I don't recall seeing this happen with other forms. I suppose it's not a big deal but it makes me wonder what's going on. - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page reload after submit action
Hi, It appears you are on 1.4.6,upgrade to 1.4.7 and see if the problem disappears. On Sun, Mar 14, 2010 at 5:15 AM, Bergmann Manfred m...@software-by-mabe.comwrote: Hi there. I have the following problem with reloading the same page that is currently loaded. I'm working on a blog application. Normally the URL in the browser for a specific blog entry is like this: http://host/blog/id/someblogid where /blog is mounted as bookmarkable in Application to Blog WebPage subclass which has a constructor with PageParameters which accepts id=someblogid which then is translated to /blog/id/someblogid by Wicket. Now there is an add comment panel on the page that, when a user submits it, should load the Blog page for the same someblogid. In onSubmit I tried with: setResponsePage(Blog.class, new PageParameters(id=+someblogid) which ends up that a page with this URL is loaded /blog/id/blog/id/someblogid which of course doesn't work. Reloading the same page using setResponsePage(getWebPage) doesn't work either. I'm probably missing the obvious but I'd appreciate if someone could help me here. Manfred - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- regards, Vineet Semwal