webtier@glassfish.java.net

Re: [webtier] <h:link> loses the anchor information

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Fri, 23 Jul 2010 09:49:28 -0700

  Change:

<h:link outcome="/page1.xhtml#a123">link</h:link>

To:

<h:link outcome="/page1.xhtml" fragment="a123">link</h:link>


On 7/23/10 7:36 AM, webtier_at_javadesktop.org wrote:
> Hi
>
> I use a link like this:
> <h:link outcome="/page1.xhtml#a123">link</h:link>
> to open the page1 and jump directly to the anchor<a name="a123"></a>
>
> But the anchor information is lost. The browser opens /page1.xhtml.
> With debug, I think I found the place where the anchor is lost:
> MultiViewHandler#appendOrReplaceExtension(String viewId, String ext, int length, int extIdx, StringBuilder buffer)
>
> Is it a bug?
> Or am I misusing the h:link tag?
>
> Yann
> [Message sent by forum member 'yannsimon']
>
> http://forums.java.net/jive/thread.jspa?messageID=478405
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>