Thursday, January 29, 2004

ADF UIX Inline data source 

Prototyping with out connecting to a database is a aquestion that is frequently asked and I thought that a simple how to would be handy for anyone interested. UIX is designed to be as dynamic as possible allowing you to data bind any attributes available in your page. In the 10g release we are using EL to wire a page up to a source (db, inline data, beans, etc...)

Here is a working inline data source sample for JDeveloper 10g Preview:


<provider>
<data name="tabData">
<inline>
<tabInfo text="Tab1" url="InlineData" tabIndex="0"/>
<tabInfo text="Tab2" url="InlineData" tabIndex="1"/>
<tabInfo text="Tab3" url="InlineData" tabIndex="2"/>
<tabInfo text="Tab4" url="InlineData" tabIndex="3"/>
<tabInfo text="Tab5" url="InlineData" tabIndex="4"/>
</inline>
</data>
</provider>

.......

In your page you would wire it up using EL. See below sample

<!-- navigation -->
<tabs>
<tabBar selectedIndex="${ui:defaulting(uix.pageProp.tab, '0')}">
<contents childData="${uix.data.tabData.tabInfo}">
<link text="${uix.current.text}">
<boundAttribute name="destination">
<ctrl:pageURL name="${uix.current.url}">
<ctrl:properties>
<ctrl:property key="tab" value="${uix.current.tabIndex}"/>
</ctrl:properties>
</ctrl:pageURL>
</boundAttribute>
</link>

</contents>
</tabBar>
</tabs>

Best of luck making your page dynamic
- Jonas
Comments-[ comments.]

I'm back 

Hi All,

After a couple of busy weeks with family and friends I'm back! There are a lot of stuff going on in Oracle land and it is great to part of it. This blog is intended to focus on JDeveloper, ADF UIX, and JavaServer Faces, so here is a link to a blog site built with UIX technology by Brian Duff.

Brian Duff's new blog site built with UIX

We are getting closer to a production release of JDeveloper 10g and so there will be much more activities on this blog and on the OTN website the next coming weeks.

- Jonas
Comments-[ comments.]

This page is powered by Blogger. Isn't yours?