myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rene Guenther" <innflow-guent...@innflow.com>
Subject Re: setting a value in a form using commandlink
Date Thu, 02 Nov 2006 12:28:36 GMT
Immediate is set on "true". Thats why no getters/setters 
are called.

Regards
René

On Thu, 2 Nov 2006 01:44:24 -0800 (PST)
  kunter gunt <kuntergunt@yahoo.com> wrote:
> hi,
> 
> I try to pass when clicked a value from a list 
>(DataTable) to one of the forms fields on the page.
> I used a
>            <h:commandLink id="nummernBereichKeyCommand" 
>actionListener="#{tag.processAction}" 
>value="#{nummernBereich.value}" 
>action="nummernBereichAction" immediate="true"/>
> to call the actionlistener, then got the row i clicked 
>from the DataTable and put the correct value into the 
>attribute of the bean.
> so far everything fine.
> 
> But for some reason during this request/response cycle 
>no getters and setters of any of the attributes of the 
>bean are called.
> So the attribute in the bean holds the new value, the UI 
>does not! 
> (The form is submitted by javascript from the 
>commandLink tag (standard functionality). Any values 
>entered in the form won't be lost.)
> 
> When I use a refresh button for test purposes the 
>getters an setters work fine (but the value from the 
>table is lost of course because the setters are called).
> 
> Any ideas what I'm doing wrong?
> 
> 
> gunter
> 
> 
> 
> 
> 


Mime
View raw message