primefaces

Wildfly does not have visibility of annotated JSF classes

六眼飞鱼酱① 提交于 2020-01-25 06:50:29
问题 I'm trying to migrate an old Glassfish JEE app over to a recent LTS of Wildfly, but I've hit on a confusing issue. The application implements JSF 2.0 and Primefaces 6, with the use of JSF/PF annotations for @ManagedBean etc. Some of these annotated classes are in a shared dependency and include Beans, Converters, and general JSF components. Some of these are eager, or otherwise only have an access point in the JSF XHTML, usually for a conditional display or render. With the application

Primefaces 4.0 Tree selection update in backing bean does not work

試著忘記壹切 提交于 2020-01-25 02:20:09
问题 I am having a primefaces Tree in a dialog. When I make selections in the Tree and click Add button, it adds all selections to a "p:selectManyMenu" in another panel. Code for the Dialog and Tree: <h:form id="categoriesDialogForm"> <p:dialog id="categoriesDialog" header="Add a Category" widgetVar="categoriesDialogVar" closeOnEscape="true" height="500" resizable="false" > <p:panelGrid> <p:row> <p:column> <p:tree id="categoriesTree" value="#{searchController.categoriesTree}" var="node"

Primefaces GMap addMarker (JavaScript) + selectMarker (overlaySelectEvent)

青春壹個敷衍的年華 提交于 2020-01-25 01:12:06
问题 I have been struggling to combine both the GMap AddMarker and Selection examples from the Primefaces Showcase. What I try to achieve here is to get the overlaySelectEvent fired when clicking on a marker that has been added to the map using JavaScript, having also those markers in the map model, correctly in sync. JSF and JavaScript: <p:growl id="messages" showDetail="true" /> <p:gmap id="gmap" center="36.890257,30.707417" zoom="13" type="HYBRID" style="width:600px;height:400px" model="#

Primefaces GMap addMarker (JavaScript) + selectMarker (overlaySelectEvent)

a 夏天 提交于 2020-01-25 01:12:06
问题 I have been struggling to combine both the GMap AddMarker and Selection examples from the Primefaces Showcase. What I try to achieve here is to get the overlaySelectEvent fired when clicking on a marker that has been added to the map using JavaScript, having also those markers in the map model, correctly in sync. JSF and JavaScript: <p:growl id="messages" showDetail="true" /> <p:gmap id="gmap" center="36.890257,30.707417" zoom="13" type="HYBRID" style="width:600px;height:400px" model="#

How to reference an img in p:graphicImage from the resource folder [duplicate]

喜夏-厌秋 提交于 2020-01-24 12:17:21
问题 This question already has answers here : How to reference CSS / JS / image resource in Facelets template? (4 answers) Closed 3 years ago . I have an image in the following path: resources \_____img \_______sites \_______reddit.png I used this command line to reference it: <p:graphicImage library="img" name="/sites/reddit.png"/> but in the development console it says: GET http://localhost:8080/RES_NOT_FOUND 404 () and the image is not rendered. What's wrong? 回答1: Kukeltje's suggested url (What

Primefaces dependency not able to import as the REPO url is blocked

好久不见. 提交于 2020-01-24 09:52:10
问题 I am working on a maven based Spring project.I have added following dependency for Primefaces. <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>2.2</version> And following Repository,I am using <repository> <id>prime-repo</id> <name>Prime Technology Maven Repository</name> <url>http://repository.prime.com.tr</url> <layout>default</layout> But the problem is that the url http://repository.prime.com.tr is blocked in our network, so I manually copied

FullAjaxExceptionHandler with datatable and lazydatamodel

纵饮孤独 提交于 2020-01-24 01:48:48
问题 I'm building a search page with primefaces 3.4 and omnifaces 1.3. Managed bean is SessionScoped. I have a xhtml page with a: <p:autoComplete id="searchBox" value="#{searchBean.queryText}"... /> <p:commandButton action="#{searchBean.search()}" value="search" ajax="false" .../> <p:dataTable id="docuList" var="doc" binding="#{searchBean.resultDataTable}" value="#{searchBean.lazyModel}" lazy="true" styleClass="noBorder" paginator="true" rows="10" paginatorPosition="bottom" paginatorTemplate="

How to change Bar Charts Legend position in PrimeFaces?

蓝咒 提交于 2020-01-23 16:59:23
问题 I am developing a web application in JSF in which I am using PrimeFaces bar chart. I want to change the legend position. I verified Primefaces: Charts and Legend position in that post they use, <p:barChart id="stackedKWH" value="#{kwhSalesBeanManager.kwhSalesChart}" legendPosition="e" style="height:300px;width:800px" title="kWh Sales by Type" stacked="true" barMargin="10" min="0" max="125000000"/> but in primeface 5.1 there is not <p:barchart/> <p:chart type="bar" model="#{chartView.barModel}

Primefaces-extensions ckeditor - missing toolbar

六眼飞鱼酱① 提交于 2020-01-23 14:04:29
问题 I am trying to use the primefaces-extensions ckEditor in my JSF application, as described here. I added the dependency to my pom.xml : <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>4.0.0</version> </dependency> This is how my view looks like: <p:growl id="editorgrowl" showDetail="true" /> <pe:ckEditor id="editor" value="#{mbEditorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-',

Primefaces-extensions ckeditor - missing toolbar

淺唱寂寞╮ 提交于 2020-01-23 14:03:34
问题 I am trying to use the primefaces-extensions ckEditor in my JSF application, as described here. I added the dependency to my pom.xml : <dependency> <groupId>org.primefaces.extensions</groupId> <artifactId>primefaces-extensions</artifactId> <version>4.0.0</version> </dependency> This is how my view looks like: <p:growl id="editorgrowl" showDetail="true" /> <pe:ckEditor id="editor" value="#{mbEditorController.content}" toolbar="[['Cut','Copy','Paste','PasteText','PasteFromWord','-',