I have a page that contains an event handler for an event from an
embedded component. From the event handler I would like to request
another page and with some value 'injected' (using a setter).

Pseudocode:

@InjectPage
SomePage downloadPage;

@OnEvent(component="component", value="someEvent")
protected Object downloadSelected() 
{
  // values is a set of string
  downloadPage.setValues(values);

  return downloadPage;
}

The event itself is triggered by the embedded component using
"triggerEvent" with a ComponentEventCallback. The result from
downloadSelected (that is the downloadPage instance) is returned from
the embedded component event handler.

The strange this is that the downloadSelected page is shown but the
value that was set by setValues is lost. Also if I set a breakpoint on
setValues it seems that it was not called. The Eclipse debugger also
reports that downloadPage "cannot be resolved".

Any idea what's going on? 

Martijn

PS. I use the (not yet released Tapestry 5.0.14)


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

Reply via email to