Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-4944

Seam annotated JSF converter breaks JPDL pageflow navigation

    Details

    • Steps to Reproduce:
      Hide

      Just follow the description above

      Show
      Just follow the description above

      Description

      When a JSF page contains a form referencing a Seam annotated JSF converter, the pageflow navigation does not work as expected.

      For example, the following form

      <h:form>
          <h:inputText id="name" converter="trimConverter" value="#{customerSearch.name}" />
          <h:commandButton value="Search" action="#{customerSearch.search}" />
      </h:form>
      

      does not work correctly inside a pageflow if the "trimConverter" is annotated as following:

      TrimConverter.java
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.Scope;
      import org.jboss.seam.annotations.faces.Converter;
      import org.jboss.seam.annotations.intercept.BypassInterceptors;
      
      @Name("trimConverter")
      @BypassInterceptors
      @Scope(STATELESS)
      @Converter
      public class TrimConverter implements javax.faces.convert.Converter, Serializable {
      }
      

      Everything works fine if the converter is annotated using @javax.faces.convert.FacesConverter as following:

      TrimConverter.java
      import javax.faces.convert.FacesConverter;
      
      @FacesConverter("trimConverter")
      public class TrimConverter implements javax.faces.convert.Converter, Serializable {
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ciaccia Andrea Martino
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: