Re: Pretty URLs for AjaxLazyLoadPanel

2012-05-29 Thread kevjay
Thanks for the reply Martin.  Basically, my use case is to provide a pretty
URL that will have the non-default tab already selected.  The desired tab is
selected if I provide a URL like
http://localhost:/?1-1.ILinkListener-tabs-tabs~container-tabs-2-link,
but I was hoping to be able to control what these URLs looked like.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pretty-URLs-for-AjaxLazyLoadPanel-tp4649499p4649552.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: Pretty URLs for AjaxLazyLoadPanel

2012-05-29 Thread kevjay
Thanks for the explanation.  This is what I was looking for.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pretty-URLs-for-AjaxLazyLoadPanel-tp4649499p4649555.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: Pretty URLs for AjaxLazyLoadPanel

2012-05-29 Thread Martin Grigorov
You can also use url like: path/to/page/tab2
where 'tab2' is an indexed parameter. In this case you will have its
value in the page's constructor and you can load the page with 'tab2'
pre-selected.

On Tue, May 29, 2012 at 9:51 PM, kevjay kev...@gmail.com wrote:
 Thanks for the explanation.  This is what I was looking for.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Pretty-URLs-for-AjaxLazyLoadPanel-tp4649499p4649555.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




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

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



Re: Pretty URLs for AjaxLazyLoadPanel

2012-05-28 Thread Martin Grigorov
Hi,

Only pages may have pretty urls.
AjaxLazyLoadPanel is a component and it should be used inside a page.
Additionally it needs to find the exact page instance. Read about
stateful components for more info.

What is your use case ?
Why you need to make requests to an Ajax component ?

It is possible to mount a component by mounting a custom
IRequestMapper that returns ComponentRenderingRequestHandler in its
#mapRequest() method but the result will be just the markup of the
component, e.g. div.../div. But I cannot guarantee that this will
work because AjaxLazyLoadPanel needs to contribute some JavaScript to
be able to work and there wont be head in this response ...

On Fri, May 25, 2012 at 9:01 PM, kevjay kev...@gmail.com wrote:
 I'm using AjaxTabbedPanel and AjaxLazyLoadPanel.  How do I make the URLs for
 the individual panels the way I want?  Right now, a link to a specific panel
 looks like
 http://localhost:/?1-1.ILinkListener-tabs-tabs~container-tabs-2-link.
 How do I make it something like http://localhost:/myTab2?  I cannot seem
 to find a way.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Pretty-URLs-for-AjaxLazyLoadPanel-tp4649499.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




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

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



Pretty URLs for AjaxLazyLoadPanel

2012-05-25 Thread kevjay
I'm using AjaxTabbedPanel and AjaxLazyLoadPanel.  How do I make the URLs for
the individual panels the way I want?  Right now, a link to a specific panel
looks like
http://localhost:/?1-1.ILinkListener-tabs-tabs~container-tabs-2-link. 
How do I make it something like http://localhost:/myTab2?  I cannot seem
to find a way.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Pretty-URLs-for-AjaxLazyLoadPanel-tp4649499.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