(2) is in the Component Reference at
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html:
"The submit responsible for the form submission will post a notification
that allows the application to know that it was the responsible entity.
The notification is named "selected" and has no context."
(1) goes in your service module, AppModule or whatever you've named it,
usually in your services package.
-Filip
Marcus Schmidke skrev:
Filip,
thank you - (2) is perfect. I would never had guessed that. I tried
onAction... and onSubmit ... Did I miss some documentation, or is it
simply not documented so far?
But (1) I still don't understand. Where do I have to put this method?
Marcus.
2007/9/8, Filip S. Adamsen <[EMAIL PROTECTED]>:
1:
public static void contributeValueEncoderSource(
MappedConfiguration<Class, ValueEncoderFactory> configuration) {
configuration.add(Your.class, new YourValueEncoderFactory());
}
2:
onSelectedFromX if I recall correctly.
-Filip
Marcus Schmidke skrev:
Hello all,
I'm sorry I am really having problems to find the documentation for
the simplest things. Please forgive me having another two RTFM
questions:
1. How can I register a ValueEncoderFactory application wide so that
it is automatically used? In other words, how do I "contribute a
org.apache.tapestry.services.ValueEncoderFactory into the service's
configuration" (these are the words from the doc I simply don't
understand)
2. Which is the right way to write ActionMethods for different Submit
Buttons in the form? I tried "onActionFromX", with t:id="X" (and many
variants), but nothing worked.
Please help!! :-)
Marcus.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]