任务:有一个带有selectMany复选框的面板,该面板有5列。选择框的值按升序排列,但它们在列中从左到右而不是从上到下显示。
使用:Primefaces代码:
<p:selectManyCheckbox id="chkbx" value=.. layout="grid" columns="5">
<p:selectItems value=.. itemValue=".." itemLabel=".."/>
</p:selectManyCheckbox>
Run Code Online (Sandbox Code Playgroud)
当前屏幕:
[] a [] b [] c
[] d [] e [] f
[] g [] h [] i
Run Code Online (Sandbox Code Playgroud)
预期:
[] a [] d [] g
[] b [] e [] h
[] c [] f [] i
Run Code Online (Sandbox Code Playgroud) 我在Eclipse使用Maven. package org.assertj.core.api即使我在我的pom.xml3.6.2 版中将其指定为 3.6.2 版,但我得到的信息
并不存在JDK 1.8.
如何克服它?
mvn clean install正在失败。
无法在项目 com.transunion.qa.datahub.ui.java.bdd.serenity 上执行目标 org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile): Compilation failure: Compilation failure:
[错误] /Users/pnutala/eclipse-photon-workspace/com.transunion.datahub.ui.qc.java.bdd.serenity/src/main/java/com/transunion/qc/steplibrary/datahub/DeCoherentUser.java: [7,35] 包 org.assertj.core.api 不存在
[错误] /Users/pnutala/eclipse-photon-workspace/com.transunion.datahub.ui.qc.java.bdd.serenity/src/main/java/com/transunion/qc/steplibrary/datahub/DeCoherentUser.java: [7,1] 仅从类和接口静态导入 [错误] -> [帮助 1]
试过了Mvn clean install,verify没有成功。
import static org.assertj.core.api.Assertions.assertThat;
@Step
public void landedOnListPage(String expectedTotle) {
assertThat(currentListPage.getTitle()).containsIgnoringCase(expectedTotle);
Run Code Online (Sandbox Code Playgroud) 我有一个自定义组件,它实现UIInput并需要保存一些状态信息,以便以后在回发请求中重用。独立使用它工作正常,但在<ui:repeat>回发中找到最新呈现的数据行的保存状态。动作调用的日志输出是
INFORMATION: myData is "third foo"
INFORMATION: myData is "third foo"
INFORMATION: myData is "third foo"
INFORMATION: ok action
Run Code Online (Sandbox Code Playgroud)
我期望的地方
INFORMATION: myData is "first foo"
INFORMATION: myData is "second foo"
INFORMATION: myData is "third foo"
INFORMATION: ok action
Run Code Online (Sandbox Code Playgroud)
我知道这myComponent是ui:repeat. 那么保存组件状态以便为数据集中的每一行正确恢复它的最佳方法是什么?
我的 XHTML 表单:
<h:form>
<ui:repeat var="s" value="#{myController.data}">
<my:myComponent data="#{s}"/>
</ui:repeat>
<h:commandButton action="#{myController.okAction}" value="ok">
<f:ajax execute="@form" render="@form"/>
</h:commandButton>
</h:form>
Run Code Online (Sandbox Code Playgroud)
我的豆:
@Named
@ViewScoped
public class MyController implements Serializable {
private static final long serialVersionUID …Run Code Online (Sandbox Code Playgroud) 我在中使用了两个<svg>元素<ul>。
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
...
<ul>
<li>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" >...</svg>
</li>
<li>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" >...</svg>
</li>
</ul>
...
</html>
Run Code Online (Sandbox Code Playgroud)
JSF </li>在呈现HTML时吞下了第一个结尾。
这是错误还是我的xhtml无效?
我正在使用Mojarra 2.1.7。
更新:正如@BalusC所建议,我已将此报告给Mojarra Guys。
我正在尝试在.csproj(vs2017)中使用目标事件"BeforeBuild",但它无效.有人会知道什么是错的:
<Project DefaultTargets="BeforeBuild" Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<Target Name="BeforeBuild">
<Message Text="Test123"></Message>
</Target>
</Project>
Run Code Online (Sandbox Code Playgroud)
预期的结果是一条消息:输出上的Test123.
[]中
我正在使用主动选择反应参数,我想访问我的 jenkinsfile 中的选定值。
有什么方法可以访问 jenkinsfile 中的 select_server 吗?因为我尝试过${select_server},但没有成功。
我在我的 html 中声明 FileUpload 如下
<p-fileUpload name="file" url="http://localhost:8080/integra/services/upload" (onUpload)="onUpload($event)" accept=".txt"></p-fileUpload>
Run Code Online (Sandbox Code Playgroud)
它指向我的后端
@PostMapping(value="/upload", produces = MediaType.APPLICATION_JSON_VALUE, consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public ResponseEntity uploadFile(@RequestParam("file") MultipartFile file) throws IOException {
File convertFile = new File("C:\\upload\\"+file.getOriginalFilename());
convertFile.createNewFile();
FileOutputStream fout = new FileOutputStream(convertFile);
fout.write(file.getBytes());
fout.close();
return new ResponseEntity("OK", HttpStatus.OK);
}
Run Code Online (Sandbox Code Playgroud)
但是当在我的打字稿中执行 onload 事件时,它不起作用......甚至放置了一个 console.log 来测试,但它不起作用。这是我的打字稿
onUpload(event) {
console.log(event.files.length);
console.log(event.progress);
}
Run Code Online (Sandbox Code Playgroud)
当我运行文件上传时,加载栏被卡住,不允许我执行另一个文件上传。因此,当加载栏从未完成时,不会执行提到的事件 在此处输入图像描述
最后,文件保存在上述路径中,但我无法正确处理该事件
如果有人能帮助我,我将不胜感激。谢谢
this.name = name;
this.bind = bind;
this.category = category;
Run Code Online (Sandbox Code Playgroud)
它说
赋值给变量(3中的一个)没有效果.
我不知道为什么会出现这个错误,请帮忙.我正在使用Eclipse.
完整代码如下:
public class Module {
private String name;
private int bind;
private Category category;
public Module(String name,int bind,Category category) {
this.name = name;
this.bind = bind;
this.category = category;
}
Run Code Online (Sandbox Code Playgroud) jsf ×3
java ×2
angular ×1
assertj ×1
c# ×1
file-upload ×1
jenkins ×1
layout ×1
maven ×1
msbuild ×1
orientation ×1
primefaces ×1
primeng ×1
svg ×1
typescript ×1
xml-parsing ×1