[JBoss JIRA] (FORGE-974) Faces scaffolding does not correctly update collection members involved in bi-directional relationships when saving an edited entity
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-974?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds commented on FORGE-974:
---------------------------------------
Some technical details:
Collection members of an entity are displayed in a datatable. When an item is deleted from this table, it is deleted from the underlying collection through an EL expression:
{noformat}
#{_collection.remove(_item)}
{noformat}
This EL expression is not aware of the participation of the collection in a bi-directional relationship. When the composing entity is merged back into the persistence context, any deletions of instances from the collection are not recorded since they need to be done on both sides.
> 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
10 years, 10 months
[JBoss JIRA] (FORGE-974) Faces scaffolding does not correctly update collection members involved in bi-directional relationships when saving an edited entity
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-974?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds updated FORGE-974:
----------------------------------
Description:
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.
was:
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.
> 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
10 years, 10 months
[JBoss JIRA] (FORGE-974) Faces scaffolding does not correctly update collection members involved in bi-directional relationships when saving an edited entity
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-974?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds updated FORGE-974:
----------------------------------
Summary: Faces scaffolding does not correctly update collection members involved in bi-directional relationships when saving an edited entity (was: Faces scaffolding does not correctly update collection members involved in bi-directional relationships)
> 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
>
> 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.
--
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
10 years, 10 months
[JBoss JIRA] (FORGE-974) Faces scaffolding does not correctly update collection members involved in bi-directional relationships
by Vineet Reynolds (JIRA)
Vineet Reynolds created FORGE-974:
-------------------------------------
Summary: Faces scaffolding does not correctly update collection members involved in bi-directional relationships
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
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.
--
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
10 years, 10 months
[JBoss JIRA] (FORGE-926) It should be : maxlength instead of maxLength
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-926?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-926:
----------------------------------
Assignee: Vineet Reynolds
> It should be : maxlength instead of maxLength
> ---------------------------------------------
>
> Key: FORGE-926
> URL: https://issues.jboss.org/browse/FORGE-926
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.0.Final, 1.2.1.Final, 1.2.2.Final, 1.3.0.Final
> Environment: Any
> Reporter: Hanine Hanynowsky
> Assignee: Vineet Reynolds
> Priority: Minor
> Fix For: 1.3.3.Final
>
>
> The JBoss Forge UI scaffold uses maxLength as the attribute name instead of maxlength, when generating <h:inpuText /> components, in .xhtml files.
> So this is a typo error (capital L instead of a lowercase l).
> People using Eclipse or JBoss developer might notice it since, these IDEs do not complain about it. If you use Netbeans or IntelliJidea, you would be prompted to correct the error.
> This has no critical consequences so far, but should be changed to correct name.
--
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
10 years, 10 months
[JBoss JIRA] (FORGE-926) It should be : maxlength instead of maxLength
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-926?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-926:
----------------------------------
Fix Version/s: 1.3.3.Final
(was: 1.x Future)
> It should be : maxlength instead of maxLength
> ---------------------------------------------
>
> Key: FORGE-926
> URL: https://issues.jboss.org/browse/FORGE-926
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.0.Final, 1.2.1.Final, 1.2.2.Final, 1.3.0.Final
> Environment: Any
> Reporter: Hanine Hanynowsky
> Priority: Minor
> Fix For: 1.3.3.Final
>
>
> The JBoss Forge UI scaffold uses maxLength as the attribute name instead of maxlength, when generating <h:inpuText /> components, in .xhtml files.
> So this is a typo error (capital L instead of a lowercase l).
> People using Eclipse or JBoss developer might notice it since, these IDEs do not complain about it. If you use Netbeans or IntelliJidea, you would be prompted to correct the error.
> This has no critical consequences so far, but should be changed to correct name.
--
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
10 years, 10 months