html:file question

2003-08-10 Thread Daniel Massie
Is it possible to apply a style to the button of the html:file tag?

Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:file question

2003-01-28 Thread Charlie Toohey
I have a form with a text field for the user to enter a filename. I would 
like to make this easier for the user by giving them a Browse button, so I 
thought I would try using html:file instead of html:text.

Note, I do not want to upload the contents of a file, but just want the 
filename, including the full path. In order to achieve this, I am NOT 
specifying 
enctype=multipart/form-data
in the html:form tag.

I am running into 2 separate problems:

1. even though the full path filename is displayed in the field after 
browsing and picking a file, the corresponding form bean property is 
populated with the filename only, and the path is discarded -- is there any 
way for me to get the full path back?

2. pre-population of this field is not working. The form bean property is 
definitely set correctly - in fact, if I simply change the control from 
html:file to html:text, then prepopulation works correctly. Is there any way 
to pre-populate an html:file control ?

Thanks,
Charlie

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




html:file question

2001-08-29 Thread Roumen Ganeff

Hi

I am trying the following code:

html:file name=scheme property=fileForm accept=.css 
bean:message key=button.browse/
/html:file

and there are two problems with it.
1. the accepts key doesn't work
2. the label of the Browse... button doesn't change. I have the key in my
application.properties file, before you ask :) It doesn't work even if I
remove the bean tag and put plain text in there

Thanx
Ganeff