I have a form with the zone defined. The form has one field.
Everything works fine for a t:textfield text field. The zone is
updated no problem. But when the field in the form is t:upload, the
file is not uploaded.
Component class snippet:
@Inject
private Block _confirmBlock;
@Property
private UploadedFile _uploadedFile;
Block onSuccessFromImageUploadForm ()
{
try
{
System.out.println( "_uploadedFile.getFilePath() = " +
_uploadedFile.getFilePath());
return _confirmBlock;
}
catch ( Throwable e )
{
e.printStackTrace();
}
return null;
}
Component template:
<t:form t:id="imageUploadForm" zone="confirm">
<p>
<t:upload t:id="uploadedFile" />
</p>
<p><t:submit label="message:upload.photo" /></p>
</t:form>
<t:zone t:id="confirm">
initial
</t:zone>
<t:block t:id="confirmBlock">
${uploadedFile?.filePath}
</t:block>
Any ideas?
--
Bill @ PeoplePad
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]