Hi.

Here is a simple test. Clicking on submit will raise an error, because param1 is null.

I am sorry, but what do you mean by independent? Is the activation context supplied with form submits or not?

Br,
Timo.

public class FormSubmit {

   private String param1;
void onActivate(String param1){
       System.err.println("onActivate " + param1);
       this.param1 = param1;
   }

   Object onPassivate(){
       System.err.println("onPassivate " + param1);
       return param1;
   }
Object onSuccess(){
       System.err.println("onSuccess");
       Assert.notNull(param1, "param1 was null");
       return this;
   }
}

<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>

  <head>
   <title>FormSubmit test</title>
  </head>
<body>
   <t:form>
       <input type="submit" value="Submit"/>
   </t:form>
  </body>
</html>


Thiago H. de Paula Figueiredo wrote:
Em Sat, 28 Nov 2009 09:27:27 -0200, Timo Westkämper <timo.westkam...@mysema.com> escreveu:

Hi.

Hi!

This is a Tapestry beginner's question :

When doing form submissions is the page's activation context submitted and taken into account in the onActivate call or are activationContexts only for navigational requests?

The page activation context is completely independent of form submissions, so it will be taken in account in onActivate() methods.

In my Tapestry application the activationContext is not submitted for form submits. I am using Tapestry 5.1.0.5.

Are you sure your page has an onPassivate() method to return the page activation context value?



--
Timo Westkämper <timo.westkam...@mysema.com>
Mysema Ltd, Vilhonkatu 5 A, 00100 Helsinki, Finland
Mob. +358 (0)40 591 2172 Internet: http://www.mysema.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to