The Openbravo Seam module integrates Seam with Openbravo, making it possible to develop Seam applications on top of Openbravo. The OB Seam module is a special module in that it provides custom implementations of specific Openbravo core (DAL) classes. This is a good example of the extendability provided by Openbravo modularity!
The OB Seam module implements two specific Seam/Openbravo integration points:
- Session/Transaction handling
- User context as a Seam component.
The user context as a Seam component: the module makes the OBContext object available through the OBUserContext component. The module contains an example of a Seam authenticator which authenticates a user/password against the Openbravo user database, the authenticator adds the Openbravo role in the Seam identity object.
The OB Seam module is shipped with a small example app (developed with RichFaces/JSF) which allows a user to login with his/her Openbravo account and then view the content of all tables available for the current role of the user. The user can switch role to view the content of other tables. The table view is a paging grid with a detail view.
After installing the module (read the install tips here) and starting Openbravo you can reach the example app through this url:
http://localhost:8080/openbravo/web/org.openbravo.base.seam/page/show-entities.xhtml.
Make sure that the browser has enough horizontal space (the grid/detail are layed out horizontally) then login using your Openbravo login/pwd (for example: Openbravo/openbravo).
To help you getting started, there is a short developers manual available here.
The module is available through the central repository. I invite you to try it out, it should be easy to extend the example app. As always feel free to share your experience with us!
Update April 2010
To facilitate the download size, the original Seam module has been split in several modules:
- Base Seam: the original Seam module now provides the main backend integration with Openbravo but no jsf/user interface parts.
- Seam Richfaces: provides the JSF and Richfaces parts of Seam.
- Seam Test: provides the Seam test environment.
0 reacties:
Een reactie posten