Package org.apache.tapestry.engine

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


   
    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

        { 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(false, dsp);

        writer.begin("span");
        writer.attribute("class", "jwc-tag");
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

    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

        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());

        PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this);
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, new Object[]
            { actionId });
            return getDirectService().getLink(cycle, parameter);
        }

        // I'd love to pull out support for the action service entirely!
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

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.