have you configured the extension filter
and added enctype to <h:form> ?

-Matthias

On 6/29/05, Rashmi Kumari <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> I have added File upload component in my application. User selects the
> image and can see the preview of it as it is happening in myfaces examples.
> I have a save button also for calling the action but form is not getting
> submitted when this button is clicked.
> If I remove the file upload tag, then the action gets invoked. what could
> be the reason for this behaviour.
> 
> The jsp is:
> 
> <h:outputText value="#{Message.marker_style_import}" />
>    <x:inputFileUpload id="fileupload"
>                           accept="image/*"
>                           value="#{fileUploadForm.upFile}"
>                           storage="file"
>                           styleClass="fileUploadInput"
>                           required="true"/>
> 
> 
>   <f:verbatim><br></f:verbatim>
>   <h:commandButton value="#{Message.image_upload_button}" action="
> #{fileUploadForm.upload}" />
> 
>   <h:panelGrid columns="1" rendered="#{fileUploadForm.uploaded}">
>     <h:outputText value="#{Message.marker_style_preview}" />
>     <h:graphicImage url="fileupload_showimg.jsf" width="50" height="50"
> style="border-style: solid; border-width: 2"/>
>   </h:panelGrid>
>  <h:commandButton id="submit" action="#{Persister.saveStyle}" value="
> #{Message.style_submit_button}"/>
> 
> But it doesn't invoke saveStyle method of the backing bean.
> 
> Thanx for any suggestions.
> 
> Regards,
> 
> Rashmi
> 
> 


-- 
Matthias Wessendorf

Reply via email to