I'm utilizing the Open Session in View pattern for my jsf/icesfaces application.
As usual a servlet filter is opening and closing all the hibernate sessions at the beginning and the end of a "web server thread".
My problem now is that I'm using asynchronous tasks for eg. loading big lists of objects from the database. Therefore I'm crea...
Hi all,
I followed the following method of saving an SessionStore object to the ServletContext using a listener. Something like the following:
public class SessionStoreListener implements ServletContextListener {
private static final String SESSION_STORE = "sessionStore";
public void contextInitialized(ServletContextEvent event) {
...
Is it possible to print just the contents of <rich:modalPanel>?
...
The exception i'm getting is :
Caused by: java.lang.NullPointerException
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:267)
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildEventOptions(AjaxRendererUtils.java:251)
at org.ajax4jsf.renderkit.AjaxRendererUtils.buildOnEvent(AjaxRendererUtils.java:220...
Is there a way to submit a form and have the URL include the parameters, that is submit as a GET request.. rather than POST?
form.jsf/?firstName=John&lastName=Doe
I thought would work (instead of the normal , however it doesn't seem to grab the form data.. any ideas?
...
Hi,
I need to implement h:commandlink in my project. I need to change the value "Follow" to "Following" in the commandlink once the user clicks it. How do i do that? Can someone help me with this? Thanks for your time and help in advance.
<h:commandlink id="followdoc" action="Usermanger.followdoctor" value="Follow" />
Usermanager is...
Hello All , now i work with my friend , he is Vietnamese and he want create website with Vietnamese Language, but we have problem with Encode UTF 8
i was write class Filter follow:
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletExc...
In ScrumToys web-application (NetBeans JSF 2.0 demo) the .jsf page is not renderend in internet-explorer (I see the page source as XML).
This works fine in 'proper' browsers, like Chrome and FireFox.
I'm using the ScrumToys demo app provided by NetBeans 6.9.1 (running on GlassFish 3) with absolutely no changes. I'm using Internet-explor...
We currently develop our web apps in JSF 1.1 and looking to move to JSF 2.0 (Primefaces), but we'd also like to reuse CMS functionality and allow the business users to edit content and UI design elements. So rather than roll our own CMS we're looking for a good programmable Java CMS (Content Management System) that uses JSF. Doesn't have...
http://stackoverflow.com/questions/2206911/best-way-for-user-authentication-on-javaee-6-using-jsf-2-0
I tried this solution. But if i put this to my config
<login-config>
<auth-method>FORM</auth-method>
<realm-name>sql</realm-name>
<form-login-config>
<form-login-page>/login.xhtml</form-login-page>
<form-err...
I want to convert the text entered by someone into a textbox into a double(for example), and automatically set up the value of an bean field with that double.
...
Hello,
I've been playing around with the spring web flow hotel booking application and have extended it a bit to try to get a better understanding of how spring web flow and JSF integrate together. The spring documentation isn't that great in this area and it has been my impression that things work until you change them and then there ...
I know what prependId=false does. It set the flag so that the id of the form does not prepend the id of the form child, but why? any particular reason why you do or dont want to prepend id?
...
Simple piece of code about dataTable. CentralFeed is SessionScoped Bean, and PostComment is RequestScoped Bean
<h:form id="table">
<h:dataTable value="#{CentralFeed.profileComments}" var="item">
<h:column>
<h:outputText value="#{item.comment}"/><br/>
<h:inputTextarea value="#{item.newComment}" rows="2...
Hi there...
I'm using netBeans 6.7.1 for mac, and I'm working on a java EE project that
has a web project that uses jsf framework.
The problem comes when I add a new file to the project, the faces-config shows me the file with an absolute path and when I set the navigation, it seems not to work... then erase the absolute path leaving /...
One advantage of the datamodel is that you get the row index in a table. But I find this unnecessary, since you can access the current row element using the var attribute of h:datatable. And I often need to convert to the datamodel to list, since some component libraries are expecting a list. I am thinking of completely abandoning DataMo...
For a couple of reaons we have a project-commons.jar located in the lib directory of our ear.
project.ear
project-web.war
project-ejb.jar
lib
project-commons.jar
Currently if I annotate a class that is placed in project-commons.jar as the
@Name("authenticator")
@Scope(ScopeType.APPLICATION)
SEAM reports a stack trace (be...
Can we have something like following in case of HTML + JSF
<meta name="description" content="#{MyBean.attr}"/>
i.e. can we set the value of "description" meta attribute dynmically?
...
Here is my code. When I click the link Comment, a inputTextarea and commandButton suppose to appear
<h:outputLink id="link" value="javascript:void(0)">
<h:outputText value="Comment"/>
<p:effect type="fade" event="click" for="reply">
<f:param name="mode" value="'show'"/>
</p:effect>...
Can you guys give me opinion on these scenario:
1. data list is large and update quite often
2. data list is small and does not update that often
3. any other interesting case that you guys think a noob like me should know
...