problem with h:inputHidden

I have problem with h:inputHidden. value=?{verdi.hode}?is output from datatable and will be input also. When i see output from 揝ystem.out.println(hode);?so I can see the right text on the consul but output from JSF is nothing. I don抰 know how an output can be input in JSF. Is that right to use h:inputHidden? Do you know another way to do that? Do you have any tutorial links which can help me?

Please answer med if you have time.

Thank you

<h:column>

<f:facet name="header">

<f:verbatim>Hode</f:verbatim>

</f:facet>

<f:verbatim></f:verbatim>

<h:inputHidden id="Hode" value=?{verdi.hode}?>

<h:commandLink id="ode" action="#{verdi.nyhet}" value="#{verdi.hode}"

immediate="true">

</h:commandLink>

</h:column>

[860 byte] By [kosallana] at [2007-11-26 15:09:25]
# 1

With immediate="true" in an UICommand component the UPDATE_MODEL_VALUES phase will be skipped. So the values of all UIInput components will never be set. Check http://balusc.xs4all.nl/srv/dev-jep-djl.html for an explanation of the JSF lifecycle and the immediate attribute.

The meaning of h:inputHidden is to save bean property values from request to request in a request scoped bean (the bean will be reinstantiated every request, resulting the values being garbaged at the end of the request). In a session scoped bean the h:inputHidden is fairly useless, because the property values will remain alive during the whole browser session.

BalusCa at 2007-7-8 8:59:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thank you for replaying

Butt he problem is still the same. The value is: <h:inputHidden id="Hode" value=?{verdi.hode}?>

And link is: h:commandLink id="ode" action="#{verdi.nyhet}" value="#{verdi.hode}"

immediate="true">

</h:commandLink>

I tried by immediate="false" and without immediate it was same problem. When I use this code its ok:

<tr>

<td>

Hode :</td><td>

<h:inputText value="#{kontakt.hode}"

id="Hode">

</h:inputText>

</td></tr><tr><td>

<h:commandLink value="S鴎 Nyhet"

action="#{kontakt.nyhet}" style="color: blue; text-decoration: none;"/>

</td><td></td></tr>

The problem is an output value=?{verdi.hode} will be an input in new round <h:inputHidden id="Hode" value=?{verdi.hode}?>

But when I run the program, it is any thing in output.

Send me a link If you have more links about how I can get right output when I click on a commandLink in a datatble in JSF.

Thanks

kosallana at 2007-7-8 8:59:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
I see, you just want to get the selected row by commandLink? Well, see http://balusc.xs4all.nl/srv/dev-jep-dat.html how to use datatables.
BalusCa at 2007-7-8 8:59:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Thank you
kosallana at 2007-7-8 8:59:59 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...