Hi,
i work mainly with 4 classes.
CalculationManager:
- serves the business logic for the interaction with the user
- holds a Calculation Object
Calculation:
- Entity Bean
- holds all data provided by the user
ExpressCalculator:
- executes a calculation for a passed Calculation object
- returns a BudgetOverview object
BudgetOverview:
- holds all data which should be returned to the user
Workflow:
1. every time the user starts a calculation a (long running) conversation is
started and a Calculation object is created which holds all data.
2. When the user has passed all information a calculation is executed. and the
response is stored in the BudgetOverview object
3. the CalculationManager gets this BudgetOverview object and outjects it to
the conversation scope. Then the user is redirected to the page where the
response is rendered and after that the conversation ends.
And within the BudgetOverview there is the DataModel selectitems which should
also be outjected to the conversation scope.
the part of the xhtml looks like that:
<ui:define name="content">
| <h1>Budget Overview</h1>
| <div>
| <span>BuildingTyp: </span>
| <h:outputText value="#{budgetOverview.buildingType}"/><br/>
| <span>Area: </span>
| <h:outputText value="#{budgetOverview.area}"/>
| </div>
| <h:dataTable value="#{costitems}" var="item">
| ... columns
| </h:dataTable>
| </ui:define>
works fine fot the #{budgetOverview.attributes} but not for the @Datamodel
thanks for help,
hasc
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047182#4047182
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047182
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user