Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1062

InputTextArea doesn't work properly inside facet DetailStamp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.6
    • None
    • None
    • None
    • OS: windows xp prof.
      BROWSER: firefox , ie7
      AS: JBOSS 4.0.4 GA EJB3.0 RC8

    Description

      I use a inputTextarea inside a datailStamp in each row of a dataTable.
      When I edit the value of a inputTextarea and I show the detailStamp of another row I get the same value of the edited one.
      This happends for every rows.

      Follow the sample code of my dataTable:

      <t:dataTable styleClass="dataTable" style="margin: 10px;"
      value="#

      {TaskManagerBean.tasks}

      " var="task"
      id="data"
      rows="20"
      rowClasses="odd, even"
      preserveDataModel="false"
      preserveSort="true"
      varDetailToggler="detailToggler"
      renderedIfEmpty="false">

      ........

      <h:column>
      <f:facet name="header">
      <h:outputText value="DETAILS" />
      </f:facet>
      <h:commandLink rendered="#

      {detailToggler.currentDetailExpanded}

      " action="#

      {detailToggler.toggleDetail}">
      <h:outputText value="Hide" />
      </h:commandLink>
      <h:commandLink rendered="#{!detailToggler.currentDetailExpanded}" action="#{detailToggler.toggleDetail}

      ">
      <h:outputText value="Show" />
      </h:commandLink>
      </h:column>
      <f:facet name="detailStamp">
      <t:panelGroup layout="block">

      .........

      <t:panelGroup>
      <t:outputText style="text-align:left;" value="info Wet"/>
      <t:htmlTag value="br"></t:htmlTag>
      <t:inputTextarea id="textarea" style="width:400px;height:200px;" value="#

      {task.infoWet}

      "/>
      <t:htmlTag value="br"></t:htmlTag>
      <t:commandButton value="Save" action="#

      {TaskManagerBean.saveInfoWet}

      ">
      <t:updateActionListener property="#

      {TaskManagerBean.selectedTask}

      " value="#

      {task}

      " />
      </t:commandButton>
      </t:panelGroup>

      ..........

      </t:panelGroup>

      </f:facet>

      ..........

      </t:dataTable>

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              mita michele tarantino
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: