[
https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin....
]
Vineet Reynolds closed FORGE-873.
---------------------------------
Fix Version/s: 1.3.3.Final
(was: 1.x Future)
Resolution: Done
Pushed upstream:
https://github.com/forge/core/commit/065e3161858eb804174dfcb525e313eb02c7...
The selectOneMenu widgets are generated with labels whenever these happen to be lookups on
other entities. The behavior of depending on toString() is done away with, since this is
not dependable as demonstrated here.
Additionally, due to Metawidget limitations, it is not possible to determine whether a
toString() method is defined on an entity, and then adjust the generated widget. Hence, we
now generate labels containing the primary keys of the other side of the relationship.
This is also done for the search results when a reference to another entity is displayed,
and also when a link is displayed to another entity in the view screen.
Scaffold doesn't shows the correct referenced entities in edit
views, while in details views shows something like
"org.forgetest.model.Entity@5f9ba38e"
-------------------------------------------------------------------------------------------------------------------------------------------------------
Key: FORGE-873
URL:
https://issues.jboss.org/browse/FORGE-873
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.2.3.Final
Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
Reporter: claudio perrotta
Assignee: Vineet Reynolds
Fix For: 1.3.3.Final
For a table with a foreign key the UI permits to select the possible values, but this
values are listed in a dropdown menu in a form like
"org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string
present be relative to the PK referenced)
Anyway, after setting this field and submitting the form, the data are inserted in the
table correctly but when i want to modify the record, the UI doesn't show the setted
value for the foreign key and i must set it again before saving.
--
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