Tuesday, December 29, 2009

How to set Book default page in runtime?

To make a page of book as default in runtime set that PageBackingcontext as active --setActive().

See the code below ,

PageBackingContext pbcHome = null;

PageBackingContext pbcHome1 = null;
PageBackingContext pbcHome2 = null;
PageBackingContext pbcHome3 = null;

BookBackingContext bbc = BookBackingContext.getBookBackingContext(request);
pbcHome = bbc.getPageBackingContextByDefinitionLabel("intranetvz_portal_vzcorp_page");
pbcHome1 = bbc.getPageBackingContextByDefinitionLabel("intranetvz_portal_vso_page");
pbcHome2 = bbc.getPageBackingContextByDefinitionLabel("intranetvz_portal_telebusiness_page");
pbcHome3 = bbc.getPageBackingContextByDefinitionLabel("intranetvz_portal_vzwireless_page");

pbcHome.setActive(false);
pbcHome1.setActive(true); -- Making that page as active
pbcHome2.setActive(false);
pbcHome3.setActive(false);

Thanks,
Venkata Sarvabatla

Tuesday, October 27, 2009

IPC between two JSR 168 portlets with out reloading the page(asynchronoes)

My requirement is IPC between two JSR 168 portlets with out reloading the page(Lleft and right portlets)


I made asynchronoes desktop and I used the custom events

I fired the left portlet event from the right portlet in the below way it worked perfectly.

Event in left portlet :
---------------------

public void getMessage(ActionRequest request, ActionResponse response,

Event event) {

CustomEvent customEvent = (CustomEvent) event;

String message = (String) customEvent.getPayload();

response.setRenderParameter("message0", message);

}

Add/Create event handelar "messageCustomEvent" from from properties file in left portlet

I called the left portlet event from the right portlet processAction method in the below way

javax.servlet.http.HttpServletRequest httpRequest = (javax.servlet.http.HttpServletRequest)request.getAttribute("javax.servlet.request");

com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext context = com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext.getPortletBackingContext(httpRequest);

context.fireCustomEvent("messageCustomEvent", navvar);


It worked perfectly with out refereshing the screen


Thamks,
Venkata Sarvabatla

Thursday, October 15, 2009

Show/Hide portlet in Runtime

Question :
I have been trying to hide a portlet at runtime using portletBackingContext.setVisible(false) in preRender() method of the backing file.
 But still that portlet is visible. how to hide the portlet in runtime.

 
Answer :

setVisible(false) and return false from the prerender method.

Thursday, September 17, 2009

Comments

Hi

Under each posting there is a link like 0 comments or 1 comments , you can click that link and post your comments I will give reply to your questions

Thanks,
Venkata Sarvabatla

Saturday, September 12, 2009

Contents Propogation Error

Error description :

Unable to export /Propagation/abs2000web.merged.zip.


Reason:

/opt/Oracle/WP10gR3/user_projects/workspaces/default/.metadata/.plugins/com.bea.wlp.eclipse.proptool/export-inv50657-build.xml:52: The propagation servlet returned a failure response: The [Upload] operation is halting due to the following failure: Posted content length of 529797861 exceeds limit of 10485760



Additional Information:

The propagation servlet returned the following log information found in [/tmp/onlineUpload__D20_H14_M40_S53.log]:

INFO (Apr 20, 2009 2:40:56 PM CDT): Verbose logging has been disabled on the server.

INFO (Apr 20, 2009 2:40:56 PM CDT): The propagation servlet is starting the [Upload] operation.

ERROR (Apr 20, 2009 2:40:56 PM CDT): The [Upload] operation is halting due to the following failure: Posted content length of 529797861 exceeds limit of 10485760
----------------------------------------------------------------------------
 
Solution :
 
Best solution is to copy the merged inventory to the target server if the enventory size exceeds 10MB


Please refer : "Increasing the Default Upload File Size"

http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/prodOps/propToolAdvanced.html#wp1070764
 
---------------------------------------------------

Friday, September 11, 2009

How to start learning weblogic portal?

Go to the below weblogic portal documents link . Chose the  Portlet Development Guide link go through the below topics first

http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/index.html


Portlet Development Guide :

1. .portal file
2. File base portal
3. Streaming portal
4. Portlet
5. Type of portlets
6. Look and Feel
7. Theam
8. Shell
9. Skin
10. Backing File
11. Control file
12. Book and page
13. Layout
14. Interportlet communication
15. Page Flow
16. Desktop creation
17. NetUI tags
18. JSP tags

After finishing the above topics go through the below concepts


1.Content managemengt
2.Unified user profile(UUP-User Management Guide)
3.Customizing the Administration Console
4.Autonomy Search Documentation
5.Federated Portals Guide(WSRP)
6.Security Guide
7.Entitlements,Roles
8.Propogation like conetnts,entitles propogation
9.Database Administration Guide
10.Cache Reference Guide
11.JSR 168

Weblogic Portal Interview Questions

I covered most of the questions asked in portal interviews. I typed what ever I remembers questions  these questions are not in order for answers you can go through the weblogic portal documentation.


1. What is a .portal file?


2. What is the difference between streaming portal and file-based portal?

3. What is backing file?

4. Backing file life cycle?

5. what is a control file and why we use it?

5. What are the different types of portlets?

6. what is page flow?

7. How to create streaming portal/desktop?

8. What are the components of look-and-feel?

9. Difference between skin and skeleton?

10.What is shell?

11.Difference between page and book?

12.Explain the order in portal creation(like books,pages and layout)?

13.Explain the inter-portlet communication and why we use it?

14.What are portlet modes and states?

15.Life cycle of the portlet?

16. What is UUP and give me detailed explanation about UUP.

(Like how to write EJB or Java file to get the data from data base and how write .usr file

and how to configure it in admin console)

17. Explain me about the content manage system. How to use the contents in JSP file?

18. How to create contents?

19. Explain me the steps to upgrade weblogic portal from 8.1 to 10.2/10.3?

20. Explain about WSRP portlets and security?

21. Have you involved in contents propogation ? what are the problems you faced in propogation?

22. Explain the problems faced in portal? how you solved?

23. Have you used AJAX in portal ? how you used?

24. How to improve the portal performance?

25. Steps to deploy the portal application to application server?

A) cretae war file and ear file deploy it.

26. How to create the roles and assigning it to the portlet?

27. What are the problems you faced while creating the desktop?

28. JSR 168 life cycle. Explain detailed about JSR 168?

What is weblogic portal?

Oracle WebLogic Portal, formerly BEA WebLogic Portal,
is the best-of-breed portal framework for creating highly interactive composite applications in a SOA environment with a powerful, integrated set of design-time tools for Java developers and strong support for standards.
 Oracle WebLogic Portal's framework provides reliable, performant, and personalized application delivery that engages customers, keeps infrastructure costs down, delivers solutions rapidly, and standardizes application architecture.
 The integrated development environment provided by WebLogic Portal includes a rich, graphical environment for developing portal-based solutions. Web-based configuration tools, content publication wizards, and other run-time tools enable distributed portal management. Once built, your portals can be readily adapted when your business needs change, all at significantly lower costs. Thanks to its unified portal framework, simplified portal lifecycle mangement, and modular portal business services and portal extensions, Oracle WebLogic Portal simplifies, personalizes, and lowers the cost of customer, partner, and employee access to information, applications, and business processes.