jsf-2.0

JSF 2 composite:actionSource exposing commandButtons in ui:repeat

Hi, In my composite component, I have a ui:repeat that has, among other static things, a command button, like this: <ui:repeat var="article" value="#{cc.attrs.articleList}"strong>Aricle: #{article}</strong> <h:commandButton id="addToFavs" value="Subscribe" binding="..." type="..." > <f:setPropertyActionListener value="#...

JSF and progressive enhancement: is it possible?

Has anybody tried to approach building JSF (or JSF2) apps with progressive enhancement in mind? As some of the key built-in components of JSF can't work without JavaScript enabled on the client-side, my guess is that it should very difficult to do progressive enhancement in JSF and it should require development of numerous components tha...

JSF 2.0 Composite components - ajax render parameter OUTSIDE component definition

consider a simple composite component which takes an action parameter of some sort - a simple link 'prettifier' for example. i want to 'ajaxify' it. <composite:interface> <composite:attribute name="act" method-signature="java.lang.String action()"></composite:attribute> <composite:attribute name="text" required="true"...

NotifyUtil::java.net.SocketException: Connection reset inTomcat

Does anyone have any idea way I get this exception in Tomcat? NotifyUtil::java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read1(BufferedInputStream.java:258) at java.i...

JSF 2.0 Temlating and injection of MB || CDI bean

Hi everyone! Problem: managed bean not injecting by template. Goal: I wan to decelerate logout button in template. Scenario: I am building j2ee 6 application with jsf 2.0 for web part. template file layout/template.xhtml <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr...

Problem with i18n in JSF 2.0 (ukrainian & russian)

Hi! Goal: I want to use jsf`s i18n Scenario: creating resource bundle (utf-8) file info: file -I ./messages.properties ./messages.properties: text/plain; charset=utf-8 using it by faces-config: <application> <locale-config> <default-locale>uk_UA</default-locale> <supported-locale>en_US</supported...

JSF 2 cc: pass attribute into backing bean

I am creating a custom component that is an image viewer for a given product number. I access these files using a modified version of BalusC's ImageServlet: @WebServlet(name="ImageLoader", urlPatterns={"/ImageLoader"}) public class ImageLoader extends HttpServlet { private static final int DEFAULT_BUFFER_SIZE = 10240; // 10KB. ...

Spring Web Flow and JSF2 configuration problem

Hi all, i would like to use Spring Web Flow and JSF 2, but it doesn't work. If I use a h:commandButton the transition is not executed and the page is only refreshed. My configuration is: web.xml: <!-- Initializing JavaServer Faces, *NOT* used at runtime due to Spring Web Flow --> <!-- FacesServlet --> <servlet> <servlet-nam...

Updating a component outside of the <f:ajax> component's context

Is it possible to have the JSF update a component that's placed outside the component's context? Currently the following page is not working: <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="...

JSF link results in plain XHTML file instead of generated JSF page

I have some JSF xhtml pages like below. ROOT | |--index.xhtml | |--register.xhtml | |--<templates> (Directory) | | | |--userForm.xhtml | | | |--banner.xhtml both pages are using the templates from templates directory. My index file is getting the templates well and works fine. I have a link from index.xhtml file to register.x...

JSF2: limiting cc:attribute to a given object type within a List

If I had a managed bean as follows: @ManagedBean @RequestSchoped public class Example { private List<String> stringList; private List<Long> longList; // getters, setters, etc. down here } and had a custom component which accepted a List as an attribute: <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W...

Any simple JSF commandButton samples available?

I've been struggling with trying to get my commandButtons to perform an action (yet oddly, I have no problem pulling data from beans to include in my page). Have even posted up my code elsewhere and had it reviewed by others. So far, no luck. So, I'm thinking perhaps a different tact is in order. Can anyone point me to some very simp...

How do I get annotations working for JSF2 in Netbeans?

I added and have been using the faces-config.xml in my Netbeans 6.9/JSF2.0 project due to annotations not working. Not sure what I'm doing wrong, but when I use annotations, my beans are completely inaccessible. Properties for the project show that it is indeed JSF 2.0 (and not 1.1). ...

How to use Ajax with JSF 2.0?

I want to implement Ajax on my JSF web project. I googled and found that ICEFaces is supporting Ajax with JSF. Yet I dont know the usability of it. Any one has experience Ajax/JSF, please guide me where to move. [EDIT] If any one has experienced on similar, please share the usability as well. the good and bad.. ...

JSF2: Open Session in View with EJBs?

Hi, Does it make sense to talk about the Open Session In View Pattern within JSF2 applications? My app has JSF2 Managed Beans calling Business Service EJBs that do all the db-related stuff (there's a DAO layer but that doesn't matter right now). Having OSIV pattern would mean that the Managed Bean would have to somehow make sure the un...

How to force refresh of datatable via AJAX in JSF 2.0?

I've got datatable, which is pulling information from a database. I've added a button to the form that I want to use to force the table (id of "table") to refresh, however I'm not sure how to do it. What I have now is: <h:commandButton value="Refresh"> <f:ajax render="table"/> </h:commandButton> My goal was to have the table com...

What are better Java web application frameworks (Suggestions please)?

hi friends, I am new to Java Web Application. I am practicing with JSF2. Is it better to use any framework with JSF or just should I move with JSF? If it is better to use Framework, what you experienced guys suggest me? ...

Authentication / Authorization in JSF web application ?

I found there are 2 types of authentication mechanism in JSF. JASS Container managed (please correct if I am wrong) I tried searching for a better tutorial that guide to learn any of those method. Unfortunately I was ended up in many of uncompleted lessons. Can any one provide me a solid tutorial or any guide where I can catch the r...

I am using jsf, hibernate and Spring in my project and now i need to implement JBPM(JBOSS)

hello I am using jsf 2.0, hibernate and Spring in my project and now i need to implement JBPM(JBOSS) and totally i am new to jbpm and using glassfish server so how can i add this stuff... ...

JSF2: Pass objects from one requestscoped bean into another Requestscoped bean?

Hi, In JSF2, how can i pass objects from one requestscoped bean to another requestscoped bean? I really don't want to make them sessionscoped. Maybe can i inject one bean in the other? Thank you. ...