First, it is not recommended to use the s:link
-tag together with the action
-attribute (see JBoss Forum).
For the navigation issue i would replace (or combine) the from-action
tag with the if-outcome
one and return the value behind if-outcome
at the assignTo
- and workOnTask.start
-methods.
<page view-id="/task-list.xhtml">
<navigation>
<rule if-outcome="navToTask">
<redirect view-id="/task.xhtml"/>
</rule>
</navigation>
</page>
And at the method:
public String assignTo(User u)
{
[...]
// in case of success
return "navToTask";
}