Hi Jing,
A) You can use next pattern to store custom values need to render page:
def authenticate(self, configurationAttributes, requestParameters, step):
context = Contexts.getEventContext()
...
elif (step == 2):
session_attributes = context.get("sessionAttributes")
page_parameter_1 = session_attributes.get("page_parameter_1")
...
return True
def prepareForStep(self, configurationAttributes, requestParameters, step):
context = Contexts.getEventContext()
...
elif step == 2:
page_parameter_1 = "parameter 1 value"
context.set("page_parameter_1", page_parameter_1)
...
return True
def getExtraParametersForStep(self, configurationAttributes, step):
# Notify authenticator to store this even context parameter in session to allow us use it in authenticate method
return Arrays.asList("page_parameter_1")
In xhtml you can simply access it in next way
var param_1 = '${page_parameter_1}'