You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Torben Makowka <to...@topcom.de> on 2008/05/05 10:12:25 UTC

Re: [Trinidad] Problems with PPR and InputText

Hi Matthias,

 >>  The text component is filled with a new value when the choice 
component is
 >> changed. This works so far. I want the new value of the textbox to 
be saved
 >> to a db in the backing bean. When i click on the submit button, a value
 >> _not_ entered in the textbox appears _before_ the submit action in the
 >> backing bean is called (i debugged this with eclipse) and this value 
is also
 >> saved to the db in the end. This new value is most often a jsf 
component id
 >> (e.g. j_id_jsp_1271545289_86) or even the html component id of the 
submit
 >> button(!). I played with binding the textbox to a variable in my backing
 >> bean and doing a .resetValue() on it but this didn't solve the problem.
 >
 > so you are saying, that the post back is submitting the idea, instead 
of the
 > text, that is inside the inputText ?
 >
 > can you provide some code, so that I can easily run that on my box?
 >
 > Thx,
 > m

we have found the cause of this strange behaviour, and this might even 
be a bug in trinidad itself. The CoreInputText had the id "source" set 
in the jsp (id="source"). This caused trinidad to fill in the component 
id in the textfield instead of the "real" entered text. This might 
really be a bug in trinidad since the behaviour was gone as soon as we 
changed the component id.

Greets,
Torben