It's kinda hard to follow what you're doing without seeing some of the java code and the page code.
Are you updating the value of subscriptionCategoryBean.subscriptions in your category clicking action? I'd also recommend getting away from f:param unless you have a specific reason to be using it. t:updateActionListener (you'll need to download a facelets taghandler to support it) allows you to directly set the value of a property on a bean from a constant or another property. On 9/20/06, Patrick Dreyer <[EMAIL PROTECTED]> wrote:
As suggested by Mike, I tried with t:saveState, which solved one problem but generates an other :-/ I put the project online, so you can play around to see the effects. 1) http://ledz.com.br/CasamentoDosSonhos/index2.jsf * with NO t:saveState * Subscription list gets repopulated on every category click * Links to subscription details do not work <- THE PROBLEM 2) http://ledz.com.br/CasamentoDosSonhos/index.jsf * WITH t:saveState * Link to subscription details works <- cool, works now * Subscription list isn't repopulated upon category clicks <- the NEW problem As you can see, the "Test link" always works and shows the subscription 1. And now comes what you sure know: I need the subscription list being repopulated on every category click AND the links to the subscription details working. Any ideas? Thanks in advance 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> >> >> >

