Geert Bevin <gbevin <at> uwyn.com> writes:

> 
> Hi John,
> 
>CHOP<
> > Another small issue, I have a byte [] property called thumbnail, to  
> > which I
> > apply:
> >         addConstraint(new ConstrainedProperty("thumbnail")
> >             .notNull(true)
> >             .file(true)
> >             .listed(true)
> >             .mimeType(MimeType.IMAGE_JPEG)
> >             .contentAttribute("width", 150));
> > ...But CRUD doesn't seem to understand that this is a file upload,  
> > I just get
> > a text field.  Is there something else I need to add?
> 
> This is very strange, the only thing need to get the file upload  
> field in a RIFE/Crud form is the file(true) constraint. Can you try  
> to isolate this and send me the code so that I can investigate?
>

This appears to be related to meta data merging.  I was able to recreate the 
problem by taking the NewsItem class in Jumpstart and splitting out the meta 
data into its own class, just like in 
http://rifers.org/wiki/display/RIFECRUD/Getting+started.  Conversely, if I 
combine my classes into one, it works.  I am using rife-1.4-jdk15.jar and rife-
crud-1.2-jdk15.jar.  Maybe this is not an issues in 1.5?

 - JT

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to