Examples of DirectServiceParameter


Examples of org.apache.tapestry.engine.DirectServiceParameter

        IScript script = source.getScript(scriptLocation);

        Map symbols = new HashMap();

        IEngineService service = engine.getService(Tapestry.DIRECT_SERVICE);
        ILink link = service.getLink(cycle, new DirectServiceParameter(this));

        symbols.put("URL", link.getURL());

        Body body = Body.get(cycle);
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

   
    public ILink getLink(IRequestCycle cycle)
    {
        Object[] serviceParameters = constructServiceParameters(getParameters());
       
        DirectServiceParameter dsp = new DirectServiceParameter(this, serviceParameters);
       
        return getEngine().getLink(isStateful(), dsp);
    }
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

           
            json = new JSONObject();
            json.put("async", Boolean.TRUE);
            json.put("json", isJson());
           
            DirectServiceParameter dsp = new DirectServiceParameter(form, null, this);
            json.put("url", getDirectService().getLink(true, dsp).getURL());
        }

        // only if not async - otherwise we have to stop the client side event to prevent normal form submission
        // within the submitbindings client side generated function
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

            {
                JSONObject json = new JSONObject();
                json.put(new JSONLiteral("async"), Boolean.TRUE);
                json.put(new JSONLiteral("json"), isJson());

                DirectServiceParameter dsp = new DirectServiceParameter(form, null, this);
                json.put(new JSONLiteral("url"), new JSONLiteral("this.href"));

                writer.attribute("href", getDirectService().getLink(true, dsp).getURL());
                writer.attribute("onClick", js + "," + json.toString() + "); return false;");                       
            } else {
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

     * @since 1.0.3
     */

    private ILink getLink(IRequestCycle cycle)
    {
        Object parameter = new DirectServiceParameter(this);
       
        return getDirectService().getLink(true, parameter);
    }
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

            listenerParams = new Object[1];
        }

        listenerParams[0] = getClientId();

        ILink updateLink = getEngineService().getLink(isStateful(), new DirectServiceParameter(this, listenerParams));
        parms.put("updateUrl", updateLink.getURL());

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);
        getScript().execute(this, cycle, pageRenderSupport, parms);
    }
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

        parms.put("id", getClientId());
       
        JSONObject json = new JSONObject();
        if (!isLocal())
        {
            ILink link = getDirectService().getLink(true, new DirectServiceParameter(this));
            json.put("dataUrl", link.getURL() + "&filter=%{searchString}");
        }
        json.put("mode", isLocal() ? MODE_LOCAL : MODE_REMOTE);
        json.put("widgetId", getName());
        json.put("name", getName());
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

    /**
     * Callback url used by client side widget to update server component.
     */
    public String getUpdateUrl()
    {
        DirectServiceParameter dsp =
            new DirectServiceParameter(this);
       
        return getEngine().getLink(false, dsp).getURL();
    }
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

       
        form.setFormFieldUpdating(true);
       
        IMarkupWriter writer = newBufferWriter();
       
        DirectServiceParameter dsp =
            new DirectServiceParameter(component);
       
        trainGetForm(cycle, form);
        trainWasPrerendered(form, writer, component, false);
       
        trainGetDelegate(form, delegate);
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

            listenerParams = new Object[1];
        }

        listenerParams[0] = getClientId();

        ILink updateLink = getEngineService().getLink(isStateful(), new DirectServiceParameter(this, listenerParams));
        parms.put("updateUrl", updateLink.getURL());

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);
        getScript().execute(this, cycle, pageRenderSupport, parms);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.