0 Replies Latest reply on Dec 16, 2009 10:37 AM by knollfrank

    duplicate ids on Edit.xhtml page

    knollfrank

      Hi,


      when there are at least two toOne relationships for an entity A then on the entities AEdit.xhtml page there will be two buttons with the same id because of the following code in jboss-seam-2.2.0.GA/seam-gen/view/edit.xhtml.ftl:


               <div class="actionButtons">
                  <s:button id="${'#'}{${homeName}.instance.${property.name} != null ? 'changeParent' : 'selectParent'}" value="${'#'}{${homeName}.instance.${property.name} != null ? 'Change' : 'Select'} ${property.name}"
                             view="/${parentPageName}List.xhtml">
                      <f:param name="from" value="${pageName}Edit"/>
                  </s:button>
              </div>
      



      Should 'changeParent' be replaced by 'change${parentPojo.shortName?capfirst}' and 'selectParent' by 'select${parentPojo.shortName?capfirst}' in order to make this ids unique?


      Cheers, Frank