myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Smith (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TOMAHAWK-254) inputCalendar in datatable - Conversion error occurred.
Date Thu, 13 Apr 2006 18:58:00 GMT
inputCalendar in datatable - Conversion error occurred.  
---------------------------------------------------------

         Key: TOMAHAWK-254
         URL: http://issues.apache.org/jira/browse/TOMAHAWK-254
     Project: MyFaces Tomahawk
        Type: Bug

  Components: Calendar  
    Versions: 1.1.1    
 Environment: WSAD 5.1.2 with Tomahawk
    Reporter: Todd Smith


When we are using the inputCalendar inside a datatable and binding it to our dataBeans we
get conversion errors when we try to save changes or even navigate to another page. "Conversion
error occurred".  

This happened for all fields that were either populated or null.

example code:

<h:dataTable width="750" border="1" cellpadding="0" cellspacing="0" value="#{rateTableBB.productsListModel}"
var="results" headerClass="DataText2Bold"  rowClasses="DataText2,DataText2GrayBG" columnClasses="center"
footerClass="center">
...				
<h:column >
<t:inputCalendar id="productEndDate" styleClass="InputField10" monthYearRowClass="yearMonthHeader"
weekRowClass="weekHeader"  renderPopupButtonAsImage="true" popupDateFormat="MM/dd/yyyy"
				  		renderAsPopup="true" currentDayCellClass="currentDayCell" size="10" value="#{results.capnProvAgrmtGUIBean.utilDateTrmntnDt}"
onchange="checkThisRow(this,'productEndDate','row')" />
					 </h:column >
</dataTable>

I'm not exacly sure why this is happening.  We couldn't get the dates to bind at all even
outside a datatable unless we used Java.util.Dates and we had to bind to a field directly
in our backing bean ie. #{ourBackingBean.someUtilDate}.  Then we have to manually get/set
our date field from our transfer object.

If we try to link to a dataBean by reference, the page won't bind the date and nothing will
submit.  #{someTransferObject.ourDatabean.someUtilDate}. Thus our page is effectively hung.

Has anyone come across these issue and how to fix?  We want to bind by reference to the transfer
object.  Do we need to add all our databeans and transfer objects into our faces.config?





			

 


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message