Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Facelets support in ADF Rich Client

169447Jan 2 2008 — edited Nov 20 2008
I have tried to use ADF Rich Client with Facelets
but it looks like the tag library schema is not recongined, and the ADF RC tag schema definition in html root tag and all ADF RC tags are copied into output.
any comments or info from any one?

Comments

I don't think we tested this combination so far. One thing that I would be interested to know is what specifically are you looking to get out of facelets?
If it is a templating mechanism, then ADF Faces RC already has this covered for you.
dvohra21
http://ajaxian.com/archives/adf-faces-rich-client-components-demo
169447
Hi Shy,
thanks for your fast response, and apology for late answer.
I would be more than happy if I can omit one of technologies used in my Java EE stack, and make it simpler.
these are the reasons I am looking after facelets integration:

by the way do you know when will be a code drop of ADF RC available in Apache ?

1) legacy(!?) pages
in one of projects we have hundreds of pages developed in facelets and it is a little hard to convert them all.

2) solving JSP life cycle problems,
may be this is not valid any more but in old times JSP life cycle had some problems with JSF specially when a component was referencing a component defined later in the page or as it's own child.

3) Templating
ADF Rich Faces Templating mechanism is an strong one,
but a little different with Facelets, for example in Facelets templates can be used inside each other but in ADF RC as far I I know they can not.

4) composition component
in facelets it is easy make a new composite component by mixing existing components
for example add an export to PDF and Excel button to a table.
looks like the current ADF Templating mechanism can be used to solve this issue.

5) easier 18n and enhanced EL support

regards
Arash
For 3 check out the page fragments concept in ADF 11g.
For 4 check out the declarative components in ADF 11g.
hi,

to add my 2 cents

by the way do you know when will be a code drop of ADF RC available in Apache ?

I assume this to happen some time after ADF Faces RC goes production

1) legacy(!?) pages in one of projects we have hundreds of pages developed in facelets and it is a little hard to convert them all.

We don't support JSF 1.1 content (and Trinidad content) to be on the same page as ADF Faces RC. So if you like to continue using your current stack then the option to go with in Trinidad in JDeveloper 11, not ADF Faces RC

3) Templating
ADF Rich Faces Templating mechanism is an strong one, but a little different with Facelets, for example in Facelets templates can be used inside each other but in ADF RC as far I I know they can not.


The runtime does support template nesting, the designtime does. However, as Shay mentioned using daclarative components might be a nice addition to reuse.

4) composition component
in facelets it is easy make a new composite component by mixing existing components
for example add an export to PDF and Excel button to a table.
looks like the current ADF Templating mechanism can be used to solve this issue.


Declarative components do.

Frabj
169447
Thanks frank and Shy for these complete answers
I am now convinced that I don't need Facelets
and I can remove it from my stack and make my stack a little bit lighter
Regards
Arash
671464
Hello,
I just tried to deal with Oracle template mechanism.

Could you please clarify next points:
1. Seems that ADF 11G doesn't support af:attribute. So how I can parameterise my parent master pages? I.e. I expected to pass parameters for template with af:attribute and access this over af:pageTemplateDef var variable. But Oracle JDeveloper 11G said that af:attribute has been removed and show me error in that line.

2. Seems that no one EL expression evaluated when template based page rendered out to browser.
What is it? Feature or just my incorrect usage of templates? By the way all rest seems to be working properly as in design time and in run time.

3. How I can deal with paths for images? I.e. if template located in folder public_html/templates but page is located in public_html/some/folder no one image showed due to incorrect paths.
I'm using relative paths like "/images/someImage.gif"

4. Can I create normal full page template? I.e. I need to declare real template with common application styles and scripts declared in html head section.
I found article with af:document used in template page for such purposes. But seems that it is not working solution.
User_HWHT9
The guidelines located at the top of this forum suggest you start a new thread to discuss new issues, not hijack an existing (old) thread, as well as 1 issue per thread.

I can probably answer your question # 1: the tag you're looking for is <f:attribute>

Good luck with your future posts.

CM.
Shay Shmeltzer-Oracle
You might want to read the chapter about ADF Faces template to answer your questions - http://download.oracle.com/docs/cd/E12839_01/web.1111/b31973/af_reuse.htm#CACCFCJC
Here is also a small demo using an older JDeveloper 11g - http://download.oracle.com/otn_hosted_doc/jdeveloper/11/demos/templates/JDeveloperTemplateHowTo.html
If you still have open issues please post a new thread with the specific questions.
1 - 9
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 18 2008
Added on Jan 2 2008
9 comments
2,020 views