primefaces

How to add a vertical line in a horizontal bar chart using primefaces + jqplot

好久不见. 提交于 2019-12-24 07:48:15
问题 I'm using primefaces + jqplot to create a Horizontal and Stacked bar chart: Code ( Example - Primefaces ): http://www.primefaces.org/showcase/ui/chart/bar.xhtml I need to add a line in chart like this image: ( Red line in Vertical ) http://peltiertech.com/Excel/pix1/AddLine.gif Can i do this with Primefaces + Jqplot ? If it's possible, someone can help me to understand ? 回答1: Finally solved my problem: 1 - Add a extender in Managed Bean with name of extender: horizontalBarModel.setExtender(

The method update(String) from the type RequestContext is deprecated

依然范特西╮ 提交于 2019-12-24 07:44:20
问题 When I use next code part in my code : RequestContext.getCurrentInstance().update("growl"); there is a warning as "The method update(String) from the type RequestContext is deprecated" and in code part and crossed of "update". RequestContext.getCurrentInstance().update("growl"); there is a warning as "The method update(String) from the type RequestContext is deprecated" and in code part and crossed of "update". It is clear that this way is overdue. What is the modern way of doing this. 回答1:

Primefaces confirm dialog not centered when used in conjuntion with richfaces

冷暖自知 提交于 2019-12-24 07:28:19
问题 As per my question title, when I use richfaces, specifically a rich:popupPanel, my primefaces confirm dialog, p:confirmDialog, gets placed top/left justified. If I remove the the richfaces popup panel the primefaces dialog gets centered in the browser window as expected. I tried changing the order of the namespace entries but that didn't work. What else can I try. I see richfaces also has a confirm dialog that I'm going to look into, it's just that I already had the primefaces version working

p:fileUpload calls bean constructor for each file

不打扰是莪最后的温柔 提交于 2019-12-24 07:13:35
问题 I'm trying to use <p:fileUpload> to upload a file. Here's the view: <h:form enctype="multipart/form-data"> <p:growl id="messages" showDetail="true" /> <p:fileUpload fileUploadListener="#{viewscopedBean.handleFileUpload}" mode="advanced" dragDropSupport="true" multiple="true" update="messages" /> </h:form> Bean: @ManagedBean @ViewScoped public class ViewscopedBean implements Serializable{ private List<UploadedFile> uploadedFiles; //to remember which files have been uploaded public

Primefaces lazy datatable: put my own filter instead of GlobalFilter

本小妞迷上赌 提交于 2019-12-24 07:13:11
问题 I d like to add some extra filters on my Lazy Data Table but these fields are not based on the fields I have (actually my filter would be dateFrom and dateTo and I only have a field "Date"). I'd like to have two extra filter fields on the top of my datatable instead of a global filter: <f:facet name="header"> <p:outputPanel> <p:inputText id="globalFilterOther" onkeyup="PF('myTable').filter()" style="display:inlineblock;"/> <p:inputText id="globalFilterAnOtherFilter" onkeyup="PF('myTable')

Display dynamic editors in JSF with ui:include

◇◆丶佛笑我妖孽 提交于 2019-12-24 07:11:53
问题 I want to display a group of editors in a tabview. Each editor has a property called component , that stores the rendered editor. Simple editors use HTML tags to render the editor, whereas complex ones use editors defined in another pages. I have found out that I cannot use editor.component with ui:include because the value is not available when the tree is build. How can I solve this issue? Are there any alternatives to ui:include that don't have this limitation?. <ui:composition xmlns="http

Primefaces ab method

梦想与她 提交于 2019-12-24 06:41:11
问题 I'm really getting confused by some code. I'm in the process of converting a giant Scala app over to Java. It's a web-app, and uses PrimeFaces for the User interface. However, there are a few things that are throwing me. One is this code snippet: <td><button id="search:j_idt30" name="search:j_idt30" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" onclick="PrimeFaces.ab({formId:'search',source:'search:j_idt30',process:'@all',update:'meetingIndices'});return false

Use image for radio button selection in primefaces selectOneRadio

假如想象 提交于 2019-12-24 06:38:13
问题 I am trying to build UI using primefaces selectOneRadio. Currently I need to be able to display 5 images which are actually radio buttons and the image gets a blue border when selected. The actual radio button is hidden. I tried primefaces selectOneRadio with custom layout but clicking on image does not select the radio button and the button is also visible. Here is my code. I use foundation for css. <ul class="small-block-grid-5"> <p:selectOneRadio value="scooter" id="vehicleType" layout=

primefaces calender: how to set dynamically mindate

…衆ロ難τιáo~ 提交于 2019-12-24 06:38:02
问题 I have two primefaces calender controls.I want that when I select a date from the first calender then next calender mindate should be start from 1st calender's selected date.For instance, I have selected 7/5/2013 then next calender should disable all dates before 8/5/2013 This is what I have tried so far but it is not working <p:calendar id="fromD" value="#{requestController.from}" yearRange="2013:2015" pattern="dd/MM/yyyy" mindate="#{requestController.today}"/> <p:calendar id="toD" value="#

PrimeFaces command button does not update form on submit

萝らか妹 提交于 2019-12-24 06:35:21
问题 This is my Sample backing bean. @ManagedBean @SessionScoped public class Sample { private String dateText; public Sample(){ dateText = (new Date()).toString(); } public String updateDate(){ setDateText((new Date()).toString()); return null; } public String getDateText() { return dateText; } public void setDateText(String dateText) { this.dateText = dateText; } } Scenario 01 <h:head></h:head> <h:body> <h:form> <h:inputText id="txtFirst" value="#{sample.dateText}"/> <h:inputText id="txtSecond"