graphicimage

How to remove borders from loading gif on a dark background?

久未见 提交于 2019-12-11 06:17:49
问题 I'm trying to create a dialog with a loading gif without any borders or background for my web application. I'm using PrimeFaces for JSF. I can't delete the shadow on the border. Here image and code: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:p="http://primefaces.org/ui"> <style> .loadingPanel .ui-widget-content{ background: transparent !important; border:none !important; box-shadow:none !important; } </style> <p:dialog widgetVar="loadingDialog" draggable="false" modal="true" closable=

Open original image when a thumb image is clicked

和自甴很熟 提交于 2019-12-11 02:05:57
问题 Displaying images using <p:graphicImage> as follows. <p:graphicImage value="#{imageBean.image}" width="80" height="60"> <f:param name="id" value="1"/> <f:param name="width" value="80"/> <f:param name="height" value="60"/> </p:graphicImage> The ImageBean looks like the following. @Named @ApplicationScoped public class ImageBean { @Inject private Service service; public ImageBean () {} public StreamedContent getImage() throws IOException { FacesContext context = FacesContext.getCurrentInstance(

how can i display a dynamic photo in the user detail's page [duplicate]

流过昼夜 提交于 2019-12-08 08:10:06
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Display image from database with p:graphicImage I want to display a photo from its url stored in the database , so i used as follow <h:panelGrid columns="1"> <p:graphicImage value="#{userController.photo}"/> </h:panelGrid> and the photo attribute is a url string that points to the photo location public String getPhoto() { String path = new File("").getAbsolutePath(); ph =ejbPhoto.find(current.getIdPhoto());

how can i display a dynamic photo in the user detail's page [duplicate]

旧城冷巷雨未停 提交于 2019-12-06 16:11:59
This question already has answers here : Closed 7 years ago . Possible Duplicate: Display image from database with p:graphicImage I want to display a photo from its url stored in the database , so i used as follow <h:panelGrid columns="1"> <p:graphicImage value="#{userController.photo}"/> </h:panelGrid> and the photo attribute is a url string that points to the photo location public String getPhoto() { String path = new File("").getAbsolutePath(); ph =ejbPhoto.find(current.getIdPhoto()); System.out.println("+PHOTO +++++++++++++++"+path+"\\"+ph.getPhotoName()); return path+"\\"+ph.getPhotoName(

Get concrete URL of <p:graphicImage> returning StreamedContent

岁酱吖の 提交于 2019-12-06 03:16:02
问题 In order to use the lightbox, I need a link to the image as generated by <p:graphicImage> . Ultimately, the HTML should look like this: <a href="image.jpg" data-lightbox="bilder"> <img src="image.jpg" /> </a> This is my JSF attempt so far: <h:outputLink data-lightbox="bilder" value="???"> <p:graphicImage value="#{imageStreamer.image}"> <f:param name="imageId" value="#{gameReader.game.cover.id}"/> </p:graphicImage> </h:outputLink> How do I get the concrete URL of <p:graphicImage> returning

Get concrete URL of <p:graphicImage> returning StreamedContent

拈花ヽ惹草 提交于 2019-12-04 07:10:21
In order to use the lightbox, I need a link to the image as generated by <p:graphicImage> . Ultimately, the HTML should look like this: <a href="image.jpg" data-lightbox="bilder"> <img src="image.jpg" /> </a> This is my JSF attempt so far: <h:outputLink data-lightbox="bilder" value="???"> <p:graphicImage value="#{imageStreamer.image}"> <f:param name="imageId" value="#{gameReader.game.cover.id}"/> </p:graphicImage> </h:outputLink> How do I get the concrete URL of <p:graphicImage> returning StreamedContent so that I can use it in my link? This have one solution - using servlet here is a servlet

Alternative for p:graphicImage which can show images from byte[] and control browser cache

孤街浪徒 提交于 2019-12-01 12:06:43
There seems to be a bug with p:graphicimage when using the update-functionality. Loading one image through value="#{myController.myStreamedContent}" works, but when changing myController.myStreamedContent followed by updating p:graphicimage , the previously loaded image remains unchanged. There is the possibilty to set cache="false" , but this does not work within my Firefox 45.0. I use PrimeFaces 5.3. The following sites mention this, too: PRIMEFACES - How to refresh a from clicking a ? Primefaces : GraphicImage does not refresh Why can't I update a p:graphicImage twice after upload a file

How to create a thumbnail link to OmniFaces graphicImage method

风格不统一 提交于 2019-12-01 08:21:08
问题 I was wondering if and how it is possible to display an <o:graphicImage> as thumbnail inside a <p:lightbox> . To be more precise, I wanted to achieve something like this: <p:dataTable id="articles" var="article" value="#{articleMB.articles}" selectionMode="single" rowKey="#{articles.id}" selection="#{articleMB.selectedArticle}"> <p:column> <p:lightBox styleClass="imagebox" id="lighbox"> <h:outputLink value="#{imageBean.getFirstImage(article, true)}"> <o:graphicImage value="#{imageBean

Alternative for p:graphicImage which can show images from byte[] and control browser cache

落爺英雄遲暮 提交于 2019-12-01 07:39:45
问题 There seems to be a bug with p:graphicimage when using the update-functionality. Loading one image through value="#{myController.myStreamedContent}" works, but when changing myController.myStreamedContent followed by updating p:graphicimage , the previously loaded image remains unchanged. There is the possibilty to set cache="false" , but this does not work within my Firefox 45.0. I use PrimeFaces 5.3. The following sites mention this, too: PRIMEFACES - How to refresh a from clicking a ?

BLOB images are displayed only on refreshing a page after an update via p:dataTable is made in PrimeFaces

╄→гoц情女王★ 提交于 2019-12-01 04:16:38
I'm displaying images stored in the form of BLOB in MySQL on a <p:graphicImage> as follows. <p:dataTable var="row" value="#{testManagedBean}" lazy="true" editable="true" rows="10"> <p:column headerText="id"> <h:outputText value="#{row.brandId}"/> </p:column> <p:column headerText="Image"> <p:cellEditor> <f:facet name="output"> <p:graphicImage value="#{brandBean.image}" height="100" width="100"> <f:param name="id" value="#{row.brandId}"/> </p:graphicImage> </f:facet> <f:facet name="input"> <p:graphicImage id="image" value="#{brandBean.image}" height="100" width="100"> <f:param name="id" value="#