Hi Matthias :-)

You should read [1].

I prefere the usage of updateActionListener

-Matthias

[1] http://wiki.apache.org/myfaces/ExecutingMethodsFromLinkButtonParameters

On 5/22/06, Matthias Klein <[EMAIL PROTECTED]> wrote:
Hi everyone

I have a small JSF application with two pages: menu.jsp and details.jsp

The menu.jsp contains something like this in a dataTable:

<h:form>
  <h:commandLink action="#{MenuBackingBean.userClick}" >
    <h:outputText value="#{menuTabItem.itemName}" />
    <f:param name="itemID" value="#{menuTabItem.itemID}" />
  </h:commandLink>
</h:form>

Depending on the itemID, the method userClick() returns "menu" or
"details" (if the return value is "menu", there is a sub-menu to be
displayed. if the return value is "display", there is no more sub-menu but
details of an actual item to be displayed) Those actions "menu" and
"details" are obviously associated with navigation rules of the
faces-config.

But here is my question:
If userClick() wants to return "details", I want it to pass the itemID to
the DetailsBackingBean first (before the statement return "details";)

How do I do that? The DetailsBackingBean is supposed to take this itemID
and look up the details data associated with this itemID before it
displays the details.jsp

How can that be done?
Is that even the right way to go?






--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Reply via email to