jsf

How to remove default theme from Java Faces application?

I've never used Java before (C# is my domain), but now I have a task that I must apply a specific style to for a tiny Java webpage. The style is from another ASP.NET application that we're rolling out and that I've helped to develop. Seems that this style is on the way to become our new company web-style. :P The webpage is really tiny -...

How to invalidate seam POJO session

Hi I am playing around with a little seam app that has session scope. The last method is sending as mail. How can I invalidate my session after having the mail sent? Right now, when the user calls the initial url again, the session still lives and all of the previously filled in form data is still there. I have found examples how to do...

JSF session scope beans with Tabbed browsing

Dear all, We have the following problem... Application's environment: JSF, Richfaces, a4J Consider having the following scenario: The user logs into the system The user navigates to a new page which consists of an a4j form containing a4j components, the user fills into the form but doesn't submit. The user opens a new Tab and opens...

How to reference 'this' from a javascript call in a JSF component?

<h:commandLink id="#{id}" value="#{value}" action="#{actionBean.getAction}" onclick="alert(this);"/> In the previous simplified example, the 'this' keyword used in the Javascript function won't reference the generated A HREF element, but will reference to the global window, because JSF generates the following (simplified) code: <a...

How to avoid the form being submitted after displaying alert?

If the user name and password does not match it displays a alert but if i click ok to the alert the form is logged in.Can any one tell me how to avoid it?Thanks. <html> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <h:form id="loginForm"> <h1><cen...

How to make the output text attribute value as a hyperlink?

I should display the bookmarks as hyperlink.so on clicking the bookmark will take me to corresponding web page.Can any one tell me how should i achieve my goal?Thanks. <html> <f:view> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> ...

Adding a row to data table using ArrayDataModel in jsf?

How can i add a row to datatable and add new data to the table using ArrayDataModel? ...

ADF Custom Components

Where is the best place to find custom compnonents? Ideally a repository, as opposed to finding a few here and there. We are currently about to re-design our look and feel UI for about 200 forms and we were hoping to find a lot of custom components... We were told they were everywhere by the pre-sales architect but even a simple google s...

Facelets: how to pass a ui:insert value as an html attribute?

I'm trying to accomplish a small tweak in a Facelets/JSF environment. I know next to nothing how all of it fits together. I have a value defined on various pages as "title" <ui:define name="title">PageUID_123</ui:define> On another page I am referencing this with: <ui:insert name="title"/> I can wrap html tags around the insert ju...

What's the best online reference for JSF tags?

What's the best online reference for JSF tags? Nothing much turns up in Google for this technology, so I find it really hard to know what tag to use and when. Mostly I find examples of people asking "how do I do XXX" - I want the document the people answering have read! I just need a simple list of tags for each of the popular JSF tag ...

What are the most useful obscure JSF tag libraries?

What are the most useful JSF tag libraries? Initially, I'd like one recommendation per answer, if you also use that library then just vote up the previous answer. My goal is to get to know what's out there apart from the most obvious ones: xmlns:h = http://java.sun.com/jsf/html xmlns:f = http://java.sun.com/jsf/core xmlns:ui = http...

An efficient way to compute a UIComponent clientID?

Actually in my JSF application I have this code to compute a component clientId from its id: public static String getComponentClientId(String id) { try { FacesContext fctx = FacesContext.getCurrentInstance(); UIComponent found = getComponentWithId(fctx.getViewRoot(), id); if (found!=null) return found.getClientId(fct...

Get Request and Session Parameters and Attributes from JSF pages

Hi there, I'm using JSF with facelets and I need to get the request and session parameters inside the JSF page. In JSP pages i got this parameter like that : "${requestScope.paramName}" or "${sessionScope.paramName}". But now after using JSF there are only beans and you can't get any value except bean attributes. NOTE: the session attri...

JSF IceFaces basic problem with redisplaying input value

I don't know what I'm doing wrong. I'm using IceFaces and I have simple managed bean: public class TestingController { private String name; public String submit() { setName("newName"); return null; } public void setName(String name) { this.name = name; } public String getName() { ...

JSF: Avoiding session scoped variable conflicts when launching 2 instances of an app

I have a JSF application that makes much use of session-scoped variables. A new requirement is that the user should be able to open N numbers of the application. However, since much of the state is session-scoped, when the client opens a 2nd instance of the app, view data from the first app bleeds into the newly opened app. At this poi...

Is G4jsf still being developed/supported?

I've been evaluating different Java Web Application UI Frameworks. I have about 8 months of intensive JSF experience that I'd like to continue using. JSF also provides me the spider-readable markup as well as the ability to create very simple forms without touching much Java code. I also will have need for thick-client side interfaces t...

ICEfaces: How to disable send-receive-updates mechanism for some forms

I am quite new to ICEfaces but already have experience with JSF/Facelets and the Java EE in general. Currently, I am not using to much of ICEfaces except some utility tags like outputStyle and outputDeclaration, but even this is really nice to have. Even though I plan on using some AJAX functionality later, I have some h:forms (or ice:...

Easy way to get started with JSF?

Does anyone know of a good way to get started with JSF for a servlets/JSP person? I'm interested but not sure where to start! Thanks, ...

Generating a Faces Context manually

I have two systems I'm trying to integrate. One is built on raw servlets, the new one is build on JSF with IceFaces. I'm trying to facilitate cross-system sign on. The idea is that I have a button in the old system that POSTs the appropriate information to the new site and logs them on. Well, ideally, I'd like to use just a regular old...

How to output a string attribute on an object that may be be null

As part of a dataTable in a seam JSF page, one column requires the output of a name: <h:outputText value="#{listing.staffMember.name}"/> The problem is that "staffMember" may be null on some listings, so I get the error: javax.el.ELException: /xxxxx.xhtml @42,67 value="#{listing.staffMember.name}": Error reading 'name' on type xxxx.m...