myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Dubois (JIRA)" <>
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


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.
        <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 label="Name">
            <tc:section id="productSection" label="#{product.productdataeditable.productname}"
              collapsed="true" collapsedMode="hidden">
              <f:facet name="bar">
                  <tc:button id="showProduct" image="fa-chevron-down">
                    <f:ajax execute="productSection" render="productSection"/>
                    <tc:operation name="show" for="productSection"/>
                  <tc:button id="hideProduct" image="fa-chevron-up" immediate="true">
                    <f:ajax execute="productSection" render="productSection"/>
                    <tc:operation name="hide" for="productSection"/>
              <tc:out id="outProduct" value="Dies ist Content..." />

For example with this code it works fine as expected.
          <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:button id="showAjax" image="fa-chevron-down" >
                    <f:ajax execute="ajaxSection" render="ajaxSection"/>
                    <tc:operation name="show" for="ajaxSection"/>
                  <tc:button id="hideAjax" image="fa-chevron-up" immediate="true">
                    <f:ajax execute="ajaxSection" render="ajaxSection"/>
                    <tc:operation name="hide" for="ajaxSection"/>
              <tc:out id="outAjax" value="Dies ist Content..." />

> Collapsible Section AJAX-Style doesn't work in <tc:sheet>/<tc:column>
> ---------------------------------------------------------------------
>                 Key: TOBAGO-1875
>                 URL:
>             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

View raw message