i have a question concerning two java beans, which was declared in faces-config.xml and have two different managed-bean-scopes in JSF 1.2. First of all i would like to explain the problem, which i have now.
I have the possibility to export some information from my java system into an another system (the details of the data and their concret transport way are not so important i think).
Important is in my opinion, that the java bean, which triggers that export, has the managed bean scope "session". The data export works i the background of my system and need this session scope.
The user can see an information in the jsf / xhtml page, that the export was started and here is the concret problem:
<ui:repeat value="#{adminArea.informationForExport}" var="info">
<h:outputText value="#{info}" />
</ui:repeat>
This information is a part of the HTML DOM each time and will not disappears, if the user watch an another xhtml page in my system and goes back to this xhtml page, on that he can start the data export.
My Bean "adminArea" was declared in faces-config.xml with the managed bean scope "session" and implemented the java code for the data export:
<managed-bean>
<managed-bean-name>adminArea</managed-bean-name>
<managed-bean-class>resources.adminArea</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
The declared bean "adminArea" was refered as a managed property in the bean "newCalculation", which was the managed bean scope "request":
<managed-bean>
<managed-bean-name>newCalculation</managed-bean-name>
<managed-bean-class>resources.calculation</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>adminArea</property-name>
<value>#{adminArea}</value>
</managed-property>
</managed-bean>
This bean needs the managed bean scope "request".
Is the only way the change the managed bean scope of the bean "adminArea" from "session" into "request"? But that causes the problem, that my data export doesn´t work in the background.
Or can i solve this problem with other instruments?
Greetz Marwied