voyent
Problem with an Integer Param  XML
Forum Index -> Components
Author Message
jchava

Joined: 23/May/2006 00:00:00
Messages: 4
Offline


I try to use an int property as param for a commandLink inside a dataTable... just like...

<pre>
<ice:dataTable
var="transaction"
value="#{bean.transactions}">
<ice:column>
<f:facet name="header">
<ice:outputText value="number"/>
</f:facet>
<h:commandLink
action="#{bean.getDetail}">
<ice:outputText
value="#{transaction.number}"/>
<f: param name="consecutivo"
value="#{transaccion.number}" />
</h:commandLink>
</ice:column>
</pre>

but, when the page is rendering, the program abort and i can't get any response from the server. (in the browser i don't get any response)

when i refresh the page i get the following error...

<code>
java.lang.ClassCastException: java.lang.Integer
com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.getJavascriptHiddenFieldSetters(Unknown Source)
com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.getJavaScriptOnClickString(Unknown Source)
com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.renderOnClick(Unknown Source)
com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.encodeBegin(Unknown Source)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
</code>
gregory_m

Joined: 17/Jan/2005 00:00:00
Messages: 130
Offline


You have found a Bug with our commandLinkRenderer. I have fixed the problem and it will be available in our next release.

In the mean time can you use a "String" instead of an "Integer" for the transaction.number ?

Thanks for bringing this issue to our attention.

-- Greg McCleary --
jchava

Joined: 23/May/2006 00:00:00
Messages: 4
Offline


Meanwhile, i solved the problem using another approach... i am using an user-defined ListDataModel and getting the information from it.

Thanks.

PD: I am testing other components, and i will send you all my findings.
gregory_m

Joined: 17/Jan/2005 00:00:00
Messages: 130
Offline


It's great to see someone giving our component suite a real workout.

I'm looking foreward to your feedback as you continue working with ICEfaces.

Thanks.

-- Greg McCleary --
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team