Sorry to bother you with something so minor but tnx :D

That file is not in my javascript files that are included so I can not be
sure where to replace it with 

Tapestry.Initializer.injectedUpload = function(element) 
{ 
   var form = $(element).form; 

   if(form){ 
      form.enctype = "multipart/form-data"; 
      form.encoding = "multipart/form-data"; 
   } 
} 

I have tired to add the code above to the page. I have also added something
like this

    public void
contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter>
configuration,
            @Path(value = "context:script/upload.js") final Asset jsa,
            final Environment environment) {

        configuration.add("addMissingJS", new MarkupRendererFilter() {

            public void renderMarkup(MarkupWriter writer, MarkupRenderer
renderer) {

                JavaScriptSupport js =
environment.peekRequired(JavaScriptSupport.class);
                js.importJavaScriptLibrary(jsa);
                renderer.renderMarkup(writer);

            }
        }, "after:JavaScriptSupport");

    }

And this includes the file but it does not help. Am I overriding it wrong?
And like I said I dont even see the fail that I am to override.

cheers

ps tnx for fast responses

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Zone-refresh-image-uplaod-tp5631622p5634454.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to