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

Henning Noeth commented on TOBAGO-1875:
---------------------------------------

I cannot reproduce the bug.

On my machine there is still another styling issue with a tc:section inside a 
tc:sheet, but the ajax loading arrow doesn't appear.

You may try my example in the Tobago demo:
 1. git clone [https://github.com/apache/myfaces-tobago.git]
 2. git checkout tobago-4.1.0
 3. mvn clean install
 3. goto: 
/myfaces-tobago/tobago-example/tobago-example-demo/src/main/webapp/content/20-component/080-sheet/
 4. replace the content of sheet.xhtml with:
{code:xml}
<ui:composition template="/main.xhtml"
                xmlns="http://www.w3.org/1999/xhtml";
                xmlns:f="http://java.sun.com/jsf/core";
                xmlns:tc="http://myfaces.apache.org/tobago/component";
                xmlns:ui="http://java.sun.com/jsf/facelets";>
  <ui:param name="title" value="#{demoBundle.sheet} &lt;tc:sheet>"/>
  <tc:sheet id="products" value="#{sheetController.solarList}" var="product" 
rows="25">
    <tc:column label="ID">
      <tc:out value="#{product.name}"/>
    </tc:column>
    <tc:column label="Name">
      <tc:section id="productSection" label="Section Label"
                  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="outAjax" value="Dies ist Content..."/>
      </tc:section>
    </tc:column>
  </tc:sheet>
</ui:composition>{code}
5. goto myfaces-tobago/tobago-example/tobago-example-demo
6. start the demo with: mvn clean jetty:run
7. try the example: 
http://localhost:8080/content/20-component/080-sheet/sheet.xhtml

> 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)

Reply via email to