Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1808

h:commandLink doesn't execute action when Javascript is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.1.5
    • None
    • JSR-127
    • None
    • Liferay Portal 4.3.5, Tomcat 6.0, Java 6

    Description

      I run the following view in a portlet (Liferay 4.3.5). I also have a navigation rule for the "back" action.
      simple page:
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

      <f:view>
      <f:loadBundle basename="Language" var="msgs" />
      <h:form id="articleForm">
      <h:outputText value="ARTICLE" />
      <h:commandLink action="back" value="back"/>
      </h:form>
      </f:view>

      In the rendered page, when I click on the link. Nothing happens.

      Debugging the code shows me that the form is not set to submitted in the restore phase.
      (org.apache.myfaces.shared_impl.renderkit.html.HtmlFormRenderBase, line 227 in version 1.1.5)

      When clicking the link, the form is not submitted and the parameter articleForm_SUBMIT is not added to the request.

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              mgoldhahn Martin Goldhahn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: