小编Mad*_*eox的帖子

Cordova:JDK 1.8或更高版本的要求检查失败

我在Windows 7操作系统中使用Cordova 6.4.0,但是一旦我尝试构建Android版本,我就会收到此错误:

问题说明

Java Home变量已正确设置为JDK路径,但我不知道为什么会出现此问题.有什么建议吗?

cordova cordova-cli

75
推荐指数
14
解决办法
13万
查看次数

The underlying connection was closed. The server committed a protocol violation

I am trying to get the directory list of a FTPS FileZilla server using the code below :

ftpRequest = (FtpWebRequest)FtpWebRequest.Create(host + "/" + directory);
ftpRequest.EnableSsl = true;

ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateCertificate);
ftpRequest.Credentials = new NetworkCredential(user, pass);
ftpRequest.UseBinary = true;
ftpRequest.UsePassive = true;
ftpRequest.KeepAlive = true;
ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;
ftpResponse = (FtpWebResponse)ftpRequest.GetResponse();
Run Code Online (Sandbox Code Playgroud)

I got an exception when FtpWebResponse)ftpRequest.GetResponse() is executed :

the underlying connection was closed. The server committed a protocol violation.

When I switch to normal FTP connection. Everything …

c# ssl filezilla ftps ftpwebrequest

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

在基于JSF的应用程序中捕获并记录/通知未处理的异常

我想使用log4j检查并记录我的JSF Web应用程序中的所有未处理的异常.我使用log4j阅读了这篇文章中的日志运行时异常,并添加了一个实现的类Thread.UncaughtExceptionHandler.但是方法没有解雇.

实现这一目标的正确方法是什么?

jsf logging exception-handling

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

无法在平台 iOS NativeScript 中添加自定义字体

我已按照官方文档中的指南向我的本机脚本应用程序添加自定义字体。https://docs.nativescript.org/ui/styling#custom-fonts

字体名称是 Ubuntu,如下图所示。 在此处输入图片说明

我在我的项目的文件夹 /fonts 下添加了字体 Ubuntu.ttf,并将以下内容添加到我的 app.css 文件中:

在此处输入图片说明

.Ubuntu
{
    font-family: Ubuntu;
}
Run Code Online (Sandbox Code Playgroud)

但是,一旦对应用程序进行分层,我就看不到应用于我的标签的字体。

<Label class="Ubuntu" text="This is a test message" ></Label>
Run Code Online (Sandbox Code Playgroud)

任何帮助将不胜感激。

nativescript

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

使用jQuery更改p:selectOneMenu的项目

我有一个PrimeFaces 5.1 <p:selectOneMenu>,在DOM中生成以下选择:

<select id="WorkSpace:test:selectYear_input" 
    name="WorkSpace:test:selectYear_input" tabindex="-1">
    <option value="" selected="selected">-- Year --</option>
    <option value="2015">2015</option>
    <option value="2014">2014</option>
    <option value="2013">2013</option>
    <option value="2012">2012</option>
    <option value="2011">2011</option>
    <option value="2010">2010</option>
    <option value="2009">2009</option>
</select>
Run Code Online (Sandbox Code Playgroud)

我有一个<p:commandButton>触发jQuery函数,将处理更改我的<p:selectOneMenu>.

<p:commandButton onclick="changeDropDownList();" />
Run Code Online (Sandbox Code Playgroud)

jQuery函数:

function changeDropDownList()
{
    $('[id$=selectYear_input]')[0].selectedIndex = 2;
}
Run Code Online (Sandbox Code Playgroud)

<p:selectOneMenu>不会被更新.这是怎么造成的,我该如何解决?

jquery selectonemenu primefaces jsf-2

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