You seem to have a few extra spaces, not sure if that is your problem but still
t:zone=" myZone " ajaxResponseRenderer.addRender("myZone ", myZone.getBody()); @OnEvent(value="success", component = " myForm ") On Thu, Sep 12, 2013 at 8:16 PM, ANDRE Christophe < christophe.and...@docapost-bpo.com> wrote: > Hi, > > I have the following zone with table inside : > > <t:zone t:id="myZone" t:visible="false"> > <table t:type="grid" t:source="myObjects" t:row="currentObject" > t:model="model" t:rowIndex="indexRow"> > <p:actionCell> > ... > </p:actionCell> > <p:empty> > <p>There is nothing</p> > </p:empty> > </table> > </t:zone> > > And the following form : > > <t:form id="myForm" t:id="myForm" t:zone=" myZone "> > <input t:type="textfield" > t:value="myValue" t:id="valueInput" type="text" name="valueInput" > style="display:none"/> > <input t:type="submit" > t:id="submitValueId" id=" submitValueId " value="Submit" > style="display:none"/> > </t:form> > > After updating the zone using ajax like this: > > @Property > private BeanModel<myObject> model; > > @Inject > private BeanModelSource beanModelSource; > > @OnEvent(value="success", component = " myForm ") > public void processForm() throws Exception { > model = > beanModelSource.createDisplayModel(myObject.class, resources.getMessages()); > ... > ajaxResponseRenderer.addRender("myZone ", myZone.getBody()); > } > > > My zone get updated and the table become visible. > But I get a Null pointer if I refresh the page or when a redirection is > done on this page: > Caused by: java.lang.NullPointerException > at > org.apache.tapestry5.corelib.components.GridColumns.setupRender(GridColumns.java:112) > at > org.apache.tapestry5.corelib.components.GridColumns.setupRender(GridColumns.java) > at > org.apache.tapestry5.internal.structure.ComponentPageElementImpl$SetupRenderPhase.invokeComponent(ComponentPageElementImpl.java:174) > at > org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:133) > > What am I doing wrong? > (Also I have the feeling the page is not fully reloaded when the page is > refreshed!?) > > Thx > > > Christophe > > Ce message et toutes les pieces jointes (ci apres le message) sont etablis > a l intention exclusive de leurs destinataires. > Si vous recevez ce message par erreur, merci de le detruire et d en > avertir immediatement l expediteur par e mail. > Toute utilisation de ce message non conforme a sa destination, toute > diffusion ou toute publication, totale ou partielle, est interdite, sauf > autorisation expresse de l expediteur. > Les communications sur Internet n etant pas securisees, DOCAPOST BPO > informe qu elle ne peut accepter aucune responsabilite quant au contenu de > ce message. > -- Sincerely *Boris Horvat*