jsf

How to forward to another page in a managef bean constructor?

How can I forward to another page inside the constructor of a backing bean? I don't want to use redirect. ...

Dynamic chart using Fiji (Exadel) library & jsf....

My requirement is to display tables from database in Graph format and I am using fiji for the same. And on doing so I am encountering and exception, My jsp page is as follows. <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:fiji="h...

Tomahawk tree2 component spacing

Is there any way to change left-margins for the nodes? Tree2 renders those margins with columns such as: <td height="100%" width="19" style=""><img height="18" border="0" width="19" src="/vwwinner/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12806587/tree2.HtmlTreeRenderer/images/spacer.gif...

problem with primefaces linechart

hi all i have two problems with primefaces tag this is my backbean Code: public class LiveChartBean { private Integer primaryKey; public Integer getPrimaryKey() { return primaryKey; } public void setPrimaryKey(Integer primaryKey) { this.primaryKey = primaryKey; } public List<ChartData> get...

rich:dataList pagination?

I know you can use a <rich:datascroller> when you want pagination on a <rich:dataTable>. But, what about a <rich:dataList> or <rich:dataOrderedList>? Is there any mechanism for pagination on these components? Or will I have to code in the logic by hand? ...

How to dynamically pass arguments to messages in the resource bundle

I would like to retrieve the message information from the i18n bundle (messages.properties in seam), but I am not sure how to pass the declare / pass the jobCount variable dynamically in my xhtml The existing code looks like this. <s:decorate template="/layout/panel-name.xhtml"> <ui:define name="label">User has been assigned #{jobC...

Opening a Rich Modal Panel on Button Click

I m trying to open a rich modal panel with populated data on a button click tried <h:commandButton id="btn_search" value="#{text['button.add']}" action="#{cartBean.search}" oncomplete="#{rich:component('dlg_results')}.show()"> </h:commandButton> ...

jsf context creation

Hi folks, I'm here facing a problem with a Java web project. The project I'm working on has been made with standard jsp mixed up with jsf pages. The main page of the application, called main.jsp is a standard jsp page that needs to access a managed bean with session scope created within a servlet filter used to check the authentication o...

Preventing multiple getter invoke in a session managed bean ?

i'm using jsf 2.0.2 + richfaces 3.3.3. what can i do so my getter won't be invoked multiple time ?? i have this: @ManagedBean(name = "mybean") @SessionScoped public class mybean implements Serializable { public MyClass getMyClass() { if (FacesContext.getCurrentInstance().getRenderResponse()) { myClass = get_...

where do I place XHTML files to make them visible in GlassFish web container?

This is the structure of my project (exactly these five files): /p1 pom.xml /src /main /java /webapp a.html b.xhtml /WEB-INF faces-config.xml web.xml I'm deploying this WAR to GlassFish and I can successfully access this URL: http://localhost:8080/p1/a.html. When I'm trying to ...

How can I remove HTML comments in my Facelets?

I would like to remove all HTML comments from my facelets before delivering to end users. Does any standard approach exist? ...

Populating a page from Data table in modal panel

I'm trying to get some data from a datatable in rich:modal panel The whole flow is as follows When clicking on search button on main page, a modal panel pops up with appropriate data & check box Till this point the application is working fine After clicking on ok button, selected data should be populated into main page. This is wher...

jsf sevlet-mapping for *.jsp

Is there a way I can tell my application to let every single page (let's say .jsp pages) to go under faces context? In my web.xml I easly can do a servlet-mapping similar to: <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Faces...

JSF2 EL: Access ResourceBundle keys which contain dots from within Javascript?

My JSF2 application is fully internationalized, using a ResourceBundle. Now i have a lot of Javascript-code, which does some alerts and stuff. There i would like to access my ResourceBundle. I could successfully access simple ResourceBundle keys like this: alert("#{bundle.message_email_sent}"); Unfortunately, my convention for keys ...

JBoss Seam Design Patterns?

I've really taken a liking to the JBoss Seam application framework. Since the notion of injection/outjection and tight integration between JSF/EJBs/JPA is relatively scarce among Java application frameworks, I was looking for some good resources for design patterns and best practices for using this framework. I've poured over the examp...

richfaces how to detect mouse position

Hi! How can I detect the mouse position on a "onclick" event in RichFaces? Thanks! ...

Unable to select a particular radio button choice by clicking on the choice text

<s:decorate template="/layout/display-text.xhtml"> <h:selectOneRadio layout="pageDirection" value="#{_userHome.pref}"> <f:selectItems value="#{_userHome.getPreferences()}" /> </h:selectOneRadio> </s:decorate> We are able to select the user p...

Display Manifest properties in JSF2

What would be the best way to access Manifest properties (from /META-INF/Manifest.mf) in a pure JSF2.0 application? ...

Eclipse does not deploy jars into WEB-INF/lib directory

To integrate JSF with Spring I have added these lines in web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listen...

How do I update row style on AJAX update?

I've got a datatable with row styling applied via rowClasses on the datatable. The rows contain AJAX buttons. When a button is clicked, it does some databasy stuff, updates it's text, and changes the datasource used by the datatable. The datatable then refreshes (as it's one of the ajax render options). The text of the buttons update...