Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1429

tr:message is not displayed when it is used in tr:table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.10-core
    • None
    • Components
    • None
    • I have jboss 4.2.3 jre6 iI'm using trinidad 1.2.10

    Description

      When I'm tring to display custom validation message in jsp which in located in tr:table it is not displayed, but outside table it is
      as I see bug is in tr:message tag because when i replace it with h:message it works.
      code:
      <tr:table value="#

      {bean.taskList}

      " var="task" id="taskId"
      varStatus="taskStat" emptyText="No task found">
      ........
      <tr:column align="center">
      <f:facet name="header">
      <tr:outputText value="Save" />
      </f:facet>
      <tr:commandLink text="save" id="savetask"
      actionListener="#

      {bean.addOrEditTask}

      ">
      <f:facet name="extraParameter">
      <f:param name="commandLinkParamCode" value="#

      {task}

      " />
      </f:facet>
      </tr:commandLink>
      </tr:column>
      .........
      <tr:column>
      <tr:message for="savetask"/>
      <%-- <h:message for="savetask" style="color:Red;" /> --%>
      </tr:column>
      </tr:table>
      I'm putting message in facescontext this way
      facesContext.addMessage(link.getClientId(facesContext),
      new FacesMessage(FacesMessage.SEVERITY_ERROR, errormessage, null));

      Attachments

        1. trinidad-message-test.rar
          13 kB
          Natela Gdzelishvili

        Activity

          People

            Unassigned Unassigned
            ngdzelishvili Natela Gdzelishvili
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: