As suggested by Mike, I tried t:saveState which solves one problem but 
generates an other :-/
I put the application online, thus you can play yourself to see the effects.

1) http://ledz.com.br/CasamentoDosSonhos/index2.jsf
* with NO t:saveState
* link to subscription details does not work <- THE PROBLEM
* subscription list gets repopulated on category clicks

2) http://ledz.com.br/CasamentoDosSonhos/index.jsf
* WITH t:saveState
* link to subscription details works <- cool
* subscription list does not get repopulated on category clicks <- the NEW 
problem

The "Test link" (between the two lists) always works and show the "Subscription 
1".

As you can imagine, I need a solution with the subscription detail links 
working AND the subscription list being repopulated on category clicks.

Any ideas?

Patrick

Mike Kienenberger schrieb:
Is #{subscriptionCategoryBean.subscriptions} request-scoped?  If so,
try using t:saveState to persist it across a page, or change it to
session-scoped, or use some other persisting mechanism.


On 9/15/06, Patrick Dreyer <[EMAIL PROTECTED]> wrote:
Hi,

I don't like the prosa form and so:
* Tomcat 5.5.17
* MyFaces 1.1.3
* Tomahawk 1.1.3
* Page with two dataList; subscriptionCategories and subscriptions
* Links of subscriptionCategories work fine
* Links of subscriptions don't work at all; action doesn't get called
* Using dataTable for subscriptions doesn't work either
* Put each list in a separate form doesn't work either
* "Test" link (between the two lists) works as expected; action gets called, 
navigation to other page
* Static values in "Test" link and subscriptions only for testing purposes

Any ideas? Thanks

Patrick

Page snippet:
<body>
<h:messages />
<form jsfc="h:form">
        <ul id="subscriptionCategories"
                        jsfc="t:dataList"
                        layout="unorderedList"
                        value="#{portalBean.subscriptionCategories}"
                        var="subscriptionCategory">
                <li jsfc="h:commandLink" 
action="#{subscriptionCategoryBean.select}">
                        <f:param name="id" value="#{subscriptionCategory.id}" />
                        #{subscriptionCategory.name}
                </li>
        </ul>
        <p>
        <a jsfc="h:commandLink" action="#{subscriptionBean.select}">
                        <f:param name="id" value="1" />
                Test
        </a>
        </p>
        <ul id="subscriptions"
                        jsfc="t:dataList"
                        layout="unorderedList"
                        value="#{subscriptionCategoryBean.subscriptions}"
                        var="subscription">
                <li jsfc="h:commandLink" action="#{subscriptionBean.select}">
                        <f:param name="id" value="1" />
                        #{subscription.title}
                </li>
        </ul>
</form>
</body>




Reply via email to