You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Craig Tataryn <cr...@tataryn.net> on 2008/10/01 21:04:18 UTC

Having Wicket append #someanchor

I was wondering if there is a way to have Wicket append some anchor
information to a response page?

So if I were on: MyPage.html, then they click a submit button and the server
side codes does a setResponsePage(MyPage.class) I would want the actual page
to be MyPage.html#someanchor

A suggestion on ##wicket was to do a redirect through httpServletResponse
and rewrite the url myself, but I wanted to know if Wicket supported this a
bit more "out of the box"

Thanks!

Craig.

-- 
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger316@hotmail.com, skype: craig.tataryn

Re: Having Wicket append #someanchor

Posted by Daniele Dellafiore <il...@gmail.com>.
there is nothing better tehn this today for setResponsePage + Anchor?
This solution would also be acceptable but as long as encode method in
some strategy is final, it is not applicable at all but copying and
changin wicket code...

On Tue, Oct 7, 2008 at 9:11 AM, kan <ka...@gmail.com> wrote:
> 2008/10/7 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
>> :)
> Huh? :)
> Yes, not brilliant solution but works for some cases... ;)
> Actually it's quite possible to make it for all strategies, but
> requires  to change wicket code.
>
> --
> WBR, kan.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Daniele Dellafiore
http://danieledellafiore.net

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


Re: Having Wicket append #someanchor

Posted by kan <ka...@gmail.com>.
2008/10/7 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
> :)
Huh? :)
Yes, not brilliant solution but works for some cases... ;)
Actually it's quite possible to make it for all strategies, but
requires  to change wicket code.

-- 
WBR, kan.

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


Re: Having Wicket append #someanchor

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
:)

kan wrote:
> http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-Howtoadd%23anchor(opaque)topageurl%3F
>
> 2008/10/6 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
>   
>> Could you add it to the wiki?
>>
>> http://cwiki.apache.org/WICKET/
>>
>> kan wrote:
>>     
>>> I've made custom url coding strategy which finds key named "#" in
>>> PageParameters and encodes it as anchor part (opaque part).
>>>
>>> 2008/10/2 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
>>>
>>>       
>>>> I would probably just do a simple javascript and make a
>>>> headercontribution... But I guess it's not really the standard way when
>>>> it
>>>> comes to anchors...
>>>>
>>>> Craig Tataryn wrote:
>>>>
>>>>         
>>>>> *bump*
>>>>>
>>>>> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net>
>>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> I was wondering if there is a way to have Wicket append some anchor
>>>>>> information to a response page?
>>>>>>
>>>>>> So if I were on: MyPage.html, then they click a submit button and the
>>>>>> server side codes does a setResponsePage(MyPage.class) I would want the
>>>>>> actual page to be MyPage.html#someanchor
>>>>>>
>>>>>> A suggestion on ##wicket was to do a redirect through
>>>>>> httpServletResponse
>>>>>> and rewrite the url myself, but I wanted to know if Wicket supported
>>>>>> this
>>>>>> a
>>>>>> bit more "out of the box"
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> Craig.
>>>>>>
>>>>>> --
>>>>>> Craig Tataryn
>>>>>> site: http://www.basementcoders.com/
>>>>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>>>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>>>>> im: craiger316@hotmail.com, skype: craig.tataryn
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>>
>>>>>           
>>>> --
>>>> -Wicket for love
>>>>
>>>> Nino Martinez Wael
>>>> Java Specialist @ Jayway DK
>>>> http://www.jayway.dk
>>>> +45 2936 7684
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>>
>>>>         
>>>
>>>
>>>       
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


Re: Having Wicket append #someanchor

Posted by kan <ka...@gmail.com>.
http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-Howtoadd%23anchor(opaque)topageurl%3F

2008/10/6 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
> Could you add it to the wiki?
>
> http://cwiki.apache.org/WICKET/
>
> kan wrote:
>>
>> I've made custom url coding strategy which finds key named "#" in
>> PageParameters and encodes it as anchor part (opaque part).
>>
>> 2008/10/2 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
>>
>>>
>>> I would probably just do a simple javascript and make a
>>> headercontribution... But I guess it's not really the standard way when
>>> it
>>> comes to anchors...
>>>
>>> Craig Tataryn wrote:
>>>
>>>>
>>>> *bump*
>>>>
>>>> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net>
>>>> wrote:
>>>>
>>>>
>>>>
>>>>>
>>>>> I was wondering if there is a way to have Wicket append some anchor
>>>>> information to a response page?
>>>>>
>>>>> So if I were on: MyPage.html, then they click a submit button and the
>>>>> server side codes does a setResponsePage(MyPage.class) I would want the
>>>>> actual page to be MyPage.html#someanchor
>>>>>
>>>>> A suggestion on ##wicket was to do a redirect through
>>>>> httpServletResponse
>>>>> and rewrite the url myself, but I wanted to know if Wicket supported
>>>>> this
>>>>> a
>>>>> bit more "out of the box"
>>>>>
>>>>> Thanks!
>>>>>
>>>>> Craig.
>>>>>
>>>>> --
>>>>> Craig Tataryn
>>>>> site: http://www.basementcoders.com/
>>>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>>>> im: craiger316@hotmail.com, skype: craig.tataryn
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>>
>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
WBR, kan.

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


Re: Having Wicket append #someanchor

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Could you add it to the wiki?

http://cwiki.apache.org/WICKET/

kan wrote:
> I've made custom url coding strategy which finds key named "#" in
> PageParameters and encodes it as anchor part (opaque part).
>
> 2008/10/2 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
>   
>> I would probably just do a simple javascript and make a
>> headercontribution... But I guess it's not really the standard way when it
>> comes to anchors...
>>
>> Craig Tataryn wrote:
>>     
>>> *bump*
>>>
>>> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net> wrote:
>>>
>>>
>>>       
>>>> I was wondering if there is a way to have Wicket append some anchor
>>>> information to a response page?
>>>>
>>>> So if I were on: MyPage.html, then they click a submit button and the
>>>> server side codes does a setResponsePage(MyPage.class) I would want the
>>>> actual page to be MyPage.html#someanchor
>>>>
>>>> A suggestion on ##wicket was to do a redirect through httpServletResponse
>>>> and rewrite the url myself, but I wanted to know if Wicket supported this
>>>> a
>>>> bit more "out of the box"
>>>>
>>>> Thanks!
>>>>
>>>> Craig.
>>>>
>>>> --
>>>> Craig Tataryn
>>>> site: http://www.basementcoders.com/
>>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>>> im: craiger316@hotmail.com, skype: craig.tataryn
>>>>
>>>>
>>>>         
>>>
>>>
>>>       
>> --
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


Re: Having Wicket append #someanchor

Posted by kan <ka...@gmail.com>.
I've made custom url coding strategy which finds key named "#" in
PageParameters and encodes it as anchor part (opaque part).

2008/10/2 Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>:
> I would probably just do a simple javascript and make a
> headercontribution... But I guess it's not really the standard way when it
> comes to anchors...
>
> Craig Tataryn wrote:
>>
>> *bump*
>>
>> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net> wrote:
>>
>>
>>>
>>> I was wondering if there is a way to have Wicket append some anchor
>>> information to a response page?
>>>
>>> So if I were on: MyPage.html, then they click a submit button and the
>>> server side codes does a setResponsePage(MyPage.class) I would want the
>>> actual page to be MyPage.html#someanchor
>>>
>>> A suggestion on ##wicket was to do a redirect through httpServletResponse
>>> and rewrite the url myself, but I wanted to know if Wicket supported this
>>> a
>>> bit more "out of the box"
>>>
>>> Thanks!
>>>
>>> Craig.
>>>
>>> --
>>> Craig Tataryn
>>> site: http://www.basementcoders.com/
>>> podcast:http://feeds.feedburner.com/TheBasementCoders
>>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>>> im: craiger316@hotmail.com, skype: craig.tataryn
>>>
>>>
>>
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
WBR, kan.

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


Re: Having Wicket append #someanchor

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I would probably just do a simple javascript and make a 
headercontribution... But I guess it's not really the standard way when 
it comes to anchors...

Craig Tataryn wrote:
> *bump*
>
> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net> wrote:
>
>   
>> I was wondering if there is a way to have Wicket append some anchor
>> information to a response page?
>>
>> So if I were on: MyPage.html, then they click a submit button and the
>> server side codes does a setResponsePage(MyPage.class) I would want the
>> actual page to be MyPage.html#someanchor
>>
>> A suggestion on ##wicket was to do a redirect through httpServletResponse
>> and rewrite the url myself, but I wanted to know if Wicket supported this a
>> bit more "out of the box"
>>
>> Thanks!
>>
>> Craig.
>>
>> --
>> Craig Tataryn
>> site: http://www.basementcoders.com/
>> podcast:http://feeds.feedburner.com/TheBasementCoders
>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>> im: craiger316@hotmail.com, skype: craig.tataryn
>>
>>     
>
>
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


Re: Having Wicket append #someanchor

Posted by Craig Tataryn <cr...@tataryn.net>.
Ahh there's the guy I've been looking for :)

On Wed, Oct 1, 2008 at 8:24 PM, Igor Vaynberg <ig...@gmail.com>wrote:

> a bump after 6 hours...really?
>
> -igor
>
> On Wed, Oct 1, 2008 at 6:19 PM, Craig Tataryn <cr...@tataryn.net> wrote:
> > *bump*
> >
> > On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net>
> wrote:
> >
> >> I was wondering if there is a way to have Wicket append some anchor
> >> information to a response page?
> >>
> >> So if I were on: MyPage.html, then they click a submit button and the
> >> server side codes does a setResponsePage(MyPage.class) I would want the
> >> actual page to be MyPage.html#someanchor
> >>
> >> A suggestion on ##wicket was to do a redirect through
> httpServletResponse
> >> and rewrite the url myself, but I wanted to know if Wicket supported
> this a
> >> bit more "out of the box"
> >>
> >> Thanks!
> >>
> >> Craig.
> >>
> >> --
> >> Craig Tataryn
> >> site: http://www.basementcoders.com/
> >> podcast:http://feeds.feedburner.com/TheBasementCoders
> >> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> >> im: craiger316@hotmail.com, skype: craig.tataryn
> >>
> >
> >
> >
> > --
> > Craig Tataryn
> > site: http://www.basementcoders.com/
> > podcast:http://feeds.feedburner.com/TheBasementCoders
> > irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> > im: craiger316@hotmail.com, skype: craig.tataryn
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger316@hotmail.com, skype: craig.tataryn

Re: Having Wicket append #someanchor

Posted by Igor Vaynberg <ig...@gmail.com>.
a bump after 6 hours...really?

-igor

On Wed, Oct 1, 2008 at 6:19 PM, Craig Tataryn <cr...@tataryn.net> wrote:
> *bump*
>
> On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net> wrote:
>
>> I was wondering if there is a way to have Wicket append some anchor
>> information to a response page?
>>
>> So if I were on: MyPage.html, then they click a submit button and the
>> server side codes does a setResponsePage(MyPage.class) I would want the
>> actual page to be MyPage.html#someanchor
>>
>> A suggestion on ##wicket was to do a redirect through httpServletResponse
>> and rewrite the url myself, but I wanted to know if Wicket supported this a
>> bit more "out of the box"
>>
>> Thanks!
>>
>> Craig.
>>
>> --
>> Craig Tataryn
>> site: http://www.basementcoders.com/
>> podcast:http://feeds.feedburner.com/TheBasementCoders
>> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
>> im: craiger316@hotmail.com, skype: craig.tataryn
>>
>
>
>
> --
> Craig Tataryn
> site: http://www.basementcoders.com/
> podcast:http://feeds.feedburner.com/TheBasementCoders
> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> im: craiger316@hotmail.com, skype: craig.tataryn
>

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


Re: Having Wicket append #someanchor

Posted by Craig Tataryn <cr...@tataryn.net>.
*bump*

On Wed, Oct 1, 2008 at 2:04 PM, Craig Tataryn <cr...@tataryn.net> wrote:

> I was wondering if there is a way to have Wicket append some anchor
> information to a response page?
>
> So if I were on: MyPage.html, then they click a submit button and the
> server side codes does a setResponsePage(MyPage.class) I would want the
> actual page to be MyPage.html#someanchor
>
> A suggestion on ##wicket was to do a redirect through httpServletResponse
> and rewrite the url myself, but I wanted to know if Wicket supported this a
> bit more "out of the box"
>
> Thanks!
>
> Craig.
>
> --
> Craig Tataryn
> site: http://www.basementcoders.com/
> podcast:http://feeds.feedburner.com/TheBasementCoders
> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
> im: craiger316@hotmail.com, skype: craig.tataryn
>



-- 
Craig Tataryn
site: http://www.basementcoders.com/
podcast:http://feeds.feedburner.com/TheBasementCoders
irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin
im: craiger316@hotmail.com, skype: craig.tataryn