3 Replies Latest reply on Nov 14, 2007 7:45 AM by rlhr

    Strange  rendering of anchor content

      I just upgraded to Seam 2.0GA on Jboss-4.2.0GA using the richfaces jar from Seam.

      I wasn't using Richfaces before and I'm just giving it a try now.

      I noticed a strange behaviour: In my xhtml page, I have the following code:

      <h:form>
       <h:commandLink action="skipLogin" styleClass="button">
       <pc:button value="#{messages.COMMON_BUTTON_TEXT_CONTINUE}" />
       </h:commandLink>
      </h:form>
      


      My custom tag renders the following:

      <ul id="j_id42" class="button grey">
       <li>...</li>
       <li class="flex">Continue</li>
       <li>...</li>
      </ul>
      


      Without using ajax4jsf filter in Seam, I get the right html in my page, but when setting the filter in Seam to use ajax4jsf in other pages, the following is rendered:

      <a href="#" onclick="if(typeof jsfcljs =='function'){...}return false"></a>
      <ul id="j_id42" class="button grey">
       <li>...</li>
       <li class="flex">Continue</li>
       <li>...</li>
      </ul>
      


      As you can see the code generated by my custom tag is now outside the anchor!

      Note: I'm not even using ajax4jsf in this page, but obviously the page has be rewritten by the filter I guess.

      Any idea? Is this a known bug?

      Thanks,

      Richard