aspose file tools
The moose likes JSF and the fly likes new added element to list will update all current elements of the list while using session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "new added element to list will update all current elements of the list while using session bean" Watch "new added element to list will update all current elements of the list while using session bean" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: new added element to list will update all current elements of the list while using session bean
 
Similar Threads
Neither BindingResult nor plain target object for bean name 'vids2m1' available as request attribute
Jsf Data table values are coming as null
Birth Date nightmare - passing variable between beans and java objects
Passing hidden Input to backing bean
jsf problem go from jsp page to another jsp in new window