0
votes

I have a JSF application in which I am recreating my bean using this

FacesContext
           .getCurrentInstance()
              .getExternalContext()
                 .getSessionMap()
                    .put("myBean" , new MyBean());

Now All of the values have gone but one value still remain and get submitted next time and destroy all output(I mean it shows wrong output then).
Actually I am using ICEFACES autofill tag and the value submitted by this field is not get removed.
Is icefaces using another map for its beans? if Yes then How can I get the bean from icefaces Session map?
I am unable to understand this issue.Any one have idea?

1

1 Answers

0
votes

Apparently you're recreating it at the wrong moment. You'd need to do it during invoke action phase, not before. Otherwise the update model values phase will still fill the bean with submitted values.