I see your point about it and yea it does make sense so I have give up on the
JSONLiteral. 

François I like your solution. I have implemented my Mixin like this 

@Import(library = {"submitautocomplete.js"})
public class SubmitAutocomplete {

    @Environmental
    private JavaScriptSupport javaScriptSupport;
    @InjectContainer
    private Field field;

    void afterRender(MarkupWriter writer) {
        String id = field.getClientId();

        JSONObject config = new JSONObject();
        config.put("id", id);

        javaScriptSupport.addInitializerCall(InitializationPriority.LATE,
"submitAutocomplete", config);
    }
}

and I call it 

<t:textfield t:value="val" t:mixins="submitautocomplete,
jquery/autocomplete::after:submitautocomplete"/>    

However I am having one problem, I need to call my mixing after Autocomplete
and I have tried that with the after prefix but for some reason that didnt
work out. So have tried to add InitializationPriority.LATE as shown above
and that worked. 

Any idea why the first approach didnt? 

in my plugin? I dont see this in other such as the 
Also can you please post the link to kiwi I have no idea where to look for
it :)
                                       





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JSONLiteral-breaks-zone-refresh-tapesty-jquery-tp5717101p5717187.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