Thursday 15 August 2013

ADF - Train: Custom Train Button

ADF: Custom Train Button

OK so recently I have been working with trains and playing around with some of the basic functionality around them.

Long story short, I needed to invoke train button actions, next/previous using custom buttons.
In order for me to do this I used this code within my page:

<af:commandButton text="Train Next" id="cbN"
                          action="controllerContext.currentViewPort.taskFlowContext.trainModel.next"/>

<af:commandButton text="Train Previous" id="cbP"
                          action="controllerContext.currentViewPort.taskFlowContext.trainModel.previous"/>

A college of mine helped me solve this namely, Stafford Wright

No comments:

Post a Comment