and what is the question with your code?

On Fri, Dec 9, 2011 at 3:19 PM, angelochen <angelochen...@yahoo.com.hk>wrote:

> here is my code/tml:
>
>  < t:form t:id="myForm" >
>
>         < input t:type="tawus/ajaxupload"
>           t:id="uploads" type="file" / >
>    < /t:form >
>
>
>
> @Persist
>    @Property
>    private List<UploadedFile> uploads;
>
>
>     @OnEvent (value = EventConstants.VALIDATE, component = "myForm")
>    void validateUpload() {
>        System.out.println("validating...");
>     }
>
>    void onSuccess(){
>        //Use uploads
>
>        if (uploads.size() >0) {
>            System.out.println(uploads.get(0).getFileName());
>        }
>        uploads.clear();
>    }
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/ANN-AjaxUpload-An-ajax-based-upload-component-tp4524025p5061557.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to