-
Dec 13th, 2009, 09:25 PM
#1
Support for File Uploads
Hello,
Consider the following RooEntity:
@Entity
@RooJavaBean
@RooToString
@RooEntity
public class Image {
@Lob
private String description;
@Lob
private byte[] contents;
}
Currently the generated controller and views do not handle the byte[] correctly. I'd like a file input control be generated in the views and have the controller do what it needs to do to populate the "contents" with the file being uploaded.
Are there plans for ROO to do this automatically?
Thanks,
Werner
-
Dec 14th, 2009, 12:50 AM
#2
Hi Werner,
Yes file upload is on our todo list. There is also a feature request ticket for it:
http://jira.springframework.org/browse/ROO-442 so please go ahead and vote on it so we can evaluate community interest. There are also a number of Web development feature requests (aggregated under ROO-8) which (when implemented in the next major Roo release past the 1.0 release) will help ad-on developers to implement such features much easier.
If you are interested in helping out on improving file upload support, we would be open to ideas from your side (just comment on ROO-442).
Cheers,
Stefan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules