@DataModelSelection: allowing for initial value
-----------------------------------------------
Key: JBSEAM-2334
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2334
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 2.0.0.GA
Reporter: Marc Lustig
Priority: Critical
@DataModel
private List<Area> areas;
@Out
@DataModelSelection
private Area selectedArea;
@Begin
public String begin() {
selectedArea = new Area(3);
}
The above code sets an initial value for the selectedArea (=preselection).
However, after leaving the @Before-annotated method, Seam overwrites selectedArea with the
first item of List<Area>.
Hence, it is impossible to set an initial value, which is a basic requirement for
web-UIs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira