[richfaces-issues] [JBoss JIRA] Resolved: (RF-3283) fileUpload: 'clear' JS API doesn't work.

Andrei Markavtsov (JIRA) jira-events at lists.jboss.org
Tue Apr 29 05:31:08 EDT 2008


     [ http://jira.jboss.com/jira/browse/RF-3283?page=all ]

Andrei Markavtsov resolved RF-3283.
-----------------------------------

    Resolution: Rejected
      Assignee: Mikhail Vitenkov  (was: Andrei Markavtsov)

Why do you think that you should pass event as parameter to the JS function ??

Use the following code to clear the file list: 

<a4j:commandLink onclick="$('formID:FileUploadSubviewID:fileUploadID').component.clear()" value="clear"></a4j:commandLink>

> fileUpload: 'clear' JS API doesn't work.
> ----------------------------------------
>
>                 Key: RF-3283
>                 URL: http://jira.jboss.com/jira/browse/RF-3283
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: IE, FF, Safari, Opera
>            Reporter: Mikhail Vitenkov
>         Assigned To: Mikhail Vitenkov
>         Attachments: fileUploadClearJSA_PI.png
>
>
> Use code like this:
> <a4j:commandLink onclick="$('formID:FileUploadSubviewID:fileUploadID').component.clear(event)" value="clear"></a4j:commandLink>
> Where FileUploadSubviewID - f:subview; fileUploadID - rich:fileUpload component's id.
> For more information see attached mock up.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list