portlet 5 « portlet « Java Enterprise Q&A





1. Portlet Cacheability Levels    coderanch.com

protected void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException, UnavailableException { PrintWriter pw = response.getWriter(); ResourceURL rurl = response.createResourceURL(); rurl.setCacheability("PORTLET"); rurl.setParameter("name", "abc"); pw.println("
Serve Resource
"); pw.close(); } @Override public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException { PrintWriter pw = response.getWriter(); pw.println("
Inside Serve Resource
"); pw.println("
Param Value = " + request.getParameter("name")); pw.println("
Cacheability = " + request.getCacheability()); pw.println("
PortletMode = ...

4. portlet ehcache    coderanch.com

Hi , I need a suggestion/solution from the experts here. There are 5 portlets in my application and all of them make web service calls (different services) to get the data and displayon the portlets. I need to implement Caching using the ehcache such that the request originating from the user is served from the cache if the data is available ...

5. How to control the display from a porlet?    coderanch.com

I have a portlet in a portal that displays the first page of an external application without login. However, when the page opens another page the display takes the entire browser. I want all te pages to display in the same porlet but I don{t know how to do that. Thnking you in advance, Alejandro Barrero

6. portlet    coderanch.com

7. create news portlet    coderanch.com

8. trees    coderanch.com





10. Help with API created by EKP    coderanch.com

11. strus portlet framework    coderanch.com

hi aparna, My name is vamsi, I am working for a Software company in Uk. I got placed here 2 months back after my masters. I am working on portals as well and I am damn new to this stuff, but trying really hard to get into it. I may not know the solution for your question above but we both ...

13. TurningWebApp into Portlets    coderanch.com

Hi all, over time I have developed a web app (.war) with many servlets for the business logic and XSLT for rendering the UI. I realized that over time this has become to large and lumpy and I came to the conclusion that a portal may be more future prove. I have been looking into Apache Pluto2 and now I am ...

14. Embeding PDF in portlet    coderanch.com

15. dynamic form in BEA porlet    coderanch.com

Hi all, I am doing in a project about bea portlet using page flow. I had problems with dynamic form using netui-data:repeater tag. I have a variable (jobs) of type java.util.List, each element (job) is a String. I want to populate this list in my form so that i can increase or decrease it if i want. I did make a ...

16. Excel Export Issue    coderanch.com

Hello - My team is currently working on a project where we need to export some search results from a jsr portlet into excel. The search results portlet has a Excel Export button and when the user clicks this it does a form post to the server. The server is getting the data we need to export however the data is ...





17. Creating a Forum    coderanch.com

Well, you're posting in the portal forum, so are you saying that you want your forum software to be wrapped up in a portlet and deployed to a portal server? What portal server are you using? Again, google JForum for free and reliable Java based forum software. You can download it and try it out. -Cameron McKenzie

18. Portlet From Scratch    coderanch.com

19. Please explain the portlet directory structure for me    coderanch.com

Well, a portlet app is just a web app with a few extra features, namely a portlet.xml file, and the ability to link to the portlet API. Really, there's not much more too it. I think you've somehow imported in a bunch of packages reated to the implementation of liferay. They certainly are not required in order to create a standard ...

21. igoogle    coderanch.com

I think google uses mashups and heavy Google Web Toolkit technology. But indeed, this is the experience a portal provides. When I'm selling portal, I often talk about the 'facebook' type of experience, where you have many different content spots that aggregate together to create a common experience. Facebook isn't written in Java or JSR168, but that's really the idea the ...

22. invoke help mode by a link    coderanch.com

23. Creating a renderURL    coderanch.com

24. Problem running an app    coderanch.com

I received a very simple application to add some new simple features, but I can't seem to run the app. The log from Tomcat 6 is this. Any ideas? 24.09.2009 11:32:38 org.apache.catalina.core.ApplicationContext log at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Thread.java:619) 24.09.2009 11:32:41 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NullPointerException at org.apache.jasper.runtime.JspRuntimeLibrary.getContextRelativePath(JspRuntimeLibrary.java:910) ...

25. Portlets    coderanch.com

Hi, I wish to understand when is the ideal case for using portlets, we have an application which uses portlets in it but I think we should be using them when we have multiple windows or divisions which are getting changed rapidly and their change should not impact others. Thoughts?? Thanks Vinod

26. web aplication inside a portlet    coderanch.com

27. hide a portlet when click on other portlet    coderanch.com

Hi! I have one portlet with a button. When I click on the button I want to hide the second Portlet. I'm using IBM websphere portal 6.0.1.3 I have tried to use an application object and a visibility rule with my application object, but my problem with that is I think is not possible to change the value of the property ...

28. WebTester in java    coderanch.com

29. find out most accessed articles    coderanch.com

30. Hashmap or Bean on a Portlet Wire    coderanch.com

31. Newbie reusing j2-admin::LoginPortlet    coderanch.com

Hi everybody, I'm using jetspeed 2.2.0 portal. I've created a new folder with a psml of my own, that contains a portlet written by me. Now I'm trying to reuse j2-admin::LoginPortlet (also j2-admin::ForgottenPasswordPortlet, actually) in it, but when I try to use it for login nothing happens. Please, anyone has got any idea on how to solve this issue? Is there ...

33. Downloading powerpoint doc    coderanch.com

34. failed to lazily initialize a collection of role    coderanch.com

Hi, JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); ProcessInstance instance = null; ProcessDefinition processDef = null; try{ GraphSession graphSession = jbpmContext.getGraphSession(); processDef = graphSession.findLatestProcessDefinition(processDefName); if(processDef == null){ logger.error("Process definition not deployed"); throw new LocationWeatherException(FlowConstants.PROCESS_DEFINITION_NOT_FOUND,"Process definition not deployed"); } List processInstances = graphSession.findProcessInstances(processDef.getId()); logger.debug("processInstances [ " + processInstances + " ] "); if(processInstances == null || processInstances.isEmpty()) { logger.debug("Creating & loading a new process instance"); ...

35. Any link to Portlet sample for a Newbie Portlet developer    coderanch.com

Hi Since I am newbie developing portlet I would like to hear if any have suggestion to Portlet sample that have a Input form that is validate when it is submittes. Generally any sample that can give inspiration to build a porlet that show a list, an a user can add to the list creating some input.. I will be happy ...

36. Content Length problem    coderanch.com

I'm working on an upgrade to WebLogic 10.3 Portal, and I'm not too familiar with it. I've come across an interesting problem that I hope someone here can shed some light on. We use Jasper Reports to build some pdfs, and we send them to the browser by settting a byte[] in the session like so: getRequest().getSession().setAttribute("report", report); and we use ...

37. restrict the size of a Portlet    coderanch.com

Hi! I have a new problem. I hae a page with two portlets.Sometimes my second portlet is visible or hidden, I do this setting the window state to NORMAL or to MINIMIZED. My problem is when my portlet is normal I would like to restrict the size of this portlet to 20% but I have no idea to do this. I ...

38. it's blocking me!my first portlet doesn't work!    coderanch.com

I'm deploying a simple hello world portlet in eclipse with jboss portal+jboss tools,i made all what i found in documentation but i still have this errors and it doesn't compile: bjectName: org.jboss.security.acl.AclKernelFactory:service=aclKernelFactory State: FAILED Reason: java.lang.NoClassDefFoundError: org/apache/myfaces/custom/fileupload/UploadedFile ObjectName: portal.forums:service=Hibernate State: FAILED Reason: java.lang.ClassCastException: org.hibernate.cfg.Configuration I Depend On: jboss.jca:service=DataSourceBinding,name=PortalDS Depends On Me: portal.forums:service=Module,type=Forums portal.forums:service=Module,type=Search portal.forums:service=Module,type=IndexBuilder ObjectName: jboss.security.tests:service=LoginConfig State: FAILED Reason: org.jboss.deployment.DeploymentException: Failed ...

39. Mainframe portlet (HATS)    coderanch.com

40. Web Clipping    coderanch.com

41. One portlet with more application    coderanch.com

Hi, We currently develop system using JDeveloper and deploy using OC4J. Also all application will integrate with portal oracle. We also have huge application need to put in portal. I don't want to use one portlet for one application. Because we have many many application. So, my question is is possible i create one portlet and fill with 5 or more ...

42. Portlet Exam @ JavaBlackBelt    coderanch.com

To contribute you would first have to register for an account at the Community Website of JavaBlackBelt. This give you access to all existing exams and allows you to make contributions. To make an actual contribution for the Portlet Basic Exam go to that exam. On that page you have to ability to add questions to the various categories within the ...

43. Getting Password from Credential Vault    coderanch.com

Hi, I am storing the User ID and Password from my Portal page to the Credential Vault. While retreiving back the password from credential vault, I am getting it in some encrypted/encoded format. For example if i send the value "ew12345" as password I am getting back "[C@46effee5" from the credential vault. I want to know how to get the original ...

44. Doing sendRedirect using RenderResponse    coderanch.com

Hi, I have a requirement where in when a request comes to the portal page, i,e the doView() method is invoked, on some condition, i need to do a sendRedirect. But doView takes RenderRequest and RenderResponse where RenderResponse does not have sendRedirect method. Please let me know how i can do this.

45. Portlets as tabs    coderanch.com

46. Interface method import problem    coderanch.com

47. Integration strategy for portlets    coderanch.com

48. Upgradation from JDK5 to JDk6    coderanch.com

49. required tools for portlet    coderanch.com

50. How to focus on working portlet    coderanch.com

51. jboss-portlet.xml    coderanch.com

Hello guys! I'm using JBOSS-Portal and I have created my own war file containing two portlets, and one of these portlets would need to work with the PortalAuthorizationManagerFactory. My war files path is jboss-portal-2.6.8.GA\server\default\deploy\meb-my.war in the "JBOSS portal Reference" chapter 15.4.3 they have written how to inject that service so you can use it it you own war, and I have ...

52. How to clear portlet cache?    coderanch.com

I load portlets with a menu. When i push on a menu item one portlet loads. When i push on other menu item, other portlet loads. The problem is the next one: I load a portlet and navigate through it, so i load diferent pages inside that portlet. When i push on the menu (the same item) the portlet keeps in ...

53. How to setContentLength in Portlet?    coderanch.com

I am trying to open a saved pdf file in a portlet. It is working in Firefox but not in Internet Explorer. The way I am opening the file is I am setting the content type to application/pdf, and then writing the bytes to the PortletOutputStream. The pdf was generated using iText and after reading the documentation I discovered that IE ...

54. Web clipping    coderanch.com

55. Integrating site on Portlet    coderanch.com

Hi Ranchers, I am using IBM portal server 6.1. suppose we need to include other site in one of the portlet from our portal screen, I am having details of server like IP address, port number etc where that site is running, Is it possible to do this using portal server? Thanks in advance..

56. Problem saving a PDF document    coderanch.com

57. Portlet getting log off    coderanch.com

Hi , I am using uPortal and developed an application of admin where in 1)he can add a new letter which gets inserted into DB 2) he can edit letters and update content which gets updated into DB. Letters come from DB. 3) Delete letter which also updates DB. The problem is when add is done continously for 4 times , ...

58. uPortal Application logging off    coderanch.com

Hi, I developed an application where in user can do three functioanlities.(Add/Edit/Delete a letter). Please check the flow of channel below and the error we are receiving on a consistent basis. 1. We have a channel that provides user with 3 functionalities. Adding a new letter, Editing an existing letter, Deleting a letter. 2. When a user selects the option as ...

61. PortletPreferences    coderanch.com

62. developing portlets    coderanch.com

63. HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized.    coderanch.com

HTTP Status 403 - Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator. type Status report message Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator. description Access to the specified resource (Direct access to this Portlet Application's resources has not been authorized. Please contact your administrator.) has been ...

64. How to create links and access different portlets within the same war file    coderanch.com

Hi, I have a war file which contains different portlets, Each portlet just display a different jsp page. Now If I click an href in a jsp it should display the other portlet's jsp file....Currently I have hardcoded the URL's but this is not the correct approach.....Is there anyway to create href links to other portlet's jsp...How I can give the ...

65. Please guide me the best architecture to build a application    coderanch.com

Please guide me the best architecture to build a application I want to create application with below capabilities A video streaming application like youtube, Allow user to upload video under some category. Functionality: 1. upload 2. download 3. peer to peer (share) 4. privacy capability\ 5. security capability 6. media play, pause, full screen, add user, share, forward, rewind 7. ...

67. * Welcome Jonas Yuan    coderanch.com

68. SAP EP compatibility    coderanch.com

Hello, I'm just having a look to the content and Index of your book "Liferay Portal 6 Enterprise Intranets" and am having a question: We are actually using SAP Enterprise Portal Version 6.0 but are also looking for open alternatives. Would the Liferay portal allow to import epa files coming from SAP EP in order to evaluate SAP iViews running on ...

69. Public and Private Communities    coderanch.com

Hello, Currently, Public & Private pages for a community are divided into two sets. If I want to see private pages, I need to goto private pages section. I want to show the public and private community pages at same time to the user. I mean, when user is not logged in, he/she will see only public pages tabs at top ...

70. portalURLWriter throws string ClassCastException    coderanch.com

Has anyone ever used the portalURLWriter to generate a portal link to another portlet? I'm attempting to do so and I keep getting a java.lang.ClassCastException: java.lang.String on the code below where I call the portalURLWriter.writePortletRenderURL. How can I fix this? FacesContext fC=FacesContext.getCurrentInstance(); com.ibm.faces.portlet.httpbridge.PortletRequestWrapper request = (PortletRequestWrapper)FacesContext.getCurrentInstance().getExternalContext().getRequest(); javax.portlet.PortletRequest prequest = request.getPortletRequest(); com.ibm.faces.portlet.httpbridge.PortletResponseWrapper response = (PortletResponseWrapper)FacesContext.getCurrentInstance().getExternalContext().getResponse(); javax.portlet.PortletResponse presponse = response.getPortletResponse(); log.debug("Get portalURLWriter"); PortalURLWriter ...

71. Need Help for creating Java portlet    coderanch.com

In "LiferyaBundle with tomcat", the liferay product is integrated as default web application inside tomcat container (in /ROOT). You can also deploy your web applications inside the tomcat and access with your context path. But to access your web application pages, inside a portal page, you need to have a portlet. The portlet should access your application (cross-context). In the portlet ...

72. Need Info On Web Clipping and a Small Issue...    coderanch.com

Hi Everyone, I am very little idea about portals and am thrust into a task which needs extensive research on portals. Here's my problem... I have a web-application. Its a huge one. Currently it uses Struts/Tiles for the front end. Now a new requirement has come in which needs another layer to be added in front of the application, hosted on ...

73. UI and portlets    coderanch.com

Hello It is my first post on this forum and on start I would like say Hello to everyone !!!. I'm 31 old software developer with 5 years experience in JEE ( mostly EJB, JPA, SWING) and new in portal world. In my company by the way new project we are looking for portals technology. After rewiev We choose Liferay portal. ...

75. How to compress data in a portlet    coderanch.com

76. java.util.MissingResourceException    coderanch.com

Hi, While setting up portlet based application on local host(WPS 6.1 and WAS 7), in Logs, we are getting below exception for each portlet- LanguageSetIm E com.ibm.ws.portletcontainer.om.common.impl.LanguageSetImpl loadResourceBundle EJPPC0103E: Error occurred while initializing portlet java.util.MissingResourceException: Can't find resource for bundle com.portal.ebip.myapplications.nl.MyApplicationsPortletResource , key en at java.util.MissingResourceException.(Unknown Source) at java.util.ResourceBundle.getBundle(Unknown Source) Though the portlets are coming up fine, but it is filling ...

77. Portlets and .NET    coderanch.com

78. ServerIndex.xml    coderanch.com

81. question on portlet maximized    coderanch.com

when portlet window state is maximized, does it load only the portlet and maximized it? OR load all the portlets on the page and then maximized the required portlet? I hit the problem: i have 1 page which contain portlet A, B ,C. when i do perform an action, and the action will set the windowState to maximized for portlet B. ...

82. Keep the maximized/minimized state of portlet    coderanch.com

Hi, We have 7 portlets on our web page. Suppose we minimize any portlet A and then going to some other page, say edit page of any other portlet B. on edit page we have one button (back to eBIP)-

when we ...

83. portlet id    coderanch.com

84. psml    coderanch.com

85. IBM Portlet and Trinidad    coderanch.com

I am trying to import an existing jsp page that was developed using apache trinidad components with PPR. I would like to import or re-created that page in a portlet. is that doable my environment is IBM Portal 6.1.0.3 with feature pack 6.1.5. App server is 7.0 from RADs installation. RAD 7.5.5 with portal development enabled runtime is Websphere portal 6.1 ...

86. uPortal 2.5.3 file upload    coderanch.com

87. Uploading a file size of 250MB    coderanch.com

88. client ip address    coderanch.com

90. Convert from Http to Https    coderanch.com

91. Role management & Postgres problem    coderanch.com

Hi, Actually came across a strange problem while playing around with Postgres and Liferay integration. When I am using postgres, after creation of new organization role, the same is not reflected under 'Portlet configuration', for managing portlet access. However, when I am using MySQL everything seems to work just fine ! Am I missing something important here ? Or anybody else ...

92. Assigning Portlet permission to a Role    coderanch.com

I wanted to assign permission based on roles. - Logged-in as admin user. - Created a role named "Test Role". Currently, there are no permissions assigned to the role. - Created a user named "Katy". - Assigned the "Test role" to "Katy". Removed the Power User role. - Now, admin user views the public page of the user and add a ...

93. Variables in Portlets    coderanch.com

94. How to share Web applications (UI layer)    coderanch.com

Hi Ranchers, Is there a way to share content between web sites without using portlets or iFrames in Java. For example, there is a main website written in JSF, which has the header, main content, rhs panel, lhs panel, footer, and menu sections. What if you want to bring in content from another JSF application to fit into the main content ...

95. How to use ajax in portlet ?    coderanch.com

Hi All, I am new to portlet . I wish to know how to use ajax with portlets. Scenarios is, i have two drop downs in a jsp page. Based on the value in the first drop down i have to populate second drop down list. I am using lifefray 6, and JSR 168. regards Ajil

96. Issues in file downloading    coderanch.com

Hi All, I try to implement a module for download some reports in pdf format. I got an Internal Server Error An error occurred while accessing the requested resource. http://localhost:8080/web/bruno/profile?p_p_id=FileDownload_WAR_Istrac&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=7&_Fil on the server , i couldn't understood this error . Here is my code , View page

Portlet ...

97. Dynamic dropdown population in portlet    coderanch.com

Hello, I need to develop a portlet (for GateIn framework), which lists all the clients of the selected company. First, user has to select a city from a dropdown (combobox). Next, another dropdown should be populated (or updated) with a list of companies from the selected city. When the user presses submit, portlet should display the result. Portlet gets all this ...

98. * Welcome Ashish Sarin    coderanch.com

99. Any Inter-portlet (Chapter 11) Examples ??    coderanch.com

I am curious if there is excerpt or examples from chapter 11 ?. 1st chapter doesn't give me feeling of the book... It would be interesting to discuss the chapter online or see examples. This is most frequent subject and opens dynamic discussion when it comes to portal development. By now, there are plenty resources on how to do JSR-286 IPC ...

100. Is Portlet an exclusive Java technology?    coderanch.com

Portal and portlets are generic concepts. Java portlet technology is a JSR standard, which means that you can deploy your portlets on any portlet container which is JSR 168/286 complaint. Some portlet containers support building portlets in different programming languages like PHP, Groovy, and so on. If you look at iGoogle, it doesn't use Java portlet technology to aggregate content from ...