Branch: refs/heads/master
Home:
https://github.com/forge/core
Commit: 065e3161858eb804174dfcb525e313eb02c73a89
https://github.com/forge/core/commit/065e3161858eb804174dfcb525e313eb02c7...
Author: Vineet Reynolds <Vineet.Reynolds(a)gmail.com>
Date: 2013-07-05 (Fri, 05 Jul 2013)
Changed paths:
M
scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/inspector/ForgeInspectionResultConstants.java
M
scaffold-faces/src/main/java/org/jboss/forge/scaffold/faces/metawidget/widgetbuilder/EntityWidgetBuilder.java
M scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/FacesScaffoldTest.java
M
scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/PrimaryKeyFacesScaffoldTest.java
M
scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/metawidget/widgetbuilder/EntityWidgetBuilderTest.java
M
scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/scenario/petclinic/FacesScaffoldPetClinicClient.java
M
scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/scenario/petclinic/FacesScaffoldPetClinicTest.java
M
scaffold-faces/src/test/java/org/jboss/forge/scaffold/faces/scenario/shopping/FacesScaffoldShoppingClient.java
Log Message:
-----------
FORGE-873 Overrides behavior of default HtmlWidgetBuilder for rendering h:selectOneMenu
widgets.
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. 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.
This is also done when a link is displayed to another entity in the view screen.