[
http://jira.jboss.com/jira/browse/JBSEAM-1360?page=comments#action_12364050 ]
Feivel Frey commented on JBSEAM-1360:
-------------------------------------
Hi Shane, the form encoding type for fileuplad is correct. There are two form, but
don't know why.
Here the generated code from fileupload form
<form id="upperform" name="upperform" method="post"
action="/uploadTest/home.seam"
enctype="multipart/form-data"><input
type="hidden" name="upperform" value="upperform" />
<div class="formfield" style="float: left; width: 100%;">
<table id="upperform:upperPanelGrid">
<tbody>
<tr>
<td><span
id="upperform:j_id20"><label>Number</label><span
id="upperform:number">2</span><br />
</span></td>
</tr>
<tr>
<td><span
id="upperform:j_id24"><label>Year</label><span
id="upperform:year">2007</span><br />
</span></td>
</tr>
<tr>
<td><span id="upperform:descriptionDecorator">
<div class="entry"><label for="upperform:desc"
class="label">Description:<span
id="upperform:j_id31"
class="required">*</span></label> <span
class="input"><textarea
id="upperform:desc" name="upperform:desc"
onblur="A4J.AJAX.Submit('_viewRoot','upperform',event,{'parameters':{'upperform:j_id35':'upperform:j_id35'},'actionUrl':'/uploadTest/home.seam'})"
/><br /></span></div>
</span></td>
</tr>
<tr>
<td><span id="upperform:j_id40">
<table id="upperform:fileugrid">
<tbody>
<tr>
<td><label
for="upperform:fileupload">File</label></td>
</tr>
<tr>
<td><input type="file" id="upperform:fileupload"
name="upperform:fileupload" accept="*/*" /></td>
</tr>
<tr>
<td><br />
</td>
</tr>
<tr>
<td />
</tr>
</tbody>
</table>
</span></td>
</tr>
<tr>
<td>
<table id="upperform:grid">
<tbody>
<tr>
<td><a href="#" id="upperform:reg"
name="upperform:reg"
onclick="A4J.AJAX.Submit('_viewRoot','upperform',event,{'parameters':{'upperform:reg':'upperform:reg'},'actionUrl':'/uploadTest/home.seam'});return
false;">Save</a></td>
</tr>
<tr>
<td><a href="#" id="upperform:can"
name="upperform:can"
onclick="A4J.AJAX.Submit('_viewRoot','upperform',event,{'parameters':{'upperform:can':'upperform:can'},'actionUrl':'/uploadTest/home.seam'});return
false;">Cancel</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!-- End class formfield --><input type="hidden"
name="javax.faces.ViewState" id="javax.faces.ViewState"
value="H4sIAAAAAAAAAM1abWwcRxken8+OY7upU7tJSpP2mqR12jj3ueezE0LixPk45Zy4sRM1KZI7dzd33nRvd7s75zsnpEoRLYKiCtQPhJSKIviBUMIPkAoqErRCqKJVi6jEHySkChVVCCgfIirwozAz+zW7t3vndd0I/1jPzc477zPvvF/zzl77C+ipa2D44cIFuATjEpSr8VPFC6iE93317Ye+OaTfL0UAaKoAgB26BjIlpRbX63K8AktIj0NVlcQSxKIix+cwxGgGyrCKtHxNlXbOawidVMron5VXfno9eexng3SexiSgf7sUrRqHF2BTuKBX4hUN1lBD0R5lXfEp8jgrosZpRcFg/cKS2Wzqj4HHQaSRZjPc65qB0S3imhQ/Th50AgqnroOeCwtiOd0k0IUQ0I+SIZhif/O5N188lZ5+hmI3uH+G8O4Cu6m0muZUZGJVkZGMHQTHNKguiqV8jUxpYBBAVMeKaiyip3FgldNkQI+OoWYLI8mEsaPDPEcVrWbQj1uEOUIWBQ90kOJhpVaDcrkgyo8a9DmeHoD7OzCehTIiq1DqKugtkTdIs+gFQt0LRjvQzyBdJ2s393HSIt4bjnigBkW5BtkvN/8VCW59XVWRViFNi3gPIV4P7qbCu1BUdD2uI1iL18X4mfxZKIllok5TkgR6KejUhEVFVacf7FqZyMQy2MD42r+taR4g0wyArX7Mp1FJ0Qhzg3M6aZFMEJJB8EAHzqfqWK3jAiwiE3o6xe/2YMfdNiaYR00MeuV6rejsdpbRj7Zi5vbJBE8M0uSeCb9igV/x0CpWnOURD4VZcXQZQc1NHXK9OR58p/WOlJFe0kSV0pudis0+QyYYMVxkK3u23Bbmtm3tIrS3g0/5086p0CTIpHhjGFmhMWRcG7QZjHWQb142xQs1BEGUrtnyoGfIBFvAfZ3CALEhRcMm96wB0z1+7szs7KnT84pclOquDRwJuYGZidAKK9gmSuPinSGcw/qKKKF6lfMLVKJbw6u8kOJjy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VGBSsJFQQ3vLU5aYZ1juOI1U651Mnwi9GQLtGauFPR2S+ChL7udtCXBYr+Fge9hqqYfcPGO75VXHdbqgE+x5qX2fMKe36hjf+ht9t+l6mW42PXpSdAvr0pTYylkulO16eMlXF5Om6uM0ov4NVVX5fSjpYM6hO5Ev0YO17KeXa8BGXMvjt0aWvXe502sc2dOJRLSOq4jTPgRPttnBxLpTMdb8ENZu5b8N7DrPf/biv/BySikF0PMwAA"
/></form>
</div>
<!-- End uppercontend -->
s:fileupload not working
------------------------
Key: JBSEAM-1360
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1360
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 1.2.1.GA
Environment: Windows XP, JBoss-4-0.5.GA
Reporter: Feivel Frey
Assigned To: Shane Bryzak
Attachments: fileupload_exploded.zip, uploadTest_exploded2.zip,
uploadTest_exploded3.zip
<s:fileUpload id="fileupload" data="#{specialreleaseeditor.file}"
accept="*/*" fileName="#{specialreleaseeditor.fileName}"
contentType="#{specialreleaseeditor.fileContentType}"/>
getter and setter for file, filename and fileContentType not called, only I comment
s:fileupload.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira