Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dhruv Pal
unable to use hyperlink in jsf
January 23, 2013 10:18 PM
Answer

Dhruv Pal

Rank: Junior Member

Posts: 82

Join Date: January 23, 2013

Recent Posts

Hi all

I am new to jsf and liferay.Please help me as I am not able to use hyperlink in jsf portlet ?
Neil Griffin
RE: unable to use hyperlink in jsf
January 24, 2013 11:05 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2041

Join Date: July 26, 2005

Recent Posts

In order to make a hyperlink in a JSF portlet, can use the <h:outputLink .. /> JSF component, or you can simply use the <a href="..." /> element directly in your Facelet view.
Dhruv Pal
RE: unable to use hyperlink in jsf
January 24, 2013 8:48 PM
Answer

Dhruv Pal

Rank: Junior Member

Posts: 82

Join Date: January 23, 2013

Recent Posts

thanks
Dhruv Pal
RE: unable to use hyperlink in jsf
January 24, 2013 10:15 PM
Answer

Dhruv Pal

Rank: Junior Member

Posts: 82

Join Date: January 23, 2013

Recent Posts

But i want to create hyperlink in portlet so that i can open page in same portlet.Please guide me on this as i have wasted quite a time on this.
Neil Griffin
RE: unable to use hyperlink in jsf
January 29, 2013 12:45 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2041

Join Date: July 26, 2005

Recent Posts

When you wrote:
open page in same portlet

Do you mean that you want to navigate to a different JSF view within the same portlet? If so, you can use something like this:

1<h:commandButton value="click me to navigate" action="/nextView.xhtml" />


Or you can make the navigation dynamic by adding a navigation-rule to the WEB-INF/faces-config.xml descriptor and have the h:commandButton's action attribute bind to a backing bean that returns a String outcome.
Dhruv Pal
RE: unable to use hyperlink in jsf
January 29, 2013 8:41 PM
Answer

Dhruv Pal

Rank: Junior Member

Posts: 82

Join Date: January 23, 2013

Recent Posts

Thanks for help