The OGNL incantation is: Parameters="ognl:new java.lang.String[1]"
Thanks, Ezra Epstein -----Original Message----- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 1:39 PM To: Tapestry users Subject: Tapestry 4: @DirectLink with parameter="ognl:null" not handled as a null parameter I've got working @DirectLink tags for a listener that takes a single String parameter. In one case I want to pass in null as the parameter. How does one do this? Using <a href="#" jwcid="@DirectLink" listener="listener:setCurrentNodeId" parameter="ognl:null">Link</a> Causes: org.apache.tapestry.BindingException Exception invoking listener method setCurrentNodeId of component View: No listener method named 'setCurrentNodeId' suitable for no listener parameters found in [EMAIL PROTECTED] binding [EMAIL PROTECTED] parameter listener, component=View, methodName=setCurrentNodeId, location=context:/View.html, line 22] Yet the listener does exist and works just fine with a non-null param. I'm thinking that Tapestry throws away the param b/c its null? If so, how does one explicitly provide a null param? (And also, if so, isn't that behavior incorrect? i.e., is this a bug?) Thanks, Ezra Epstein --------------------------------------------------------------------- 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]
