More to the point, the PORTAL will change the #, not JSF. If you're
interested in a technical explanation let me know. :)
Scott
Alexander Wallace wrote:
I guess you are saying that JSF will change the # into something... If
i use a link out of JSF the anchor works fine... I'll see about using
verbatim or something around those lines then...
thanks!
On Nov 29, 2007, at 1:29 PM, Scott O'Bryan wrote:
Alex,
Yeah, that's not going to work. In the servlet case, what you are
proposing does just fine, but in the portlet case, encoded url's
actually turn into something entirely different and the bookmark (#)
notation is not something that is supported by JSR168. I would look
at having your portlet use javascript to set focus on your portlet or
recommend that people put fewer portlets on the screen at any given
time.
:) Scott
Alexander Wallace wrote:
Hi!
I'm developing portlets and the portal allows me to position the
screen on a particular portlet using anchors... Like
#p_my_particular_portlet ....
I have a portlet with links to other pages and I want to use the
anchors to give focus to my_particular_portlet
When i do this in an outputLink in my faces ie:
/my_page#p_my_particular_portlet, myfaces turns the # into the html
entity and the anchor is thusly broken... It won't give focus to my
portlet... I've tried entering the html entity even but then an
entity for the % is added too... So that doesn't work...
Has anyone been able to succesfully use # in urls in outputLinks?
(i'm using myfaces 1.1.4 btw)
Thanks!