Hello guys,
I'm have troubling making the 'browser's back button' feature works, using JBoss 4.2 and Seam 2.0.
I basically have a page, called Topic.xhtml, displaying some topic.
Earch topic has some children, so when I click on a topic on that page, I change the value of the 'selectedTopic' outjected property and reload the Topic.xhtml page that displays the children of selectedTopic.
Basically, I can't get the browser's back button to work.
This is the content of Topic.xhtml:
<h:form> <h:dataTable value="#{selectedTopic.children}" var="topic"> <h:column> <h:commandLink action="#{topicManager.viewTopic(topic)}">#{topic.relativeName}</h:commandLink> </h:column> </h:dataTable> </h:form>
@Stateful @Name("topicManager") @Scope(SESSION) @Conversational public class TopicManager implements TopicManagerInterface { ... @Begin(join = true) public String viewTopic(Topic topic) ... }
<page name="viewTopic" view-id="/Topic.xhtml" back="enabled"> <redirect/> <transition to="viewTopic"/> <transition name="complete" to="complete"/> </page>
Just a little up cause I have the feeling not many people have seen it yet!