[richfaces-issues] [JBoss JIRA] Resolved: (RF-7625) fileUpload does not execute validator
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Thu Jul 30 10:36:30 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Belaevski resolved RF-7625.
--------------------------------
Resolution: Duplicate Issue
Assignee: Nick Belaevski
> fileUpload does not execute validator
> -------------------------------------
>
> Key: RF-7625
> URL: https://jira.jboss.org/jira/browse/RF-7625
> Project: RichFaces
> Issue Type: Bug
> Environment: Seam 2.1.2
> Reporter: Benedikt Thelen
> Assignee: Nick Belaevski
>
> Neither required="true" or validator="function" in rich:fileupload does produce messages (are not valiadated).
> Example:
> [xhtml]
> ...
> <s:validateAll>
> ....
> <rich:fileUpload
> id="uploads"
> fileUploadListener="#{my.listener}"
> maxFilesQuantity="10"
> immediateUpload="true"
> allowFlash="false"
> required="true"
> validator="#{my.validateUploads}"
> noDuplicate="true">
> <a4j:support event="onuploadcomplete" />
> <f:facet name="label">
> <h:outputText
> value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />
> </f:facet>
> </rich:fileUpload>
> <rich:message for="uploads" />
> ...
> </s:validateAll>
> ...
> [Bean code]
> ...
> public void validateUploads(FacesContext facesContext, UIComponent uiComponent, Object value)
> throws ValidatorException{
> throw new ValidatorException(new FacesMessage("This is The searched ERROR!"));
> }
> Does not produce an error message.
> Running in Debug shows that the validator function is never called.
> It is therefore impossible to check if there are any files uploaded.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list