portlet 6 « portlet « Java Enterprise Q&A





...

1. What is needed to use portals/portlets?    coderanch.com

Hi Mike, Portal infrastructure consists of: - Portal server: aggregates content from different portlets to show a portal page. A portal page consists of multiple portlets (or windows you can say). You can think that portal server component sits on top of portlet container component. - Portlet container: manages portlet lifecycle, just like servlet container manages lifecycle of Java servlets. If ...

2. Portlets and JEE    coderanch.com

hi Pedro, I think that portlets deserve a place in the Java EE stack. Oracle hasn't published any plans for next Portlet specification, but I do think that sooner or later Oracle will align portlet specification with Java EE stack, so that portlets can also take the complete advantage of application server infrastructure. For now, portlet container implementation is a nice-to-have ...

3. MVC Driven Portlets    coderanch.com

Hi Ashish, I noticed you've included a chapter or two on the integration on Spring MVC and JSR 286. In the past I've used JSF 1.x and Struts 1.x to "MVCify" portlets and discovered they were more work than it was worth, especially when integrating a lot of AJAX. Can you comment on if you've used these or any of the ...

4. Why Use Protlets?    coderanch.com

1. Not to mention that Portal enables you to implement security at various levels (pages/portlets/virtual portals/SSO) if properly configured against your user repository(ies). Which beats having to build your own security framework to do the same thing with your pseudo portlets on a custom web app. 2. Plus various portals come with a content management components (ie Liferay and WebSphere, in ...

5. hi this is shashi    coderanch.com

6. XMLPortletRequest    coderanch.com

Can someone please help me in understanding XMLPortletRequest. I have used ajax in portlets prior to JSR286, using shared session. And I came to know that it is even simpler to use Ajax in Portlet2.0 with the help of serveResource method. As it serves only the content , not the entire portal page markup. I read in some blogs that there ...

8. float value gets roundedoff in portlet    coderanch.com

Hi all, I am developing a portlet application which will show my database table("OrderData") to the user. to accomplish this i am retrieving all the table rows and adding them to a HashTable(HashTable).There are some columns in my table which are of float datatype e.g price. I am getting price from the result set as getDouble and then converting it ...





11. how to pass dynamic values between porlets ?    coderanch.com

Hello I'm trying to pass a dynamic value next timeI'm able to pass it successfully the first time.How like the old value is cached and next time if I try to pass a new value to B, B is still getting the old value. In A, it's passed as part of the page's URL where B resides on. click ...

12. SMTP Mail Configuration    coderanch.com

Hi, I am usign Liferay6 and I have my custom portlet which sends an email. I am using JavaMailSender to send an email. I want to configure mailSender properties like smtp host, smtp port from Liferay's mail configuration. In liferay6 you can configure the SMTP server by going to Control Panel -> Server Administration -> Mail. I want to read these ...

13. Could not find factory : javax.faces.lifecycle.LifecycleFactory    coderanch.com

Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.lifecycle.LifecycleFactory at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:270) at com.ibm.faces.portlet.FacesPortlet.getLifecycle(FacesPortlet.java:489) at com.ibm.faces.portlet.FacesPortlet.doRender(FacesPortlet.java:354) at com.ibm.faces.portlet.FacesPortlet.doView(FacesPortlet.java:415) at com.ibm.faces.portlet.FacesPortlet.doDispatch(FacesPortlet.java:303) at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:128) at com.ibm.wps.propertybroker.standard.filter.C2APortletFilter.doFilter(C2APortletFilter.java:183) at com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.doFilter(PortletFilterChainImpl.java:120) at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:573) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:114) at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doRender(PortletServletCollaborator.java:71) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doRender(RRDServerPortletServletCollaborator.java:123) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doRender(CacheCollaborator.java:92) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doRender(PortletServletCollaboratorImpl.java:156) at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:105) at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:273) ... 199 more

15. Do we need to develop portal/portlets    coderanch.com

there is a portlet bridge and other technologies that allow you to write vanilla web applications and then make them portlets and deploy them, and there are several frameworks like Struts, Spring MVC and Vaardin that look almost the same between their web and portlet behaviours. But the real answer is no, there is no single accepted tool for creating portlets. ...

16. uPortal 3.2.4 Build Failed    coderanch.com

A friendly place for programming greenhorns! Big Moose Saloon Search | Java FAQ | Recent Topics Register / Login JavaRanch Java Forums Java Portals and Portlets Author uPortal 3.2.4 Build Failed Amir Rana Greenhorn Joined: Apr 11, 2011 Posts: 1 posted Apr 11, 2011 03:10:18 0 Hi, I am trying to install uPortal 3.2.4 from a ...





18. Portlet development certification    coderanch.com

I m trying to take the IBM certified solution developer for Websphere Portal exam. I did some prep with Cameron Mckenzie's JSR-168 Portlet Development book. Any other materials i can refer to in preparation for that? A while ago, the test number used to be 399, or then 829 Is the following the most current test for the above? 915: IBM ...

19. Technologies comparison    coderanch.com

Hi, I'm studying technologies around portal and social network development. I'm interested in portal frameworks and widget containers. I'm looking for comparison between these technologies but I don't find any recent one. I'm also particularly interested in OpenSocial APIs, Apache Shindig, OSDE, Apache Pluto ou eXo Platform. Do you have any recent feedback on that kind of technologies? Or another else ...

21. Silly problem: One user sees the information of another!    coderanch.com

Hi! I am new to portlets. I am using liferay with tomcat. I will try to explain the best I can the issue I am having. I have a portlet class that has a reference to an arraylist as an attribute of the class, info is the object representation of the different user's data. I initialize the arraylist in the setup() ...

22. Multiple projects integration    coderanch.com

It depends on the reason why you need to navigate from one web app page to another web apps page. If they are highly dependent on each other you could restructure your project as multiple modules and package it as a single application (this allows you to have a shared session). An alternative would be to pass context as part of ...

23. Can't find portlet    coderanch.com

Hello, With Liferay 5.2.8 + tomcat 6.0, I deployed a spring (3.0.5) portlet to liferay deploy directory, without error. But I can't find this portlet in the Application list in Liferay. Here is the log from the spring app: 2011-06-30 02:47:04,487 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started 2011-06-30 02:47:04,528 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup ...

24. Can we override the functionality of InputDateTag    coderanch.com

Hi friends, I have one requirement in my project that is i have to change the functionality of input-date tag of liferay-ui.tld. The handler class is InputDateTag. According to my project i have to disable the previous dates and enable the dates from today dates onwards by using input-date tag. How can i change in InputDateTag class is it possible to ...

25. Cannot resolve reference to bean    coderanch.com

05:35:49,588 INFO [DispatcherPortlet:98] Initializing portlet 'questionair' -05:35:49,643 INFO [DispatcherPortlet:263] FrameworkPortlet 'questionair': initialization started 05:35:49,667 INFO [XmlPortletApplicationContext:456] Refreshing PortletApplicationContext for namespace 'questionair-portlet': startup date [Wed Jul 06 05:35:49 GMT 2011]; root of context hierarchy 05:35:49,723 INFO [XmlBeanDefinitionReader:315] Loading XML bean definitions from PortletContext resource [/WEB-INF/sql/loader.xml] 05:35:49,840 INFO [PropertyPlaceholderConfigurer:177] Loading properties file from file [/usr/home/liferay/ixsystems_portal/liferay-portal-5.2-ee-sp4/tomcat/temp/11-questionair-service-impl-1.0.0-SNAPSHOT/WEB-INF/classes/META-INF/spring/loader.properties] 05:35:49,840 INFO [PropertyPlaceholderConfigurer:177] Loading properties file from file ...

27. Need Help regarding Apache James    coderanch.com

Hi Guys, I have a question regarding Apache James enterprise email server, "Can we add custom fields in database tables (spool/inbox) and insert or update the tables using james when an email shoot?" I need to create "email log" for bulk emails with particular event in our portal. What you suggest? Regards, Farrukh Jalil Consultant Mazars Pakistan

29. * Welcome Richard Sezov, Jr    coderanch.com

31. Invoke application phase is being called multiple times    coderanch.com

Hello all, We are running on a wierd scenario. We have a commandlink/button on our page and whenever user clicks on it the action method is being called multiple times. This is happening in clustered environment only. We are using JSF 1.2,Websphere portal 6.2. Also the following we tried enableHighCompatibility to true fc.renderResponse after the action method is completed. Just to ...

32. Which is better    coderanch.com

33. Individual portlet permissions    coderanch.com

I've built a video portlet that displays Flash videos stored in the Document Library. The reasoning is to provide instructional videos to users who are new to the portal and need some basic "how to" stuff. The problem is that I want the portlet instance on each page to have its own default video to display. I've designed the portlet to ...

34. Publishing failing - Changing to Republish mode :( Please help !!    coderanch.com

I am trying to publish my ear and war modules into Oracle weblogic portal 10.3.0.0 server using workshop. I am using pointbase DB. But publishing failed since I was getting the following error, weblogic.application.ModuleException: Exception preparing module: EJBModule(netuix.jar)Unable to deploy EJB: ProxyPagePersistenceManager from netuix.jar: Exception while attempting to deploy Security Policy: weblogic.security.service.ResourceCreationException: weblogic.security.spi.ResourceCreationException: [Security:090310]Failed to create resource So I tried to ...

35. Retaining selected values in a portlet    coderanch.com

I have few states listed in a drop down menu in a portlet. After clicking on a state, the portlet processes the action method and displays their cities. I have linked the cities with states through SQL. However, when the city is loaded, I need the state value to remain selected. Here is my code

Select the state:

36. modify the HTTP Header with a Filter    coderanch.com

Hello everybody, I am using a Liferay 6.X Portal bundled with a Tomcat 6.0.29 Server. I want to modify the HTTP-Header information (filtering line breaks in parameters to prevent a Header Injection) and I am trying to do that with a filter. After finding this example: http://vangjee.wordpress.com/2009/02/25/how-to-modify-request-headers-in-a-j2ee-web-application/ I tried to rebuild it for my own purpose. As a first Test I ...

37. Using ActionResponse SendRedirect    coderanch.com

38. portlet ehcache    java-forums.org

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 ...

39. Portlet help required    java-forums.org

Hi guys, I am new to portlet development. We are using liferay portals. Actually We have a portlet which consist of step by step forms and from that it goes to Payment gateway for online payment. Everything working ok till payment gateway. Our problem is that we are unable to redirect to portlet internal jsp ( say at step no 3 ...

40. How to convert the existing web applicatons to Portlets    java-forums.org

Hi 1. Any tutorials or guides for migrating existing application to portlets specific to jboss portal server. 2. What are all the steps to modify the normal JSP to portlet enableb JSPs 3. How to migrate JSP with Json content to Portlet? 4. Which Open source server best suites for migration of JSP with Json application to Portlet application? Thanks, Rama ...

41. How do I show a calander in a portlet    forums.oracle.com

Hi, I am new to this. I am trying to show a calendar icon(button) on a portlet and when user clicks on the calendar button, a calendar will be displayed. Please guide me what should be my approach & How to start the task. Thanks & Regards, Saurabh. Edited by: Saurabh.J on Dec 10, 2007 1:46 PM

42. How to debug portlets in Java Studio Creator?    forums.oracle.com

Hi, Im a very experienced C++ programmer but new to Java. I'm currently trying to develop portlets with Java Studio Creator. I just wondering which is the best way to setup a debug environment with Java Studio Creator? Im trying to setup breakpoints in code but none works, also , step-run button is greyed. Its seems that JSC goes directly and ...

43. portlet programming    forums.oracle.com

44. jForum Portlet    forums.oracle.com

Hi Gurus! I'm really up to my neck right now about how to go about making jForum (www.jforum.net) work as a portlet. I'm using version 2.1.8. Got it working to use DB2. Now I just need to deploy it as a portlet in IBM WebSphere Portal Server 6.0. But I can't find a solution that works. Tried to use the Jahia ...

45. First steps in portlet technology    forums.oracle.com

46. Help with Portlets    forums.oracle.com

Hi all, Im new to portlets and want to learn more about them. Unfortunatly there are very few good tutorials and examples. I understand the basic concept about Portlets pretty well but i need to create a few portlets that actually work. As i have stated above im finding it difficult to get hold of a good portlet tutorial or example. ...

47. Portlet 2.0 inter-communication!    forums.oracle.com

} *CLASS Emetteur (in French = sender) : * package com.example; import javax.portlet.GenericPortlet; import javax.portlet.ActionRequest; import javax.portlet.RenderRequest; import javax.portlet.ActionResponse; import javax.portlet.RenderResponse; import javax.portlet.PortletException; import javax.portlet.Event; import javax.xml.namespace.QName; import javax.portlet.EventRequest; import javax.portlet.EventResponse; import java.io.IOException; import javax.portlet.PortletRequestDispatcher; /** * Emmeteur Portlet Class */ public class Emmeteur extends GenericPortlet { public void processEvent(EventRequest req, EventResponse res){ Personne per = new Personne(); per.setNom("BMD"); per.setPrenom("Mad"); QName ...

48. Whether JAX-RPC Calls are supported from a Portlet?    forums.oracle.com

Hi All, Iam Accessing a webservice from a portlet using the RPC Calls for which the code is as shown below. Call call = _service.createCall(_port,"sayHi"); QName qn = new QName( "urn:SampleService", "strHello" ); call.setOperationName( new QName("SampleService", "sayHi") ); call.addParameter( "strHello", _qnameNS_XSD, ParameterMode.IN); call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING ); String str = "HI"; String strVal = (String)call.invoke( new Object[] {str} ); Iam getting the below ...

49. Portlet Development Question    forums.oracle.com

I have a portlet and the doView() method dispatched the index.jsp page. This page accepts a name to perform a query lookup after hitting submit and displays a list of people. I want to be able to click on the person's name and do a query search of details for that person. So, if I have an onClink on the person's ...

50. How can Pagination be achieved in portlets ???    forums.oracle.com

HI, I wanna implement pagination in portlets. Ex: I display 20 pages .. 1, 2 , 3, 4, 5, 6, 7, 8.. So i will have following clickable texts... prev>> 1 2 3 4 5 6 7 8 9 10 next<< when i select 3 , it should route me to page no 3. when i click on next it should ...

51. Implementation of Tab Screen in portlets    forums.oracle.com

I want to display two tabs which relate to different information in a portlet. Ex: Tab A Tab B When user clicks on Tab A , it displays Animal Information When user clicks on Tab B , it displays Birds Information The user is able to see both the tabs on single page. The default information is of Tab A. This ...

52. javax.portlet.ActionRequest    forums.oracle.com

53. How can I have user specific filters for information display on portlet?    forums.oracle.com

Hello Everyone !!!!! I am new to the Portlet World My query is.. How can I have filters on a portlet screen ? I want to display certain information on a portlet which must be filtered and ordered. Example: In Internet Banking , I want to display transfers which had happened in the last month. So I ( as a user ...

54. PORTLET....    forums.oracle.com

55. Calendar portlet    forums.oracle.com

56. Need help getting started with portlets    forums.oracle.com

Everything I am reading seems to be leaving out the connection between the portlet and the portal. I have been reading mainly documentation from Liferay to develop on there portal application, but it totally fails on explaining anything other than deploying an existing portlet. In addition to this, I have been reading the Introduction to JSR168 the JSR168 Specification document and ...

57. Applets vs. Portlets?    forums.oracle.com

What are the primary differences between applets and portlets? Would creating an application that manages the layout of a set of portlets be similar to an application that manages the layout of a set of applets? What is the code returned to a web browser like when it is coming from a portlet as compared to when running an applet that ...

58. Formatted String Does Not Work When Write To A Portlet    forums.oracle.com

Hello, I have a Java formatted string which looks like the following : PrintWriter out = renderResponse.getWriter(); ... String format = "|%1$-30s|%2$-10s|%3$-10s|%4$-10s|%5$-10s"; out.printf(format, field1, field2, field3, field4, field5); And I can write this formatted string to the sdtout or a file; it works fine. But when I try to write it to a portlet, the formatting does not work. The widths ...