Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

You can embed almost any HTML, a4j:, h:, f:, or rich: tag in a rich:modalPanel.

You may see some UI designs in Seam apps which require one or more rich:modalPanel components in the same xhtml page with multiple CRUD forms (e.g. insert and/or update records) in the same LRC.

In order to isolate the persistence operations for all forms, you can use two different Seam-managed persistence contexts (SMPC) based on two different persistence units (PU) pointing to the same DB in the foo-ds.xml file.

Because the SMPC is conversation-scoped, when you flush the SMPC at the end of the conversation, you need to make sure that the managed entities in the SMPC are synchronized with the DB for only the current form that you just submitted.

Atomic conversations are achieved via SMPC and Hibernate manual flush mode enabled.

Keep this tip in mind when you have editable forms in modalPanels so that changes to one form will not persist changes to other forms prematurely.

related thread: click here