common-components simple selection model
[aramzamzam-commons.git] / aramzamzam-commons / commons-components / src / main / java / net / aramzamzam / commons / components / services / ComponentsModule.java
bloba3737e51b8c281a7a64dd42b46584ec104ef25a1
1 package net.aramzamzam.commons.components.services;
3 import org.apache.tapestry5.ioc.ObjectLocator;
4 import org.apache.tapestry5.ioc.OrderedConfiguration;
5 import org.apache.tapestry5.ioc.services.PropertyAccess;
6 import org.apache.tapestry5.services.ComponentClassTransformWorker;
8 public class ComponentsModule {
9 /**
10 * Adds the CommitAfterPreparation logic, to modify processing of the
11 * {@link org.apache.tapestry5.hibernate.annotations.CommitAfter}
12 * annotation according to Studynet application needs.
14 public static void contributeComponentClassTransformWorker(
15 OrderedConfiguration<ComponentClassTransformWorker> configuration,
16 PropertyAccess propertyAccess,
17 ObjectLocator locator) {
18 /**
19 * Adds a number of standard component class transform workers:
20 * <ul>
21 * <li>InjectSelectionModel - generates the SelectionModel and ValueEncoder for a any marked list of objects.</li>
22 * </ul>
25 configuration.add("InjectSelectionModel", new InjectSelectionModelWorker(propertyAccess), "after:Inject*");