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]

Reply via email to