Forum

Accueil » Liferay Portal » English » 3. Development

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
hamza jemai
Redirect URL
2 octobre 2013 09:56
Réponse

hamza jemai

Rang: Junior Member

Publications: 40

Date d'inscription: 4 décembre 2012

Publications Récentes

Hi gays,
i'am using liferay 6.1.1 and i want to get an ID from portlet URL, I redirect my user page to anather portlet when clicking a button with jsf, and this my rederect function

public void redirect(Integer id) {
try {
FacesContext.getCurrentInstance().getExternalContext().redirect("http://localhost:8080/web/guest/test"+id);
} catch (IOException e) {
e.printStackTrace();
}
}


my URL will be like this : http://localhost:8080/web/guest/test123" and it point to anather page not that i want (http://localhost:8080/web/guest/test) can i resolve this with anather methode.

Thanks