Package org.apache.tapestry.engine

Examples of org.apache.tapestry.engine.DirectServiceParameter


    public ILink getLink(IRequestCycle cycle)
    {
        Object[] serviceParameters = constructServiceParameters(getParameters());

        DirectServiceParameter dsp = new DirectServiceParameter(this, serviceParameters);

        return getLink(cycle, Tapestry.DIRECT_SERVICE, dsp);
    }
View Full Code Here


        { embedded.getIdPath() };

        // Build a URL to select that component, as if by the captive
        // component itself (it's a Direct).

        DirectServiceParameter dsp = new DirectServiceParameter(this, serviceParameters);
        ILink link = service.getLink(getPage().getRequestCycle(), dsp);

        writer.begin("span");
        writer.attribute("class", "jwc-tag");
View Full Code Here

    private ILink getLink(IRequestCycle cycle, String actionId)
    {
        if (isDirect())
        {
            Object parameter = new DirectServiceParameter(this);
            return getDirectService().getLink(cycle, parameter);
        }

        // I'd love to pull out support for the action service entirely!
View Full Code Here

    private ILink getLink(IRequestCycle cycle, String actionId)
    {
        if (isDirect())
        {
            Object parameter = new DirectServiceParameter(this);
            return getDirectService().getLink(cycle, true, parameter);
        }

        // I'd love to pull out support for the action service entirely!
View Full Code Here

       
        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

            json = new JSONObject();
           
            json.put("async", isAsync());
            json.put("json", isJson());
           
            DirectServiceParameter dsp =
                new DirectServiceParameter(form, null, this);
           
            json.put("url", getDirectService().getLink(true, dsp).getURL());
        }
       
        if (!type.equals(FormConstants.SUBMIT_NORMAL)) {
View Full Code Here

     * @since 1.0.3
     */

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

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

        renderInformalParameters(writer, cycle);
       
        writer.end();
        renderDelegateSuffix(writer, cycle);
       
        ILink link = getDirectService().getLink(true, new DirectServiceParameter(this));
       
        Map parms = new HashMap();
        parms.put("id", getClientId());
       
        JSONObject json = new JSONObject();
View Full Code Here

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

TOP

Related Classes of org.apache.tapestry.engine.DirectServiceParameter

Copyright © 2018 www.massapicom. 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.