hi, I have a Border component like this:
<html jwcid="@Shell"
     title="test"
     >
<body jwcid="@Body">
<a jwcid="@DirectLink" listener="listener:showDialog"
updateComponents="testDialog3">Show 3</a><br/>

<div jwcid="[EMAIL PROTECTED]" hidden="ognl:dlHidden3" >
   <p style="display:block;background:#ffffff;width:20em;">
   This is content hidden in a Dialog.

   <a href="#" onClick="dojo.widget.byId('testDialog3').hide();return
false">Close</a>
   </p>
</div>

<span jwcid="@RenderBody" />
</body>
</html>

And in Border.java I have a method:
public abstract class Border extends BasePage {
   public void showDialog() {
       Dialog dlg = (Dialog) getComponent("testDialog3");
       dlg.show();
   }
}

However, when I call this component in Home page, it keeps tell me
Object [EMAIL PROTECTED]/$Border] does not implement a
listener method named 'showDialog'
But I do have this method! I found this:
http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html
is that means component can't has its own listeners defined in itself?
Thank you in advance.

Reply via email to