This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes help with <t:inputFileUpload> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "help with <t:inputFileUpload>" Watch "help with <t:inputFileUpload>" New topic
Author

help with <t:inputFileUpload>

Kiran Shirali
Ranch Hand

Joined: Jan 26, 2009
Posts: 34
Hi everyone,

I have a requirement saying that the text field in <t:inputFileUpload> should be disabled.

So a user should not be able to manually enter the path of a file. This works without any modification in firefox. Upon clicking the text box a browse window appears. However in IE6 and IE7 this is not happening. Manual entry is possible.

Can someone help me to fix this please.

Thanks in advance.

Kiran


SCJP 1.6 86%, SCWCD 5.0 on
Robert Filipczyk
Greenhorn

Joined: Jun 24, 2009
Posts: 4
You can do it with javascript:
1. Check the id of text field in source of Your page (in firefox or IE).
2. Then, on onLoad event of body tag, put something like this:


Darmowe Ogłoszenia
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: help with <t:inputFileUpload>
 
Similar Threads
AJAX Conditionally Render Components
File Upload in JSF
style of browse button
Buggy <t:inputFileUpload
Loading problem with t:inputFileUpload