I use the following code to redirect to my home page on login... now i want to go a step further and add a logic where it redirects to different page based on user type.
for eg: if a user type is employee then i should redirect to employeehome.xhtml and so on ... is this possible ?
<page xmlns="http://jboss.com/products/seam/pages"
...
This must be simple. I am trying to pass sub-element into a JSF component. I have my component declared as:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http...
In (JSF2 + jQuery) or in GWT:
What would be the best way to realize a multi-page form wizard with explicitly specified form controller "rules" running on the client-side?
The goal is:
form with 3 pages, each containing 'prev'/'next' buttons and finally 1 'submit' button.
all form items have unique ids for addressing/accessing them.
f...
Hello,
I try to make draggable components and to do this I am based on this example:
http://livedemo.exadel.com/richfaces-demo/richfaces/dragSupport.jsf
and i started with this example but the component does not give any indication that is draggable:
<!---------------- Indicator -------->
<rich:dragIndicator id="indicator" />
...
Hi!
I am looking for a way to inject values from the fragment (#) of a URL into bean(JSF), in the same way query-parameter values are injected. I am using Ben Alman's Bookmarkable jQuery plugin (http://benalman.com/projects/jquery-bbq-plugin/) to create the URL fragments. I was hoping that Custom regex patterns from prettyFaces could be...
how to use FacesContext in JSF? please give me one whole example ? and some explantion when and at what condition we need to use this?
...
I have small problem with view datas in h:dataTable item. I have native query which is working properly in database and in java:
SELECT SUM(price_list.first_class_price), SUM(price_list.second_class_price)
FROM price_list, connections
WHERE connections.id = price_list.id_connect
GROUP BY connections.source;
The method in EJB retur...
I have a properties file for localization:
foo=Bar
title=Widget Application
This is tied in as a resource-bundle in the faces-config:
<resource-bundle>
<base-name>com.example.messages.messages</base-name>
<var>msgs</var>
</resource-bundle>
I can access this just fine in the facelets view using EL:
<title>#{msgs.title}<...
Hi, can I validate two interdependent fields in with one validator?
<h:form>
<h:inputText value="#{logRegBean.person.name}" >
<f:validator validatorId="loginCorrectValidator" />
</h:inputText>
<h:inputSecret value="#{logRegBean.person.password}" />
<h:commandButton act...
I need to do very simple thing - pass current URL from JSF (2.0) page to the managed bean. This is needed to get URL of the login form which will redirect user back to the current page after login. (I use GAE and the bean is the wrapping around its user service, if it does matter). Any obvious way I tried doesn't work
<c:set /> - doesn't...
I am running a webapp on a glassfish v3 server. I've just added richfaces to my application, but I get an error when i try running my project:
INFO: Initializing Mojarra 2.0.2 (FCS b10) for context '/WMC'
INFO: Unsanitized stacktrace from failed start...
java.lang.RuntimeException: WEB9033: Unable to load class with name [org.ajax4jsf.t...
I'm very new to JSF and i'm looking for a pure configuration of JSF 2.0 with RichFaces 3.3.3.Final. The documentation on JBoss website is for JSF 1.2. I also find this jboss article but the sample application has a lot of configurations.
If you have successfully made RichFaces and JSF 2 work, please share you config.
Thank you.
...
Hi,
I am using eclipse to create my jsf project.
I created my own components, and I don't want the other programmers to be able to use jsf regular components like h:inputtext etc.
How can I do it in eclipse, that if the user adds specific tags like h:inputtext he will see errors in the page and also when trying to run it?
...
I have a composite component:
...
<!-- INTERFACE -->
<composite:interface>
...
<composite:attribute name="actionMethod" method-signature="java.lang.String action()" required="true" />
...
</composite:interface>
<!-- IMPLEMENTATION -->
<composite:implementation>
<h:form>
...
<h:commandButton id="cap...
Hi,
I have developed a JSF 2.0 application and tested it on Apache Tomcat 6.0. The problem is that the official server can only have version 5.5 installed. So I tried to deploy it as it was but I kept getting the JasperException. I figured out that the problem probably lies with the standard.jar and jstl.jar. How can I deploy it then? Ho...
I am in a situation where I would like to implement Ajax Push in a Java based web app to update things like counts of item in stock on the web page as they change without any interaction from the user. I understand that the technology needed to do this is called Ajax Push. I also have some experience with JSF 2.0, and this is preferred...
Hi,
I am learning/using JSF 2.0 (Sun Mojarra) now and I want to have a tabbed pane in my webapp (single tabs could named be General, Detail1,Detail2,...).
How do I achieve this? I haven't found any documetation for this so far :(
...
I am using JSF(Myfaces Tomahawk component library) and jQuery. All I want is to send json object to jsf bean when i click a button and similarly send a json object(from jsf bean) to page when it's loading.
...
I want to implement the JSF on Sun One Web Server 7.0. I repetitively got the exception:
java.lang.NoClassDefFoundError: Could not initialize class com.icesoft.faces.webapp.http.core.ReceiveSendUpdates
at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.(MainSessionBoundServlet.java:136)
at com.icesoft.faces.webapp....
I am trying to build a navigation tree via recursion in JSF. I have defined a navigationNode component as:
<composite:interface>
<composite:attribute name="node" />
</composite:interface>
<composite:implementation>
<ul>
<ui:repeat value="#{navigationTreeBean.getChildrenForNode(cc.attrs.node)}" var="child">
<li><navigati...