Is urlFor(Page page) available in the 1.3.7 release? I tried using the
urlFor method provided in the component, but I didn't see one that took a
page as a parameter. I'm in an enterprise environment that has me restricted
to that older package. :(

Zak

On Fri, Dec 11, 2009 at 11:29 AM, Igor Vaynberg <igor.vaynb...@gmail.com>wrote:

> urlfor exists on component, so you can simply say
>
> urlfor(page) inside any component method
>
> -gior
>
> On Fri, Dec 11, 2009 at 9:18 AM, Zak Johnson <zakinte...@gmail.com> wrote:
> > Thanks Igor, that lead me in the right direction. Here is what I did:
> >
> > page.getRequestCycle().urlFor(page);
> > That gave me the specific page url I was looking for.
> > Seems kinda roundabout, so if there is a better way, let me know.
> >
> > Thanks!
> >
> > Zak
> >
> > On Fri, Dec 11, 2009 at 10:49 AM, Igor Vaynberg <igor.vaynb...@gmail.com
> >wrote:
> >
> >> urlfor(page)
> >>
> >> -igor
> >>
> >> On Fri, Dec 11, 2009 at 7:36 AM, Zak Johnson <zakinte...@gmail.com>
> wrote:
> >> > Yes, your example is what I was doing in the past to execute the JS on
> >> the
> >> > form submit. My problem is getting the actual page url to feed into my
> JS
> >> > call. I know there is a way to get it because I've done it before, I
> just
> >> > can't remember how and I lost the original code.
> >> >
> >> > Zak
> >> >
> >> >
> >> > On Fri, Dec 11, 2009 at 9:25 AM, Martin Makundi <
> >> > martin.maku...@koodaripalvelut.com> wrote:
> >> >
> >> >> Hi!
> >> >>
> >> >> It is a bit similar to my problem once:
> >> >> http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00471.html
> >> >>
> >> >> The idea is that you do an ajax form submit, then you return an ajax
> >> >> response that opens the result popup window.
> >> >>
> >> >> **
> >> >> Martin
> >> >>
> >> >> 2009/12/11 Zak Johnson <zakinte...@gmail.com>:
> >> >> > So the reason I need this is because I have a requirement to submit
> a
> >> >> form
> >> >> > which keeps the main page constant but opens the result page in a
> new
> >> >> > window. Also, it can't be a modal window. I need to be able to
> popup
> >> >> several
> >> >> > windows without taking control away from the main page, and without
> >> >> re-using
> >> >> > the same popup. Not my favorite design choice, but it's a
> requirement
> >> >> that I
> >> >> > can't get around. I had done this before by just feeding the new
> page
> >> >> > instance URL to a javascript function to popup the windows.I was
> >> planning
> >> >> on
> >> >> > getting the base URL from RequestUtils and just appending the
> unique
> >> page
> >> >> > url to the end. If someone knows of a better way to do this, I'm
> all
> >> >> ears.
> >> >> >
> >> >> > Zak
> >> >> >
> >> >> > On Fri, Dec 11, 2009 at 9:10 AM, Martin Makundi <
> >> >> > martin.maku...@koodaripalvelut.com> wrote:
> >> >> >
> >> >> >> Why do you need it? Maybe there is a better way around it?
> >> >> >>
> >> >> >> **
> >> >> >> Martin
> >> >> >>
> >> >> >> 2009/12/11 Zak Johnson <zakinte...@gmail.com>:
> >> >> >> > I am trying to figure out a way to grab the url of a stateful
> page
> >> >> >> instance.
> >> >> >> > So for example, I want to click a link which creates a new page
> and
> >> >> >> before
> >> >> >> > redirecting to that page I want to grab the
> >> ?wicket:interface=:1::::
> >> >> part
> >> >> >> of
> >> >> >> > the URL. I stumbled across a simple way to do this before, but
> I've
> >> >> lost
> >> >> >> > that code and can't remember how I did it. I know I can use the
> >> page
> >> >> map
> >> >> >> > properties to get the page id and version, then just insert them
> >> into
> >> >> a
> >> >> >> > string but I have to believe there is a better way. Also, it's
> >> >> important
> >> >> >> > that I NOT use bookmarkable pages. Any ideas?
> >> >> >> >
> >> >> >> > Zak
> >> >> >> >
> >> >> >>
> >> >> >>
> ---------------------------------------------------------------------
> >> >> >> 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
>
>

Reply via email to