小编sau*_*rjk的帖子

无法启动Genymotion虚拟设备,不兼容的CPU

我第一次运行Genymotion虚拟设备时,它已经运行了.但是当我今天尝试运行它时,我收到了此错误消息

在此输入图像描述

从我上次使用它可能有什么变化?将会感激我能获得的任何解决方案.谢谢.

我的设备信息:戴尔XPS L502X Sandy Bridge主板英特尔酷睿i5-2410M @ 2.30 GHz Windows 7专业版64位

cpu android windows-7-x64 genymotion

45
推荐指数
7
解决办法
6万
查看次数

如何在highcharts中的yAxis上仅在0上显示网格线?

我有一个highcharts图表,一切都在下面作为样机.但是我坚持了一些事情.有没有办法从yAxis中删除所有网格线,除了0中的网格线,如下图所示的高线图?或者我们必须使用自己的javascript来实现这一目标吗?此外,我们是否可以在yAxis标签和图表之间显示灰色区域,在图表右侧显示灰色区域(图表的末尾)?

图形样机

谢谢你的任何建议.

javascript charts graph highcharts

4
推荐指数
1
解决办法
9350
查看次数

在liferay中显示控制器数据

我到处看都看不到,或者我的搜索不够好.无论如何,这是我的问题.如何在Liferay MVC中显示和/或将数据从控制器传输到view jsp文件?即如果变量"var"在控制器java类中包含值"This is a variable",我如何在jsp文件中显示和/或访问它?或者简单...我们如何将值从控制器传递到liferay MVC中的jsp视图?

感谢任何建议

jsp controller view liferay

3
推荐指数
1
解决办法
4485
查看次数

在postgresql中限制Double Precision或float8类型的十进制数字

我有一个postgresql数据库,并将其用于处理货币价值的项目.我的问题是:如何在postgresql表中将Double Precision或float8类型的列的十进制数限制为2?

database postgresql floating-point precision

3
推荐指数
1
解决办法
1万
查看次数

无法在Liferay对话框中打开Portlet

我的门户网站中有一个对话框,该对话框打开一个Portlet。当我单击链接并打开对话框时,对话框显示

您没有访问此portlet所需的角色。

但是,如果我在页面上添加相同的portlet,则该portlet会在页面和对话框上打开而没有任何障碍。我在这里想念什么?有人知道吗?

我的代码是:

#set ($profile_url = $portletURLFactory.create($request, "profile_WAR_profileportlet", $getterUtil.getLong($plid), "RENDER_PHASE"))
 $profile_url.setParameter("p_p_state", "exclusive")

<a href="#" id="profile" onclick="openDialog('$profile_url','preferences-dialog',500,500)"> Profile </a> 



window,
        'openDialog', //function name
        function(url, popupID, wd, ht) { // parameters to the function
            var A = AUI();

            popupDialog = new A.Dialog({

                    id: popupID, // popupId passed so that it would be easy to close it through events other than the close button
                    centered: false, // all the different parameters function you can check in the Alloy API
                    draggable: true,
                    resizable: …
Run Code Online (Sandbox Code Playgroud)

portal portlet dialog liferay

3
推荐指数
1
解决办法
3368
查看次数

无法从liferay挂钩发送邮件

我试图从我使用MailEngine和MailServiceUtil的钩子发送电子邮件,但我还没有能够发送它.我的代码如下:

InternetAddress from=null;
InternetAddress to=null;
try {
 from = new  InternetAddress("test@test.com", "Admin admin");
 to = new InternetAddress(newUser.getEmailAddress(), newUser.getFirstName());
} catch (UnsupportedEncodingException e) {
 // TODO Auto-generated catch block
 e.printStackTrace();
} 
MailMessage mailMessage = new MailMessage();

mailMessage.setFrom(from);
mailMessage.setTo(to);

mailMessage.setBody(body); 
mailMessage.setSubject(subject);
MailServiceUtil.sendEmail(mailMessage);
Run Code Online (Sandbox Code Playgroud)

在这我得到以下错误,

java.lang.LinkageError: loader constraint violation: when resolving method "com.liferay.portal.kernel.mail.MailMessage.setFrom(Ljavax/mail/internet/InternetAddress;)V" the class loader (instance of org/apache/catalina/loader/WebappClassLoader) of the current class, com/lftechnology/sbworkbench/hooks/createaccount/CustomCreateAccountAction, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, com/liferay/portal/kernel/mail/MailMessage, have different Class objects for the type javax/mail/internet/InternetAddress used …
Run Code Online (Sandbox Code Playgroud)

email hook sendmail liferay

2
推荐指数
1
解决办法
2190
查看次数