[ https://issues.apache.org/jira/browse/TAP5-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thiago H. de Paula Figueiredo closed TAP5-1243. ----------------------------------------------- Resolution: Invalid The page's setupRender method and event are not triggered when an AJAX partial render is done, so the problem is in your code. Just create a getBeanModel() method to create and return your BeanModel. In addition, please post a message in the Tapestry users mailing list before creating an issue here. > 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.