liferay

How to call specific method of portlet.java class rather then overide serveResource method?

你。 提交于 2019-12-01 20:38:48
问题 I want some help in liferay with ajax. Right now I am calling the ajax method from my view.jsp page to submit some data. Here is sample code I am using in view.jsp : <%@ include file="/init.jsp"%> <portlet:actionURL name="AddTest" var="add1" /> <portlet:resourceURL id="AddTest" var="AddTest"></portlet:resourceURL> <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> function addToDo(addToDo

How can I add a new language in Liferay 7?

南楼画角 提交于 2019-12-01 20:31:39
My problem is how to add new language like thailand language in liferay 7 . When I inspect the existing flag I see that the image is not png but it is svg, but I can't add new language with icon. In this page.jsp I see that the constructor of image is automatically generated. This code describes the generation of svg image <svg class="lexicon-icon lexicon-icon-<%= image %>" role="img" title="<%= HtmlUtil.escapeAttribute(LanguageUtil.get(resourceBundle, label)) %>" <%= InlineUtil.buildDynamicAttributes(dynamicAttributes) %>> <use xlink:href="<%= Validator.isNotNull(src) ? src : themeDisplay

http://localhost:8080 not redirecting to opensso login page

跟風遠走 提交于 2019-12-01 14:40:53
I have my Tomcat server of Liferay running on port 8080. When I am trying to access the application from server by typing url http://localhost:8080 , it is not redirecting to the Login page but giving me the error: The Connection to abc.xyz.com was interrupted while the page was loading. Here abc.xyz.com is the URL of my Opensso Login page. No errors are logged in stdout.log and catalina.log. But when I am typing the URL the login page is coming. Tried this in different IE and Mozilla but facing the same issue. 来源: https://stackoverflow.com/questions/16880454/http-localhost8080-not-redirecting

How can I open a pop up of my JSF portlet's edit mode?

余生颓废 提交于 2019-12-01 13:16:21
When opening the configuration mode of a Liferay portlet it opens in a pop up dialog: How can I get my JSF portlet to open a similar pop up but for edit mode of my JSF portlet? I am using Liferay 6.2. In Liferay 6.2+: For the most part, you can open edit mode of a JSF portlet the same way for both JSF and JSP portlets: via the client-side JS Liferay.Util.Window.getWindow() method . To create the dialog, you will need to get a render URL for the portlet in edit mode and pop up state via portlet:renderURL : <portlet:renderURL var="popUpEditModeURL" escapeXml="false" portletMode="edit"

p:ajax feature not working in Liferay portal

微笑、不失礼 提交于 2019-12-01 13:07:42
问题 I can't get the PrimeFaces 6.1 built-in ajax feature to work when using a liferay portal. I've started with the very initial use case example, that is the one shown in the PF User's Guide documentation and nothing happens, absolutely nothing happens. xhtml side <h:form id="form"> <h:inputText value="#{bEntityTree.text}"> <p:ajax process="@form" update="output" onstart="onStart" oncomplete="onComplete" onsuccess="onSuccess" onerror="onError"/> </h:inputText> <br/> <h:outputText id="output"

Liferay Many-to-Many RelationShip Throws Class Cast Exception

放肆的年华 提交于 2019-12-01 13:02:49
问题 I am creating one example which demonstrates relationship in liferay.I am taking example of Book entity and Author for many to many relationship.I am following below blog for creating this example. http://www.liferaysavvy.com/2014/01/liferay-service-builder-many-to-many_12.html But I faced the issue of class cast exception.In blog also it has been written that it is throwing class cast exception. 11:05:00,422 ERROR [RuntimePageImpl-2][render_portlet_jsp:132] null java.lang.ClassCastException:

http://localhost:8080 not redirecting to opensso login page

浪尽此生 提交于 2019-12-01 12:34:35
问题 I have my Tomcat server of Liferay running on port 8080. When I am trying to access the application from server by typing url http://localhost:8080 , it is not redirecting to the Login page but giving me the error: The Connection to abc.xyz.com was interrupted while the page was loading. Here abc.xyz.com is the URL of my Opensso Login page. No errors are logged in stdout.log and catalina.log. But when I am typing the URL the login page is coming. Tried this in different IE and Mozilla but

How to create Structure & Template programmatically in Liferay 6

我怕爱的太早我们不能终老 提交于 2019-12-01 08:54:28
问题 I need to create the Structure and Template progrmatically through java code.I used following code snippets. Structure: public void createStructure(String userName,long userId){ log_.info("Inside create structure "); long structureId=115203; DDMStructure ddmStructure=DDMStructureLocalServiceUtil.createDDMStructure(structureId); ddmStructure.setName("MigrationStructure"); ddmStructure.setDescription("This Structure created programatically"); ddmStructure.setUserId(userId); ddmStructure

Portlet not getting deployed

梦想与她 提交于 2019-12-01 04:59:00
I have this strange problem at which I have spent stupid amount of time. To build my portlet, I haven't used sdk and I am using my own ant script do the job. It works all well till this wierd situation. I am basically using a lot class from portal-service.jar to change role settings etc. When I include it in my build path and deploy it again. It doesn't get deployed. On shell it shows the deployment, below is the log: Copying 1 file to C:\liferay-portal\tomcat-6.0.29\webapps\ch1_HelloWorld Deleting directory C:\liferay-portal\tomcat-6.0.29\temp\20121016060846753 06:08:47,887 INFO

why settimeout not delay the function execution?

耗尽温柔 提交于 2019-12-01 03:35:58
function tryToDownload(url) { oIFrm = document.getElementById('myIFrm'); oIFrm.src = url; // alert(url); // url=escape(url); setTimeout(deletefile(url), 25000); } following is deletfile function function deletefile(url){ $.ajax({ type:'post', url: "<%= addToDoDeleteDownloadFile %>", data:{filename:url}, type : "GET", timeout : 20000, dataType : "text", success : function(data) { alert("success"); } }); } above is my jQuery and i m calling one function at the end after 25 second,but some how it's not delaying the deletefile(url) function and execute just after.So what should be the problem? In