Comments on: ADF UIX tidbits – things I want to remember but never do… (conditional expressions, switcher/if/data bound) https://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/ Friends of Oracle and Java Wed, 08 Jul 2015 07:37:03 +0000 hourly 1 http://wordpress.org/?v=4.2.3 By: Ricardo Pinto https://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1669 Fri, 11 Nov 2005 09:46:15 +0000 /?p=389#comment-1669 Greetings!

I’m currently customizing the presentation in Discoverer Viewer and starting to work with the .uix format.
I have now only one single issue: I would like to show a tree collapsed when my page load.

This is the code responsible for showing it:

This is the code for the event:


The disclosed attribute sets if it is expanded (true) or collapsed (false). By default, the value ${uix.eventResult.paramshs} is true. After reading this artivle, I used the ! operator and set disclosed=”${!uix.eventResult.paramshs}” and it worked (it was collapsed on load)! Unfortunately, nothinng happened on click: the event didn’t work in this condition :(

I’d be glad if you could help me!
Best regards,

Ricardo Pinto.

]]>
By: Ricardo Pinto https://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1668 Thu, 10 Nov 2005 15:48:17 +0000 /?p=389#comment-1668 Greetings!

I’m currently customizing the presentation in Discoverer Viewer and starting to work with the .uix format. I have now only one single issue: I would like to show a tree collapsed when my page load.

The code is:

The disclosed attribute sets if it the tree is expanded (true) or collapsed (false). By default, the value ${uix.eventResult.paramshs} is true. After reading this article, I used the logical operator ‘!’ to get the logical not of the value. When I entered my page, it worked: the tree was collapsed! Unfortunately, the event didn’t work anymore (it never expanded) :(

This is the event code:

Could you help me on this?
Thanks in advance,

Ricardo Pinto

]]>
By: hans https://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1667 Tue, 08 Feb 2005 11:06:20 +0000 /?p=389#comment-1667 Hi Lucas,

I’ve got 2 remarks; re the first item; I think you can get a cleaner separation of presentation (the way it looks) and behaviour if you move the rules (ie behaviour) that determine whether the button is displayed or not, out of the page and into a UI-helperbean-property. Let the getter for the property return a boolean indicating visible or not.

The same approach can be applied to the second item; the initialisation of the object that’s edited in the screen should belong in the controller, not in the view layer.

Don’t know how easy this can be realized using UIX and ADF, currently I’m looking at JSF where it’s rather straightforward. As Oracle’s JSF implementation (ADF-Faces) builds upon UIX I would expect it to be feasable…

Cheers, Hans

]]>