3 Replies Latest reply on Feb 18, 2009 3:23 PM by Nick Belaevski

    commandlink syntaxerror??

    bronk horst Newbie

      Hello,

      id like 2 create a commandlink which executes some code and directs to another page, setting 2 bean-properties. The following code sets no variables and reloads the current page only, does anyone see my error? Thanx a lot, lg schlumsch


      jsf-code

       <h:commandLink action="#{planingResults.storeNewOptionForSegment}">
       <h:outputText value="#{alternative.name}"/>
       <f:param name="userHasChangedItinerery" value="true" />
       <f:param name="selectedOptionIndex" value="#{alternative.id}"/>
       </h:commandLink>
      


      Bean:

       public String storeNewOptionForSegment() {
       this.dataAccessor.storeNewOptionForSegment(this.selectedSegmentIndex,
       this.selectedOptionIndex);
       this.selectedSegmentIndex = -1;
       this.selectedOptionIndex = -1;
       this.segmentList = this.dataAccessor.loadItinerary(
       this.showSecondaryElements, this.showOvernights,
       this.showAllDetails, this.timeSliderActualValue, true);
       this.userHasChangedItinerary = true;
       return "toresult";
       }
      

      faces-config:
       <navigation-case>
       <from-outcome>toresult</from-outcome>
       <to-view-id>/jsf/showResults.xhtml</to-view-id>
       </navigation-case>