Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10965

In Rich dataTable, [Enter] in h:inputText submits form

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Rejected
    • Affects Version/s: 4.0.0.Final
    • Fix Version/s: None
    • Component/s: component-tables
    • Labels:
    • Environment:

      Windows 7, Firefox 4, JBoss 6

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      <h:inputText value="#

      {dogsFilteringBean.nameFilter}

      "
      onkeypress="if (event.keyCode == 13)

      {return false;}

      else

      {return true;}

      ">

      Show
      <h:inputText value="# {dogsFilteringBean.nameFilter} " onkeypress="if (event.keyCode == 13) {return false;} else {return true;} ">

      Description

      Enter submits form when focus is on h:inputText in a rich:dataTable.

      <h:form id="dogForm">
      <rich:messages />
      <rich:dataTable value="#

      {dogsBean.allDogs}

      " var="dog" id="table"
      rows="30">
      <f:facet name="noData">
      <h:outputText value="#

      {msg['index.table.noData']}

      " />
      </f:facet>
      <rich:column filterValue="#

      {dogsFilteringBean.nameFilter}"
      filterExpression="#{fn:containsIgnoreCase(dog.name,dogsFilteringBean.nameFilter)}">
      <f:facet name="header">
      <h:panelGroup>
      <h:outputText value="#{msg['index.table.column.name']}" />
      <h:inputText value="#{dogsFilteringBean.nameFilter}

      "
      onkeypress="if (event.keyCode == 13)

      {return false;}

      else

      {return true;}

      ">
      <a4j:ajax event="blur" render="table" execute="@this" />
      </h:inputText>
      </h:panelGroup>
      </f:facet>
      <h:outputText value="#

      {dog.name}

      " />
      </rich:column>
      </rich:dataTable>
      </h:form>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                m1ckey Michal Huniewicz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: