primefaces

Primefaces-extensions ckeditor - missing toolbar

不羁的心 提交于 2020-01-23 14:03:24
问题 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 textEditor: converting text to HTML with JavaScript not working

泪湿孤枕 提交于 2020-01-23 10:56:06
问题 At first let me state that this is my first question here and I am new in this community. Please be kind, do not hesitate to correct me, direct me to where I might find answers or study, etc. I am posting this question as a last hope for finding a solution as I have not found or come up with any by myself (nor with a help of my colleagues). Basically PrimeFaces p:editor is currently used at a page in the program I am working on. Users use it for entering and formatting text which is then send

Prevent p:messages component from showing messages which are already shown in p:message

ⅰ亾dé卋堺 提交于 2020-01-23 10:43:09
问题 i have an input component that has three types of validation (required,validatorMessage,converterMessage) and this input has its own message icon, and the whole form has a messages component to display all the messages for all components as follows: <p:message for="idEstNumOfUser" display="icon" id="msgEstNumOfUser" /> <p:inputText id="idEstNumOfUser" placeholder="Estimated Number of Users" value="#{mybean.estimatedUserCount}" required="true" requiredMessage="" maxlength="8" title="Estimated

PrimeFaces remote command is not invoking

≡放荡痞女 提交于 2020-01-23 09:46:07
问题 I am using a remote Command button to execute a method to a bean level. But my command button is not working . I am attaching my code below: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> <ui:composition template="/layouts/BasicTemplate.xhtml"> <ui:define name="content"> <div class="container"> <script> function doAlert(s) { if(s=="true") {

PrimeFaces remote command is not invoking

限于喜欢 提交于 2020-01-23 09:46:06
问题 I am using a remote Command button to execute a method to a bean level. But my command button is not working . I am attaching my code below: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> <ui:composition template="/layouts/BasicTemplate.xhtml"> <ui:define name="content"> <div class="container"> <script> function doAlert(s) { if(s=="true") {

How to set or inject request parameters in a managed bean?

六月ゝ 毕业季﹏ 提交于 2020-01-23 02:43:05
问题 I'm using a number of PrimeFaces <p:remoteCommand/> s to call various action listeners on a page. In the javascript calls, I'm passing parameters. These parameters arrive in the request parameter map. Now, I can extract the parameters from the map in the action listeners themselves. What I would like, however, is for the action listeners not to have to do that. Rather, they should just check that the appropriate value in the bean is not null and act accordingly. I want to either centralize

How to use OmniFaces Ajax.updateColumn() or Ajax.updateRow() via p:ajax

谁说胖子不能爱 提交于 2020-01-21 18:05:35
问题 I am attempting to use the Ajax.updateColumn() method of the OmniFaces 1.3 (SNAPSHOT) Ajax utility. More specifically, I want to replace the use p:ajax update=":pageContentPanel", which is an h:panelGroup (or p:outputPanel) which contains the following xhtml, with the use of Ajax.updateColumn(table, 1). <h:dataTable id="dt_tripDates" style="width: 200px !important;" var="tripDate" value="#{pf_ordersController.tripDates}"> <p:column style="text-align: right !important;"> <h:outputText id=

JSF / PrimeFaces: Navigate from one tab to another

前提是你 提交于 2020-01-21 07:28:49
问题 Using Primefaces tab view ( <p:tabView> ), how to navigate from one tab to another tab? For example: <p:tabView id="tabPanel"> <p:tab id="tab1"> <p>Tab 1</p> <a href="#">Go to tab2</a2> </p:tab> <p:tab id="tab2"> <p>Tab 2</p> </p:tab> </p:tabView> 回答1: You can use client side scripting api of PrimeFaces. Define a widgetVar attribute in tabView . Then use select(index) client side api. <p:tabView id="tabPanel" widgetVar="tabPanelWidget"> <p:tab id="tab1"> <p>Tab 1</p> <a href="#" onclick=

Using the page event with p:dataList in PrimeFaces

安稳与你 提交于 2020-01-21 05:50:09
问题 Does a <p:dataList> support the page event? I'm trying to use the page event in the following way (blocking a <p:dataList> using <pe:blockUI> while going through pages). <pe:blockUI target="dataList" widgetVar="blockDataListUIWidget"> <h:panelGrid columns="2"> <h:graphicImage library="default" name="images/ajax-loader1.gif"/> <h:outputText value="Fetching..." class="block-ui-text"/> </h:panelGrid> </pe:blockUI> <p:dataList id="dataList" var="orderRow" value="#{orderDetailsManagedBean}" first=

How to refresh a page after download

自古美人都是妖i 提交于 2020-01-21 05:26:32
问题 I have a commandButton that will invoke a function to download a file (standard stuffs like InputStream , BufferedOutputStream ...) After download success, at the end of the function, I change some values of the current object and persist it into database. All of these work correctly. Now when file is done downloading, the content of the page is not updated. I have to hit refresh for me to see updated content. Please help. Below are the basic structure of my code document : Managed Bean