RichFaces validation not firing
asookazian Jan 19, 2010 6:59 PMplease see this topic: http://www.seamframework.org/Community/SeamValidatorNotBeingExecuted
I am wondering if this is a RF-related problem?
The javascript validation is not a preferred solution:
<rich:calendar id="rateCategoryEffectiveDate"
inputClass="dateField"
required="false"
value="#{merchantBillingGroupEditorUI.rateCategory.priceEffectiveDate}"
oninputkeypress="return restrictDate(this, event);"
oninputchange="return checkNoPastDate(this);"
datePattern="MM/dd/yyyy"
enableManualInput="true"
isDayEnabled="isDayEnabled"
dayStyleClass="getDisabledStyle"
label="#{messages['/restricted/billing/add_merchant_billing_group_wizard_step1.xhtml/field.effectiveDate']}">
</rich:calendar>
or this:
<rich:calendar inputClass="dateField"
disabled="#{pageaction == 'view'}"
required="true"
value="#{rateCategory.rateCategory.priceEffectiveDate}"
oninputkeypress="return restrictDate(this, event);"
oninputblur="return checkNoPastDate(this);"
datePattern="MM/dd/yyyy"
enableManualInput="true"
isDayEnabled="isDayEnabled"
dayStyleClass="getDisabledStyle"
label="#{messages['/restricted/billing/add_merchant_billing_group_wizard_step1.xhtml/field.effectiveDate']}">
</rich:calendar>
is it possible to use validator attribute with rich:calendar? I'm assuming yes, b/c it works with book.xhtml (hotel booking example) with my Seam validator component. But not sure why it's not working in my xhtml???
-
EffectiveDateValidator.java.zip 855 bytes