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. ...
How can I forward to another page inside the constructor of a backing bean? I don't want to use redirect. ...
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...
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...
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...
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? ...
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...
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> ...
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...
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_...
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 ...
I would like to remove all HTML comments from my facelets before delivering to end users. Does any standard approach exist? ...
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...
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...
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 ...
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...
Hi! How can I detect the mouse position on a "onclick" event in RichFaces? Thanks! ...
<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...
What would be the best way to access Manifest properties (from /META-INF/Manifest.mf) in a pure JSF2.0 application? ...
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...
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...