简体   繁体   中英

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM