Re: T5: Two simple questions

2007-09-10 Thread Francois Armand

Marcus Schmidke wrote:

But (1) I still don't understand. Where do I have to put this method?
  

Tapestry convention specify the directory layer for your webapp :
tapestryRoot
|- base
|- components
|- mixins
|- pages
 `- services

"Services" should contains a "AppModule" class, where "App" is the name 
you put in web.xml file to configure Tapestry filter.
This AppModule is the configuration for the module that represents your 
tapestry webapp : 
http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html and its 
that your declare youre services, as explain here : 
http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html


It used to be a page with the full standard directory layer of a 
Tapestry 5 webapp (which should be created by the Maven artifact) in 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/component-classes.html 
but I just can find it any more.
As it is an important convention, it should be clearly written 
somewhere. Perhaps a page with all convention of Tapestry 5 would be great ?


--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Two simple questions

2007-09-08 Thread Filip S. Adamsen
(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 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]



Re: T5: Two simple questions

2007-09-08 Thread Marcus Schmidke
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 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]



Re: T5: Two simple questions

2007-09-08 Thread Filip S. Adamsen

1:

public static void contributeValueEncoderSource(
MappedConfiguration 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]



T5: Two simple questions

2007-09-08 Thread Marcus Schmidke
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]