Saturday, August 17, 2013

ADF: Creating a custom train button bar, reflecting the disabled state


In some cases there is a need to obtain more control over the ADF train button bar. The generated default does not allow to add an additional actionListener.




There is a simple solution I found on to create custom buttons for the previous / next functionality.

But there is still one thing missing. The buttons are always enabled. Unfortunataly there is no easy way to set the disabled property right from the given trainModel that is accessible by EL.

To solve this we create a managed bean as follows:

Now it is possible to bind the properties for disabled status

Similiar posts

1 comment:

  1. Really good piece of knowledge, I had come back to understand regarding your website from my friend Sumit, Hyderabad And it is very useful for who is looking for ORACLE ADF.