tags:

views:

49

answers:

1

I have a class, let's call it Task. Task can have sub-tasks. Sub-tasks can have sub-tasks, etc. I have a Seam JSF page that very nicely allows you to edit all the fields of any given Task. I also have a list of sub-tasks, and I want a user to be able to click on that subtask, and begin to edit it. So here's how I have that I've implemented:

<rich:dataList id="subTaskList" var="curSubTask" value="#{task.subTasks}">  
    <s:link view="/party/edit.xhtml" propagation="nest">  
        <h:outputText value="#{curSubTask.title}"/>  
        <f:param name="taskId" value="#{curSubTask.id}"/>  
    </s:link>  
</rich:dataList>

When i click on the link, the and on the URL the taskId changes, I get a new conversation number, but there is no change in the data.
Does anyone know what's going on?

A: 

what I personally do is set the field in the context using f:setPropertyActionListener as follows

    <f:setPropertyActionListener value="#{curSubTask}"
   target="#{selectedTask}" />

and then redirect to the page in pages.xml, the page simply uses selectedTask. I try to avoid using page params if possible.

shipmaster