jsf

JSF h:column tag fix width

Hi, Can someone show me how to fix the width of a column in a datatable with JSF? My code currently reads: <h:column> <f:facet name="header"> <h:outputText value="Data Field 1" /> </f:facet> <h:commandLink id="dataLink" action="#{pc_SearchResultsFragment.setField1}"> <h:outputText value="#{(qi.data1 != null...

Difference between selectitem and selectitems tags

What is the difference between the selectitem and selectitems tags in jsf? ...

ui:calendar tag rendering issue

hi I'm new to this JSF world, please bear with me if I'm asking some silly thing i'm using UI tags for my application and I have a scenario that I need to generate a calendar control to make the user to select the date I followed the ui tags documentation and wrote the code like this: <table width="100%"> <tr> <td> ...

Page not rendering the values accordingly

hi i had a situation in which i need to project the data on clicking the link for this on click of link i`m passing the values as a query string to the pop up and setting that values to the fields in the pop up. Here the problem is i'm able to get the correct data on the first click on the page and after that when i clicked on another...

closing browser from backing bean

hi i had i situation in which i need to open a pop up on clicking a link and depending on the action performed in the pop up something like close etc i need to close that browser and should navigate to the pop up caller how can i do that Note :: i need to close the browser from MBean other than using window.close its okey if there is...

JSF RichFaces and a dual slider

I see in richfaces that there is a single slider, wondering if anyone has created a dual slider like in Scriptaculous for it. Is there any concerns in mixing JSF, Richfaces and Scriptaculous in an application? ...

DataTable containing inputText: is it possible with JSF Custom Component

Hi all, i'm new to JSF and for the application i'm woriking on i've to do a multiple field input form. In few words the user should have an inputText when he inputs his data and an "add" button which add a new input text in order to input another data. When the user is done, he pushes another submit button. I looked for something alread...

Multiple rows per record in JSF?

having a myfaces datatable, is is possible to have 2 rows for each record? my simple one-row table looks like the following: <h:dataTable id="somelist" value="#{MyBean.somelist}" var="item"> <h:column> <f:facet name="header"> <h:outputText value="ID"/> </f:facet> <h:outputText value="#{item.id}"/>...

JSF Memory Usage Issue when using using session beans

I am working on an application that has a navigation tree which is a session bean. Every time I invoke the page that contain this bean, my memory usage will increase. However, after few hours of inactivity, the memory still isn't freed. Are there any ideas why this happens, or workarounds? ...

[JSF] Best way to make an expandable/collapsible subTable with rich:dataTable

I've recently ported an application from JSF 1.1 to JSF 1.2. In the process we removed tomahawk and decided to use rich instead. Now I need a way to make an expandable/collapsible detailViev for each row in the table. The only thing I can think of is something along these lines (adapted from documentation at docs.jboss.com): <rich:da...

JSF: Reset value on failed validation

Hi, I want to to achieve the following: A page should contain two inputfields and a result field that contains a server calculated result. Each of the input fields shall immidiently be validate using a4j. The result field shall on any change be updated. Here is what I've got so far: .. <h:inputText id="first" value="#{bean.first}"> ...

Does the JSF convertNumber with currency format round or truncate additional decimal places?

Here is an example: <h:outputText value="#{myBean.myMoney}"> <f:convertNumber type="currency" currencySymbol="$" /> </h:outputText> Given that I have $1.006, will this output $1.00 or $1.01? Doesn't say here: http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/f/convertNumber.html ...

JSF with Struts

Has someone tried to integrate extended JSF-Implementations (like Icefaces or CaptainCasa Enterprise Client) with Struts (Classic), maybe with the help of the bridge Struts-Faces? Because my experience is that only the standard components are rendered without problems. Please tell me yours! ...

Javascript form submission to activate Spring Web Flow transitions with JSF integration

Hello guys, I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my flows does have a page that must trigger a form submit at certain events. For each different action, a different view must be presented. So, I'm trying to activate the following javascript code to perform the submission: function myFormSubmit(...

Generating pop up in JSF

Hi folks, I`m new to JSF world please help me out in generating a pop up window in the page. Here is my requirement I will be having a list of links in my master page(parent) on click of each link I need to show a pop up which contains some details, which I need to get from DB in the pop up mbean. I will have few buttons in my pop up a...

JSF in Enterprise Applications

Is JSF being used in the enterprise, or at least growing in use? ...

avoid javax.servlet.ServletException

I am getting a javax.servlet.servletException while executing the following code.... "<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> "<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> "<%@ taglib uri="http://jakarta.apache.org/tiles" prefix="tiles"%> tiles:importAttribute scope="request" /> h:panelGrid columns="...

prevent rich:tree from scrolling if not needed

Hello to all, I have a problem with JBoss Richfaces tree: Whenever I select a tree node (programmatically or by user click), the tree is re-rendered and (if needed) the tree node is scrolled into the visible area of the tree. So far - so good, but: the selected node is automatically scrolled at the very bottom of the tree view area, al...

Pom Dependency

Which dependency should be added in pom file to import org.apache.tiles.controller? ...

id attribute of subview tag

I am learning jsf. I get class cast exception in java.lang.String when I use the following code: <f:facet name="header"> <f:subview id="header"> <tiles:insert attribute="header" flush="false"/> </f:subview> </f:facet> If I replace the subview id with another name other than header the code runs successfully. Eg <f:facet name=...