Package org.apache.tapestry.engine

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


   
    public ILink getLink(IRequestCycle cycle)
    {
        Object[] serviceParameters = constructServiceParameters(getParameters());
       
        DirectServiceParameter dsp = new DirectServiceParameter(this, serviceParameters);
       
        return getEngine().getLink(isStateful(), dsp);
    }
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.