Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fixed bad links due to copy-paste from cwiki-test

...

See Type Coercer Service for the list of build-in coercions.

Parameter Type Coercions

Div
stylefloat:right
titleRelated Articles
classaui-label
Content by Label
showLabelsfalse
showSpacefalse
titleRelated Articles
cqllabel in ("coercion","parameters") and space = currentSpace()

Tapestry automatically handles type coercions for component parameters.

...

For example, consider the Count component:

java

...

Here, the type of all three parameters is int.

However, it is likely that the component will be used as so:

java

...

...

A bare whole number is interpreted by the prop binding prefix as a long. So this is the long value 3.

...