Is it possible to reuse a single page attached several times to different objects?
I have a page where you can enter personal information (name, address, social number, ...), connect to one of the bean: perspective. In some cases, I have to collect related personal information. example for credit scoring (person and guarantor).
So, I wanted to use with 2 included. But how can I make sure that include1 contains information for person1 and include2 contains information for person2?
<rich:tabPanel id="creditScoreTab" switchType="client" >
<rich:tab id="mainContractor" >
<ui:include src="includes/prospect.xhtml" />
</rich:tab>
<rich:tab id="guarantor">
<ui:include src="includes/prospect.xhtml" />
</rich:tab>
</rich:tabPanel>
and facescontext
<managed-bean>
<managed-bean-name>prospect</managed-bean-name>
<managed-bean-class>be.foo.Prospect</managed-bean-class>
<managed-bean-scope>view</managed-bean-scope>
</managed-bean>
2 :
-duplicate page 2 beans faces-config ( java)
- tabpanel , person1 info, man2 info person2.
1 - , . 2 , "" ( ).