myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Flesch, Michael RD-AS2" <>
Subject AW: navigating from tree2
Date Tue, 29 Mar 2005 13:11:09 GMT
I thing you lost the return value.
public String selectLoan(ActionEvent actionEvent) throws AbortProcessingException {
       return isTreeNodeSelected();

-----Ursprüngliche Nachricht-----
Von: Roger Lee, NOTiFY [] 
Gesendet: Dienstag, 29. März 2005 14:44
An: MyFaces Discussion
Betreff: navigating from tree2

My ActionListener in a tree2 component calls a backing class and gets the Description from
the Tree Node.


<x:commandLink immediate="true" styleClass="document" 
actionListener="#{loanSelectionTreeActionListener.selectLoan}" >

I then call a method in this Backing Class which returns "success".

 public void selectLoan(ActionEvent actionEvent) throws AbortProcessingException {
        //System.out.println("********** LoanSelectionTreeActionListener selectLoan");

        UIComponent component = actionEvent.getComponent();

        UIComponent parent = component.getParent().getParent();

        HtmlTree tree = (HtmlTree) parent;
        TreeNode node = tree.getNode();
        nodeDescription = node.getDescription();

        System.out.println(">>>>> LoanSelectionTreeActionListener selectLoan
node.getDescription = " + node.getDescription());

        // To force return of "Success"

    public String getNodeDescription() {
        return (nodeDescription);

    public String isTreeNodeSelected() {

        if (nodeDescription != null) {
            System.out.println(">>>>> LoanSelectionTreeActionListener isTreeNodeSelected
= " + FortyTwoObjectsConstants.SUCCESS_OUTCOME);
            return FortyTwoObjectsConstants.SUCCESS_OUTCOME;
        else {
            System.out.println(">>>>> LoanSelectionTreeActionListener isTreeNodeSelected
= " + FortyTwoObjectsConstants.ERROR_OUTCOME);
            return FortyTwoObjectsConstants.ERROR_OUTCOME;

in my Faces-Config I have;


I have also tried it with;


Either way it does not navigate to my "LoanEnquirySummary.jsp"

No errors thrown. Any suggestions?

Many thanks.

Roger Lee

Internet communications are not secure and therefore NOTiFY does not accept legal responsibility
for the contents of this message.
Although NOTiFY operates anti-virus programmes, it does not accept responsibility for any
damage whatsoever that is caused by viruses being passed.  Any views or opinions presented
are solely those of the author and do not necessarily represent those of NOTiFY.
Replies to this email may be monitored by NOTiFY for operational or business reasons.

View raw message