-
1. Re: page error "duplicate Id for a component selectParent"
lhyna Jul 1, 2009 8:42 PM (in response to jsfcoder)Hi! a have just the same issue (but I'm really newly at this), and I have a lot more tables :(
I also try with YuTian' example, and it really doesn't work, I create a DB in MySql with the tables YuTian describe, use seam-gen generate, and when I tried to create a new row in entity1 the
duplicate Id for a component selectParent
appears.Any clue?
-
2. Re: page error "duplicate Id for a component selectParent"
acgrama Jul 29, 2009 1:15 PM (in response to jsfcoder)I get the same error for the same conditions as YuTian - is this a bug / has anyone submitted a bug report?
Thanks! -
3. Re: page error "duplicate Id for a component selectParent"
acgrama Jul 29, 2009 1:18 PM (in response to jsfcoder)PS -- My environment: JBoss SEAM 2.1.2, Java 6, Windows, MySQL 5.0.
-
4. Re: page error "duplicate Id for a component selectParent"
aruizsanva Aug 8, 2009 4:49 PM (in response to jsfcoder)Yes, it is a bug. Quick solution:look at seam-home/seam-gen/view/edit.page.xml.ftl
and change the following line:
<s:button id="${'#'}{${homeName}.instance.${property.name} != null ? 'changeParent' : 'selectParent'}" value="${'#'}{${homeName}.instance.${property.name} != null ? 'Change' : 'Select'} ${property.name}"
for:
<s:button id="${'#'}{${homeName}.instance.${property.name} != null ? 'changeParent${property.name}' : 'selectParent${property.name}'}" value="${'#'}{${homeName}.instance.${property.name} != null ? 'Change' : 'Select'} ${property.name}"
Enjoy!!!
-
5. Re: page error "duplicate Id for a component selectParent"
yannfromparis Aug 19, 2009 10:02 AM (in response to jsfcoder)Thanks a lot Adrian,
I've tested your solution and it works like a charm, although in Seam 2.2.0.GA it's the edit.xhtml.ftl file that has to be modified.
The generated view works just fine, even if I've experimented some strange behaviors in
required fields
flags. I don't get the logic behind this, considering I've got an entity attribute which is not required to instantiate the object, which can be null, and it's still flagged asrequired
. Any clue ?Yann
-
6. Re: page error "duplicate Id for a component selectParent"
acgrama Aug 26, 2009 2:38 PM (in response to jsfcoder)Thank you for the solution! :)
-
7. Re: page error "duplicate Id for a component selectParent"
acgrama Aug 26, 2009 2:39 PM (in response to jsfcoder)Thanks for the edit.xhtml.ftl addition!
-
8. Re: page error "duplicate Id for a component selectParent"
sherifgmansour Sep 10, 2009 3:53 AM (in response to jsfcoder)Hey Guys,
Is there a Jira BUG raised for this or should I raise one? Just wanting to know if we should vote/watch it. -
9. Re: page error "duplicate Id for a component selectParent"
magnus Oct 21, 2009 4:03 PM (in response to jsfcoder)Works great! Thanks for the solution and the addition.