webtier@glassfish.java.net

<h:link> loses the anchor information

From: <webtier_at_javadesktop.org>
Date: Fri, 23 Jul 2010 07:36:01 PDT

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