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

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to