You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Conny Kuehne <co...@web.de> on 2006/11/22 22:24:08 UTC
@EventListener doesn't acitvate new page
Hello everyone,
I'm trying to activate a new page in a listener method annotated with
@EvenListener. But unfortunately it doesn't work:
@EventListener(events = "onValueChanged", targets = "topicChoose",
submitForm="topicForm")
public IPage topicsAutocompleterSelected(IRequestCycle cycle) {
Topic topic = getSelectedTopic();
System.out.println("Im Listener:");
if(topic != null){
System.out.println("selected Topic: " + topic.getName());
TopicDetails topicDetails = getTopicDetails();
topicDetails.setTopic(topic);
cycle.activate(topicDetails);
}
return null;
}
The code snippet above doesn't throw an exception either.
That currently acitvated page just remains activated.
Help appreciated,
Conny
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org