jsf

Inject a EJB into a JSF converter with JEE6

I have a stateless EJB that acceses my database. I need this bean in a JSF 2 converter to retreive an entity object from the String value parameter. I'm using JEE6 with Glassfish V3. @EJB annotation does not work and gets a NPE, because it's in the faces context and it has not access to the EJB context. My question is: Is it still pos...

JSF chars get double UTF-8 encoded

Hi there, last week I asked a question but JSF and charset encoding relevant SO question Now I included this JSF in my JBoss Portal env. with the common jboss portlet bridge. When I submit my form something weird happens: The portal is UTF-8 so my form inputs are UTF-8 too but after the submit the chars are encoded as UTF-8 again whi...

Problem with richfaces ajax datatable + buttons

Hello i have another problem with RichFaces this is my application and it shows how i want it to work : http://www.screencast.com/users/Schyzotrop/folders/Jing/media/a299dc1e-7a10-440e-8c39-96b1ec6e85a4 this is video of some glitch that i can't solve http://screencast.com/t/MDFiMGMzY the problem is that when i am trying to press any butt...

Mix HTML and JSF in a JSF subview

Hi. The problem I have today is about dealing with HTML in an included JSP, with JSF. So here's the situation : I use JSF 1.2 by IBM on RAD with Websphere v6.1 I have a custom component (from the company layer) to use tabs. And in order to have a cleaner code, I just want to separate the JSF code of each tab in a separated JSP, this way,...

jQuery cluetip: Manipulate content after rendering

Hi, I may be stating this incorrectly, but is there any way to manipulate (using JavaScript) the content in an cluetip once the content has been (dynamically) loaded to the external .jsp? I have a list of items being displayed, and I want to bold some of them. I cannot add ID's or classes individually to any of these items in the list, ...

jsp, servlets, faces and beans?

i´ve read a little about java's structure and could someone tell me if my view of all these components are correct: JSP corresponds a View Servlet corresponds a Controller Bean corresponds a Model Faces correspond layouts to render display is this roughly correct? ...

rich:datatable rowspan issue

Hi all, I need to create a rich:dataTable (or even extended) with the following features: I have a class Company having a collection of Product objects. I want to show the following table: I still have not figured out how to do this with a subtable (in all the examples I found the subTable has the exact same columns as the master ta...

JSF ReRender support with selectBooleanCheckbox

I have a JSF page on which I want to have a checkbox that, when clicked, will add/remove certain other form fields from the page. Here is the (simplified) code I currently have for the checkbox: <h:selectBooleanCheckbox title="showComponentToReRender" value="#{backingBean.showComponentToReRender}"> <a4j:support event="onsubmit" reRe...

JSF trimming white spaces

HI, I have an input field in which I want to trim any leading/trailing whitespaces. We are using JSF and binding the input field to a backing bean in the jsp using: <h:inputText id="inputSN" value="#{regBean.inputSN}" maxlength="10"/> My question is that besides validation can this be done in the jsp? I know we can also do this using...

@WebServiceRef in managed bean don't work

Hi, I have created simple JSF page and managed bean for that page. I'm using Eclipse 3.5 SR1 ("for Java EE Developers" version) and Glassfish v2.1. Here is my page: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <html> <head> <title>Simple page</title...

How to Load the page First and read database

Hi, HTML form has some text boxes and a drop down box. Drop down has huge values, and takes lot of time to fetch from database. So I want to load the page first and while the user fills the form (text boxes) I want to load the drop down box (without his knowledge :-) ). But without any event trigger, how do I make call to database ag...

Refactoring JSP pages

hi i want to take out the common content in the 2 FACES JSPS and put in one jsp and include two tabs in that FACESJSP and those two tabs will show the differet content any help with sample code pls? ...

Drawing Graphs (charts) in JSF

Hi, How can I draw dynamic graphs in web pages in JSF ? People have suggested Google Chart Api I want something that can work offline ...

How to show collection elements as items in selectManyListbox?

I have a bean: public ProjectServiceImpl { public List<Project> getAllProjects () { ... } } I want to list all these projects as items in <h:selectManyListbox>. When user selects one or more items and press submit button, selected items should be converted into projects. I'm confused a little about how to list items and how c...

rich:dataTable sorting issue (ajax) + rich:datascroller 'next' control does not go passed page 2

Hello, I am using Richfaces 3.3.0, Facelelts 1.1.14 and Seam 2.1.1. I have an issue my rich:dataTable component and sorting. I noticed a pattern... the very first click on the table on a column header has no effect then all subsequent clicks on any header actually performs previously requested order. I tried many different things, but...

How to pass and get URL parameters in IBM Webpshere Portal 6.1 JSF Portlets?

Hi Guys, I have a simple HTML page which contains a form with GET method, whose action is a portal page containing a JSF portlet.I need to access the parametrs passed in to the portal page in my portlet? How can I achieve this? I have tried to access the parameter "code" on the view page using following code but the value comes up as n...

How to reload ResourceBundles that are used by JSF?

I want to reload the ResourceBundles used by JSF programmatically on a button click. The ResourceBundles in the classpath (i.e. WEB-INF/classes) are modified by an external application and the modification event is known to me. ...

Why form submission doesn't work?

I have next form: <h:form> <h:selectManyListbox value="#{reports.selectedCategories}" converter="#{categoryConverter}"> <f:selectItems value="#{reports.categories}"/> </h:selectManyListbox> <h:commandButton value="Submit" action="#{reports.action}" /> </h:form> I use custom converter to t...

JSF Managed Bean auto-create?

Is it possible to have a JSF managed bean be automatically created? For example I have several session scoped beans. Sometimes it becomes necessary to access these instances in code (rather than just in JSF) this is done by: PageBean pageBean = (PageBean) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("pages...

Seam internationalization redirection

Good evening all. Is there a standard way to do the redirection/rewrite of a specific url to a different one? Imagine an user accessing the following view: http://www.something.com/us/download.xhtml?id=2 I want to set the Locale from the previous view and redirecting to http://www.something.com/download.xhtml?id=2 <page view-id="/us/...