Set current displayed tab programmatically in p:wizard

前端 未结 2 1041
执笔经年
执笔经年 2021-01-23 03:43

Is it possible to set current displayed tab programmatically in ?

For example, I want that for two different request to the same page which con

2条回答
  •  佛祖请我去吃肉
    2021-01-23 04:42

    According to primefaces documentation there's a step attribute for p:wizard tag, which specifies the step of the wizard you're currently in.

    attribute: step
    default value: 0
    type: String
    description: Id of the current step in flow

    You must bind this attribute to a value of your backing bean and maintain it during redirection and coming back. If your wizard's bean is @ViewScoped you'll loose that info during redirection step, so you have to pass it using a view param or flash scope.

提交回复
热议问题