Please put a break point at the line
configuration.add(new LibraryMapping("lombok", "net.sf.lombok"));
and see if the break point is reached in debug mode.
Please check lombok-5.2.5.1.jar is in the classpath.
Note that if in your web.xml, the filter-name is foo instead of app, then
public static void
contributeComponentClassResolver(Configuration<LibraryMapping>
configuration) {
// Creates a virtual root pacakge for pages,components.
configuration.add(new LibraryMapping("lombok", "net.sf.lombok"));
}
should in foo FooModule.java .
web.xml:
<filter> <filter-name>app</filter-name>
<filter-class>org.apache.tapestry5.TapestryFilter</filter-class>
</filter>
Please see http://tapestry.apache.org/configuration.html
for more details.
Shing
________________________________
From: com.tap5 <[email protected]>
To: [email protected]
Sent: Thursday, 18 August 2011, 13:11
Subject: Help with pagelink popup window (lombok component)
Hi
I am trying to use pagelinkpopup lombok component as described in here -
http://lombok.demon.co.uk/tapestry5Demo/test/components/pagelinkpopupdemosource,
but when I access the page with 'lombok/pagelinkPopup' component, following
exception is thrown *Unable to resolve 'lombok/pagelinkPopup' to a component
class name.*
I have added lombok-5.2.5.1.jar an external library jar in my eclipse java
build path along with the below configurations. Also, this component is not
being shown under TapestryModule.ComponentClassResolver Available components
POM.xml
<dependency>
<groupId>net.sf</groupId>
<artifactId>lombok</artifactId>
<version>5.2.5.1</version>
<scope>system</scope>
<systemPath>C:/Mx/tapestry/lombok-5.2.5.1.jar</systemPath>
</dependency>
AppModule.java
public static void
contributeComponentClassResolver(Configuration<LibraryMapping>
configuration) {
// Creates a virtual root pacakge for pages,components.
configuration.add(new LibraryMapping("lombok", "net.sf.lombok"));
}
Thanks in advance
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Help-with-pagelink-popup-window-lombok-component-tp4711872p4711872.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]