Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
eduardolundgren / gist:3382138
Created August 17, 2012 20:05
YUI Confirmation Panel Calendar
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<script src="../../build/aui/aui.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../build/aui-skin-classic/css/aui-skin-classic-all-min.css" type="text/css" media="screen" />
</head>
java.lang.AbstractMethodError: com.liferay.calendar.service.impl.CalendarBookingServiceImpl.search(J[J[J[JJLjava/lang/String;JJZ[IIILcom/liferay/portal/kernel/util/OrderByComparator;)Ljava/util/List;
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
at com.liferay.portal.dao.jdbc.aop.DynamicDataSourceTransactionInterceptor.invoke(DynamicDataSourceTransactionInterceptor.java:44)
at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvic
@eduardolundgren
eduardolundgren / gist:3315306
Created August 10, 2012 16:14
Multiple YUI versions proposal
<script>
YUI_GLOBAL_NAMESPACE = 'YUI360';
</script>
<script src="yui3.6.0.js">
function(Y, YUI) { 3.6.0 YUI. }
<script>
YUI_GLOBAL_NAMESPACE = 'YUI341';
<html>
<head>
<title></title>
<script src="http://yui.yahooapis.com/3.6.0pr2/build/simpleyui/simpleyui-min.js" type="text/javascript" charset="utf-8"></script>
<style>
.box {
width: 200px;
height: 100px;
<html>
<head>
<title></title>
<script src="http://yui.yahooapis.com/3.6.0pr2/build/simpleyui/simpleyui-min.js" type="text/javascript" charset="utf-8"></script>
<style>
.box {
width: 200px;
height: 100px;
<sql id="com.liferay.portal.service.persistence.RoleFinder.findByC_R_C_A">
<![CDATA[
SELECT
{Role_.*}
FROM
ResourceBlockPermission
INNER JOIN
ResourceBlock ON
(ResourceBlock.resourceBlockId = ResourceBlockPermission.ResourceBlockId)
INNER JOIN
<?xml version="1.0"?>
<root available-locales="en_US" default-locale="en_US">
<dynamic-element dataType="string" name="assignedTo" type="text">
<meta-data locale="en_US">
<entry name="fieldCssClass"><![CDATA[aui-w50]]></entry>
<entry name="label"><![CDATA[Assigned To]]></entry>
<entry name="predefinedValue"><![CDATA[]]></entry>
<entry name="required"><![CDATA[false]]></entry>
<entry name="showLabel"><![CDATA[true]]></entry>
<html>
<head>
<title></title>
</head>
<body>
<style>
.icon {
width: 0;
height: 16px;
A.mix(
YUI.AUI.defaults.FormValidator.STRINGS,
{
customRule: 'Type the number 55.',
anotherRule: 'Message for another rule'
},
true
);
A.mix(
var Lang = A.Lang,
isArray = Lang.isArray,
isBoolean = Lang.isBoolean,
isString = Lang.isString,
isObject = Lang.isObject,
CLASS_NAMES_SELECTION = 'CLASS_NAMES_SELECTION',
ACTIVE_CELL = 'activeCell',
BOUNDING_BOX = 'boundingBox',