| Author |
new added element to list will update all current elements of the list while using session bean
|
Suresh Khant
Ranch Hand
Joined: Feb 27, 2010
Posts: 116
|
|
Hi All,
I am creating a small form in which the user is allowed to enter his multiple phone nos which will be stored in a list , unfortunately whenever i tried to add more then one phone to the list , it will take both the item as the last entered number
example
addPhoneNo Form
User Phone : 1234
again open and add another phone number
User Phone : 4321
now the contents of userPhoneNosList is
phone : 4321
phone : 4321
part of addPhoneNo.xhmtl
part of faces-config.xml
UserDetailsBean.java
|
 |
Mark Reyes
Ranch Hand
Joined: Jul 09, 2007
Posts: 426
|
|
Not sure.. but can you remove this configuration..
You're saving something in the session that is a string.. although I am not sure enough regarding your business case..
|
Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
|
 |
Kumaravadivel Subramani
Ranch Hand
Joined: Jul 05, 2008
Posts: 162
|
|
|
Have you tried of debugging the method which uses to add phone numbers in the List? Suspect on setNewUserPhoneno too.
|
No pain, No gain.
OCJP 1.6
|
 |
 |
|
|
subject: new added element to list will update all current elements of the list while using session bean
|
|
|