...
Environmentals are a form of loosely connected communication between an outer component (or even a service) and an inner component. Example: the Form component places a FormSupport
object into the environment. Other components, such as TextField, use the FormSupport
when rendering to perform functions such as allocate unique control names or register client-side validations. The TextField doesn't require that the Form component be the immediate container component, or even an ancestor: a Form on one page may, indirectly, communicate with a TextField on some entirely different page. Neither component directly links to the other, the FormSupport
is the conduit that connects them.
I use @Inject on a field to inject a service, but the field is still null, what happened?
This can happend when you use the wrong @Inject annotation; for example, com.google.inject.Inject instead of org.apache.tapestry5.ioc.annotations.Inject. This may happen when you have TestNG on the classpath, for example, and your IDE is too helpful. Double check your imports when things seem weird.
...
Footnotes Display |
---|