The case of an int widget is indeed not dealt with in the current (old) layout system. You could override document_view.xhtml and document_editor.xhtml to add that case. Or wait for the new layout system, described in the book now, which will appear in the next release.

Florent

On 30 Oct 2007, at 21:14, John Goerzen wrote:

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?

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

Thanks,

-- John

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm


--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87



_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to