This content has been marked as final.
Show 3 replies
-
1. Re: Not Able to Use Rich:calendar
lvdberg Nov 6, 2009 9:39 AM (in response to pkatta)Hi,
we are not paranormally gifted in this forum, so please send us some code...
-
2. Re: Not Able to Use Rich:calendar
pkatta Nov 6, 2009 10:23 AM (in response to pkatta)Hi,
This code for rich:calendar
<div class="row">
<div class="label">DateBirth<h:outputText value="*" /></div>
<div class="infoIcon"><img src="images/information.png" alt="info"/></div>
<div class="textboxCont">
<rich:calendar id="personBirth" value="#{person.birthDate}" enableManualInput="true" datePattern="dd/MM/yyyy" immediate="true" required="true" requiredMessage="Date of birth required." popup="true">
<a:support event="oninputblur" reRender="errorMessages" ajaxSingle="true" oncomplete="TabError('tab1')"/>
<a:support event="onchanged" reRender="errorMessages" bypassUpdates="true" oncomplete="TabError('tab1')"/>
</rich:calendar>
</div>
<br class="clear" />
</div>
this code for another component on same page..
<h:inputText id="PersonName" value="#{pserson.name}" class="inputText" required="true" requiredMessage="person Name is required.">
<a:support event="onchange" reRender="errorMessages" bypassUpdates="true" oncomplete="TabError('tab1')"/>
/h:inputText>
if i am using rich:calendar i unable to validate other components in page.
Thanks and Regards,
Pravin Katta -
3. Re: Not Able to Use Rich:calendar
lvdberg Nov 6, 2009 10:54 AM (in response to pkatta)Hi,
I never used double ajax-support so the following is sort of a guess (does it work that way?).
In the first you use AjaxSingle, which means you just update a single field (the date) however the second generates a full submit and possibly the full page Load (I only see a ReRender on errorMessages whatever that is)). Be aware that you're calling javascript in the Calendar and if that fails, the rest will also fail)
Leo