Feeds:
Posts
Comments

Posts Tagged ‘Middleware’

Here is a small example of a way to enable or disable a command button using a standard functionality of an ADF.
Take for example the next scenario: You want to reject a form, and you must enter a reject reason.

For that we will use a commandButton (for the reject action) and an inputText (for the reject reason).
Change both objects’ attributes as follows:

inputText:

  • Set the AutoSubmit property to ‘true’:AutoSubmit

CommandButton:

  • Set the PartialTriggers property to the Reject InputTextId Id:PartialTriggers
  • Set the Disabled property to have a condition base on the InputText value:
    In my example: #{empty bindings.RejectReason.inputValue}Reject Reason

Run the page and test it.

Good Luck!

Read Full Post »

In this post I will explain a simple way to use JS (JavaScript) in an ADF page.
To implement javaScript function you will need few things:

  1. Define a JavaScript code
  2. Link the Component that will refer to that JS code (InputText, Command Button etc..)
  3. Obviously, understand the purpose of using JS in your ADF application

So let’s define first the JS code.
Go to the page definition source and drag the resource object under the document tag. Choose Javascript as the resource type:

Resource

(more…)

Read Full Post »