Thread: 10.1.3 ADF migration & regions


Permlink Replies: 16 - Pages: 2 [ 1 2 | Next ] - Last Post: Oct 26, 2007 8:07 AM Last Post By: Simon Lessard
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
10.1.3 ADF migration & regions
Posted: Oct 5, 2007 2:48 AM
Click to report abuse...   Click to reply to this thread Reply
Hi,

I've noticed that the ADF regions taglibs are not migrated to Trinidad. My applications make an extensive use of regions. Is there any future support planned for migrating adf regions ?

Thanks,
Seb.
ric.smith

Posts: 923
Registered: 03/19/03
Re: 10.1.3 ADF migration & regions
Posted: Oct 5, 2007 8:18 AM   in response to: Sebastien Pouil... in response to: Sebastien Pouil...
Click to report abuse...   Click to reply to this thread Reply
Seems there is a conflict in documentation on the Trinidad side of things. The Trinidad migration doc states that the region is not supported.

http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

However, the the tagdoc which was created more recently references a region tagdoc. This will require a little footwork and I will return with an answer shortly. To accelerate the process it would be helpful if you can provide a test-case to help triage the issue. You can reach me by mail at richard dot allen dot smith at oracle dot com.

--Ric
ric.smith

Posts: 923
Registered: 03/19/03
Re: 10.1.3 ADF migration & regions
Posted: Oct 5, 2007 9:43 AM   in response to: ric.smith in response to: ric.smith
Click to report abuse...   Click to reply to this thread Reply
For tracking purposes BUG #6475950.

--Ric
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 6, 2007 11:56 PM   in response to: ric.smith in response to: ric.smith
Click to report abuse...   Click to reply to this thread Reply
Hi Ric,

Thanks for taking care of this. I'll send you a typical test-case next week.
By the way I was wondering if the donation of the Rich Client Framework to Apache will benefit from the template mechanism that is available with the ADF rich components...

Could you investigate on this also please ?

Thanks,
Seb.
ric.smith

Posts: 923
Registered: 03/19/03
Re: 10.1.3 ADF migration & regions
Posted: Oct 8, 2007 5:15 AM   in response to: Sebastien Pouil... in response to: Sebastien Pouil...
Click to report abuse...   Click to reply to this thread Reply
That is the intent. However, for legal reasons I should make it clear that until the donation is finalized there is no guarantee of features included in the final deliverable.

--Ric
ric.smith

Posts: 923
Registered: 03/19/03
Re: 10.1.3 ADF migration & regions
Posted: Oct 9, 2007 5:52 AM   in response to: ric.smith in response to: ric.smith
Click to report abuse...   Click to reply to this thread Reply
After doing a little bit of research, I found regions are not supported by project Trinidad. To prevent further confusion the Trinidad team has removed all references to Regions in their documentation. However, this means that an ADF Faces region defined in 10.1.3 will not migrate to Trinidad at this time.

Thanks,
Ric
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 10, 2007 3:05 AM   in response to: ric.smith in response to: ric.smith
Click to report abuse...   Click to reply to this thread Reply
When you say "this time" it means no chance ever, doesn't it ?
I think this should be mentioned officially somewhere to prevent users from using regions from now on and for those who had intensively used regions that migration is not an option. I think that's a major issue.

Seb.
ric.smith

Posts: 923
Registered: 03/19/03
Re: 10.1.3 ADF migration & regions
Posted: Oct 11, 2007 10:12 AM   in response to: Sebastien Pouil... in response to: Sebastien Pouil...
Click to report abuse...   Click to reply to this thread Reply
Steve and I have raised the issue with development. I will keep you posted as a work towards a resolution progresses.

Thanks,
Ric
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: 10.1.3 ADF migration & regions
Posted: Oct 12, 2007 2:21 PM   in response to: ric.smith in response to: ric.smith
Click to report abuse...   Click to reply to this thread Reply
A close functional equivalent of the 10.1.3 <af:regionDef> is an 11g bounded task flow containing a single page fragment.

An 11g bounded taskflow can then be dropped into a page as a region.

You might begin experimenting with this idea to see how such a mapping would work out in practice for the situations where you've used 10.1.3 regions.

In parallel, we're working with development to understand what the issues/limitations would be (if any) to migrate 10.1.3 regions to this combination. But the discussions are ongoing at this time...
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 12, 2007 2:52 PM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
I might be wrong but I thought task flows were part of ADF RC framework.
Do you mean we can mix trinidad components with taskflows after a migration ?

Seb.
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: 10.1.3 ADF migration & regions
Posted: Oct 12, 2007 3:43 PM   in response to: Sebastien Pouil... in response to: Sebastien Pouil...
Click to report abuse...   Click to reply to this thread Reply
task flows are an ADF Controller feature, mostly orthogonal to ADF Faces Rich Client.

The <af:region> tag in 11g is part of ADF Faces Rich Client library, yes. As I said, we haven't worked out the details yet of how/whether the idea above would work, and what restrictions it might have, but it seemed like something to begin experimenting with to see where the issues lie.

The ADF Faces Rich Client jars will need to be in the path.

I'll experiment more myself next week with this combo, but if you beat me to it please report any issues you run into here.
Steve Muench

Posts: 5,912
Registered: 01/10/01
Re: 10.1.3 ADF migration & regions
Posted: Oct 22, 2007 4:27 AM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
On further investigation, development came back to me saying that there is no exact equivalent in 11g for the 10.1.3 ADF Faces region and regionDef facility.

They have updated the "ADF to Trinidad" migration Wiki page to describe their cookbook approach to migrating 10.1.3 regions to trinidad here:

http://wiki.apache.org/myfaces/from_ADF_to_Trinidad#region

I'd be interested in any feedback you have trying to follow their suggestions.
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 23, 2007 12:18 AM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
See below
Sebastien Pouil...

Posts: 169
Registered: 07/25/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 23, 2007 1:06 AM   in response to: Steve Muench in response to: Steve Muench
Click to report abuse...   Click to reply to this thread Reply
Thanks Steve for this supporting effort.
I'll keep you informed on my findings regarding the migration steps provided by the ADF Faces team as soon as I can.

By the way the region migration should be useful to some JHeadstart client too that do not want to (can't) buy the 11 release of JHeadstart and still want to maintain legacy apps using trinidad components. JHeadstart relies heavily on ADF regions.

Seb.
Simon Lessard

Posts: 1,311
Registered: 02/01/06
Re: 10.1.3 ADF migration & regions
Posted: Oct 23, 2007 12:44 PM   in response to: Sebastien Pouil... in response to: Sebastien Pouil...
Click to report abuse...   Click to reply to this thread Reply
Hello Sebastien,

Sorry for the late answer, I was actually browsing about regions because I failed to have Facelets work easily with data bindings and found this thread. Actually, Trinidad does support regions (not sure how functional it is either), but it's a secret feature that's flagged experimental, undomcumented and deprecated. Actually it's more than deprecated, it's not officially supported at all and, because of that, might get dumped at any time without any notice. It's so mainly because Trinidad has native Facelets support, which is superior and has community acknowledgment, whereas regions remains marginal. You can use the equivalent of region using the following (can be found in Trinidad demo code):

In your page
<tr:componentRef id="reg1" componentType="org.apache.myfaces.trinidaddemo.region.stock"
              value="Watch this stock">
  <f:attribute name="symbol" value="XYZ"/>
  <f:attribute name="company" value="XYZ Incorp"/>
  <f:attribute name="amount" value="13.66"/>
  <f:facet name="action">
    <tr:commandButton text="Buy" disabled="true"/>
  </f:facet>
</tr:componentRef>


In WEB-INF/region-metadata.xml:
<faces-config>
  <component>
    <component-type>org.apache.myfaces.trinidaddemo.region.stock</component-type>
    <component-class>
      org.apache.myfaces.trinidad.component.UIXRegion
    </component-class>
    <component-extension>
      <region-jsp-ui-def>/components/regions/stock.jspx</region-jsp-ui-def>
    </component-extension>
    <attribute>
      <attribute-name>symbol</attribute-name>
      <attribute-class>java.lang.String</attribute-class>
      <attribute-extension>
        <required>true</required>
      </attribute-extension>
    </attribute>
    <attribute>
      <attribute-name>amount</attribute-name>
      <attribute-class>float</attribute-class>
      <default-value>0</default-value>
    </attribute>
    <attribute>
      <attribute-name>company</attribute-name>
      <attribute-class>java.lang.String</attribute-class>
      <default-value>Default Company</default-value>
    </attribute>
    <attribute>
      <attribute-name>description</attribute-name>
      <attribute-class>java.lang.String</attribute-class>
      <default-value>Default Description</default-value>
    </attribute>
  </component>
</faces-config>


In the region page (here /components/regions/stock.jspx):
<tr:componentDef var="stuff">
  <tr:panelBox text="Symbol:#{stuff.symbol} Company:#{stuff.company}">
    <tr:outputText value="#{stuff.description}"/>
    <tr:outputFormatted 
      value="<br>Current Value:<b>$#{stuff.amount}</b>"/>
    <tr:outputFormatted rendered="#{not empty bindings}"
      value="<br>Value attribute is:#{bindings}"/>
    <tr:facetRef facetName="action"/>
  </tr:panelBox>
</tr:componentDef>


For now it's part of the JAR, so it's available. It's far from the best solution, but it'll most likely provide what you need for a first migration phase. Moving to either Facelets or 11g templates is probably going to be mandatory in the future but, who knows, if you're lucky enough, that future could be far enough for some templating standard to emerge, possibly with JSF 2.0, see https://javaserverfaces-spec-public.dev.java.net/proposals/JSF-2_0-draft.html.

Regards,

~ Simon

Legend
Guru Guru : 2500 - 1000000 pts
Expert Expert : 1000 - 2499 pts
Pro Pro : 500 - 999 pts
Journeyman Journeyman : 200 - 499 pts
Newbie Newbie : 0 - 199 pts
Oracle ACE Director
Oracle ACE Member
Oracle Employee ACE
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums