-
1. Re: Rich Calendar Past value submit Issue
ilya_shaikovsky Aug 4, 2010 4:03 AM (in response to vinay123acc)show more complete code please. In general such case was checkded an should works.
-
2. Re: Rich Calendar Past value submit Issue
vinay123acc Aug 9, 2010 2:12 AM (in response to ilya_shaikovsky)<h:richDataTable rowKeyVar="rkv" rows="#{pageBean.noOfRows}"
id="cn" rendered="#{pageBean.slist}"
value="#{pageBean.cnList}" var="data"
binding="#{pageBean.scNTable}">
<h:richColumn>
<f:facet name="header">
<h:jsfOutputLabel value="Time" />
</f:facet>
<h:richCalendar id="cal_value" value="#{data.time}" direction="top-right"
rendered="#{pageBean.renderEditableTime}"
converter="DateConverter"
datePattern="#{pageBean.calendarDateFormat}"
popup="true" showApplyButton="true" enableManualInput="true">
</a:richCalendar>
<h:jsfOutputText value="#{data.time}" converter="DateConverter"
rendered="#{!pageBean.renderEditableTime}" />
</h:richColumn><h:richColumn style="width:100%">
<f:facet name="header">
<h:jsfOutputLabel value="Message" />
</f:facet>
<h:jsfInputTextArea rows="4" cols="40" value="#{data.cMessage}"
rendered="#{pageBean.renderEditableTime}" />
<h:jsfOutputText value="#{data.customMessage}"
rendered="#{!pageBean.renderEditableTime}" />
</h:richColumn></h:richDataTable>
We are using rich calendar inside richDataTable as shown in sample code above.
Once the user selects date and enters message,validating for mandatory fields.
If either message/date is not entered,throwing a error panel.
If selected date is past value,then also throwing a error panel.
1. Once we get error panel on enetering past date,even if we enter future date after that,it will not pick that date,still holds the old value and valdiation fails.
2. suppose if we clear the date field also,still it holds the past value and validation error is thrown for past date instead of mandatory field.
-
3. Re: Rich Calendar Past value submit Issue
ilya_shaikovsky Aug 9, 2010 3:31 AM (in response to vinay123acc)1 of 1 people found this helpfulThe symtoms looks like described there http://ishabalov.blogspot.com/2007/08/sad-story-about-uiinput.html.
-
4. Re: Rich Calendar Past value submit Issue
vinay123acc Aug 9, 2010 12:56 PM (in response to ilya_shaikovsky)Thank you very much Ilya. It's a very useful link and got the answer for my question.Thanks once again.