This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
 
Don't get me started about those stupid light bulbs.
 
subject: help with <t:inputFileUpload>
 
It's not a secret anymore!