我在android suppport v7 app compat面临一些问题.正在给出一些罐子丢失的错误.我想用android支持v4做一个简单的hello world应用程序,但是如何删除android支持v7?
我有以下选择一个菜单.但是区分大小写并不适用.当我按小a或大写A时,它总是显示小a(以先发生者为准).
<p:selectOneMenu id="tempSelect" caseSensitive="true">
<f:selectItem itemLabel="0" itemValue="0"/>
<f:selectItem itemLabel="a" itemValue="a"/>
<f:selectItem itemLabel="A" itemValue="A"/>
<f:selectItem itemLabel="b" itemValue="b"/>
</p:selectOneMenu>
Run Code Online (Sandbox Code Playgroud)
我的主要版本是5.2.
当选择框处于焦点时.我按下字母"a"字母或者按下大写字母"A",在这两种情况下它只在框中显示"a"(因为它首先出现在列表中).这是实际行为.
我的预期行为是,当我按下"a"时它会输出"a",当我按下"A"时,它会在框中输入"A".
我该怎么办?
我在primefaces中使用streamedcontent并使用媒体标记来显示它.当在查看器中按下下载按钮时,它会下载名为dynamiccontent.properties的文件.有没有办法重命名它?
我使用的是html4,java 7和primefaces 5.2.24.
我试图设置参数#toolbar以隐藏工具栏,但它不起作用:
<p:media id="pdfViewer" value="#{mybean.pdfMedia}" width="100%" height="90%" player="pdf" cache="false" >
<f:param name="#toolbar" value="0"></f:param>
</p:media>
Run Code Online (Sandbox Code Playgroud)
我的流内容是从iText生成的,如下所示:
baos = new ByteArrayOutputStream();
document = new Document();
document.setPageSize(PageSize.A4);
document.setMargins(70, 70, 100, 100);
writer = PdfWriter.getInstance(document, baos);
document.open();
document.newPage();
XMLWorkerHelper.getInstance().parseXHtml(writer, document,
new ByteArrayInputStream(pageContents));
document.close();
InputStream stream = new ByteArrayInputStream(baos.toByteArray());
StreamedContent pdfMedia = new DefaultStreamedContent(stream, "application/pdf");
Run Code Online (Sandbox Code Playgroud)
有没有办法重命名它?或者有没有办法隐藏工具栏?
我试图Long在我的资源中传递列表作为发布数据和消费类型是application/xml.我也通过两条路径参数.它给了我例外"不支持的媒体类型".
请帮我解决这个问题.这是代码,我有例外..
@POST
@Path("/temp/{abc}")
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.APPLICATION_XML)
public List<Long> createUser2(List<User> users,@PathParam("abc") String abc) {
//.................//
List<Long> listLong=new ArrayList<Long>();
listLong.add(1L);
listLong.add(2L);
System.out.println("temp called");
return listLong;
}
> org.glassfish.jersey.message.internal.MessageBodyProviderNotFoundException:
> MessageBodyWriter not found for media type=application/xml
Run Code Online (Sandbox Code Playgroud)