Hi list,

 

I have found an issue with "multiple" value change events in one request.

I have a simple test setup:

One page with just a form, an InputText and an SelectBooleanCheckbox (see file 
attached).

Both inputs save their value in a HashMap in session (could also be a managed 
bean but so less test code is needed).

Both inputs have a ValueChangeListener and autoSubmit on true.

 

The InputText auto submits when it loose focus.

The SelectBooleanCheckbox auto submits when it's get clicked.

But if I enter the page, enter some text and immediate click on the checkbox 
without leaving the InputText before clicking only the text in the InputText is 
submitted and only the InputText ValueChangeListener is called.

The SelectBooleanCheckbox "looks" like checked, but if I reload the page 
(without fire event, clicking button, ect.) the SelectBooleanCheckbox get's 
deselected automatically because the value in the session never changed.

 

Any idea how to get around this?

Should I fill a Jira?

 

Tested with

jsf-facelets 1.1.13

myfaces 1.1.5

trinidad 1.0.11

 

(Sorry have not test setup for JSF 1.2 so can't test with Trinidad 1.2, but the 
test setup is straight forward)

 

Regards

Markus

 

Reply via email to