primefaces

Creating and populating a DataTable dynamically in JSF2.0

南笙酒味 提交于 2019-12-28 06:35:17
问题 I've a little problem right there. When I want to populate DataTable in JSF I have to create a model first, then use it in my view. Like on Primefaces sample here. And now, I have to create DataTable that will display data, that came from webservice. I don't know how many columns there will be, and I don't know their names... Could you recommend some wise solution ? PS. I don't know also how to returned data from webservice - it is still to determine. EDIT public Bean() { columns = new

Remove all styling from Primefaces components?

会有一股神秘感。 提交于 2019-12-28 04:22:25
问题 Is it possible to remove all styling from Primefaces components? I mean, the component set is good but having to manually override every tiny bit of each component to make the component style fit the overall design of my application isn't good. I can't use hours on using Firebug to find which classes etc it uses and all that. So is there no way to remove this and only use the components for their functionality and provide your own design instead of being forced to use the default....or one of

Naming Container in JSF2/PrimeFaces [duplicate]

不羁岁月 提交于 2019-12-28 00:59:46
问题 This question already has answers here : How to find out client ID of component for ajax update/render? Cannot find component with expression “foo” referenced from “bar” (5 answers) Closed 3 years ago . What are the possible naming containers in PrimeFaces? Why it is necessary to append naming container id for Ajax update call when we want to update some UI control on form using update=":mainForm:MainAccordian:userNameTextbox" ? 回答1: After having IntelliJ scan all my JARs for implementations

Naming Container in JSF2/PrimeFaces [duplicate]

老子叫甜甜 提交于 2019-12-28 00:59:42
问题 This question already has answers here : How to find out client ID of component for ajax update/render? Cannot find component with expression “foo” referenced from “bar” (5 answers) Closed 3 years ago . What are the possible naming containers in PrimeFaces? Why it is necessary to append naming container id for Ajax update call when we want to update some UI control on form using update=":mainForm:MainAccordian:userNameTextbox" ? 回答1: After having IntelliJ scan all my JARs for implementations

Why JSF form maintain the validation styles even if has values on it?

蓝咒 提交于 2019-12-25 18:59:07
问题 I have a form (frmAddPax) to add some users data. This data could be submited manual or vía a barcode reader. When the button "Escanear" is pressed this one calls a dialog with another form (frmScan). This form read some data from a barcode reader and this data is processed in the managed bean. The data creates an object that is used in the original form (frmAddPax). The problem is all the form has the styling as there wasn't any data on it, all the mandatory fields have the required="true"

PrimeFaces poll does not work

谁都会走 提交于 2019-12-25 18:44:18
问题 I need to use <p:poll /> in some other work. So I was trying out the PrimeFaces ShowCase code:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <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:rich="http://richfaces.org/rich" xmlns:p="http://primefaces.prime.com.tr/ui" xmlns:a4j="http://richfaces.org

unable to create managed bean primefaces

折月煮酒 提交于 2019-12-25 18:34:27
问题 this is the code of my managedBean class. i have no-arg constructor, setters and getters. still i'm unable to find what is wrong with the code. i have added the managed bean in the faces-config file as well public class TreeBean { private TreeNode root; public void setRoot(TreeNode root) { this.root = root; } <!--this is the no arg constructor.--!> the setters and getters are also set accordingly. public TreeBean() { root = new DefaultTreeNode("Root", null); TreeNode node0 = new

VS 2017 .Net Core 2.0, Angular 4, Error: System.Net.Http.WinHttpException: The connection with the server was terminated abnormally

我怕爱的太早我们不能终老 提交于 2019-12-25 17:56:08
问题 I am running a Windows 7 Professional PC, using Visual Studio 2017 version 15.4.5. When I created a .Net Core 2.0 project and selected the type of Angular, it ran fine out of the box. Then I added font awesome and primeng (https://www.primefaces.org/primeng/#/) in what I think is the standard way, i.e., adding references to the package.json file, then to the nonTreeShakableModules section of the webpack.config.vendor.js file, then adding modules to app.module.shared.ts. This was primeng

VS 2017 .Net Core 2.0, Angular 4, Error: System.Net.Http.WinHttpException: The connection with the server was terminated abnormally

此生再无相见时 提交于 2019-12-25 17:56:03
问题 I am running a Windows 7 Professional PC, using Visual Studio 2017 version 15.4.5. When I created a .Net Core 2.0 project and selected the type of Angular, it ran fine out of the box. Then I added font awesome and primeng (https://www.primefaces.org/primeng/#/) in what I think is the standard way, i.e., adding references to the package.json file, then to the nonTreeShakableModules section of the webpack.config.vendor.js file, then adding modules to app.module.shared.ts. This was primeng

styling - removing gap between North & Center (Primefaces)

最后都变了- 提交于 2019-12-25 17:38:59
问题 I'm trying to eliminate the buffer or "resizer" that exists between the North and Center layout. I have used fullPage=true b/c I like that it auto resizes. The border from the edge of the screen to the main body of content is set to a color and I accomplished this by setting the body background to the color and I the north and center layouts white. The problem is that the color of the background shows through separating the north and center. I used firefox/firebug and noticed that there is a