1 Reply Latest reply on Feb 24, 2008 6:31 AM by Andrew

    Trinidad 1.2.6 and Seam 2.0.1 incompatibility

    Andrew Apprentice

      It seems that at least one seam component is not compatible with the trinidad framework form component:


      <tr:form>
        <tr:commandLink
          id="switcherLink"
          text="Test"
          partialSubmit="true"
          actionListener="#{testBean.onSwitch}">
          <s:conversationPropagation type="join"/>
        </tr:commandLink>
      </tr:form>



      Error:


      Caused by: java.lang.ClassCastException: org.apache.myfaces.trinidad.component.core.CoreForm cannot be cast to javax.faces.component.UIForm
              at org.jboss.seam.ui.util.cdk.RendererUtils.getForm(RendererUtils.java:48)
              at org.jboss.seam.ui.renderkit.CommandButtonParameterRendererBase.doEncodeEnd(CommandButtonParameterRendererBase.java:38)
              at org.jboss.seam.ui.util.cdk.RendererBase.encodeEnd(RendererBase.java:104)
              at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:556)



      Is there a work around while continuing to use tr:form?

        • 1. Re: Trinidad 1.2.6 and Seam 2.0.1 incompatibility
          Andrew Apprentice

          Of course, right after I posted the forum question, I found the workaround.



              <tr:commandLink
                id="switcherLink"
                text="Test"
                partialSubmit="true"
                actionListener="#{testBean.onSwitch}">
                <f:param name="conversationPropagation" value="join"/>
              </tr:commandLink>




          I did create a bug to see if the component can be made to work with Trinidad: JBSEAM-2665