problem about liferay-6-Collection of common programming errors
Angeline
jsf jsf-2 liferay liferay-6
I am displaying a list of items with links in my xhtml page. When I click my “back to previous page” button from that link, I basically reset the flags in my bean to indicate to the xhtml which page to display, and reload the list of links from my database.When I click the same link (or any other link for that matter) in this new page, I get this error:javax.portlet.faces.BridgeException: javax.portlet.faces.BridgeException: javax.faces.FacesException: Unexpected error restoring state for compon
dhaval
performance tomcat6 liferay liferay-6 grinder
I have Liferay 6 with Tomcat system setup on two machines:Machine 1: Windows 2003 Server 2GB RAM, 2Gh CPU Mysql Ver 14.14 Distrib 5.1.49 Liferay 6.0.6 with Tomcat 6 Machine 2: Linux CentOS 5.5 4GB RAM, 2Gh CPU Mysql Ver 14.14 Distrib 5.5.10 Liferay 6.0.6 with Tomcat 6Both the liferay systems are having identical startup parameters and mysql configurations. The liferay system contains a custom theme and a servlet filter hook checking each URL access.We have written a Grinder script to test the lo
Chry Cheng
internationalization liferay liferay-6
I have the ff. in my JSP:<liferay-ui:message key=”my-own-message-key” />But when the JSP is rendered, I see “my-own-message-key” where I expect “My own message key.” I have already tried the method described here and in the Overriding a Language.properties File section of the Liferay Developer’s Guide.
madoke
liferay portlet liferay-6 spring-portlet-mvc
I have created a liferay service using the Service Builder framework. This service is used to fetch content from an external source, and once it is deployed, it is available to all portlets.Is there a way to add configurations to plugins of this type ? In normal portlets, you can add a configurations page, which allows you to change the portlet’s preferences in runtime. In this type of plugin, there is only one instance, and it is not meant to be dragged to pages like normal portlets so how woul
strauberry
jar liferay portlet liferay-6
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?
Shivan Raptor
liferay portlet liferay-6 liferay-ide
I am developing Liferay portal and I have one portlet which handles the administrator side of the portal and one the client side. The thing is that the clients cannot see the administrator page (including the portlet). Also I have created custom DataBase for the portal (I included my own tables in the Liferay database using Service Builder). Now I want to use the same database so I can take info from it using the client portlet.Any ideas?I am using Liferay 6.1 with Tomcat and Liferay SDK plugin
Prakash K
liferay liferay-6 liferay-velocity liferay-theme
I want to create a new page using Web Content Display with Velocity Templates and Structures.On my page I would like to have multiple tabs and on each tab needs to be added programatically from a template of an existing portlet.I know how to add an existing portlet to my theme ($theme.runtime(“portlet_id”)) but I can’t find a way to add the portlets to a velocity template since $theme object is not available in a Web Content Display template. Can you please tell me if it is possible to add a por
sq2wkh
Mayur Patel
java liferay resourcebundle liferay-6
I’m using ResourceBundle.getBundle() to load property file in our portlet But If any user wants to change contents of that property file at runtime without deploying that portlet again.How can it reflect in UI[get latest value from property file] without deploying portlet?Thanks in Advance, Mayur Patel
user23123422
liferay liferay-6
Please help me in below problemI have single liferay instance and it has single site on it. This single site is serving multiple clients and they access the site using their dedicated domain namexxx.mysite.com -> domain name for the client xxx yyy.mysite.com -> domain name for the client yyyThese domain names are configured in apache web server which is sitting infront of liferay instance. I used property in portal-ext.properties web.server.host to configure the webserver information in liferay.
Miss R
liferay liferay-6 staging
I modified settings for a Community Site inside Liferay. Trying to poke and play with Liferay’s CMS. Added this setting= Staging: Remote LiveAnd now I get this error:javax.servlet.jsp.JspException:org.apache.velocity.exception.MethodInvocationException: Invocation ofmethod ‘runtime’ in class com.liferay.taglib.util.VelocityTaglib threwexception org.apache.jasper.JasperException:javax.servlet.ServletException: javax.servlet.jsp.JspException:ServletException in ‘/html/portlet/staging_bar/view.jsp’
mduck
jquery form-validation liferay-6
i have a form with Booktitle,Author.I need to validate these two fields like if any one of them is empty it should display the message as field is mandatory.How can i achieve this.I have searched in google for this,and modified the code like below.<script>$(document).ready(function() {$(“#_fm”).validate();var element = document.getElementById(“_bookTitle”);element.className = element.className + ” required”;element = document.getElementById(“_author”);element.className = element.className
Prakash K
permissions liferay liferay-6 administration
Can we have custom permissions defined for the portal?We can create custom permissions in our plugin portlet through creating an XML with <portlet-resource> tag and defining the <action-key> within it.And when I go to define permissions for a Role in Control Panel my portlet appears in the section Site Applications, now what I want is to create custom permissions (not through EXT) in a portlet or hook that should have a separate category as My Custom and should have custom permission
user1487380
javascript validation webforms liferay liferay-6
I use liferay 6.1 ga1. In my webform I want to validate input email so I tried:if(typeof currentFieldValue.match(‘^([0-9a-zA-Z]([-\.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})’)[0] !== ‘undefined’){return true;}else{return false};It does not work, but it not my trouble, it return javascript error and I can not change my javascript validate code-> big trouble here To fix javascript validate code, I must to: – Stop server – Change validation.script.enabled to false – Start
Preethi Jain
liferay-6
I am using Liferay 6.1 Version . Here i am trying to Implement Inter Portlet Communication .When I am calling Ajax function to resource server method its getting all data , in that method but when everything is done , i want to show that response in my Another PortletHere this is what i tried till now .Here is my view.jsp which makes an Ajax callfunction addToDo(addToDo){var todo =document.getElementById(‘toDo’).value;$.ajax({url :addToDo, data: {“todo”:todo,”CMD”:”addToDo”},type: “GE
Sri
jsf-2 captcha liferay-6
I am trying to use Liferay Captcha for my project and here is the code:Here is my code: CaptchaBean.java:package com.verisign.pds.sample;import java.io.Serializable;import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import javax.faces.event.ActionEvent;import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.PropsKeys; import com.liferay.portal.kernel.util.PropsUtil;@ManagedBean public class Ca
Sri
jsf-2 primefaces captcha liferay-6
I am using Primefaces 3.3.1, Liferay 6.1.10 and Weblogic 10.3.5, JSF 2.0. Here is the code: captcha.xhtml:<?xml version=”1.0″ encoding=”UTF-8″?><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN””http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”><f:view xmlns=”http://www.w3.org/1999/xhtml” xmlns:h=”http://java.sun.com/jsf/html”xmlns:f=”http://java.sun.com/jsf/core” xmlns:ui=”http://java.sun.com/jsf/facelets” xmlns:p=”http://primefaces.org/ui”><h:head />
Sri
jsf-2 liferay-6
Here is my portlet named program.xhtml:<script type=”text/javascript”>jQuery(document).ready(function() {var clientId = ‘#{lookupBean.clientId}’;var formID = clientId + ‘\\:associateMarketingProgramForm’;var formIDToFind = ‘#’ + formID;jQuery(formIDToFind+”\\:marketingProgramArticleId”).change(function(){jQuery(formIDToFind+”\\:getMarketingProgramAssoc”).click();}); }); </script><h:form id=”associateMarketingProgramForm”> <table width=”100%” border=”1″ bordercolor=”#CCCCCC”
yannicuLar
alfresco liferay-6 cmis
I’m working on a Liferay portlet, that connects to an Alfresco Repository through Cmis and wsdl binding, (BINDING_TYPE = BindingType.WEBSERVICES)So far I’ve implemented most of the required functionality (Browsing, Folder/Doc management, doc versions, permissions etc). Now it’s time to implement some aspect-related functionality, so it was time to use the alfresco open-cmis-extensions, which seems to be a straightforward process.One of the things I had to do, was changing the Session Factory to
a_horse_with_no_name
java jboss5.x liferay-6
After compiling the source code of liferay 6.0.6 and deploy them to jboss 5.1.0 GA, I got the following error when I started the jboss.2012-07-04 03:47:11,847 INFO [com.liferay.portal.spring.hibernate.DialectDetector] (main) Using dialect org.hibernate.dialect.HSQLDialect 2012-07-04 03:48:31,054 WARN [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-1) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@1aee7e — APPARENT DEADLOCK!!! Creating emergency threads for unass
Cyd
primefaces liferay-6
I am developing the primefaces portlet in liferay. I am getting following error:<f:ajax> contains an unknown id ‘firstNameField’ – cannot locate it in the context of the component firstNameCode Snippet is:<aui:field id=”firstNameField” label=”#{i18n[‘first-name’]}”><p:inputText id=”firstName” label=”#{i18n[‘first-name’]}” required=”true”value=”#{applicantModelBean.firstName}”><f:ajax render=”firstNameField”/><p:message id=”firstNameMessage” for=”firstName”/></p:i
Web site is in building