[seam-issues] [JBoss JIRA] Commented: (JBSEAM-4273) edit.xhtml.ftl template cause duplicate id changeParent and selectParent

Henning Sprang (JIRA) jira-events at lists.jboss.org
Sat Feb 13 13:43:10 EST 2010


    [ https://jira.jboss.org/jira/browse/JBSEAM-4273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12514344#action_12514344 ] 

Henning Sprang commented on JBSEAM-4273:
----------------------------------------

I'm affected, too.

A slightly different solution is mentioned here: http://seamframework.org/Community/Seam212ProblemWithRichtabPanelInXXXEditxhtml

> edit.xhtml.ftl template cause duplicate id changeParent and selectParent
> ------------------------------------------------------------------------
>
>                 Key: JBSEAM-4273
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4273
>             Project: Seam
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 2.1.2.GA
>         Environment: SEAM_HOME/seam-gen/view/edit.xhtml.ftl
>            Reporter: Julien Kronegg
>
> When a MyEntityEdit.xhtml page with more than one foreign key is generated, the "Select" / "Change" button is generated with an id "changeParent" or "selectParent" for each foreign key.
> This causes "duplicate id" errors when displaying the page.
> The button id must be changed to be unique, e.g. by suffixing with the property name.
> The line 136:
>             <s:button id="${'#'}{${homeName}.instance.${property.name} != null ? 'changeParent' : 'selectParent'}" value="${'#'}{${homeName}.instance.${property.name} != null ? 'Change' : 'Select'} ${property.name}"
> must be replaced by:
>             <s:button id="${'#'}{${homeName}.instance.${property.name} != null ? 'changeParent${property.name?cap_first} ' : 'selectParent${property.name?cap_first}'}" value="${'#'}{${homeName}.instance.${property.name} != null ? 'Change' : 'Select'} ${property.name}"
> I did not find references to the button id elsewhere, so it seems that no side effect will appear.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list