Hi, 

I have already wrote about a problem I was having in 2 different treads and
I was finally able to figure out the solution for that. My problem was that
I needed to pass the function to the autocomplete mixin.

    public JSONObject getAutoUsersParams() {
        JSONObject params = new JSONObject();
        params.put("select", new JSONLiteral("function (event,ui)
{alert(1)}"));
        return params;
    }

I pass this to the t:options of the autocomponent mixing and that is it. The
problem now is that I have button that switches the edit mode on and off
using the zones. And that doesnt work any more. If I am in the edit mode and
I click back it does what is suppose to. However if i am not in the edit
mode and it needs to initilzed the autocomponent using the code above...well
nothing happens.

Does anyone know why is this and how can I fix it?

If I remove the JSONLiteral it all works great, so I am guessing that the
problem is in the unquted literal that is passed when the zone is refreshed
(which I have to do), but I am not sure why it is broken.

Also I dont get any errors about this. Not in Chrome not in output.

Any ideas would be appreciated



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JSONLiteral-breks-zone-refresh-tp5717101.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to