Help

Controls

PermLinkWikiLink

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

Forum: Seam Users Forum ListTopic List
30. Jul 2008, 02:21 CET | Link

Hi All,

I'm having some strange problems with h:commandLink tag. I'm having a webpage where I have such code:

						
<h:commandLink action="#{newTask.newTask(task)}">
							<l:outputText value="#{messages.msg}" />
</h:commandLink>

Most of the page where is the code is backed by a Statefull Backing bean (let's call it cat), newTask is also such a bean. The problem is that when I change the scope of the cat bean to CONVERSATION this link doesn't work (it just reloads the page). When I make it SESSION scope it works fine. newTask is also a stateful session bean scoped CONVERSATION.

Any clues?

Thanks in advance.

Regards,

Karol

3 Replies:
30. Jul 2008, 07:39 CET | Link

I guess this is because you do not start long running conversation and it lasts only for one request. Show the code of both beans for this is not enough.

30. Jul 2008, 16:23 CET | Link

I found out that the problem is caused only when the commandLink is in s:fragment which is rendered depending on an boolean variable located in the cat bean. This s:fragment is rendered by ajax request and as I suppose it may be the cause of the problem.

Any clues how to solve it ?

Regards,

k.

30. Jul 2008, 17:22 CET | Link

It seems to me that is the same problem as described here: My Link...