Re: Localization of PageParameters

2017-07-12 Thread Ravi
Hi Martin, here's the Ticket https://issues.apache.org/jira/browse/WICKET-6419 Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Localization-of-PageParameters-tp4678221p4678229.html Sent from the Users forum mailing list archive at Nabble.com

Re: Localization of PageParameters

2017-07-11 Thread Martin Grigorov
, 2017 at 1:41 PM, Ravi <ravi.k...@intellinet.de> wrote: > Hi guys, > > we stumbled on a behavior and I'm not sure why it is implemented as it is > ;) > > It concerns the reading of PageParameters. They all use the StringValue > constructor without passing the Sessio

Localization of PageParameters

2017-07-11 Thread Ravi
Hi guys, we stumbled on a behavior and I'm not sure why it is implemented as it is ;) It concerns the reading of PageParameters. They all use the StringValue constructor without passing the Session locale. The StringValue will in turn use the systems locale. So when I retrieve a _en formatted

Re: Use Page from Pagestore even if PageParameters have changed

2017-02-03 Thread Sven Meier
and that works as well. The best thing is that I also have a dedicated onLinkClicked() method. Thanks a lot! Ravi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676980.html Sent from the Users forum mailing

Re: Use Page from Pagestore even if PageParameters have changed

2017-02-03 Thread Ravi
.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676980.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
Hi Sven, thank your for your quick reply. I'll try your LinkListener suggestion. -Ravi -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676975.html Sent from the Users forum mailing list archive

Re: Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Sven Meier
Hi Ravi, you should pass a different URL to your payment partner: Put a Link on your page and use its URL. Or even better, let your page implement ILinkListener and use that URL: this.urlFor(ILinkListener.INTERFACE, new PageParameters()); Have fun Sven On 02.02.2017 11:32, Ravi

Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
of problems, or are there any drawbacks to this approach? Thanks for your time, Ravi Ticket-4441 https://issues.apache.org/jira/browse/WICKET-4441. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971.ht

Re: PageParameters & mounted pages

2015-11-18 Thread Martin Grigorov
witter.com/mtgrigorov On Wed, Nov 18, 2015 at 3:49 PM, Sebastien <seb...@gmail.com> wrote: > Hi, > > I have a little concerns about PageParameters and mounted pages. > > On a first case - mypage?param=myvalue - I can retrieve param from both > page-parameters a

Re: PageParameters & mounted pages

2015-11-18 Thread Sebastien
e. > > You can also make use > of > org.apache.wicket.request.cycle.PageRequestHandlerTracker#getFirstHandler() > to skip the resolution of the IRequestMapper. > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Wed, Nov 18, 2015 at

PageParameters & mounted pages

2015-11-18 Thread Sebastien
Hi, I have a little concerns about PageParameters and mounted pages. On a first case - mypage?param=myvalue - I can retrieve param from both page-parameters and from Request#getQueryParameters() On a second case - mypage/myvalue (with a mounted page /mypage/${param}) - I am able to retrieve

Re: PageParameters missing.

2015-06-30 Thread Martin Grigorov
page. Prior to upgrading to 1.5, the code below worked to read them, but now these specific parameters are null. public TrackDataReadClass (PageParameters params) { String dataitems = params.get(dataitems).toString(); String dataStripe1 = params.get(dataitem0).toString

PageParameters missing.

2015-06-29 Thread Greg Dunn
these specific parameters are null. public TrackDataReadClass (PageParameters params) { String dataitems = params.get(dataitems).toString(); String dataStripe1 = params.get(dataitem0).toString(); String dataStripe2 = params.get(dataitem1).toString(); etc... } I've

Re: Submitlink + PageParameters

2015-04-22 Thread Chris
RedirectToUrlException: On the onSubmit(), I then called setResponsePage(new RedirectPage( external url ) ); I hope this helps. Regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Submitlink-PageParameters-tp4670454p4670464.html Sent from

Re: Submitlink + PageParameters

2015-04-22 Thread lucast
this helps. Regards, Lucas -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Submitlink-PageParameters-tp4670454p4670464.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e

Submitlink + PageParameters

2015-04-21 Thread Chris
Hi all, would it be possible when having a submit link and a form+post, to nevertheless transfer the page parameters in the url? Something like action=„…?parameter=value Thanks, Chris - To unsubscribe, e-mail:

Accessing PageParameters within Panel

2015-03-12 Thread David Kaufman
Hi, I'm currently migrating a fairly large project from wicket 1.4 to wicket 6. We're currently getting the PageParameters from the RequestCycle via getRequestCycle().getPageParameters(), with wicket 6 this is no longer possible. Getting the PageParameters via getPage().getPageParameters

Re: Accessing PageParameters within Panel

2015-03-12 Thread Tobias Soloschenko
currently getting the PageParameters from the RequestCycle via getRequestCycle().getPageParameters(), with wicket 6 this is no longer possible. Getting the PageParameters via getPage().getPageParameters() is a viable option but I'm not quite sure if this is the way to go. Another way of getting

Re: Accessing PageParameters within Panel

2015-03-12 Thread Martin Grigorov
and Consulting https://twitter.com/mtgrigorov On Thu, Mar 12, 2015 at 6:20 PM, David Kaufman david.kauf...@gmx.de wrote: Hi, I'm currently migrating a fairly large project from wicket 1.4 to wicket 6. We're currently getting the PageParameters from the RequestCycle via getRequestCycle

Re: PageParameters refresh on page reload

2014-05-22 Thread Edgar Merino
today: When an instance of a WebPage is created with some url parameters, the PageParameters object is never updated, that is, if I refresh the same webpage with different url parameters this won't be taken into account, instead the first params used to create the WebPage are used. Is there a way

PageParameters refresh on page reload

2014-05-21 Thread Edgar Merino
Hello, I've got a problem that I've just noticed today: When an instance of a WebPage is created with some url parameters, the PageParameters object is never updated, that is, if I refresh the same webpage with different url parameters this won't be taken into account, instead the first params

Re: PageParameters refresh on page reload

2014-05-21 Thread Martin Grigorov
Grigorov Wicket Training and Consulting On Wed, May 21, 2014 at 9:41 PM, Edgar Merino donvo...@gmail.com wrote: Hello, I've got a problem that I've just noticed today: When an instance of a WebPage is created with some url parameters, the PageParameters object is never updated, that is, if I refresh

Re: PageParameters are not extracted correctly from an Encoded URL

2014-05-19 Thread Martin Grigorov
Request to the delegate (i.e. the old request mapper). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageParameters-are-not-extracted-correctly-from-an-Encoded-URL-tp4665836.html Sent from the Users forum mailing list archive at Nabble.com

PageParameters are not extracted correctly from an Encoded URL

2014-05-14 Thread NickMoutsios
this? One solution would be to have tinymce not encoding the URL, but is there any other way to have, for example, the URL decoded prior to being handled by the ResourceMapper? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageParameters-are-not-extracted-correctly-from

Iterating through the Pageparameters

2014-01-31 Thread chathuraka.waas
this message in context: http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Iterating through the Pageparameters

2014-01-31 Thread Martin Grigorov
-the-Pageparameters-tp4664093.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: Iterating through the Pageparameters

2014-01-31 Thread chathuraka.waas
entry : parameters.entrySet()) {} but in wicket 6.13 this is not possible. how can this be achieved. Thanks in advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Iterating-through-the-Pageparameters-tp4664093.html Sent from the Users forum mailing

Should we expect empty PageParameters for pages that have such a constructor yet no parameters are available?

2014-01-15 Thread Paul Bors
? I've seen the tester use the page parameter constructor and pass it a reference to an empty PageParameters when I invoke tester.startPage(MyPage.class, null).

Re: Should we expect empty PageParameters for pages that have such a constructor yet no parameters are available?

2014-01-15 Thread Paul Bors
Btw, I just noticed that adding this constructor eliminates the problem: public MyPage() { this(null); } So I take it Wicket tries to build the page via the Page(PageParameters) but instead of using a null reference to the PageParameters it builds an object without any parameters

Re: Should we expect empty PageParameters for pages that have such a constructor yet no parameters are available?

2014-01-15 Thread Martin Grigorov
AFAIR if there are no request parameters then Wicket first uses the Java default constructor (no parameters) if available. If there is no such constructor then Wicket constructs an empty PageParameters and uses it for the constructor with PageParameters. If none are available then an error

Re: Should we expect empty PageParameters for pages that have such a constructor yet no parameters are available?

2014-01-15 Thread Paul Bors
. That scared me a bit. ie: I have customConstructors = new HashMapClass? extends AdminPage, PageParameters(); customConstructors.put(PageA.class, new PageParameters().set(pageID, -1)); customConstructors.put(PageB.class, new PageParameters().set(sessionID, -2)); and then later when running the test

Re: Should we expect empty PageParameters for pages that have such a constructor yet no parameters are available?

2014-01-15 Thread Martin Grigorov
instance used had the parameters combined from different instances. That scared me a bit. ie: I have customConstructors = new HashMapClass? extends AdminPage, PageParameters(); customConstructors.put(PageA.class, new PageParameters().set(pageID, -1)); customConstructors.put(PageB.class, new

Re: pageparameters in link onclick

2012-12-10 Thread Martin Grigorov
/1 and a redirect will be made to /req/post/1?pageId only if the page is stateful. On Sat, Dec 8, 2012 at 2:32 PM, Kurt Sys kurt@gmail.com wrote: Hey, I'm having some issues with pageparameters. I'm upgrading from wicket 1.4.x to 1.6.x. Most is done, however, I can't get pageparameters

Re: pageparameters in link onclick

2012-12-10 Thread Kurt Sys
Hey Martin, It's not about 'nice urls' as such, but with the Link-component, the page doesn't redirect to /req/post/1. The redirection worked fine in 1.4.x, but in 1.6.x, it didn't work anymore. Dunno exactly why, but all the links redirected to /post/62, not using/reading the PageParameters

pageparameters in link onclick

2012-12-08 Thread Kurt Sys
Hey, I'm having some issues with pageparameters. I'm upgrading from wicket 1.4.x to 1.6.x. Most is done, however, I can't get pageparameters to work properly. -- MainApp defines how I mount the pages, i.e. with two optional parameters (type and id): -- HomePage.java is nothing special but just

Re: How To Pass Objects through PageParameters in Wicket 1.5

2012-10-11 Thread Martin Grigorov
. Thanks in advance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-To-Pass-Objects-through-PageParameters-in-Wicket-1-5-tp4652830.html Sent from the Users forum mailing list archive at Nabble.com

Re: How To Pass Objects through PageParameters in Wicket 1.5

2012-10-11 Thread venkat
not be accurate. Thanks Venkat -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-To-Pass-Objects-through-PageParameters-in-Wicket-1-5-tp4652830p4652870.html Sent from the Users forum mailing list archive at Nabble.com

How To Pass Objects through PageParameters in Wicket 1.5

2012-10-10 Thread venkat
of the crux in this case is my parent window is in side a tabbed panel, I doubt this might be forcing it to fail to set up. I would appreciate a quick response. Thanks in advance! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-To-Pass-Objects-through-PageParameters

Re: Auto PageParameters from a POJO?

2012-09-18 Thread Martin Grigorov
Hi, On Tue, Sep 18, 2012 at 5:09 AM, Ondrej Zizka ozi...@redhat.com wrote: Hi, I found myself repeatedly creating a PageParameters object from some domain object for BookmarkablePageLink just to have it then parsed back to that same domain object. Example: Release rel { product

Re: Auto PageParameters from a POJO?

2012-09-18 Thread Thomas Götz
java.io.Serializable; import java.util.HashMap; import java.util.Map; public class PageParametersTest { @Test public void testPageParameters() { // toPageParameters MyBean bean = new MyBean(foo, bar); final PageParameters pageParameters = toPageParameters(bean

Re: Auto PageParameters from a POJO?

2012-09-18 Thread vineet semwal
() ); } } if you don't want to serialize release object,you can just serialize it's key and retrieve release object from it On Tue, Sep 18, 2012 at 7:39 AM, Ondrej Zizka ozi...@redhat.com wrote: Hi, I found myself repeatedly creating a PageParameters object from some domain object

Auto PageParameters from a POJO?

2012-09-17 Thread Ondrej Zizka
Hi, I found myself repeatedly creating a PageParameters object from some domain object for BookmarkablePageLink just to have it then parsed back to that same domain object. Example: Release rel { product: AS; version: 7.1.2 } = add( new BookmarkablePageLink ( link, ReleasePage.class

Re: PagingNavigator with additionnal pageParameters

2012-07-20 Thread chimaira
Any idea ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PagingNavigator-with-additionnal-pageParameters-tp4650631p4650645.html Sent from the Users forum mailing list archive at Nabble.com

Re: PagingNavigator with additionnal pageParameters

2012-07-20 Thread Sven Meier
Subclass PagingNavigator and override new...Link() Sven chimaira death_style2...@hotmail.com schrieb: Any idea ? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PagingNavigator-with-additionnal-pageParameters-tp4650631p4650645.html Sent from the Users forum

Re: PagingNavigator with additionnal pageParameters

2012-07-20 Thread chimaira
Hi , thanks for replay, I tried it, but the overriden methods return a usual links. with no pageparameters attribut. @Override protected AbstractLink newPagingNavigationLink(String id, IPageable pageable, int pageNumber) { return super.newPagingNavigationLink(id

Re: PagingNavigator with additionnal pageParameters

2012-07-20 Thread Sven Meier
Google for wicket bookmarkable paging navigator Sven chimaira death_style2...@hotmail.com schrieb: Hi , thanks for replay, I tried it, but the overriden methods return a usual links. with no pageparameters attribut. @Override protected AbstractLink newPagingNavigationLink(String id

PagingNavigator with additionnal pageParameters

2012-07-19 Thread chimaira
. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PagingNavigator-with-additionnal-pageParameters-tp4650631.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail

PageParameters in 1.5.3 vs 1.5.4

2012-02-15 Thread Lawrence, Sean
Hi, I'm noticing a difference in the way search parameters are handled in 1.5.4 vs 1.5.3 after upgrading wicket. Basically, identical parameters are eliminated. See example below Passing the identical list of search parameters to our SearchResultsPage: URL with 1.5.3:

PageParameters in 1.5: a sanity check request

2011-11-23 Thread Ian Marshall
) !liSVs.isEmpty()) ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageParameters-in-1-5-a-sanity-check-request-tp4099136p4099136.html Sent from the Users forum mailing list archive at Nabble.com

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread vineet semwal
/PageParameters-in-1-5-a-sanity-check-request-tp4099136p4099136.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

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread Matthias Keller
Hi And you can even leave away the if(params.getNamedKeys().contains(parameter_name)) and just do: StringValue param = params.get(param); // or use an index if you wish if (!param.isEmpty()) { ... param.toString() ... } Matt On 2011-11-23 12:17, vineet semwal wrote: ListStringValue

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread vineet semwal
ha yes just checked out the source ,thanks :) On Wed, Nov 23, 2011 at 5:46 PM, Matthias Keller matthias.kel...@ergon.ch wrote: Hi And you can even leave away the if(params.getNamedKeys().contains(parameter_name)) and just do: StringValue param = params.get(param); // or use an index if

Re: PageParameters in 1.5: a sanity check request

2011-11-23 Thread Ian Marshall
Thanks for your comments, Guys. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/PageParameters-in-1-5-a-sanity-check-request-tp4099136p4099956.html Sent from the Users forum mailing list archive at Nabble.com

Modifying PageParameters

2011-11-10 Thread Jochen Mader
. For an AjaxLink using setResponsePage I thought the following would be the thing to do: Use onRequestHandlerExecuted to do the stuff at the end of the request. There I look for an IPageRequestHandler and modify its PageParameters using one of the following methods: pageHandler.getPage

Re: Modifying PageParameters

2011-11-10 Thread Igor Vaynberg
the stuff at the end of the request. There I look for an IPageRequestHandler and modify its PageParameters using one of the following methods: pageHandler.getPage().getPageParameters().add(WeldMetaData.CONVERSATIONID, conversation.getId()); pageHandler.getPageParameters().add

Re: Modifying PageParameters

2011-11-10 Thread Jochen Mader
. For an AjaxLink using setResponsePage I thought the following would be the thing to do: Use onRequestHandlerExecuted to do the stuff at the end of the request. There I look for an IPageRequestHandler and modify its PageParameters using one of the following methods: pageHandler.getPage

Re: Upgrade 1.5 - PageParameters#toRequestParameters

2011-10-05 Thread Martin Grigorov
PageParameters, which returns all Parameters as Maplt;String,String[]gt; is gone, what to use instead? Thanks Marti -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-1-5-PageParameters-toRequestParameters-tp3871781p3871781.html Sent from the Users forum mailing

Re: Upgrade 1.5 - PageParameters#toRequestParameters

2011-10-05 Thread splitshade
Hi, sure I can, I just wanted to make sure, that I haven´t overseen an already implemented solution. Thank you Martin. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-1-5-PageParameters-toRequestParameters-tp3871781p3874199.html Sent from the Users forum

Upgrade 1.5 - PageParameters#toRequestParameters

2011-10-04 Thread splitshade
Hi, in 1.5 the Method toRequestParameters in class PageParameters, which returns all Parameters as Maplt;String,String[]gt; is gone, what to use instead? Thanks Marti -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Upgrade-1-5-PageParameters-toRequestParameters

Re: BookmarkablePageLink PageParameters

2011-09-29 Thread Martin Grigorov
with a given key. Is there a reason why the functionality to add multiple parameters of the same key is taken out of BookmarkablePageLink? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BookmarkablePageLink-PageParameters-tp3852163p3852163.html Sent from the Users

HomePage with PageParameters wicket 1.5

2011-09-15 Thread Mikko Pukki
Hi, Is there any reasonable way to set PageParameters for home page. In wicket 1.4 it was possible to override WebRequestCycleProcessor's resolveHomePageTarget method and add RequestParameters for the request. We do use this functionality because application has customizable home pages per user

Re: HomePage with PageParameters wicket 1.5

2011-09-15 Thread Igor Vaynberg
i dont really understand your question. homepage should be accessible without parameters, but in any case urlfor(homepage.class, pageparameters) should generate a correct url... -igor On Thu, Sep 15, 2011 at 9:06 AM, Mikko Pukki mikko.pu...@syncrontech.com wrote: Hi, Is there any reasonable

Re: HomePage with PageParameters wicket 1.5

2011-09-15 Thread Martin Grigorov
mikko.pu...@syncrontech.com wrote: Hi, Is there any reasonable way to set PageParameters for home page. In wicket 1.4 it was possible to override WebRequestCycleProcessor's resolveHomePageTarget method and add RequestParameters for the request. We do use this functionality because application has

PageParameters with a Data Bean (Custom Object)?

2011-08-29 Thread eugenebalt
I need to construct a page from a bean object. Ideally, I'd pass a custom Object to PageParameters params = new PageParameters(); params.add(bean, bean); but it's not letting me do that... only Strings. Any suggestions? Thanks -- View this message in context: http://apache-wicket.1842946.n4

Re: PageParameters with a Data Bean (Custom Object)?

2011-08-29 Thread Martin Grigorov
new MyPage(bean); On Mon, Aug 29, 2011 at 5:01 PM, eugenebalt eugeneb...@yahoo.com wrote: I need to construct a page from a bean object. Ideally, I'd pass a custom Object to PageParameters params = new PageParameters(); params.add(bean, bean); but it's not letting me do that... only

PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Fabio Cechinel Veronez
Hello all, I was in doubt whether this message should be sent to user or dev list so following http://wicket.apache.org/help/email.html page recommendation I'm sending it to user list. Well, I was trying wicket-1.5-RC5.1 and I notice that PageParameters class implements two new interfaces

Re: PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Martin Grigorov
it to user list. Well, I was trying wicket-1.5-RC5.1 and I notice that PageParameters class implements two new interfaces IIndexedParameters and INamedParameters. What called my attention was that methods defined at those interfaces are defined to return the implementation type (PageParameters

Re: PageParameters, IIndexedParameters, INamedParameters hierarchy on wicket 1.5

2011-07-13 Thread Martin Grigorov
whether this message should be sent to user or dev list so following http://wicket.apache.org/help/email.html page recommendation I'm sending it to user list. Well, I was trying wicket-1.5-RC5.1 and I notice that PageParameters class implements two new interfaces IIndexedParameters

BrowserInfoPage loses PageParameters on redirect from 3rd party

2011-05-27 Thread shetc
is using a POST to send the parameters. The PageParameters arrive at the page but are lost when the call to Session.getClientInfo() is made. This would appear to happen in the constructor for the BrowserInfoPage but I'm not sure why. Any advice would be appreciated. Thanks, Steve Wicket v1.4.10

Use pageparameters from authorized page to login

2011-05-25 Thread Marieke Vandamme
Hello, In my application all the pages are restricted using the MetaDataRoleAuthorizationStrategy. I want to give my user the ability to directly see the data from such a page using pageParameters: - http://www.mysite.com/page1.html?login=abcpass=123 - http://www.mysite.com/page2.html?login

Re: Use pageparameters from authorized page to login

2011-05-25 Thread Bas Gooren
Hi, You can always get the PageParameters from the page itself (given you received them in the constructor). In case you do not want to handle this on a page-by-page basis, they are also available through the RequestCycle (in wicket 1.4). You could check if the params contain login and pass

Re: Use pageparameters from authorized page to login

2011-05-25 Thread Marieke Vandamme
Thanks for the answer, but I don't know how to get the PageParameters from the RequestCycle in the LoginPage, therefore some more information: - my application extends AuthenticatedWebApplication - the init of my Page1 or Page2 is never called because user is not authorized to see page (because

Re: Use pageparameters from authorized page to login

2011-05-25 Thread Andrea Del Bene
Hi Marieke, you could try to read page parameters before redirecting to interceptPage and build an instance of this page passing these parameters. Something like: //read parameters ...parameters = RequestCycle.get().getResquest().getQueryParameters() ; //convert parameters to PageParameters

Re: PageParameters and setResponsePage()

2011-05-05 Thread Martin Grigorov
we tried this we can see that setResponsePage gets correct set PageParameters, however on the page side the values are associated with keys that should have been empty strings. Example MixedParamUrlCodingStrategy search = new MixedParamUrlCodingStrategy(             MyHttpParams.SEARCH

Re: PageParameters and setResponsePage()

2011-05-05 Thread Peter Miklosko
Thank you for the tip Martin. Sorry to ask silly question, but where can I find API for 1.5-M3? I found this http://www.jarvana.com/jarvana/view/org/apache/wicket/wicket/1.5-M3/wicket-1.5-M3-javadoc.jar!/index.html but it is missing some classes like for example PageParameters. Or it is best

Re: PageParameters and setResponsePage()

2011-05-05 Thread Martin Grigorov
/apache/wicket/wicket/1.5-M3/wicket-1.5-M3-javadoc.jar!/index.html but it is missing some classes like for example PageParameters. Or it is best to download source and build it from it? Peter On 5 May 2011 07:03, Martin Grigorov mgrigo...@apache.org wrote: I can only suggest you to use Wicket

Re: PageParameters and setResponsePage()

2011-05-05 Thread Peter Miklosko
I downloaded RC3, but even after building API from source (mvn javadoc:javadoc) when I open documentation in wicket-core/target/site/apidoc there is no package parameters inside org.apache.wicket.request.mapper and because of that no PageParameters class documentation. Any suggestions? Peter

Re: PageParameters and setResponsePage()

2011-05-05 Thread Martin Grigorov
org.apache.wicket.request.mapper and because of that no PageParameters class documentation. Any suggestions? Peter On 5 May 2011 10:37, Martin Grigorov mgrigo...@apache.org wrote: Download the jar from Maven repos. Latest version is RC3, not M3. On Thu, May 5, 2011 at 11:17 AM, Peter Miklosko peter.b

Re: PageParameters and setResponsePage()

2011-05-05 Thread Peter Miklosko
from source (mvn javadoc:javadoc) when I open documentation in wicket-core/target/site/apidoc there is no package parameters inside org.apache.wicket.request.mapper and because of that no PageParameters class documentation. Any suggestions? Peter On 5 May 2011 10:37, Martin

Re: PageParameters and setResponsePage()

2011-05-05 Thread Martin Grigorov
org.apache.wicket.request.mapper and because of that no PageParameters class documentation. Any suggestions? Peter On 5 May 2011 10:37, Martin Grigorov mgrigo...@apache.org wrote: Download the jar from Maven repos. Latest version is RC3, not M3. On Thu, May 5, 2011 at 11:17 AM, Peter Miklosko

PageParameters and setResponsePage()

2011-05-04 Thread Peter Miklosko
are not specified these will get empty string as value. However when we tried this we can see that setResponsePage gets correct set PageParameters, however on the page side the values are associated with keys that should have been empty strings. Example MixedParamUrlCodingStrategy search = new

Re: PageParameters and setResponsePage()

2011-05-04 Thread Peter Miklosko
PageParameters, however on the page side the values are associated with keys that should have been empty strings. Example MixedParamUrlCodingStrategy search = new MixedParamUrlCodingStrategy( MyHttpParams.SEARCH, SearchDestinationPage.class, new String

Re: Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-12 Thread Serban Balamaci
Hello Pedro, In my mind IRequestParameters and PageParameters should have stemmed from a common interface, extend some even generic one like(IKeyValues, IParams) but I trust you guys see the bigger picture maybe IRequestParameters is a very generic thing that doesn't have to mean a page's

Re: Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-12 Thread Martin Grigorov
); + getBehaviorId(behavior); but it breaks few test expectations and I haven't had time to see whether this is harmful somehow. On Tue, Apr 12, 2011 at 10:51 AM, Serban Balamaci serban.balam...@asf.rowrote: Hello Pedro, In my mind IRequestParameters and PageParameters should have

Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-11 Thread Serban Balamaci
Hello everybody, I''m in the process of migrating an app from 1.4 to 1.5-RC3 I see that the PageParameters and IRequestParameters are pretty separate things now. Any reason why it's done this way and why they not extend a Common Interface that exposes methods like getParameterNames

Re: Wicket 1.5 PageParameters vs IRequestParameters question.

2011-04-11 Thread Pedro Santos
IRequestParameters interface has PageParameters correspondent API to access page parameters. Can be accessed like: RequestCycle.get().getRequest().getQueryParameters() If you want to recreate page parameters for some request, you can use the PageParametersEncoder. On Mon, Apr 11, 2011 at 12:06

Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Alec Swan
Hello, I have a form which calls the following statement in its onSubmit() method: setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2)) NOTE: The MyPage construtor calls WebPage constructor as super(pageParameters) and then adds extraParam1 and extraParam2

Re: Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Igor Vaynberg
the following statement in its onSubmit() method: setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2)) NOTE: The MyPage construtor calls WebPage constructor as super(pageParameters) and then adds extraParam1 and extraParam2 to WebPage.getPageParameters() map. The end-result

Re: Not bookmarkable setResponsePage(new MyPage(pageParameters, extraParam1, extraParam2))

2011-03-08 Thread Martijn Dashorst
Wicket only knows how to construct bookmarkable pages when they have either a default constructor or a constructor taking *only* pageparameters. Any other constructor is outside the realm of wicket's capabilities and responsibility. In your case, how could Wicket construct the page when

RestartResponseAtInterceptPageException / redirectToInterceptPage with PageParameters

2010-10-28 Thread Vishal Popat
it goes to the login page and then back to the info page but without the PageParameters. Therefore the url is incorrect- it has ?wicket:interface=:1:1::: and then some of my data is missing because it requires the PageParameters. How can pass the PageParameters through? Many thanks Vishal

Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-13 Thread Jeremy Thomerson
? Without generic type it is the same problem. I´m using 1.4.9. I have the same problem if I don´t use PageParameters and mount(/some/path, PackageName.forClass(Test1.class)) Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage

Authorization using PageParameters

2010-10-06 Thread Peter Munro
Hi all, I'm confused... I'd like to setup authorization for a page, where the authorization decision is based on the parameters passed to the page. For example, http://blahblah/MyPage/?date=2010-10-06 would authorize correctly (show the page), but previous dates would not. Subclassing

Re: Authorization using PageParameters

2010-10-06 Thread Martin Grigorov
Try with WebRequestCycle.get().getWebRequest().getParameters() or something like that. On Wed, Oct 6, 2010 at 2:53 PM, Peter Munro spelud...@gmail.com wrote: Hi all, I'm confused... I'd like to setup authorization for a page, where the authorization decision is based on the parameters passed

Re: Authorization using PageParameters

2010-10-06 Thread Peter Munro
Huge thanks to both Eike and Martin. They both work, so I'm figuring out the best approach. I'll probably go with Martin's. BTW, for anyone googling the archive, either: - WebRequestCycle.get().getPageParameters(), or - WebRequestCycle.get().getRequest().getParameter(myparam) will do the

Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-05 Thread Altuğ Bilgin Altıntaş
:8080/home. Fine! Now I have two pages Test1 and Test2. For both I´ve called mountBookmarkablePage... mountBookmarkablePage(/test1, Test1.class) mountBookmarkablePage(/test2, Test2.class) And I have two BookmarkablePageLink (one for each page) with PageParameters on every Page... add(new

Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-05 Thread virtualizer
Altuğ Bilgin Altıntaş wrote: Also could you please try without Test1 just add(new BookmarkablePageLink(testlink1, Test1.class, pp)); Which wicket version ? Without generic type it is the same problem. I´m using 1.4.9. I have the same problem if I don´t use PageParameters

Re: mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-05 Thread Altuğ Bilgin Altıntaş
using 1.4.9. I have the same problem if I don´t use PageParameters and mount(/some/path, PackageName.forClass(Test1.class)) Thanks! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/mountBookmarkablePage-and-BookmarkablePageLink-with-PageParameters-tp2954926p2955651

mountBookmarkablePage and BookmarkablePageLink with PageParameters

2010-10-04 Thread virtualizer
.class) And I have two BookmarkablePageLink (one for each page) with PageParameters on every Page... add(new BookmarkablePageLinkTest1(testlink1, Test1.class, pp)); add(new BookmarkablePageLinkTest2(testlink2, Test1.class, pp)); ...where pp is test=hello. If I´ve loaded the page with url

Re: non-bookmarkable pages with pageparameters?

2010-07-07 Thread Erik van Oosten
use the method setResponsePage(Class, PageParameters) Erik. Op 06-07-10 16:24, Muro Copenhagen schreef: Hi Erik, I tried that with no luck... How would i do this: setResponsePage(new DeliverySecure(deliveryInfo)), and at the same time send pageparameters to the same page? Best Regards

non-bookmarkable pages with pageparameters?

2010-07-06 Thread Muro Copenhagen
() { this(new DeliveryInfo()); } public DeliverySecure(DeliveryInfo deliveryInfo) { ... } This page is called to separete ways: 1 - setResponsePage(DeliverySecure.class, new PageParameters(secure=on)); 2- setResponsePage(new DeliverySecure(deliveryInfo)); When i call

  1   2   3   >