Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not changing backing Bean

 
Javoso Torso
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a dropDown box (selectOneMenu) which by change submit the form (JavaScript) and has a valueChangeListener.

The ActionClass changes a couple of backing Beans according to the value of ValueChangeEvent.getNewValue.

My problem is that one of those Backing Beans is not changing, so: keeping the old values. Even after reiterated dropDown selections.

If I printout the values of the Bean in the action class (to debug) the values are changing! But not in the front end...

I tried changing the scope of the Bean in the faces-config, was session I changed it to request, but it didn�t help.

I even tried with an immediate="true" in the selectOneMenu...

Any ideas where the problem can be?

Thanks + regards,
Javo
[ February 02, 2005: Message edited by: Javoso Torso ]
 
Kerry Wilson
Ranch Hand
Posts: 254
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should post code samples...
 
Javoso Torso
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
theJsp.jsp:

[please ignore onkkeyup (it is onkeyup in the real code)]

theActions, changeYear method :


I know it is a bit strange, I am using an action in an action. I didn�s see the need to recode the same procedure if I already had it in the moveWeek method.

Weird is, that othe beans which have being changed in that method (moveWeek) do change in the front end... so why not backBean...
[ February 08, 2005: Message edited by: Javoso Torso ]
 
Javoso Torso
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am coming closer to a solution...

The problem is somehow in the translation from the backing bean to the tag.

The funniest is that if I use an "h:inputText" the content doesn�t change (the problem)
BUT
if I use an "h: outputText" the content changes !!!


Any ideas?

Thanks,
javo
[ March 01, 2005: Message edited by: Javoso Torso ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic