Checked SelectManyCheckbox Values are not written to Backingbean Property
Dominik Scholz
Greenhorn
Joined: Mar 30, 2009
Posts: 8
posted
0
Hi all,
i started with Java and JSF two weeks ago and made quite some progress (at least i think so ) thanks alot to many posters here!
I 'm writing an OnlineQuiz where Questions, Answers and Results are read from a DB and displayed, but now i got a problem
which i can't solve because any example given is just like the way i've written it.
The possible answers are displayed but no matter if the boxes are checked or not the set property is never called only the get
JSF part:
bean part
NewQuiz is an Object of Quiz which has an ArrayList Property with all answers per question as Strings.
When the button is clicked the index of the questions ArrayList is increased and the next question and the answers are written into the properties
and loaded into the form.
Please can anybody help me? I'm stuck here now for for two days trying many possible ways to achieve what i need and i have no ideas left.
I even have written a method to analyze the results already which i never get...
P.S. "Frage" = Question, "Antwort" = Answer and "Ergebnis" = Result
Log: 12:52:35,461 DEBUG [quiz.quiz.WissensQuizHandler] Mit welchen Fragen kann ich das Gespräch am besten steuern?
12:52:35,461 DEBUG [quiz.quiz.WissensQuizHandler] []OLD
12:52:35,461 DEBUG [quiz.quiz.WissensQuizHandler] [geschlossene Fragen]NEW // the answer i selected
12:52:35,461 DEBUG [quiz.quiz.WissensQuizHandler] j_id_jsp_999753246_15ID
Bauke Scholtz
Ranch Hand
Joined: Oct 08, 2006
Posts: 2458
posted
0
Remove the immediate attribute from the commandbutton. It makes no sense here. This cause all input values which doesn't have immediate attribute set being skipped during update model values phase.