Hi,

It's not just passivate, its an activate and passivate combination. The page [1] and tml [2] will reproduce the problem.

Strangely enough when in this example you remove the activate and passivate you get another weird error which looks like it could be related to http://issues.apache.org/jira/browse/TAP5-733. My more complex production code does not have this problem. Since it is secondary to my current situation I'll just leave it for now.

Cheers,
Joost

[1]
public class TestPage {
@Property
   private String loopValue;
@Component(parameters = {"source=['one','two','three']",
           "value=loopValue"})
   private AjaxFormLoop myAjaxLoop;

@OnEvent(value=EventConstants.ADD_ROW)
   private Object handleAddRow() {
       return "the new row";
   }
@OnEvent(value = EventConstants.PASSIVATE)
   private Object passivate() {
       return "passivate_value";
   }

   @OnEvent(value = EventConstants.ACTIVATE)
   private void activate(String value) {
   }
}



[2]
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
   <head>
       <title>test page</title>
   </head>
   <body>
       <t:form>
           <div t:id="myAjaxLoop">
               <t:textfield value="loopValue"/>
           </div>
       </t:form>
   </body>
</html>


Ulrich Stärk wrote:
Could you provide a minimal example?

Am 26.11.2009 15:53 schrieb Joost Schouten (ml):
Hi,

When using the AjaxFormLoop's AddRowLink in conjunction with onPassivate an invalid url is generated [1]. When I remove onPassivate from my page all works fine.

Am I missing something, is this work in progress (I'm using the SNAPSHOT version) or shall I file a bug report?

Cheers,
Joost

[1] (shortened version but notice the double question mark) http://domain.com/page.form.rowinjector:inject?t:ac=3?t:formcomponentid=page:form&t:formid=contactDetailForm-12530f31add

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


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



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

Reply via email to