Closed GoogleCodeExporter closed 9 years ago
does this example work for you?
http://code.google.com/p/gwtupload/source/browse/trunk/GwtUpload/samples/src/mai
n/java/gwtuploadsample/client/MUpld.ui.xml?r=878
Original comment by manuel.carrasco.m
on 30 May 2012 at 11:28
Hi Manuel,
Thanks for pointing to the sample example that would be very helpful actually I didn't look at the code of yours. So I was looking for property setters to set the value for different property and I didn't find any property through which one can set FileInputType I made some assumptions.
If I need to add custom status bar widget through ui.xml how should I do it?
Thanks,
-Pandurang Patil.
Original comment by panduran...@gmail.com
on 8 Jun 2012 at 4:13
You can select predefined FileInputTypes in the ui.xml using the type attr.
<up:MultiUploader type="LABEL" ui:field="uploader" ...
If you want anyother IFileInput implementation you have to do in the
construnctor of your .java file:
uploader.setFileInput(myfileinput)
The same with the IUploadStatus:
uploader.setStatusWidget(mystatusbar)
I think most people dont use ui.xml to customize uploaders, so I have not spend
so much time to support every single property to be available via uibinder,
since the user has the option to customize via java code.
Anyway if you can send me a patch I'll include your code with pleasure.
- Manolo
Original comment by manuel.carrasco.m
on 11 Jun 2012 at 6:40
Hi Manuel,
Sorry for replying late. I was away from my machine for some time, because of which I was not able to reply. You need to add following method inside your gwt fileupload class.
@UiChild(limit = 1)
public void addStatusBar(IUploadStatus status) {
this.setStatusWidget((IUploadStatus) status);
}
For more details on uichild annotation.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/uibinder
/client/UiChild.html
Original comment by panduran...@gmail.com
on 19 Jun 2012 at 2:23
Original comment by manuel.carrasco.m
on 3 Dec 2012 at 11:46
This issue was closed by revision b43b8e4bfc7d.
Original comment by manuel.carrasco.m
on 3 Dec 2012 at 11:47
Original issue reported on code.google.com by
panduran...@gmail.com
on 26 May 2012 at 6:09