You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jahandideh_iman <ja...@yahoo.com> on 2015/03/04 12:12:25 UTC
Accessing Current Page In Custom Request Mapper
I'm new to wicket and I must create a custom REST api for wicket.
I managed to create a IRequestMapper for accepting REST messages but the
problem is I can't find a way to have access to current page to update it
based on the message.
It seems wicket find the current page based on the pageID that is provided
in url, but I don't want to use this method. Is there any other methods?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-Current-Page-In-Custom-Request-Mapper-tp4669833.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Current Page In Custom Request Mapper
Posted by jahandideh_iman <ja...@yahoo.com>.
I think I get your point now. Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-Current-Page-In-Custom-Request-Mapper-tp4669833p4669837.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Current Page In Custom Request Mapper
Posted by jahandideh_iman <ja...@yahoo.com>.
Thanks for your reply.
But it's not a real REST service. I won't go to the details but to be honest
this project is a mess.
There is a lot couplings between application logic and wicket so they want a
service to map JSON request to wicket.
I will ask more about your note, but aside from that, can I access the
current page at all?
For example something like Application.get().getCurrentPage()?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-Current-Page-In-Custom-Request-Mapper-tp4669833p4669835.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Accessing Current Page In Custom Request Mapper
Posted by Sven Meier <sv...@meiers.net>.
Hi,
there's no *current* page when a REST request comes in.
Your page should always fetch the current state from a central shared
place. It can use an Ajax timer to check for updates or just live with
outdated data until the next page refresh.
Regards
Sven
Am 04.03.2015 um 12:12 schrieb jahandideh_iman:
> I'm new to wicket and I must create a custom REST api for wicket.
> I managed to create a IRequestMapper for accepting REST messages but the
> problem is I can't find a way to have access to current page to update it
> based on the message.
> It seems wicket find the current page based on the pageID that is provided
> in url, but I don't want to use this method. Is there any other methods?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Accessing-Current-Page-In-Custom-Request-Mapper-tp4669833.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org