[
https://issues.jboss.org/browse/FORGE-914?page=com.atlassian.jira.plugin....
]
Vineet Reynolds updated FORGE-914:
----------------------------------
Issue Type: Bug (was: Task)
Description:
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.
was:
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.
This task is a holder to fix such kind of issues in handling associations in the generated
scaffold. Create sub-tasks as necessary for the individual issues that need fixing.
Rework the handling of 1:M relationships by the Faces/RichFaces
scaffold
------------------------------------------------------------------------
Key: FORGE-914
URL:
https://issues.jboss.org/browse/FORGE-914
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.0.5.Final, 1.3.0.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Fix For: 1.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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira