O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending custom events from a client to a server

In the previous recipe, we used clientListener and clientAttribute tags to call a function in JavaScript. We also had a bonus attribute accessible from the client side, but those attributes are not synchronized back to the server.

In this recipe, we will send custom data back to the server and send some payload with it. You can refer to the last recipe to do this, or you can grab this project's recipe by cloning the ADFFacesClientServerEvents application from the Git repository.

How to do it…

To learn how to send custom events from a client to a server, follow the ensuing steps:

  1. Open the events.jsf page.
  2. Drag the Email field under Chapter7DataControl | EmployeesView1 and drop it inside the panel form ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required