I'm having a problem in a for loop and I think I'm misunderstanding how this
is supposed to work. I'm using Tapestry4 beta 13.
I have a component for rendering a list of projects. The html does this:
<span jwcid="@For" source="ognl:activeProjects" value="ognl:currentProject">
<a jwcid="@DirectLink" listener="listener:selectProject"
href="HomePage.html"><span jwcid="@Insert"
value="ognl:currentProject.name">ScannerInterface</span></a>
</span>
The java code returns a List of Project instances in getActiveProjects(). The
list of projects is shown on the page correctly.
In my listener method, I do this:
PropertiesService lPropertyService = this.getPropertiesService();
lPropertyService.storeUserProperty(this.getToken(), "default.project",
this.getCurrentProject().getId());
which always fails as getCurrentProject() is returning null.
I have abstract getter and setter methods for currentProject in the component:
public abstract void setCurrentProject(Project pProject);
public abstract Project getCurrentProject();
Has anyone got any ideas why it's always null? I thought I could use it to
identify the row that was selected.
ta,
Tim.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]