[
http://jira.jboss.com/jira/browse/JBIDE-1193?page=all ]
Alexey Kazakov resolved JBIDE-1193.
-----------------------------------
Resolution: Done
Testcase:
1. EXECUTE: Create seam war project
2. EXECUTE: open Authenticator.java
3. EXECUTE: Add:
@DataModel List list;
@DataModelSelection(value="list") String item;
4. ASSERT: There are not error markers on DataModel and DataModelSelection
5. EXECUTE: Remove (value="list"):
@DataModel List list;
@DataModelSelection String item;
6. ASSERT: There are not error markers on DataModel and DataModelSelection
7. EXECUTE: Add @DataModel List list2:
@DataModel List list;
@DataModel List list2;
@DataModelSelection String item;
8. ASSERT: There are two error markers:
"@DataModelSelection and @DataModelSelectionIndex without name of the DataModel
requires the only one @DataModel in the component"
on both @DataModel
Seam validator reports unknown @DataModel for @DataModelSelection
-----------------------------------------------------------------
Key: JBIDE-1193
URL:
http://jira.jboss.com/jira/browse/JBIDE-1193
Project: JBoss Tools
Issue Type: Bug
Affects Versions: 2.0.0.Beta4
Reporter: Jacob Orshalick
Assigned To: Alexey Kazakov
Priority: Minor
Fix For: 2.0.0.CR1
Using Beta2 with a Seam generated project and I have encountered an issue with the Seam
validator and @DataModelSelection. The Seam Validator reports an error if the value
attribute is not specified for an @DataModelSelection. Once the value attribute is
provided, the validation passes.
For example, the following is reported as invalid:
@DataModel
private List<Booking> bookings;
@DataModelSelection
private Booking booking;
while the following is valid:
@DataModel
private List<Booking> bookings;
@DataModelSelection(value="bookings")
private Booking booking;
If only one @DataModel is specified in a component, it is not necessary to specify a
value for @DataModelSelection. Thanks.
--
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