I am new to JSF, I am currently running JSF 2.0 with tomcat and Primefaces. I have created a simple page using the primefaces layoutUnit and primefaces menu. I have a three panel layout with the menu in the left panel, the main page in the center, and some metric / graphing stuff in the right panel. I am having issues understanding how t...
In JSF application we are using richfaces (Final.3.3.3). In pom.xml there is dependency on jsf-api-2.0.2, jsf-impl-2.0.2 and jsf-facelets-1.1.15.jar, and in faces-config.xml there is <view-handler> configured like this:
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>
I know that in JSF2 ...
I am trying to make JSF 2 application (with annotation support like @ManagedBean etc) work on Weblogic 10.3.3 but having problems (as listed here). I was wondering whether Oracle supplied any tutorial or sample application with Weblogic 10.3.3 release that I didn't notice. Has anyone successfully deployed a JSF 2 application on weblogic ...
hi.
i'm trying to surround a component tree section with:
<mycomp id="top">
<f:ajax process=":#{component.clientId}" render=":#{component.clientId}">
.....
</f:ajax>
</mycomp>
but for every action i can see that the the actual expression is being held and evaluated at the poin it's written into the associated action, ...
I want to be able to process generic AJAX requests that do more than just updating an existent component. How can I override the default PartialViewContext in the FacexContext?
...
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...
I have to use a few servlets in my Web application. The servlets perform a bit of processing and then redirect the user to an xhtml page.
I already have navigation rules in my app, which I'd like to re-use in my servlet.
Example:
<navigation-case>
<from-outcome>bookingFailed</from-outcome>
<to-view-id>/SecureUser/Reservation/N...
I've a stateless session bean in an ejb container. If I invoke it from a jsf2 form it works fine, but if I recall the form again it shows me the same data I've inserted before. It happens even if I close and reopen the browser. I must wait several minutes until the form shows empty fields.
The stateless session bean is not recreated for ...
I have a problem with the deployment of the jsf application. All the jsp files are encoded as ASCII instead of required UTF8. I'm building the war file on Windows using Netbeans, then I copy it to the Tomcat6 webapp directory. However, when I unpacked the .war file I noticed that those .jsp files are all ASCII. How do I change it in Netb...
Hello,
This is my code in my managed bean :-
<?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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/...
I would like to use PrimeFaces. I followed all the instructions on the webpage
My POM:
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.0.0</version>
</dependency>
[...]
<repository>
<id>prime-repo</id>
<name>Prime Technology Maven Repository</name>
<...
Hi folks
I have read about passing parameters from jsf page to managedbean through actionListener. Is it also possible to pass a parameter to a simple action method?
Thank you for reading...
Thank you both for your advices! I would be lost without you :-)
Following worked for me:
<h:commandLink id="link" action="#{overviewContro...
From an action in my bean, I'm trying to redirect to another page expecting a view parameter. What is the recommended way to do this in JSF2?
E.g., say my source page is:
http://localhost/page1.xhtml
it has a commandButton that calls an action:
<h:commandButton value="submit" action="#{myBean.submit}" />
where my bean looks like:
@...
Hi,
I have problem with f:convertDateTime, that it seems to use the error message *javax.faces.converter.DateTimeConverter.DATE_detail* when I convert time (i.e. it should use *javax.faces.converter.DateTimeConverter.TIME_detail*).
The issue, I'm guessing, is that I use a pattern, and thus it does not know if it's a date or a time that...
I am new to JSF2 and would like to know something from a design perspective.
For e.g. if we have multiple multiple usecases based on various actor types, which is better way in terms of design by considering below two scenarios?
e.g In a module having total usecases count say 10,
(Scenario 1) in this scenario for 1st & 5th usecase(UC)...
Hi,
I was wondering which scope to use for a CRUD Application. Using @ReqeustScoped causes an access to the database for every request. With @SessionScoped, data can be cached in the managed bean, but can cause the so called session-bloat. Moreover, it is more difficult to keep the data up to date. What would you recommend? Is there a b...
Hi,
Yesterday I have seen a presentation on Java Server Faces 2.0 which looked truly impressive, even though I am currently a happy ASP.NET MVC / jQuery developer. What I liked most about JSF is the huge amount of AJAX-Enabled UI components which do seem to make development much faster than with ASP.NET MVC, especially on AJAX-heavy sit...
I am confronted with a problem I don't find an easy suificiant way:
I use different ManagedBeans to organise my views. There are controller that manage actions and passes data from/to persistence layer. Further there are models that lie behind the views and contain their data.
Controller which are RequestScoped initialise the model (-...
I think the title tells it all: I want to add a row to dataTable over AJAX. The datatable has input fields where user can put text. As simple as that, a pretty common case.
With session-scoped bean this no issue, as the same bean is updated over and over again. However, I want to do this in request scope. For each request, I guess I wan...
I have a page that has a table list through AJAX pagination, all custom. Pagination is working properly, but the Enter key clears the form input's values instead of submitting. My submit button makes an AJAX post that causes the table to reexecute and rerender.
How can I make sure that all form inputs handle the Enter button and submit ...