First question:
I have two windows (of IE), with the first window I'm making a search on a screen and then, I'm making another search with the second window. After that, I'm losing one of my two sessions and here my question, is it possible to have 2 windows that make a different search and which have their own results in their own session or is it impossible ?
Second question:
<managed-bean>
<managed-bean-name>searchBean</managed-bean-name>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>resultBean</property-name>
</managed-property>
<managed-bean>
<managed-bean-name>resultBean</managed-bean-name>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>tabMap</property-name>
<map-entries>
<key-class>java.lang.Integer</key-class>
<map-entry>
<key>0</key>
<value>#{firstTabBean}</value>
</map-entry>
<map-entry>
...
</map-entry>
</map-entries>
</managed-property>
<managed-bean>
<managed-bean-name>firstTabBean</managed-bean-name>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>resultBean</property-name>
<value>#{resultBean}</value>
</managed-property>
In fact, in my resultBean (bean of my screen where the results are showed), I have a lot of tabs with others beans. But if my "resultBean" is request-scoped, I have to change the scope of all my "tabBean" because I can't have a session-scoped bean with request-scoped bean in the < managed-property>, the scope is shorter and I have an exception.