]
George Gastaldi updated FORGE-914:
----------------------------------
Summary: Rework the handling of 1:M relationships by the Faces scaffold (was: Rework
the handling of 1:M relationships by the Faces/RichFaces scaffold)
Rework the handling of 1:M relationships by the Faces scaffold
--------------------------------------------------------------
Key: FORGE-914
URL:
https://issues.jboss.org/browse/FORGE-914
Project: Forge
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Scaffold
Affects Versions: 1.0.5.Final, 1.3.0.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Priority: Critical
Fix For: 2.x Future
The generated Faces scaffold for 1:M relationships does not handle certain usability
aspects.
For example, a new row is automatically added by default when displaying a 1:M
relationship upon create. However, unless the add button is clicked, the contents of the
row are not added to the underlying managed bean. If the add button is not clicked, the
contents of the row are not treated as a new item to be added. This is very confusing.
Also, if bean validation is performed on the entities (in the rows of the 1:M
relationship), and if it fails, then the contents need to be corrected, even though they
may not be persisted in the database. Again, this is confusing behavior.
Additionally, deletion of entities from the collection (1-side of the association) seems
to be broken (FORGE-974).