First I'd try moving your JavaScript in to actual JavaScript methods and calling them from onclick to avoid any potentially weird escaping/quoting/etc. issues. That eliminates any parsing-oriented issues.
d. --- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > Hello, > > Any idea about how the first command (getText) works > but the second one > does not? > > 1.- > <s:a theme="ajax" loadingText=" " > targets="workspaceAjaxContent" > executeScripts="true" > onclick="var a = > confirm('%{getText('Delete.Confirm')}'); > if (a) > {dojo.event.topic.publish('/borrarProject');}"> > <fmt:message key="Remove"/> > </s:a> > > > 2.- > <s:a href="#" onclick="newEmailIndex = 0; > var div = > document.getElementById('emailCollection'); > ... > var deleteEmail = > document.createElement('a'); > deleteEmail.innerHTML = > '%{getText('Remove')}'; > ... > "> > <fmt:message key="EditHandler.AddEmail"/> > </s:a> > > The log: > The function getText must be used with a prefix when > a default namespace > is not specified > at > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:62) > at > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357) > at > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:185) > at > org.apache.jasper.compiler.Validator$ValidateVisitor$1FVVisitor.visit(Validator.java:1574) > at > org.apache.jasper.compiler.ELNode$Function.accept(ELNode.java:148) > at > org.apache.jasper.compiler.ELNode$Nodes.visit(ELNode.java:219) > > > Thanks. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]