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="#...
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...
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"...
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...
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...
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...
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.
...
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...
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">
<html xmlns="...
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...
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...
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...
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).
...
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..
...
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...
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...
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?
...
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...
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...
...
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.
...