You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lucaabbati <lu...@gmail.com> on 2012/01/27 22:09:14 UTC

Listing all the mounted pages

Hi everybody,

I have a question and I couldn't figure out on my own the answer...neither
reading here nor looking documentation around.

There is a way to list all the pages mounted?

For example, let's say that in the init method of my Application I did the
following:

mountPage("page1", Class1Name.class);
mountPage("page2", Class2Name.class);

Is there a method to retrieve the list (of the two mounted pages) at
runtime?

Thanks a lot in advance

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-tp4334718p4334718.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: Listing all the mounted pages

Posted by lucaabbati <lu...@gmail.com>.
Thanks again

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-tp4334718p4336999.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: Listing all the mounted pages

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
That's the way we've done it too as in our app we have found the need to
do a 'reverse lookup' of mounted path -> page class.

>-----Original Message-----
>From: lucaabbati [mailto:luca.abbati@gmail.com]
>Sent: Sunday, 29 January 2012 5:40 AM
>To: users@wicket.apache.org
>Subject: Re: Listing all the mounted pages
>
>Hi, thank you very much. Actually that was my B plan in case that
wicket
>had
>not this functionality, and your answer tells me that this is a good
way to
>go.
>
>Thanks a lot.
>Bye
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-
>tp4334718p4336611.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


Re: Listing all the mounted pages

Posted by lucaabbati <lu...@gmail.com>.
Hi, thank you very much. Actually that was my B plan in case that wicket had
not this functionality, and your answer tells me that this is a good way to
go.

Thanks a lot.
Bye

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-tp4334718p4336611.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: Listing all the mounted pages

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

There is no such functionality in Wicket.
You can create your own #mountpage() that registers the needed
information and delegates to #mountPage() to do its job.
Then you can get this info from MyApp.get().getMyInfo()

On Fri, Jan 27, 2012 at 11:09 PM, lucaabbati <lu...@gmail.com> wrote:
> Hi everybody,
>
> I have a question and I couldn't figure out on my own the answer...neither
> reading here nor looking documentation around.
>
> There is a way to list all the pages mounted?
>
> For example, let's say that in the init method of my Application I did the
> following:
>
> mountPage("page1", Class1Name.class);
> mountPage("page2", Class2Name.class);
>
> Is there a method to retrieve the list (of the two mounted pages) at
> runtime?
>
> Thanks a lot in advance
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Listing-all-the-mounted-pages-tp4334718p4334718.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
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org