Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help with <t:inputFileUpload>

 
Kiran Shirali
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Robert Filipczyk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic