jsf

JSF rerender with AJAX

Hi guys, I have implemented a list created by a repeater: <ui:repeat value="#{projectData.paginator.list}" var="project"> <h:outputText value="#{project.title}" /> </ui:repeat> and a Button that filters my list: <h:commandLink action="#{overviewController.filterNew}"> <h:outputText value="Filter List" /> </h:commandLink> So, is ...

Problem with interruption of ajax request in RichFaces

I use seam and RichFaces in the project. If user performs action to leave the page (i.e. clicks s:link) while a4j ajax request is still active then alert with error 599 appears (Request error, status : 599 Network error). I can found error logs only in <a4j:log> output: debug[17:56:32,419]: NEW AJAX REQUEST !!! with form: aforma d...

JSF 2.0 Input field rendered by Ajax cannot be used to input values?

<h:form> Do you have a driving license? <h:selectOneMenu value="#{requestScope.license}"> <f:selectItem itemLabel="Select..." itemValue=""/> <f:selectItem itemLabel="Yes" itemValue="Y"/> <f:selectItem itemLabel="No" itemValue="N"/> <f:ajax render="@form"/> </h:selectOneMenu> <br/> Enter...

How to dynamically refresh h:selectManyCheckbox selectItems

I am trying to implement a scenario using JSF. I have a commandExButton and when user click this button "A" it shows the panelDialog which contains the selectManyCheckBox items. I generat these items in the backend bean by parsing one file which is continuously getting updated. What I want is, whenever I click this button "A" I should ge...

jsf page evaluation

hi, there's a jsf page with a form: .... <h:form> <h:commandLink action="#{userBean.logout}" value="Logout" /> </h:form> .... <ui:repeat value="#{categoryBean.allCategories}" var="c"> .... The categoryBean.allCategories is a call to EJB which is based on a <f:param> from previous page acquired via @ManagedProperty. So when the user c...

Richfaces Plug'n'Skin - how to provide images?

I'm trying to build a custom richfaces skin by the Plug'n'Skin feature. I've build the project with maven. (like its mentioned in the reference guide) I've tried to use the xcsswich isn't supplied to my app - everything looks like default. So I switched back to normal css in my tab-panel.xcss. This works: Styles are applied but one iss...

Use message bundle in Java class with Seam

Hi guys, I want to use my message bundle (messages_fr.properties) in a Java class with seam. In a jsf file, all work fine like this: <h2>#{msg.newCustomer}</h2> But in my Java class, I tried to do this: statusMessages.addToControlFromResourceBundle("refArbor", "#{messages['error_refArborDoesntExist']}"); or this: statusMessages....

JSF Status bar / connection status information..

Hello folks, I would like to implement a kind of information for my users about the progress status. I have found several components like: Richfaces status or IceFaces onnection Status So, I would like to add something like that to my page especially for ajax requests. What's the easiest way to implement it? I would not like to use on...

JSF 2 - passing parameters accross system events

I have a composite component, where I pass in an arbitrary defined attribute: <x:mycomp x="..."/> x being defined as such in the interface definition of the cc. Inside the implementation of mycomp I have an event listener: <composite:implementation> <f:event type="preRenderComponent" listener="#{mycontroller.init}" /> </composite...

insert text-resource into jsf page

hi, there's a RESTful service which is Producing text/plain and I want to add that content into my JSF page. Is that possible? Is there a tag for that? ...

JSF CRUD application and entities

I'm writing an administration part of the application which is responsible for CRUD operations. I decided to generate the jsf pages from the jpa entities but for some reason I keep getting this error: org.apache.jasper.el.JspELException: /busStop/List.jsp(18,12) '#{busStop.pagingInfo.itemCount == 0}' Error reading 'pagingInfo' on type j...

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...

Suggestionbox performance issue

Hi All, I am facing some performance issue with suggestion box. I have a page with 200 rows each row has 2 suggestion box for text field, the page takes more than 20 seconds to load, <rich:dataTable id="detail_table" width="auto" value="#{testBean.testList}" var="record" headerClass="GrayBackgroundHeader...

JSF 2.0 menu navigation question.

I am new to JSF, I am currently running JSF 2.0 with tomcat and Primefaces. I have created a simple page using the primefaces layoutUnit and primefaces menu. I have a three panel layout with the menu in the left panel, the main page in the center, and some metric / graphing stuff in the right panel. I am having issues understanding how t...

h:selectOneRadio containing images

Hi, I have a h:selectOneRadio tag for displaying a number of radiobuttons: <h:selectOneRadio value="#{myBean.radioButtonSelection}"> <s:selectItems value="#{myBean.getPossibleRadioButtonSelections()}" var="rs" label="#{rs.toString}"/> </h:selectOneRadio> Now, instead of radiobuttons with string values (...

Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property

I am getting following error, when I run the demo JSF application on the console [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTut' did not find a matching property. ...

JSF command button enable/disable based on JSF check box using java script

Hi, I am using RichFaces and I want to enable/disable h:commandButton based on h:selectBooleanCheckbox using Javascript. By default the button should be disabled and check box unchecked. The button should be enabled when the check box is selected and disabled when the check box is deselected. Any help would be greatly appreciated. Th...

JSF rich:scrollableDataTable rowcount on javascript popop

Hi, I use javascript confirmation pop-up for one of the rich faces command button functionalities. On the same page, I also have a rich:scrollableDataTable. Is it possible for me to show the number of data rows in the table on the java script confirmation pop-up? If yes, how can i achieve that? Thanks in advance - Avinash. ...

Howto: Intercept a a4j request using a javax.servlet.Filter?

Does anybody know how to intercept a a4j request using a javax.servlet.Filter? The interception must occur before FacesServlet be called (it's why I'm planing to do it using Filter). I'd like to know wich method will be executed on my backbean, cause I need to do a dynamic control first. Tks! ...

Richfaces not working without old ViewHandler?

In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2, jsf-impl-2.0.2 and jsf-facelets-1.1.15.jar, and in faces-config.xml there is <view-handler> configured like this: <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> </application> I know that in JSF2 ...