File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Newbie question: Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Newbie question: "enctype"  in jsf forms?" Watch "Newbie question: "enctype"  in jsf forms?" New topic
Author

Newbie question: "enctype" in jsf forms?

Sol Mayer-Orn
Ranch Hand

Joined: Nov 13, 2002
Posts: 310
Hi,

I keep seeing that jsf forms have enctype="application/x-www-form-urlencoded" (which you can see if you view the html source through your browser).

Could anyone briefly explain what it means, and why it's required?
Does it mean that submitted form data is transfered to the server using a different encoding than standard html forms (that don't specify "enctype")?

And does it affect performance?
Thanks !
Remko Strating
Ranch Hand

Joined: Dec 28, 2006
Posts: 893
With the enctype you're specifying what form of data you are sending.

The default value application/x-www-form-urlencoded", which is sufficient for almost any kind of form data which are mostly used within JSF.

Only if you're doing downloads you should specify an enctype.


Remko (My website)
SCJP 1.5, SCWCD 1.4, SCDJWS 1.4, SCBCD 1.5, ITIL(Manager), Prince2(Practitioner), Reading/ gaining experience for SCEA,
 
I agree. Here's the link: jrebel
 
subject: Newbie question: "enctype" in jsf forms?
 
Similar Threads
FileUpload using DiskFileUpload
HF example Weird result - help please
"nested forms" in JSF?
Multiple Forms (in request scope!)
Creating a "BROWSE" button on JSP Page