voyent
inputText with convertDateTime ERROR  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
AntonioJSG

Joined: 13/Nov/2007 00:00:00
Messages: 32
Offline


Hi,

I have
Icefaces 1.8.0
Netbeans 6.5.1
glassfish 2.1
RHE 5 x64

I have the following inputText component with a dateTime converter:

* <ice:inputText binding="#{FacturasPorPagar.inputFechaEf}"
* id="inputFechaEf"
* style="left: 798px; top: 114px; position: absolute">
* <f:convertDateTime
* pattern="dd/mm/yyyy"/>
* </ice:inputText>

FacturasPorPagar.inputFechaEf is java.util.Date

When I run the application I get the following error:

javax.faces.FacesException: java.lang.IllegalArgumentException: Cannot convert com.icesoft.faces.component.ext.HtmlInputText@2180808f of type class com.icesoft.faces.component.ext.HtmlInputText to class java.util.Date

root cause

java.lang.IllegalArgumentException: Cannot convert com.icesoft.faces.component.ext.HtmlInputText@2180808f of type class com.icesoft.faces.component.ext.HtmlInputText to class java.util.Date

Please advice

Thank you
AntonioJSG

Joined: 13/Nov/2007 00:00:00
Messages: 32
Offline


Please disregard this

I made the error of using the value I want to display in the binding property of the component.

I assigned FacturasPorPagar.inputFechaEf to the value property and now it is ok.

Sorry for the inconvenience.




ICEV

Joined: 15/May/2008 00:00:00
Messages: 13
Offline


Hi,
I am looking for the same feature. The <f:convertDateTime > tag need to use inside the inputText component. Can you please be descriptive for this feature. One thing I havebnot understood the ‘FacturasPorPagar.inputFechaEf’.
Can you please provide your example, so I can able understand myself.
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team