as in shale use cases i want using the validator
:
12:55:29,093 ERROR [Clay] javax.faces.FacesException: Undefined
component type org.apache.shale.CommonsValidator
12:55:29,109 ERROR [[faces]] Servlet.service() for servlet faces threw exception
java.lang.RuntimeException: javax.faces.FacesException: Undefined
component type org.apache.shale.CommonsValidator

Caused by: javax.faces.FacesException: Undefined component type
org.apache.shale.CommonsValidator
        at 
org.apache.myfaces.application.ApplicationImpl.createComponent(ApplicationImpl.java:390)

in clay-config i defined component with s:commonsValidator:

        <component jsfid="birthdate" id="birthdate" extends="t:inputCalendar">
                <attributes>
                        <set name="value" value="[EMAIL PROTECTED]" />
                        <set name="renderAsPopup" value="true" />
                        <set name="renderPopupButtonAsImage" value="true" />
                        <set name="popupDateFormat" value="yyyy/MM/dd" />
                        <set name="allowBody" value="false" />
                        <set name="required" value="true" />
                        <set name="monthYearRowClass" value="yearMonthHeader" />
                        <set name="weekRowClass" value="weekHeader" />
                        <set name="currentDayCellClass" value="currentDayCell" 
/>
                        <set name="styleClass" value="input" />
                </attributes>
                <element renderId="1" jsfid="s:commonsValidator">
                        <attributes>
                                <set name="type" value="date" />
                                <set name="datePatternStrict" value="MM/dd/yyyy" 
/>
                                <set name="message"
value="#{messages['validate.test.bad.expiration.date']}" />
                                <set name="server" value="false" />
                                <set name="client" value="true" />
                        </attributes>
                </element>
        </component>

in my view file i have a
<span xmlns:s="http://struts.apache.org/shale/core"; >
...
</span>

maybe i have to define something else?

Reply via email to