Archive for July, 2007
« Previous EntriesADF Face: Udate to “Disclose a single node only in a tree menu”
Friday, July 27th, 2007I received a mail from Joseph Wyrembelski (Xede Consulting group) with an enhanced code snippet for my tree node disclosure example "Disclose a single node only in a tree menu" published in August 2006.
My example expanded only a single top level node of the tree at any time. The enhanced version does the same also [...]
New How-to: Using Web Services with Complex Return Types in ADF
Tuesday, July 24th, 2007I just released a new how-to on OTN that explains practices (I am not a Web Services experts, which is why I don't call them "best practices") of how to work with Web Services in ADF that return complex types.
While writing the paper I recognized that using Web Services in ADF is an interesting [...]
ADF Swing: Dependent Listboxes
Monday, July 23rd, 2007Using ADF Swing, dependent list boxes are realized with a minimum number of code lines. In this example. the business service is created with ADF Business Components, showing the following ViewObject hierarchy:
The model shows a dependency between the DepartmentsView1 view object and the EmployeesView3 view objects. This dependency is managed by ADF Business components, which [...]
ADF Swing: Printing the content of JTable
Monday, July 16th, 2007If you created a JTable in ADF Swing and use the new print() method in Java SE 5 to print the table content, chances are that the printed output looks similar to this:
The reason for this unwanted print display is that the ADF iterator for the table has the rangeSize property set to 10, which [...]
ADF Faces: ADF Faces Shuttle with pre-selected values from a selectOnceChoice
Sunday, July 15th, 2007In a previous how-to, I documented two possible options of creating ADF bound ADF Faces shuttle components
In this extended version of the same workspace, I added two usecases that I found as questions on the Oracle JDeveloper forum on OTN.
The first usecase allows users to filter the selectable values in the shuttle component by [...]
JDeveloper: “Find Usages” option in Oracle Jdeveloper 10.1.3.3
Wednesday, July 11th, 2007Oracle JDeveloper has an option to show code usages within an application. As shown below, the highlighted code - a list of type "Departments" - is searched in all application files
The found code usages are listed in the message window below the Code editor and you can navigate the classes and usages using the [...]
ADF Faces: Sorting a SelectOneChoice list
Tuesday, July 10th, 2007Ginni Machamer and Vladimir Tomic, two users of the Oracle JDeveloper forum on OTN discussed about the options that are available to sort a list of values shown by an af:selectOneChoice component (read thread).
This is less a problem for lists that are based on sortable models as you can create them with ADF Business [...]
ADF Faces: Creating a Number only filter for inputTextFields with JavaScript
Saturday, July 7th, 2007A question on OTN has been of how to filter user input to an inputTextField so that only numeric values are allowed. Obviously adding JavaScript code to the onkeydown property of the af:inputTextField doesn't suppress the character typed though the JavaScript filter intercepts the input.
The following JavaScript directly added to the page - not [...]
Trinidad: Apache MyFaces Trinidad Core 1.2.1 for JSF 1.2 released
Thursday, July 5th, 2007Good news from the Trinidad front!
"The Apache MyFaces Trinidad team is pleased to announce the release of Apache MyFaces Trinidad Core 1.2.1.
Apache MyFaces Trinidad 1.2.x is a JavaServer(tm) Faces 1.2 component library.
Trinidad Core 1.2.1 is available in both binary and source distributions
Apache MyFaces Trinidad is available in the central Maven repository under Group ID [...]
ADF Faces RC: Dynamically showing/hiding components with JavaScript
Thursday, July 5th, 2007The following usecase is from the Oracle JDeveloper 11 forum on OTN: An ADF Faces Rich Client form (Ajax) should contain a component that is conditionally displayed or hidden depending from a value typed into a input text field.
Ric Smith from our team answered that this could be done by using an autosubmit=true property [...]
