Friday, May 24, 2013

New page template for custom webcenter project : Not able to add as portal resource

I recently faced a strange issue while creating a new template for webcenter project in Jdeveloper. I created a custom page template for my portal application based on a quick start layout and added some custom code that displays content for header and footer region . Now when I tried to add this page template as a new page template in resource catalog by right clicking the PageTemplate.jspx and selecting create as portal resource. It gives me notification, that "the jspx document is not a valid page template or content presenter template. Recognizing the resource type as Page Style".

In <af:xmlContent> tag you should add:

<facet>
<description>Facet for content</description>
<facet-name>content</facet-name>
</facet>
And in some parte of your code you need add this:
<af:facetRef facetName="content"/>



After this change if you will try to add the template in resource catalog,it should work fine.Hope this helps.

20 comments:

Unknown said...

Its such as you read my thoughts! You appear to understand so much about this, such as you wrote the e-book in it or something. I believe that you simply could do with some % to drive the message house a little bit, but other than that,that is great blog. A great read. I will definitely be back.
software testing

Pradeep said...

Very nicely presented the common thing that can be easily forgotten by a developer. I also faced the same problem and got it resolved with this post. Thanks Mukul.

Venkat said...

Very User full post oracleapps4u

S M Consultants said...

Nice information about the Oracle online training..It is really informative and useful..
S&M consultants

moonar said...

Thank you so much for taking time to read my blog. I read all my comments and appreciate each and every one!

Custom Software Development India

Unknown said...

Hi…
Thank you for posting this useful information.
I think it is mostly helpful to who are ready to learn Oracle OAF.

Akshaysri said...

Great site for these post and i am seeing the most of contents have useful for my Carrier.Thanks to such a useful information.Any information are commands like to share him.
Study in Canada Education Consultants in Chennai

Unknown said...


I think great site for these post and i am read the most of contents have useful for my Carrier.Thanks for these useful information.Any information are commands like to share him.


SEO Company in Chennai
SEO Company in India
Digital Marketing Company in Chennai
Digital Marketing Company in India
Web Development Company in India
Web Design Company in Chennai

Asharaf said...

This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.

Self Employment Tax
TaxPreparation Services
Tax Accountant
Tax Consultant
Tax Advisor

Anusuya said...

I simply want to tell you that I’m all new to blogs and truly liked you’re blog site. Very likely I’m likely to bookmark your site .You surely come with remarkable articles. Cheers for sharing your website page.
Home Interior Designers in Chennai
Home Interiors in Chennai

Vikas Chauhan said...

social media optimization
http://digitalgooglealert.blogspot.com/
Should You Spend Time on Meta Tags
seo for beginner
neil patels top 10 rules
3 guaranteed ways stand out on social
internal linking
article submission

Unknown said...

You’re doing great work. In this blog we can get useful information. Thanks for posting this blog.
SQL Server Training in Houston
Please Click Here For More Information About Any Course or Training Institute all over the world

sathya shri said...

You made such an interesting piece to read, giving every subject enlightenment for us to gain knowledge. Thanks for sharing the such information with us

angularjs interview questions and answers

angularjs-Training in pune

angularjs Training in bangalore

angularjs Training in bangalore

angularjs Training in chennai

Unknown said...

I read this post two times, I like it so much, please try to keep posting & Let me introduce other material that may be good for our community.
Java training in Bangalore | Java training in Marathahalli

Java training in Bangalore | Java training in Btm layout

Java training in Bangalore |Java training in Rajaji nagar

Java training in Bangalore | Java training in Kalyan nagar

Unknown said...

I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
Best Devops Training in pune
Devops interview questions and answers

Durga IT Solutions said...
This comment has been removed by the author.
digital marketing course said...

Best Digital Marketing Course In Bhopal

digital marketing course said...

Best Digital Marketing Course In Bhopal

Keturah Carol said...

such a nice blog and so much information I got through your blog, thanks for sharing!!!
1Z0-900: Java EE 7 Application Developer

automation mind said...

BIG DATA Technologies provides you with a state of the art software which combines modern GPU technology (Graphic Processing Units) with the best practices in today’s Big Data platforms, providing up to 100x faster insights from data.
Bigdata Training in Chennai OMR