org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.MessageBundle


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public static @interface Jpf.MessageBundle

Annotation used within Jpf.Controller to declare a message bundle for use in the page flow.


Required Element Summary
 String bundlePath
          The path to the message bundle, as a ServletContext resource.
 
Optional Element Summary
 String bundleName
           The name associated with the bundle; if this is not specified, then the bundle becomes the "default bundle" for the page flow, and all validation messages implicitly reference it.
 

Element Detail

bundlePath

public abstract String bundlePath
The path to the message bundle, as a ServletContext resource. This may be specified with either '/' or'.' as the separator, e.g., bundlePath="foo.bar.MyMessages" or bundlePath="foo/bar/MyMessages" (in both cases, foo/bar/MyMessages.properties would be found on classpath).

bundleName

public abstract String bundleName

The name associated with the bundle; if this is not specified, then the bundle becomes the "default bundle" for the page flow, and all validation messages implicitly reference it.

Named message bundles are databound to with expressions like ${bundle.bundle-name.someMessage}, while the default message bundle is databound to with expressions like ${bundle.default.someMessage}.

Default:
""