Skip to main content

loses the anchor information

3 replies [Last post]
yannsimon
Offline
Joined: 2007-08-14
Points: 0

Hi

I use a link like this:
link
to open the page1 and jump directly to the anchor

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

Change:

link

To:

link

On 7/23/10 7:36 AM, webtier@javadesktop.org wrote:
> Hi
>
> I use a link like this:
> link
> to open the page1 and jump directly to the anchor
>
> 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@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net

yannsimon
Offline
Joined: 2007-08-14
Points: 0

Thanks a lot!

It is now working.

nash_era
Offline
Joined: 2010-05-10
Points: 0

hi,
searched for named anchors on the net for JSF 2.0

there is a separate fragment attribute for h:button and h:link. Using this attribute you specify the named anchors like :
link

Don't include the pound sign in the fragment attribute

found this info from: http://www.informit.com/articles/article.aspx?p=1606899&seqNum=6

David Geary and Cay Horstmann to the rescue, once again :)