primefaces

Is there a way to not sending a whole web form when click a button?

I will try to be as brief as possible, please stay with me here "A.jsf" -> managed bean : bean "#{bean.list}": will take us to B.jsf <p:growl id="msgs" showDetail="true"/> <h:form id="myform1" enctype="multipart/form-data"> <p:panel header="Upload" style="font-size: 11px;"> <h:panelGrid col...

problem with primefaces schedule

hi all i have tried to write a simple page containing scheduler it looks fine but the listeners like eventSelectListener,dateSelectListener,eventMoveListener never fired! what is the problem this is my code: <%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib u...

JSF2 PrimeFaces Installaion

I would like to use PrimeFaces. I followed all the instructions on the webpage My POM: <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>2.0.0</version> </dependency> [...] <repository> <id>prime-repo</id> <name>Prime Technology Maven Repository</name> <...

PrimeFaces Captcha not showing under Chrome

Hey there, My JSF web application uses PrimeFaces Captcha. It works properly under Firefox and IE, but it does not show under Chrome. I don't get any errors at page generation, but if I try to post the data with the invisible Captcha, the following error message is shown: j_idt25:j_idt32: Validation Error: Value is not valid. There i...

<p:schedule> decode method does not invoke

...

How to write a custom converter when working with Primefaces' components that contain POJO

My particular problem is with picklist <p:pickList converter="????" value="#{bean.projects}" var="project" itemLabel="#{project.name}" itemValue="#{project}"> ...

JSF: weird behavior when clear inputTextArea with ajax

Here is what I have <h:inputTextarea id="comment" rows="3" cols="50" value="#{bean.comment}" /><br/> <p:commandButton value="Comment" actionListener="#{bean.postMessage}" update="comment"/> so postMessage() persist data, then set the the value of comment to empty like this comment.setComment(""); Work great. When I press the button...

JSF + Primefaces: Problem with "rendered" components with ajax

EDIT Cant seem to get rendered to work correctly with update attributes. Here is my codes <ui:define name="left"> <h:form> <p:commandLink value="Hey" actionListener="#{bean.setRenderComment}" update="comment"/> </h:form> </ui:define> <ui:define...

JSF: Is there a way to create animation effect when insert a new record into table?

I've been googling this question a lot and I dont seem to find a solution. I wonder if any developer out there that able to achieve this? I know there are couple ajax framework out there for JSF like Richfaces, primefaces, icefaces ... I have look at their showcase, and could not seems to find what I am looking for. ...

Are Richfaces and Primefaces compatible with each other?

I am using Primefaces-2.1 now, I try to integrate Richfaces-3.3.3 in my application in order to use <rich:jQuery>. My <p:commandButton>, <p:commandLink> stop working as soon as I integrate the Richfaces, I give me this exception: Any idea why? Exception in the filter chain javax.servlet.ServletException: Index: 0, Size: 0 at javax.faces...

JSF mobile web version. What technology to use?

We have currently developed a trading platform using glassfish and primefaces. The company is looking to expand the application and provide a mobile web version. What technology can I use that is stable and fast. I know there is touchfaces from Primefaces and Apache Trinidad. I have tried the touchfaces demo but it does not seem to w...

Accessing disabled attribute for Primeface Calendar with JavaScript

I have a form where some fields needs to be disabled until a check box is clicked. For JSF-elements are all working fine. The problem is with the primeface elements. For a JSF-element like a dropdown list I do it like this: <h:selectOneMenu value="countryValue" disabled="true" id="countryId"> <f:selectItems value="countries" /> </...

dataTable only print out the first item, if the value attribute contains square bracket

I have a h:dataTable that displays ProfileNotification like below: <h:dataTable value="#{myBean.profileNotifications}" var="item" rendered="#{myBean.renderProfileNotification}"> <h:column> <h:form> <h:outputText value="#{item.userName} "...

Primefaces lightBox problem

I have created a page with primefaces where I use the Lightbox component. I use it in a dynamic matter as I create tumbnails on the fly with a servlet call. The first page shows up nice and the lightbox works as expected but when I load a new set of pictures for the next page the pictures are shown but when you click on it, it just sho...

RequestScope bean and Prime Faces Collector

Hi! I got a problem. I have a bean CreateProjectBean which is RequestScope bean. I want to use Prime Faces component called Collector so i can dynamicly change in view createProject table groupRoleAdapters which is a field of CreateProjectBean. Unforuntely every time i click "add" or "remove" in collector, there is a new request being s...

PrimeFaces wizard component resets values in <h:select* /> components when form is submitted

I have the following selectManyCheckbox inside a p:wizard component: <p:wizard id="wizard"> <p:tab id="page1" > <h:selectManyCheckbox value="#{userController.user.roles}" layout="pageDirection" converter="securityRoleConverter"> <f:selectItems value="#{userController.rolesSelectMany}" /> </h:selectM...

Richfaces Primefaces JSF 2.0 configuration

I am currently using JSF 2.0 and Richfaces 3.3.3 and it's working fine. Now I want to add Primfaces to it; I had added required jar but the components are not rendered is there any configuration i have to add in faces-config or web.xml. ...

Primefaces wizard showing progress

I want to use Primefaces to display a wizard pretty much similar to the one shown in the showcase, but with some kind of tabview that displays the progress of the user, thus combining the wizard with the tabView. Because I think this is quite a common requirement I was wondering if anyone tried the same and could give me some suggestio...

Primefaces: Does any get p:effect to work on Glassfish

Here is my code. When I click the link Comment, a inputTextarea and commandButton suppose to appear <h:outputLink id="link" value="javascript:void(0)"> <h:outputText value="Comment"/> <p:effect type="fade" event="click" for="reply"> <f:param name="mode" value="'show'"/> </p:effect>...

Primefaces, JavaScript, and JSF does not work well together or am I doing something wrong

Here is something so simple <p:commandLink value="Tom" onclick="document.getElementById('tom').focus()"/><br/> <input id="tom"/> When u click on the Tom, the textbox get focus. Great, now try this <p:commandLink value="Tom" onclick="document.getElementById('tom').focus()"/><br/> <h:inputText id="tom"/> <br/> when I click nothing ha...