Please disregard the answer below. Fat finger syndrome at work...

On 09/04/2014, at 9:32 AM, Geoff Callender wrote:

> Are you asking how to do this client-side without waiting for a server-side 
> response? 
> 
> If not, then you can do this...
> 
> Add this to ModalContainer.java:
> 
> public void hide() {
> 
> ajaxResponseRenderer.addCallback(makeScriptToHideModal());
> 
> }
> 
> 
> 
> private JavaScriptCallback makeScriptToHideModal() {
> 
> return new JavaScriptCallback() {
> 
> public void run(JavaScriptSupport javascriptSupport) {
> 
> javascriptSupport.require("hide-modal").with(componentClientId);
> 
> }
> 
> };
> 
> }
> 
> 
>  in the same class as your afterRender():
> 
> void onSuccessFromTheComponentInTheBody() {
> 
> crtClientContractModal.hide();
> 
> 
> 
> // ClientContract clientContract =
> 
> // clientFinder.findClientContractShallowish(clientContractId);
> 
> clientId = clientContract.getClient().getId();
> 
> 
> 
> populateBody();
> 
> renderZones(paneZone);
> 
> }
> 
> 
> On Wednesday, 9 April 2014, George Christman <gchrist...@cardaddy.com> wrote:
> Thanks Lance, attempting to figure it out now.
> 
> 
> On Tue, Apr 8, 2014 at 12:32 PM, Lance Java <lance.j...@googlemail.com>wrote:
> 
> > I assume you could hook on to one of the clientside events published during
> > submit / validate
> >
> > http://tapestry.apache.org/5.4/coffeescript/events.html
> >
> 
> 
> 
> --
> George Christman
> www.CarDaddy.com
> P.O. Box 735
> Johnstown, New York

Reply via email to