portlet

Item value in JSTL foreach loop not working in Portlet

…衆ロ難τιáo~ 提交于 2019-12-08 03:06:08
问题 Given the following Portlet Code: ArrayList nameList = new ArrayList(); nameList.add("Willi Willisch"); nameList.add("Seppi Seppisch"); renderRequest.setAttribute("names", nameList); And the following JSP Code: <c:forEach var="aName" items="${names}"> <tr> <td>${aName} </td> </tr> </c:forEach> Prints out: ${aName} ${aName} I don't have any clue why a $(aName) isn't evaluated. The forEach loops works, because ${aName} is printed out twice .... 回答1: <c:out value="${aName}"/> works!! But shouldn

jQuery - Selecting a child div background image and amending it

蹲街弑〆低调 提交于 2019-12-08 01:30:10
问题 Im looking for a way to change the background image of a div using jQuery BUT only amending it, not totally changing it. Let me explain. Im using http://jqueryui.com/demos/sortable/#portlets to show some div's that open and close. Now when you click the portlet header it opens and closes the content below. Inside the portlet header i have a child div which shows an arrow (either up or down) depending on the current state of the content. I need a way of changing the background image on this

Large portlet war takes up memory causing performance issues?

旧时模样 提交于 2019-12-07 18:55:01
问题 I have heard a few people say that deploying a portlet war file (or perhaps any war) that includes a lot of large jars can cause performace issues because all those jars get loaded into memory. If you have several wars, all of which include a ton of large jar files, your system will get bogged down. I'm trying to get my head around why this is true - and I haven't found anything that explains it in a way that I get it. Maybe I'm searching for the wrong terms which is why I'm not finding much

Spring 3 JSR-286 (portlets) docs

只愿长相守 提交于 2019-12-07 17:20:44
问题 I know that Spring 3 supports JSR-286 (portlets version '2.0'). However I can't find a lot of documentation on that. Can anyone share some links about this? Thank you. 回答1: Found a couple tutorials Hello Wold using Spring 3 MVC-Portlets pring 3.0 Portlet MVC – Part II (Annotations) Also a book in progress Portlets In Action 回答2: You might find the Spring 3 API helpful, specifically the org.springframework.web.portlet.mvc Package. Listed in the Interface summary section are some Portlet 2.0

How to consume JSON Webservice from java client?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 13:33:54
问题 public void doView(RenderRequest renderRequest, RenderResponse renderResponse) throws IOException, PortletException { Map countryList = new HashMap(); String str = "http://10.10.10.25/TEPortalIntegration/CustomerPortalAppIntegrationService.svc/PaymentSchedule/PEPL/Unit336"; try { URL url = new URL(str); URLConnection urlc = url.openConnection(); BufferedReader bfr = new BufferedReader(new InputStreamReader(urlc.getInputStream())); String line, title, des; while ((line = bfr.readLine()) !=

Multiple Ajax calls liferay portlets

自古美人都是妖i 提交于 2019-12-07 06:19:51
问题 I am having liferay portlet and I need to heavily depend upon the AJAX calls. So I need to make multiple calls to serveResource method. One way to do the same is that I can pass a parameter with the URL and then differentiate the request according to that parameter. But in my case I have to call serveResource so many times due to which the method will be difficult to maintain. Is there any framework to do so? Using which the code becomes maintainable. 回答1: Use Spring MVC framework and call

How to share jar within multiple portlets?

六月ゝ 毕业季﹏ 提交于 2019-12-07 01:54:02
问题 I'm using several jars in my portlets, for instance c3p0. Now I want to avoid to put the jars in every of my portlets lib folders. How can I share one jar file within multiple portlets? And how should I integrate them in the Eclipse IDE? Add an external jar or put them in one dedicated project and include them from there? 回答1: Another solution would be to put them under ../liferay-portal-<version>/tomcat-<version>/webapps/ROOT/WEB-INF/lib If you place them here you can add the JAR as a

Spring portlet mvc: @Valid does not seem to work

倖福魔咒の 提交于 2019-12-07 01:23:57
问题 I created a bean class and use it in my controller but it does not seem to work. Namely even though I enter an invalid age, result.hasErrors is still false. Bean class: public class User{ @Min(13) private int age; private String name; public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getName(){ return name; } public void setName(String name){ this.name = name; } } Controller snippet: @ActionMapping(params = "myAction=validateUser") public void

Understanding the execution of Action Phase and Render Phase

青春壹個敷衍的年華 提交于 2019-12-06 14:58:26
问题 I am using Liferay 6 for the Portal Development . By going through Liferay Developer Guide the author explains that there are Two phases of Portlet Execution Action Phase Render Phase public class DateTimePortlet extends GenericPortlet { public void doView(RenderRequest req, RenderResponse res) throws IOException, PortletException { Object actionAttribute = req.getAttribute("datetime"); res.getWriter().println("Date Time:" + (actionAttribute != null ? actionAttribute :"Unavailable")); res

Large portlet war takes up memory causing performance issues?

。_饼干妹妹 提交于 2019-12-06 14:27:24
I have heard a few people say that deploying a portlet war file (or perhaps any war) that includes a lot of large jars can cause performace issues because all those jars get loaded into memory. If you have several wars, all of which include a ton of large jar files, your system will get bogged down. I'm trying to get my head around why this is true - and I haven't found anything that explains it in a way that I get it. Maybe I'm searching for the wrong terms which is why I'm not finding much information. Can anyone explain what exactly is happening when a portlet gets instantiated and if