Op 30-mei-2006, om 13:45 heeft Nico Klasens het volgende geschreven:
Hello Michiel,
Uswd the easiest way out. I changed it back to persitent state.
Another good argument for this is that the filename is used in the
AttachmentServlet to suggest a name in the save dialog of a
visitor. The name with which a editor uploads the attachment is not
always the one you want to show to a visitor.
That is a valid argument ;-) It always irritated me that I could not
choose a filename I prefered.
---André
Nico
Mihxil' wrote:
2006/5/26, Nico Klasens <[EMAIL PROTECTED]>:
Today, I noticed that the filename field is not filled anymore
when you
use the editwizards. The reason for this is that Dove marks the
field as
non-editable. Dove does this, because the state of the field is not
persistent (The state is system). This has been changed in
februari so I
wonder what it should be. I thought system means set and
maintained by
mmbase. This is not the case for the filename field, because only
the
upload jsp can extract the uploaded name.
Any insight in this would be great.
Anyhow, we should consider it a bug, which ought to be fixed somehow.
I do think it more or less logical that filename is a 'system' field,
because it is an automaticly filled field. I think jsp-editors ignore
the 'system-ness' of the field and simply set the FileName. I'm not
sure any more when and precisely why it was changed, besides this
more
principal reason that semanticly it is a 'system' field.
Actually I was contemplating if it would be possitle to set binary
fields with a 'FileItem' typed value (of commons-fileupload), which
would make it possible to fill the filename field closer to the core,
and make it more generic functionality (shared e.g. between
editwizards and other editor implementation). Perhaps it would
even be
possible to connect this functionality to the filename field itself
rather then to the handle field (like in a commit processor).I have
not yet tried this.
So, in the mean time I think we can safely consider it a bug, which
can probably be fixed in several ways. Undoing the 'SYSTEM' status,
changing upload.jsp or so. Trying something with FileItem would
perhaps be involving enough to be postponed to MMBase 1.9.
Michiel
--
mihxil' http://meeuw.org
nl_NL eo_XX en_US
---------------------------------------------------------------------
---
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers
--
André van Toly
web http://www.toly.nl mobile +31(0)627233562
------------------------------------------------------------------>><<--
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers