I almost succeed in localizing the file upload button by this:
<form method="post" name="Form0" action="/cschan/app"
enctype="multipart/form-data" enctype="multipart/form-data">
<input type="file" name="upload" style="display: none;" id="Upload2"/>
<input type="text" id="file2" size="40"/>
<input name="upload1" type="button"
onClick="javascript:document.getElementById('Upload2').click();document.getElementById('file2').value=document.getElementById('Upload2').value;"
value="Upload" />
<input type=submit name=file1 />
</form>
It uses a fake text field and button in place of the file upload
widget, and route button click event to the real file upload button.
However, it won't work when this form is submitted, unless I remove
the name attribute of the Upload component. Of couse, name is a must
for rewind in tapestry to work, and is generated by the Upload
component. It is not possible to remove it. Do anyone have other ways
to localize the "text" of the fie upload button?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]