You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Brian Ehmann <be...@gmail.com> on 2006/09/14 16:09:58 UTC
t:inputFileUpload inside t:panelTab
The following jsf tags work perfectly when uploading a file: (yes,
this is the code from the myfaces simple example app)
<h:form id="form1" name="form1" enctype="multipart/form-data" >
<h:outputText value="fileupload"/>
<t:inputFileUpload id="fileupload"
accept="image/*"
value="#{addbean.upFile}"
storage="file"
styleClass="fileUploadInput"
required="true"/>
<f:verbatim><br></f:verbatim>
<h:commandButton value="Upload" action="#{addhandler.upload}" />
</h:form>
However I would like to render the file upload components inside of a
t:pannelTabbedPane as so:
<t:panelTabbedPane bgcolor="#FFFFCC" >
<t:panelTab id="tab1" label="Tab1" >
<!-- Code from above goes here... -->
</t:panelTab>
<t:panelTab id="tab2" label="Tab2" >
<h:outputLabel value="Other tab" />
</t:panelTab>
</t:panelTabbedPane>
Unfortunately the addbean.upFile is never populated, since it is null
when I try to access it from within the addhandler.upload method.
Any ideas?
- Brian