jsf

<rich:listShuttle> -- Preventing duplicates?

I have a data model in which I have an Item that can belong to one or more Categories. I'm trying to display a <rich:listShuttle /> allowing the user to select which Categories the Item should belong to. I'm using RichFaces and Seam 2.2.x, and haven't run into any problems in setting the values initially. My source is a list of the de...

Unable to get my custom JSF Login Portlet working

Hi, I am using webSphere portal 6.1. I wrote my own custom login portlet and placed in the Login page from the portal server. The page loads fine the problem is when I try to login. It takes 2 attempts to login. The first time when I try to login, the page refreshes (I don’t see any exception on the consol). If I enter the user id/passwo...

JSF 2.0 request.getParameter return a string with wrong encoding

Hi, I'm writing an application in JSF 2.0 which supports many languages, among them ones with special characters. I use String value = request.getParameter("name") and POST method, the page encoding is set to UTF-8 and the app is deployed on apache tomcat 6 which has the connector set correctly to utf-8 in a server.xml file: <Connector...

clearing session data in JSF

Let's say I have a transactional application that consists of four pages: An origination page which uses POST parameters to initialize the application A transaction page where data additional data is captured A review page where data is reviewed A confirmation page where submitted data is confirmed Assume request parameters via POST ...

Ok to wrap JSF components generated html with own divs using jQuery after page load?

Using RichFaces 3.3.3, JSF 1.2 and Facelets. For some presentation purposes I need to wrap the contents of some divs with other divs to be able to style them a certain way. I am using jQUery to do this as its cleaner when writing HTML and it can be controlled in one location, otherwise I have to hardcode the extra divs every place I wa...

page does not refresh after an action is called

I have commandLink with an actionListener that calls a method to change the value of text. The same commandLink has an action that reloads the page. When I click the commandLink, the actionListener is called. But the action only is completed --showing the updated value of text-- when I refresh the browser. Why isn't the outputText being ...

RichFaces application, should I use rich:dataTable or jQGrid, pros cons?

Following on from here, I need to have an inline editable grid in my web application using RichFaces 3.3.3, JSF 1.2 and Facelets. My options are the rich:dataTable RichFaces control, or the jQuery plugin, jQGrid I have tried both and found the following so far: jQGrid works really well, but I am not sure what will happen if I try to ...

tomahawk jar not getting loaded weblogic portal 10.3

Hi, All I have made a jsf 1.1 portlet in weblogic 10.3, but in one scenario I need tomahawk library help. I just dropped the jar file and supporting ones in lib folder in WEB-INF in my portal application, but when I hit the url it gives me error of NoClassdef..... exception for classes in tomahawk jar and jsp compilation fails. I am ne...

Building Cooperative Portlets

Hi, I want to create a cooperative portlet(inter - portlet communication) using RAD v7.5 on portal 6.1 server. Is there any sample code or example given for a head start? ...

Can i use WebSphere 6.1 for JSFunit?

I am doing work on jsfunit, and i am using WebSphere6.1 application server so can anyone give me answer that is it compatible for JSFunit or i need to do some changes in my server configuration? if possible send me the example? Thanks Vinod ...

Switching from ASP.NET MVC to Java

Last 8 months I have been working in ASP.NET MVC framework but now I have to switch to Java. So, I wonder what is Java's framework that is the most similar to ASP.NET MVC. I would like to stick to MVC pattern but most of my colleagues work in JSF, which doesn't seem like (real) MVC. Which one would you suggest? ...

glassfish autodeploy gives 404 with simple app

Hello I've got a vanilla glassfish v3 install, and dropped my .war in the C:\glassfishv3\glassfish\domains\domain1\autodeploy folder of my Windows PC. The war contains a small web app built with java, JSF, richfaces. The glassfish server was already started. The browser comes back with: The requested resource () is not available. ...

JSF Page Navigation: If A.jsf navigate to B.jsf via hyperlink, why the URL display A.jsf instead of B.jsf

If A.jsf have a commandLink that will navigation to B.jsf, then I would think when I am at page B.jsf, I see http:domain/host/project/B.jsf as the URL. However, I see http:domain/host/project/A.jsf on my address bar. I am always ONE behind when displaying the URL in navigation control. Is there away to fix this? My navigation control is ...

Database design: bigger table vs query the entity for every row in dataTable

I have a table of NewsFeed. NewsFeed + id + fromUserId + targetId + type so the news is like this: Tom Wakefield commented on Peter Smith's profile. So either I add two more fields into my NewsFeed call fromUserName and targetUserName OR For every row I display in my dataTable I would query from the Entity. <p:dataTable value="#{my...

can JSF Still data user login?

Hello all i have one problem between 2 class of JSF Manage bean. i have 2 class JSF Manage bean one class use for login, one use for user add/edit/delete user table and edit his information when his login. my login class import com.DAO.UserBean; import com.entity.IUser; import java.io.Serializable; import javax.ejb.EJB; import javax.fa...

fixed panels with scrollable content RICHFACES

hello all, Please tell me how can I create a Richfaces page where I want to keep the collapsible panels fixed and below that I have another form. As the form is very large. So I want to put a scroller. Do I need to use frameset or is there any support for that in Richfaces ...

<h:selectBooleanCheckbox doesnt retrive values on Server

Hi, I am using JSF along with RichFaces and Spring Webflow. I am trying to select rows from the data table using and perform some operation on the server side on the selected row. How ever I am facing problem retrieving the data from the checkbox. <rich:column id="compCheckBox" styleClass="center-aligned-text"> ...

Passing a Enum value as a parameter from JSF

I am trying to migrate my existing code to using Enum and I run into some problems due to my lack experience with Enum. First of all here is my structures. In my EJB, alongs with Entity, I have a enum class (not sure if it even a class). public enum Type { PROFILE_COMMENT, GROUP_COMMENT } At my managed bean myBean.java, I hav...

How to access managed bean and session bean from Servlet

Here is how my commandLink work <p:dataTable value="#{myBean.users}" var="item"> <p:column> <h:commandLink value="#{item.name}" action="#{myBean.setSelectedUser(item)}" /> </p:column> </p:dataTable> then in myBean.java public String setSelectedUser(User user){ this.selectedUser = user; return "Pro...

how to refresh the whole tabpanel in jsf

Hi all, I am using richfaces and jsf. I am using to create the tabs. i have taken 4 tabs. In 1st tab , one refresh button is available.If I click that button , the whole tabpanel is refreshed.whatever the data is kept in tab2,tab3 and tab4 will be clear. plz help me ...