Hi Harald, Thanks for the example, i tried that out and got the idea, since we need to add onClick to link the component to a certain javascript code, i don't think mixins will work with jQuery as jQuery does not attach to any component in the html code, what do you think?
A.C. Harald Geritzer-2 wrote: > > Angelo Chen schrieb: >> Hi Kris, >> >> mixin is interesting, is there a simple sample that I can learn from ? >> thanks. > > if you assign that mixing to a submit component, on click the javascript > function > showProgressIndicator is called. the only drawback is, if you do client > side validation and there is > an error, no roundtrip to the server is done and the message stays on > screen :-( > > @MixinAfter > public class ProgressIndicator { > > @Parameter(value="message:progress-message-label", > defaultPrefix="message") > private String _message; > > void beginRender(MarkupWriter writer) { > writer.getElement().attribute("onClick", "javascript: > showProgressIndicator('" + _message + "');"); > } > } > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5%3A-Please-wait-before-I-show-you-next-page-tp16000636p16047719.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]