java.lang.ClassNotFoundException: org.jahia.services.fields.ContentColorFieldIn the file "/WEB-INF/lib/jahia.jar", the class [org.jahia.services.fields.ContentColorField] is not existe.
I found the java source of [ContentFieldTypes.java], it seem to reference the classe
private ContentFieldTypes () {
fieldClassNames = new Hashtable ();
fieldClassNames.put (new Integer (UNDEFINED), "org.jahia.services.fields.ContentUndefinedField");
fieldClassNames.put (new Integer (INTEGER), "org.jahia.services.fields.ContentIntegerField");
fieldClassNames.put (new Integer (SMALLTEXT), "org.jahia.services.fields.ContentSmallTextField");
fieldClassNames.put (new Integer (BIGTEXT), "org.jahia.services.fields.ContentBigTextField");
fieldClassNames.put (new Integer (PAGE), "org.jahia.services.fields.ContentPageField");
fieldClassNames.put (new Integer (FILE), "org.jahia.services.fields.ContentFileField");
fieldClassNames.put (new Integer (APPLICATION), "org.jahia.services.fields.ContentApplicationField");
fieldClassNames.put (new Integer (FLOAT), "org.jahia.services.fields.ContentFloatField");
fieldClassNames.put (new Integer (BOOLEAN), "org.jahia.services.fields.ContentBooleanField");
fieldClassNames.put (new Integer (DATE), "org.jahia.services.fields.ContentDateField");
fieldClassNames.put (new Integer (COLOR), "org.jahia.services.fields.ContentColorField");
fieldClassNames.put (new Integer (SMALLTEXT_SHARED_LANG), "org.jahia.services.fields.ContentSmallTextSharedLangField");
}
Nicolas POIRIER a écrit:
Exactly, it work with the default value.
Thanks
Nicolas
Philippe Vollenweider a écrit:
Did you try to add a default value like #ffffff ?
<content:declareField name='<%="color" + id%>' title="Color" titleKey="color"
bundleKey="<%=resBundleID%>" type="Color" value="#ffffff"
/>
Philippe.
At 26.05.2005 10:44, you wrote:
Hello
I try to use a "Color" field in a template. But, in the pop-up Edition windows when I add a new container, field "color" is like a SmallText field.
Something missing ?
Exemple (adding field in "main_content.jsp"):
<content:declareField name='<%="color" + id%>'
title="Color"
titleKey="color"
bundleKey="<%=resBundleID%>"
type="Color"
/>
Thanks
Nicolas
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
-- Nicolas POIRIER ----------------------------------------- SILICOMP - AQL Tel 02.99.12.50.00 Fax 02.99.63.70.40 -----------------------------------------
