JSF expects the parameters to be properties of a managed bean. If you
use the Visual Web Pack <http://www.netbeans.org/products/visualweb/>
to develop your JSF project then it will handle the details of
managing the managed beans. If you don't use the Visual Web Pack you
will need to write the beans yourself and write the XML to tell the
server about them. In either case you will need to do some reading on
the scope of the beans and how to set and get the variables in them.
If you must use GET data to send parameters I have a brief note on how
to retrieve them from a JSF page at
<http://www.profectus.com.au/ee_getdata.html>. The task is complex if
you don't use the Visual Web Pack and trivial if you do.
>>Hi,
>> I m using netbeans IDE 6.0. I want to know how to navigate pages
[quoted text clipped - 12 lines]
> <http://www.profectus.com.au/ee_getdata.html>. The task is complex if
> you don't use the Visual Web Pack and trivial if you do.
I'm still not getting it.....
I'm using this code to retrive the values.......
FacesContext fc = FacesContext.getCurrentInstance();
String id = (String)
fc.getExternalContext().getRequestParameterMap().get("Page1.textField1");
Pls some help
Thanks
Pradyut
http://pradyut.tk
India
Lew - 01 Sep 2007 02:57 GMT
> I'm still not getting it.....
> I'm using this code to retrive the values.......
[quoted text clipped - 4 lines]
>
> Pls [sic] some help
Did you read the links I suggested?
> <http://java.sun.com/javaee/5/docs/tutorial/doc/JSFIntro6.html#wp115538>
> <http://java.sun.com/javaee/5/docs/tutorial/doc/JSFPage10.html#wp119785>
> <http://java.sun.com/javaee/5/docs/tutorial/doc/JSFConfigure3.html#wp1000014>
You don't use explicit code like that to retrieve values. You do it by
binding your "value" attribute to a backing bean property, which bean is
specified in the faces-config.xml. JSF does the mapping for you.
Read the part about the JSF life cycle in the tutorial. Study it thoroughly.
Let us know that you've read the material before you repeat your questions
again. Then if you have specific questions about the material you can ask
them based on your reading, which you must do first.

Signature
Lew
David Segall - 01 Sep 2007 07:11 GMT
>>>Hi,
>>> I m using netbeans IDE 6.0. I want to know how to navigate pages
[quoted text clipped - 19 lines]
> String id = (String)
>fc.getExternalContext().getRequestParameterMap().get("Page1.textField1");
This is definitely wrong but I can't guess what it should be from this
fragment. JSF expects the data to be passed via a managed bean so if
you are simply passing data from one JSF page to another you should
not be using a FacesContext.
An explanation of managed beans requires an entire chapter in any JSF
text book and it is not possible to give you some cookbook code in a
Usenet post.