[
https://issues.jboss.org/browse/FORGE-974?page=com.atlassian.jira.plugin....
]
RH Bugzilla Integration commented on FORGE-974:
-----------------------------------------------
Vineet Reynolds <vpereira(a)redhat.com> made a comment on [bug
978076|https://bugzilla.redhat.com/show_bug.cgi?id=978076]
Description of problem:
Deletion of performance dates and Ticket Prices doesn't work from the Edit Show
screen. The items disappear, but after pressing "Save" button, they are back.
Version-Release number of selected component (if applicable):
How reproducible: Always
Steps to Reproduce:
1. Click an existing Show from the list of all Shows to view the Show details.
2. Click the Edit button to begin editing the Show.
3. Delete an existing Performance and/or a Ticket price.
4. Save the modified Show.
5. View the modified Show.
Actual results:
The deleted performances and ticket prices re-appear.
Expected results:
The deleted performances and ticket prices should be deleted on saving the modified Show.
Additional info:
This an underlying issue in JBoss Forge and not in the TicketMonster example .No
workaround for this issue is currently known.
Faces scaffolding does not correctly update collection members
involved in bi-directional relationships when saving an edited entity
------------------------------------------------------------------------------------------------------------------------------------
Key: FORGE-974
URL:
https://issues.jboss.org/browse/FORGE-974
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.3.1.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
The generated scaffold does not contain any logic to update collection properties of a
JPA entity. This results in incorrect behavior when the collection is part of a
bi-directional relationship in JPA.
This is because no logic exists to remove both sides of the relationship when an entity
instance is removed from the collection. The result of this absence in logic is that
removal of entities from collection properties do not succeed. Upon save, the collection
returns to it's previous state.
Addition of members to the collection property are however performed correctly. Since the
Faces scaffold does not allow updates to properties of the the individual members in the
collection, no other issue is observed, except for the inability to update the collection
state correctly.
--
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