myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Dubois (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOBAGO-1875) Collapsible Section AJAX-Style doesn't work in <tc:sheet>/<tc:column>
Date Fri, 16 Mar 2018 17:01:00 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402188#comment-16402188
] 

Guido Dubois commented on TOBAGO-1875:
--------------------------------------

This doesn't work in a sheet. Clicking on DOWN shows the section content, but then the ajax
loading arrow circle starts to run and at the end the section content disapears.
{code:java}
        <tc:sheet id="products" value="#{sessionController.products}" var="product"
          rows="25" selectable="none" _markup="small striped hover" >
          <tc:column label="ID">
            <tc:out value="#{product.idproduct}" />
          </tc:column>
          <tc:column label="Name">
            <tc:section id="productSection" label="#{product.productdataeditable.productname}"
              collapsed="true" collapsedMode="hidden">
              <f:facet name="bar">
                <tc:buttons>
                  <tc:button id="showProduct" image="fa-chevron-down">
                    <f:ajax execute="productSection" render="productSection"/>
                    <tc:operation name="show" for="productSection"/>
                  </tc:button>
                  <tc:button id="hideProduct" image="fa-chevron-up" immediate="true">
                    <f:ajax execute="productSection" render="productSection"/>
                    <tc:operation name="hide" for="productSection"/>
                  </tc:button>
                </tc:buttons>
              </f:facet>
              <tc:out id="outProduct" value="Dies ist Content..." />
            </tc:section>
          </tc:column>
        </tc:sheet>
{code}
 

For example with this code it works fine as expected.
{code:java}
        <tc:panel>
          <tc:segmentLayout extraSmall="auto 1fr" marginExtraSmall="none" >
            <tc:out id="id" value="#{sessionController.product.idproduct}"/>
            <tc:section id="ajaxSection" label="#{sessionController.product.productdataeditable.productname}"
              collapsed="true" collapsedMode="absent" >
              <f:facet name="bar">
                <tc:buttons>
                  <tc:button id="showAjax" image="fa-chevron-down" >
                    <f:ajax execute="ajaxSection" render="ajaxSection"/>
                    <tc:operation name="show" for="ajaxSection"/>
                  </tc:button>
                  <tc:button id="hideAjax" image="fa-chevron-up" immediate="true">
                    <f:ajax execute="ajaxSection" render="ajaxSection"/>
                    <tc:operation name="hide" for="ajaxSection"/>
                  </tc:button>
                </tc:buttons>
              </f:facet>
              <tc:out id="outAjax" value="Dies ist Content..." />
            </tc:section>
          </tc:segmentLayout>
        </tc:panel>
{code}

> Collapsible Section AJAX-Style doesn't work in <tc:sheet>/<tc:column>
> ---------------------------------------------------------------------
>
>                 Key: TOBAGO-1875
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1875
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 4.1.0
>            Reporter: Guido Dubois
>            Priority: Major
>
> Exists a way for <tc:sheet> to get the row numbers like in <c:foreach varStatus="..."
> to define
> <tc:section id="ajaxSection_[rownumber]" label=""...><br>
>  <f:ajax execute="ajaxSection_[rownumber]" render="ajaxSection_[rownumber]"/><br>
>  <tc:operation name="show" for="ajaxSection_[rownumber]"/>
>  ...
> Perhaps you have an example?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message