<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ADF UIX tidbits &#8211; things I want to remember but never do&#8230; (conditional expressions, switcher/if/data bound)</title>
	<atom:link href="http://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Ricardo Pinto</title>
		<link>http://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1669</link>
		<dc:creator>Ricardo Pinto</dc:creator>
		<pubDate>Fri, 11 Nov 2005 09:46:15 +0000</pubDate>
		<guid isPermaLink="false">/?p=389#comment-1669</guid>
		<description><![CDATA[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:

&lt;hideshowheader formSubmitted=&quot;true&quot;
    id=&quot;${uix.data.constants.PARAMETERS_HIDE_SHOW}&quot;
    name=&quot;${uix.data.constants.PARAMETERS_HIDE_SHOW}&quot;
    disclosed=&quot;${uix.eventResult.paramshs}&quot;
    rendered=&quot;${uix.eventResult.parametersRendered}&quot;
    text=&quot;${uix.data.nls[&#039;text.parameters&#039;]}&quot;&gt;

This is the code for the event:

&lt;bibeans :parameters   biParameters=&quot;${uix.eventResult.params}&quot;/&gt;
&lt;button textAndAccessKey=&quot;${uix.data.nls[&#039;button.go&#039;]}&quot;
              shortDesc=&quot;${uix.data.nls[&#039;text.go&#039;]}&quot;
              onClick=&quot;paramsbi_selectParams();&quot; /&gt;

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=&quot;${!uix.eventResult.paramshs}&quot; and it worked (it was collapsed on load)! Unfortunately, nothinng happened on click: the event didn&#039;t work in this condition :(

Iâ€™d be glad if you could help me!
Best regards,

Ricardo Pinto.&lt;/button&gt;&lt;/bibeans&gt;&lt;/hideshowheader&gt;]]></description>
		<content:encoded><![CDATA[<p>Greetings!</p>
<p>Iâ€™m currently customizing the presentation in Discoverer Viewer and starting to work with the .uix format.<br />
I have now only one single issue: I would like to show a tree collapsed when my page load.</p>
<p>This is the code responsible for showing it:</p>
<p><hideshowheader formSubmitted="true"<br />
    id="${uix.data.constants.PARAMETERS_HIDE_SHOW}"<br />
    name="${uix.data.constants.PARAMETERS_HIDE_SHOW}"<br />
    disclosed="${uix.eventResult.paramshs}"<br />
    rendered="${uix.eventResult.parametersRendered}"<br />
    text="${uix.data.nls['text.parameters']}"></p>
<p>This is the code for the event:</p>
<p><bibeans :parameters   biParameters="${uix.eventResult.params}"></bibeans><br />
<button textAndAccessKey="${uix.data.nls['button.go']}"<br />
              shortDesc="${uix.data.nls['text.go']}"<br />
              onClick="paramsbi_selectParams();"></button></p>
<p>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=&#8221;${!uix.eventResult.paramshs}&#8221; and it worked (it was collapsed on load)! Unfortunately, nothinng happened on click: the event didn&#8217;t work in this condition <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Iâ€™d be glad if you could help me!<br />
Best regards,</p>
<p>Ricardo Pinto.</hideshowheader></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ricardo Pinto</title>
		<link>http://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1668</link>
		<dc:creator>Ricardo Pinto</dc:creator>
		<pubDate>Thu, 10 Nov 2005 15:48:17 +0000</pubDate>
		<guid isPermaLink="false">/?p=389#comment-1668</guid>
		<description><![CDATA[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:

&lt;hideshowheader formSubmitted=&quot;true&quot;
    id=&quot;${uix.data.constants.PARAMETERS_HIDE_SHOW}&quot;
    name=&quot;${uix.data.constants.PARAMETERS_HIDE_SHOW}&quot;
    disclosed=&quot;${uix.eventResult.paramshs}&quot;
    rendered=&quot;${uix.eventResult.parametersRendered}&quot;
    text=&quot;${uix.data.nls[&#039;text.parameters&#039;]}&quot;&gt;

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 &#039;!&#039; to get the logical not of the value. When I entered my page, it worked: the tree was collapsed! Unfortunately, the event didn&#039;t work anymore (it never expanded) :(

This is the event code:

&lt;button textAndAccessKey=&quot;${uix.data.nls[&#039;button.go&#039;]}&quot; shortDesc=&quot;${uix.data.nls[&#039;text.go&#039;]}&quot; onClick=&quot;paramsbi_selectParams();&quot; /&gt;

Could you help me on this?
Thanks in advance,

Ricardo Pinto&lt;/button&gt;&lt;/hideshowheader&gt;]]></description>
		<content:encoded><![CDATA[<p>Greetings!</p>
<p>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.</p>
<p>The code is:</p>
<p><hideshowheader formSubmitted="true"<br />
    id="${uix.data.constants.PARAMETERS_HIDE_SHOW}"<br />
    name="${uix.data.constants.PARAMETERS_HIDE_SHOW}"<br />
    disclosed="${uix.eventResult.paramshs}"<br />
    rendered="${uix.eventResult.parametersRendered}"<br />
    text="${uix.data.nls['text.parameters']}"></p>
<p>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 &#8216;!&#8217; to get the logical not of the value. When I entered my page, it worked: the tree was collapsed! Unfortunately, the event didn&#8217;t work anymore (it never expanded) <img src='http://technology.amis.nl/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>This is the event code:</p>
<p><button textAndAccessKey="${uix.data.nls['button.go']}" shortDesc="${uix.data.nls['text.go']}" onClick="paramsbi_selectParams();"></button></p>
<p>Could you help me on this?<br />
Thanks in advance,</p>
<p>Ricardo Pinto</hideshowheader></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hans</title>
		<link>http://technology.amis.nl/2005/02/07/adf-uix-tidbits-things-i-want-to-remember-but-never-do-conditional-expressions-switcherifdata-bound/#comment-1667</link>
		<dc:creator>hans</dc:creator>
		<pubDate>Tue, 08 Feb 2005 11:06:20 +0000</pubDate>
		<guid isPermaLink="false">/?p=389#comment-1667</guid>
		<description><![CDATA[Hi Lucas,

I&#039;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&#039;s edited in the screen should belong in the controller, not in the view layer.

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

Cheers, Hans]]></description>
		<content:encoded><![CDATA[<p>Hi Lucas,</p>
<p>I&#8217;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.</p>
<p>The same approach can be applied to the second item; the initialisation of the object that&#8217;s edited in the screen should belong in the controller, not in the view layer.</p>
<p>Don&#8217;t know how easy this can be realized using UIX and ADF, currently I&#8217;m looking at JSF where it&#8217;s rather straightforward. As Oracle&#8217;s JSF implementation (ADF-Faces) builds upon UIX I would expect it to be feasable&#8230;</p>
<p>Cheers, Hans</p>
]]></content:encoded>
	</item>
</channel>
</rss>
