On Fri, 23 Dec 2011 11:29:43 -0200, Javix <s.camb...@gmail.com> wrote:

Thank you for the info. Two more questions:

1. In the page TML the call to the abov JS fucntion was done in on 'IF'
<t:if test="error">
loadPath();
...

 @BeginRender
    void addJsLibs() {
        if (error) {
            String js = String.format("loadPass(\"%s\", \"%s\",%s, \"%s\",
\"%s\");", messages.get("js.error.password.not_given"),
                    messages.get("js.error.no_confirmed_password"),
messages.get("js.error.password_not_matched"),
                    messages.get("js.error.email.not_given"),
messages.get("js.error.email.wrong"));
            System.out.println("----------------js: " + js);
            renderSupport.addScript(js);
        }

    }

Or it will never be executed ?

Yes, it'll work and that's the recommended way of doing it.

2. Is there any example or tutorial steps how to implement JSON in Tapestry
5.1*, - I found nothing at all, neither in books nor on forums

What about http://tapestry.1045711.n5.nabble.com/Updating-a-page-with-a-JSONObject-td3339940.html#a3340055? The JavaScript part would look a little different using Prototype (the example uses jQuery, but to change from one to the other is easy in this case).

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to