My opinion:
<h:commandLink value="BookFlight" action="#{bookSeatController.doLoginOrCC}"> <f:setPropertyActionListener target="#{bookSeatController.flightNumber}" value="#{flightInfoController.flight.number}" /> </h:commandLink>
My setter:
public void setFlightNumber(String flightNumber) { this.flightNumber = flightNumber; }
When I use the debugger, I get flightNumber from null in the customizer. However, if I changed the view to the following:
<h:commandLink value="BookFlight" action="#{bookSeatController.doLoginOrCC}"> <f:setPropertyActionListener target="#{bookSeatController.flightNumber}" value="122334" /> </h:commandLink>
The flightNumber flightNumber set to 122334. How is this called and how can I solve it to set the given value instead of null ?
source share