primefaces

primefaces schedule component not working properly with seam and richfaces

I am using the primefaces schedule p:schedule component to create a outlook like scchedule the jsf tag is as follows <p:schedule value="#{scheduleController.eventModel}" editable="true" widgetVar="myschedule"> I have created the bean ScheduleController as specified here but i am getting an exception when ever this component is render...

Primefaces p:droppable components doesn't get laid out nicely

I am just trying to make a simple web page using drag drop of primefaces but it's not working, i mean it's behaving strangely. I have two outputpanel side by side with droppable each containing one graphic image with draggable. Problem is :- While dragging and dropping i want the photo should be laid side by side in outputpanel if it al...

How do i reorder rows in datatable using drag drop in primefaces?

Hello, I am using primefaces and JSF. Can anybody tell me how do i reorder rows of datatable usng primefaces drag and drop component? ...

JSF: SelectOneRadio shortcuts for options

I have the following h:selectOneRadio: <h:selectOneRadio id="#{prefix}_rating" value="#{examinationPanel.tempResult}" > <f:selectItems value="#{examinationPanel.options}"></f:selectItems> </h:selectOneRadio> And then the backing bean is loading the options based on some userpreferences: public List<SelectItem> loadOptions (Set<Result...

Primefaces lightbox lines issue on IE7 and IE6

Has anybody able to use the PrimeFaces lightbox component successfully on IE6 and IE7? I have a data table with grey borders within a lightbox, the grey borders are visible before the lightbox is even clicked. The data within the table shows only after the lightbox is clicked as it should, but the borders are showing up before the lightb...

Primefaces p:fileupload component problem

Hello, I am using Primefaces 2.0.1 but the FileUpload component is not working properly. It uses JQuery uploadify behind the scenes. This is my web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://j...

Primefaces Tree set checkboxes

I have a JSF application using Primefaces. I use the multiselect tree component which includes a checkbox on each tree node. My problem is that I need to preselect the tree nodes with values coming from the backing bean. It seems that jquery will be the way to go but I don't know how to retrieve the object values from the managedbean in ...

Loading a set of images with primefaces

Hi people! I have the next code to load a set of images whose streams are in a datamodel called names. My problem is when I declare the var inside the p:datatable tag seems like has nothing. Any idea? thx! <p:dataTable value="#{controlador.names}" var="nombre" rendered="true"> <p:column rendered="true"> ...

Primefaces TreeView node expansion

Being new to primefaces, I have been researching a way to have TreeView in dynamic mode update a separate tab pane given the id on Node expansion. This works great for node selection with the "update" attribute. Can it work the same way on Node Expansion was well? Here is my code that works when a node is selected: <p:tree id="tree" dy...

JSF 2.0: Validate equality of 2 InputSecret Fields (confirm password) without writing Code?

I'm developing a pure JavaEE6 application with JSF 2.0 and Glassfish. My JSF implementation is Primefaces (beside Mojarra provided by Glassfish). I want to verify if the values of 2 password fields in a JSF form are equal. With Seam, there is the neat component <s:validateEquality for="pw1"/>. I want do to the same without Seam, just us...

JSF 2.0 Problem

I am doing a project where I am using JSF 2.0 & Primefaces UI Components. There is a tab view component with tabs, "Day","Week" & "Month". In all tab, I have to display Bar Charts in each. For the same, I am fetching three list using the following three method. In the following code, UpdateCountHelper is fetching the data from database...

Problem with table layout

I have three drop down list <h:selectOneMenu>, and a <p:dataTable>. I want the three drop down list to be side by side with the dataTable. As I have right now, The three drop down lists are above the dataTable. I try to create bigger table and put the three drop down lists in one column, and put <h:dataTable> in another column to get the...

problem with <p:dialog> and facelets

hi all i'm facing a litte problem with primefaces and facelets here's the problem: i got a template file, that will be my base for all my screens. <p:growl id="cadastroMessages" /> <p:panel header="#{header}"> <h:form id="#{formId}"> <h:panelGrid columns="4"> <p:commandButton value="#{msg.novo}" action="#{ma...

<p:ajax event="change"> wont work on runtime generated data

I have this: <h:selectOneMenu id="facility" value="#{document.facility}"> <f:selectItem itemLabel="A" itemValue=""/> <f:selectItem itemLabel="B" itemValue=""/> <f:selectItems value="#{document.facilities}"/> <p:ajax actionListener="#{document.test}" update="project" event="change"/> </h:selectOneMenu> document is t...

problem with primefaces library (jsf)

hi all. i am new to primeface. i have tried to test an example of primefaces about tag as in its documentation, this is my jsf page code: <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <%@taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <...

primefaces poll tag does not work

hi all i am using primefaces library this is my jsp page source: <%@taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request...

[JSF] selectBooleanCheckbox - How do I know which checkbox am I selecting or deselecting?

I develop something like a shopping cart. I can select multiple items (by clicking on the checkbox next to that item) and add them to a list. How can I know which checkbox I am selecting. If I do this <h:selectBooleanCheckbox value="#{document.checked}"/> it only tell me a state of a checkbox is selected or not, but does not tell me w...

@ViewScoped Managed bean loads many times during postback

Hi, I have a calendar, editor, fileUpload and a dataTable primefaces controls on a jsf facelet. Code is as follows, <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <ui:composition xmlns:ui="http://java.sun.com/js...

how to combine jsf tags with prime faces?

I am using jsf and jsp tags in apache server for web application and I want to use primefaces for graphs.I don't no exactly how to configure web.xml when primefaces jar file is used.and how the jsp page will be having code using primefaces tags and components.please give simple example.I want to use prime faces only for graphs and its ...

Navigate to external URL from a backing bean?

I'm trying to implement proper logout for my Java EE / JSF2 application. It requires two things: I need to logout from JAAS and invalidate the session I then have to navigate to an external URL to fire Siteminder logout The Siteminder logout URL (configured on the Policy server -> I cannot change it) is outside my applications conte...