In my project, I do duplicate validation at the presentation layer as well as the persistence layer with the hope to increase security. So my question is: can standard JSF validation prevent code injections.
<h:inputText id="name" value="#{bean.customer.name}" required="true" requiredMessage="Validation Error: Value is required." title=...
I am developing a Java EE based web application. We have a very limited time to come up with a alpha version and trying to decide on a web framework to use. It has to be something easy to learn but powerful. Standard JSP/Servlet is not an option here due to the time it takes for the development. Appreciate if anyone could advice. Current...
I programmed an application with JSF and some other fraeworks. Then I destroyed my metadata with maven and then I created a new project and imported all my classes and config files into the new project. So that I have clean metadata. The Project can be built without problems now. But when I want to start it onto tomcat I get the followin...
I have richfaces application. In the page, there is jQuery function defined:
<rich:jQuery timing="onJScall" name="updateUrlHash" selector="#conversationId"
query="alert('in jquery call');" />
Then I have some a4j:commandLink, which should call the function on completing ajax request.
<a4j:commandLink value="test" oncomplete="upd...
i will develop a web application to view and analyze log files from both remote machines and locally and planning to use java. At first glance it seems like application must work with big data sets effectively. For example to list a log file on browser i should implement a paginated list working with ajax (server will give data according...
Hi, I'm planing to build a software in client-server-design. Technology should be Java.
Server should have a communication layer for web-services (e.g. RESTful Jersey), RMI, JSF.
Clients can be: Fatclients in Swing or Browser clients in JSF.
In my focus are JBoss Netty for the server, Jersey looks much more simple but Netty would have...
What all phases of the JSF Life cycle should get called on page refresh
...
Can any one list out the tips to tune JSF WebApp @ its best.
...
Hi,
I have written an application that connects to a SSL web service (including client certificate) through jaxws. For this to work I have a wstrust.jks that contains trusted root certificate for ws, and client.p12 that is the client certificate to use when connecting to ws. I have then created a custom SSLSocketFactory to be able to us...
Hi all,
I am mixing jsf,richfaces and spring together (faces backing beans = spring beans) and I have a jsp page with a table. For some strange reason tag
<rich:dataTable value="#{inputBean.table}" var="tableRow">
calls inputBean.getTable() method and construct output table with the same amount table rows which table(List) has -> #{i...
My ice:dataTable looks like below:-
<ice:dataTable id="someTbl" var="someVar" value="#{someBean.someList}" >
<ice:column>
<f:facet name="header"> <ice:outputText value="#{msgs.tblCol1}"> </f:facet>
<ice:outputText value="#{someVar.name}"/>
</ice:column>
<ice:column>
<f:facet name="header"> <ice:outputT...
Hello all.
I need to know what's the best method for accessing a JSF managedBean (which is defined having application scope) from a servlet.
Currently I have something like this in my servlet:
MyApplicationScopeBean bean = null;
try {
FacesContext fContext = FacesUtil.getFacesContext(req, resp);
ServletContext sc = (ServletCon...
Hi All,
I want to invoke backing bean method from javascript function in JSF. Please could you guide me how to achive this.
Regards,
Ravi Krish
...
I am new to JSF and JasperReports. Can anyone suggest a sample webapplication for JSF with JasperReports which doesn't use a database connection?
...
Hi, I'm a beginner to JSF, and I can't seem to get this right. I'm trying to take a user input in a form and insert it into a database when the users clicks submit. So what I have at at front end is just a form and a submit button enclosed in form tags:
<h:form>
<h:panelGrid columns="2" border="1">
<h:outputLabel val...
With a custom component how can one make it take an MethodExpression as input parameter.
The component XML is set up with:
<property elonly="true">
<name>customListener</name>
<classname>javax.el.MethodExpression</classname>
</property>
And when I try to add an listener to the custom component with:
... cust...
I am creating input boxes dynamically to capture inputs for a certain word (e.g. H E L L O for 'hello'). I want to set focus to the next input box after typing a single character in every input box. How should I do this?
<ui:repeat value="#{alphabets}" var="alphabet">
<h:inputText value="#{alphabet.value}"/>
</ui:repeat>
...
I am getting the error below when click on any button on my page with is inside a portlet. Why is this happening?
[8/27/10 17:45:08:847 IST] 00000051 Servlet E com.ibm.wps.engine.Servlet handleException EJPEJ0069E: URL parsing problem, URL=http://localhost.us.deloitte.com:10040/wps/myportal/!ut/p/c5/fY3JCoMwFEU_6T1sNOlSo6gQjWOr2Yh...
I am using a JSF page in a portal environment. If I use a valueChangeListener, the method is not called in the backing bean unless I use onclick="submit()". This submits my page which I don't want. Same is the case with actionListner.
Also, if I use ajaxRefreshSubmit, my whole page is submitted rather than submitting the specified part ...
Hi,
I want to create custom component which adds new child to page "head" facet.
This custom component is based on h:selectOneMenu. When used on jsf page, user can simply change the current theme. What I need this component to do is to add stylesheet child to head facet.
My component has backing java. I tried to modify "head" in encod...