SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 281 | Next

Alexander Kolesnikov

"Tapestry 5: Building Web Applications"


We will also need to make Tapestry libraries available to the MyLib project. To do
this in Eclipse open the Project Properties dialogue again, select Java Build Path in
the left pane, the Libraries tab in the right pane, click on the Add JARs... button and
then add two libraries, tapestry-core-5.0.6.jar and tapestry-ioc-5.0.6.jar
from some other Tapestry 5 project in the workspace.
Chapter 8
[ 235 ]
To add the same libraries in NetBeans, right-click on the Libraries subfolder in the
project, select Add JAR/Folder..., then find the libraries on the hard drive and
select them.
The next step is to add the library module. Let's put it into com.packtpub.
celebrities package, and here is the code for it:
package com.packtpub.celebrities;
import com.packtpub.celebrities.services.SupportedLocales;
import com.packtpub.celebrities.services.SupportedLocalesImpl;
import org.apache.tapestry.ioc.Configuration;
import org.apache.tapestry.ioc.ServiceBinder;
import org.apache.tapestry.services.LibraryMapping;
public class LibraryModule
{
public static void bind(ServiceBinder binder)
{
binder.bind(SupportedLocales.class,
SupportedLocalesImpl.class);
}
public static void contributeComponentClassResolver(
Configuration configuration)
{
configuration.


Pages:
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6