Hi,

John Goerzen a écrit :
Hi,

In a schema, I have defined:

  <xs:element name="htticketno" type="xs:int"/>

In our ecm-types-config.xml, I have:

        <widget jsfcomponent="h:inputText"
                schemaname="htticket" fieldname="htticketno"
                label="label.htticket.htticketno"/>

The problem is that there is an exception (ClassCastException on
java.lang.String) thrown whenever I try to
create a document of the new type that includes this field.  Change the
schema to xs:string and it works fine.

That <widget> format works for all our string fields, but not for int
fields.  I've looked at the reference at doc.nuxeo.org, which talks
about an old and a new layout system.  We are running 5.1.2.GA, which
apparently uses the old system.  I tried the new system, but got no
display at all on the create document screen with it, so I guess we're
stuck with the old system.

How can I set up the old system to let us input Ints?

I believe Florent already answered to that.

Or, how can I use the new system under 5.1.2.GA?

Note that there is compatibility code in place: if an old layout configuration is detected, the old system applies instead of the new one. The old system is still in place because some features have not been migrated to the new system yet (mass modification). If you still have problems with the layout system, please free to explain it on the list.

Regards,

--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to