Passing Parameters from one JSF page to another page
843842Jan 10 2006 — edited Jun 4 2006Hi,
I am new to JSF and I have quick question on passing parameters.
I have a JSF page say product.jspx here, I have productId set dynamically in a hidden field. I want to be able to access the productId in my second page set it to hidden field and pass the value to my Database code and insert values etc.
Currently I am trying to pass the values as follows
context.getCurrentInstance().getExternalContext().redirect("faces/component.jspx?productid=500");
Is this correct appoach?
How do I access the value in my second page.
Will adding request.getParameter("productid") in my second page work?