inPlace Grid component no longer working when creating a displayModel from a 
beanModelSource in setupRender
-----------------------------------------------------------------------------------------------------------

                 Key: TAP5-1243
                 URL: https://issues.apache.org/jira/browse/TAP5-1243
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.2
            Reporter: Darren Williams


When using the inPlace flag on the Grid Component when using a beanModelSource 
an Ajax failure occurs with a render queue error as:

Render queue error in SetupRender[Receipts:receiptgrid]

This works fine if inPlace is set to false.

PAGE

<div t:type="Grid" t:id="receiptGrid" source="licenses" inPlace="true" 
rowsPerPage="10" pagerPosition="bottom" row="license" model="beanModel" 
rowIndex="rowIndex" rowClass="rowClass">
</div>

SRC

@Component(id="receiptGrid")
    private Grid _grid;
        
        @Inject
        private BeanModelSource beanModelSource;
        @Property
    private BeanModel beanModel;
        @Inject
    private Messages messages;
        
        public void setupRender() {
                logger.warn("Setup");
                
                beanModel=beanModelSource.createDisplayModel(License.class, 
messages);
                beanModel.include("entered","endDate");
                beanModel.add("purchase.orgUnit.name").label("Organization");
                beanModel.add("purchase.product.name").label("Product");
                beanModel.add("purchase.licenseType.name").label("License");
                
                //sorting
                if (_grid.getSortModel().getSortConstraints().isEmpty() ) {
                        logger.warn("sort constraints");
                        _grid.getSortModel().updateSort("entered");
                        //_grid.setSortAscending(false);
            }
        }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to