Examples of DirectServiceParameter


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

       
        trainGetLinkCheckIgnoreParameter(
                direct,
                cycle,
                true,
                new DirectServiceParameter(form),
                link);

        trainRender(support, link, render, null, null);

        TapestryUtils.removeForm(cycle);
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

        trainGetLinkCheckIgnoreParameter(
                direct,
                cycle,
                true,
                new DirectServiceParameter(form),
                link);
       
        trainRender(support, link, render, "https", new Integer(443));
       
        TapestryUtils.removeForm(cycle);
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

       
        trainGetLinkCheckIgnoreParameter(
                direct,
                cycle,
                true,
                new DirectServiceParameter(form),
                link);
       
        trainRender(support, link, render, null, null);
       
        TapestryUtils.removeForm(cycle);
View Full Code Here

Examples of org.apache.tapestry.engine.DirectServiceParameter

     */
    public String getUpdateUrl()
    {
        Object[] parameters = DirectLink.constructServiceParameters(getParameters());

        DirectServiceParameter dsp = new DirectServiceParameter(this, parameters);
       
        return getEngine().getLink(isStateful(), dsp).getURL();
    }
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());
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;");                       
            }
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

        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
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.