lovin
lovin

Reputation: 563

How can I reset an adf page without hardcoding it explicitly?

I have a form with few input boxes,Select boxes etc.

How can I reset the control values to null/empty without writing the code. I mean is there any property which automatically resets the page or controls?

Upvotes: 0

Views: 1429

Answers (1)

Bogdan
Bogdan

Reputation: 944

You can use something like this:

       <af:commandLink text="commandLink with resetActionListener"
                            id="cl1" immediate="true" actionListener="#{demoInput.reset}">
         <af:resetActionListener/>
       </af:commandButton>

More info here.

Upvotes: 1

Related Questions