I am trying to specify a component using annotations.
I was under the impression that a jwc file is no
longer needed if I mark my component class as
@ComponentClass. I am finding that it does not work
unless I still define the jwc file. I am using
tapestry-4.0-beta-2.
Here is my sample code (hopefully it will format
correctly):
//Thing.java
package tutorials.directlink.pages;
import org.apache.tapestry.AbstractComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.annotations.ComponentClass;
@ComponentClass
public class Thing extends AbstractComponent {
@Override
protected void renderComponent(IMarkupWriter w,
IRequestCycle c) {
w.print("I am Thing");
}
}
Here is the usage of the component:
<span jwcid="@Thing"/>
Here is the error I get:
Component 'Thing' not found in
[EMAIL PROTECTED]<application>].
I do not get this error if I define a jwc
component-specification per Tapestry 3.
If anyone knows of some sample code or tutorials using
component annotations, I would appreciate pointing me
in the right direction.
Thanks!
Larry Sherrill
City and County of Denver
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]