This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.control-label{ | |
float:left; | |
margin:5px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@page import="java.util.Iterator"%> | |
<%@page import="com.liferay.portal.kernel.servlet.SessionErrors"%> | |
<% | |
Iterator<String> itErrors = SessionErrors.iterator(renderRequest); | |
while (itErrors.hasNext()){ | |
String errorKey = itErrors.next(); | |
%> | |
<%=errorKey%> | |
<% | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SessionMessages.add(actionRequest, "requestProcessed", successMessage); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$serviceLocator.findService("com.liferay.portal.service.UserLocalService")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name=sample-portlet | |
module-group-id=liferay | |
module-incremental-version=1 | |
... | |
portal.dependency.jars=commons-logging.jar,commons-io.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Select duplicate key on an column in mysql table with count | |
SELECT name, COUNT(*) c FROM CAT GROUP BY name HAVING c > 1; | |
## Simple table join queries | |
select a.* from CAT a,TAX b where b.name like '%Tax%' and a.PARENT_TAX_PKEY=b.pkey; | |
## Safe mode update Enable / Disable | |
SET SQL_SAFE_UPDATES = 0; | |
## Delete duplicate name records and keep lowest id record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
<script src="http://cdn.alloyui.com/1.0.3/aui/aui.js"></script> | |
<link | |
href="http://cdn.alloyui.com/1.0.3/aui-skin-classic/css/aui-skin-classic-all-min.css" | |
rel="stylesheet"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
text~"converted" | |
Developer = currentUser() | |
project = ProjectA | |
assignee = currentUser() | |
resolutiondate >=-3w | |
ORDER BY updated DESC | |
## Finding current unresolved and assigned | |
assignee = currentUser() AND resolution = Unresolved ORDER BY updatedDate DESC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GET | |
@Path("/v1/market/{key}") | |
@Produces(MediaType.APPLICATION_JSON) | |
public Response getMarketByKey(@PathParam("key") String key) throws ApplicationException { | |
} | |
/*when the variable present in the requested url path then the parameter need to be specified using @PathParam*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<appender name="default.console" class="org.apache.log4j.ConsoleAppender"> | |
<param name="target" value="System.out" /> | |
<param name="threshold" value="debug" /> | |
<layout class="org.apache.log4j.PatternLayout"> | |
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%c{1}] - %m%n" /> | |
</layout> | |
</appender> | |
<root> | |
<level value="INFO" /> |
OlderNewer