Showing posts with label adf. Show all posts
Showing posts with label adf. Show all posts

Wednesday, September 1, 2010

Debugging across pojects

We're developing a large ADF / WebCenter application.
And since we're not surgeons, we make mistakes.
To investigate what goes wrong, you can use debugging.
But how can you debug source that is created not in the main project, but in another project, which deployment is included as a library?

1: Open the main project
2: Select Navigate | Go to Javatype (or press CTRL-Minus)
3: Enter the name of the class you want to debug and that is coded in an included project
4: Set the breakpoint
5: Debug the application

When the breakpoint is reached, your application will stop and control is handed to JDev for debugging.

Wednesday, June 16, 2010

Calling custom Javascript.

Sometimes, you just NEED to call a custom Javascript function...
If so, you can do the following:

Of course you save the Javascript function in a seperate file.
Include that file using:
<trh:script source="../skins/script/accessibility.js">

For this, include the following namespace to your jsp:root tag:
xmlns:trh="http://myfaces.apache.org/trinidad/html"

Place a commandToolbarButton (or some other component) on the page:
<af:commandtoolbarbutton partialsubmit="true" text="A" id="pt_cl6">
<af:clientlistener method="changeFontSize" type="action">
</af:commandToolbarButton>

Assuming there is a function called changeFontSize, this will be executed when you click the button.