Hi
I do that sort of stuff all the time.
It' just a matter of naming:
<managed-bean id="open-havna">
<managed-bean-name>open$havna</managed-bean-name>
<managed-bean-class>
com.opstvedt.osseil.viewcontrollers.InfoViewController
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
....
</ managed-bean>
<managed-bean id="open-medlem">
<managed-bean-name>open$medlem</managed-bean-name>
<managed-bean-class>com.opstvedt.osseil.viewcontrollers.InfoViewController</
managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
...
</ managed-bean>
Hermod
-----Opprinnelig melding-----
Fra: Torsten Krah [mailto:[EMAIL PROTECTED]
Sendt: 29. april 2007 12:11
Til: [email protected]
Emne: ViewController Mapping - One Bean backing more than one View
The default ViewController Mapping maps the ViewId with $ to the Bean
name.
However, if you got more than one page and want to use "one" bean to
manage it - how to do?
Example - a view only and a edit page for a customer can use the same
"bean" - although the view ID is different.
Have i have to use a custom implementation of the Mapper class or is
there already another way to do this - maybe through clay symbols or
somewhat else?
Torsten