using multiple instances of bean
Hello everybody,
i'm relatively new with jsf and have a question about using many instances of the same bean in a jsp page.
I explain my case:
i have bean1 which extends another bean2.
in a jsp page i include 4 other jsp pages.
each of this 4 pages is binded with 4 instances of the same bean1 which entries i've created in the faces-config.xml
but the data member , which i use for filling the 4 pages,is taken from bean2 of bean1.
How can i save all the data of the 4 beans?
Hope i've bean clear.
Thanks
bye
[581 byte] By [
malamocka] at [2007-11-27 8:08:17]

# 2
What you are asking does not make much sense.
First, it does not matter if bean1 extends bean2. If the propery or method is public then it is accessible. So there would be no problem using the propery or method in an EL expression.
Second why did you declar thee bean 4 times in faces-config. I assume you gave them all different names? Did you intend for each of these instances to be different from each other? Remember you cannot separate bean instances by scope, only by name.
save using "#{beanName.beanProperty}