page 1 « Page « JSF Q&A





1. how to present a list inside a list in jsf page    stackoverflow.com

Hi All I am a new user to this group and asking my first question. Actually i am working on an application in jsf using rich faces, where i need to ...

2. JSF page initialization using GET    stackoverflow.com

I need to be able to grab a user's information from a database and pre populate some fields on the page from this information, using args sent in a GET request ...

3. Implementing item edition page in JSF    stackoverflow.com

I am creating a JSF application. I have some items (e.g. products) from database and I want to create a JSF page for editing particular items, that is:

  • it should display selected ...

4. How to do Page Not Found in JSF application?    stackoverflow.com

How to do Page Not Found in JSF application?

5. How to avoid page flicker in JSF 1.1 + Ajax4jsf?    stackoverflow.com

I am developing a small application usng JSF 1.1, Ajax4jsf and Tiles. When I click the a4j:commandLink, the entire page is reloaded. I want to update only portion of the page. ...

6. sql report link with rs:Command paramaters not opening in JSF page    stackoverflow.com

I have a report that we need to link (which we've checked to be working) to in a JSF project, the link looks like the following:

http://www.example.com/report/summary&rs:Command=Render
However when we try to load ...

7. Desktop.getDesktop().browse(uri); will open web page on server or client side?    stackoverflow.com

I have a JSF application and when user click on button I want to open a web page. Desktop.getDesktop().browse(uri); probably opens a web page on server side, how to do it on client ...

8. Jsf pages don't show newly added values    stackoverflow.com

I'm using Java EE6 and JSF for making a simple CRUD application. In many of my JSF pages, I have a selectOneMenu for the user to select an existing item. For example, ...

9. JSF: Get current page programmatically    stackoverflow.com

In a JSF backing bean (Managed Bean, Weld Bean, doesn't matter), i can get the context path the client is on by calling

FacesContext ctx = FacesContext.getCurrentInstance();
String path = ctx.getExternalContext().getRequestContextPath();
This gives ...





10. multiple on a JSF single page    stackoverflow.com

This image should explain the problem clearly. I'm using p:messages from primefaces, but I guess it should apply to h:messages as well. alt text I want to associate a <p:messages> component ...

11. JSF2 pages into a JAR    stackoverflow.com

is it possible to put JSF2 pages into a JAR to use it from other web applications? If yes, is it necessary some extra configuration? Thank you!

12. jsf page evaluation    stackoverflow.com

there's a jsf page with a form:

....
<h:form>
 <h:commandLink action="#{userBean.logout}" value="Logout" />
</h:form>
....
<ui:repeat value="#{categoryBean.allCategories}" var="c">
....
The categoryBean.allCategories is a call to EJB which is based on a <f:param> from previous page acquired via @ManagedProperty. ...

13. using jsf page in portal    stackoverflow.com

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     ...

14. whats the practice to write a review page in JSF?    stackoverflow.com

I have a JSF Page which gets few inputs from the User, I want to show a review page to the user - as what he has given as inputs in ...

15. JSF: How to display BufferedImage on page?    stackoverflow.com

I need to display a BufferedImage object on page. How to do that ? I'm thinking about saving temporary file in WEB-INF and get that image as resource. Is this a right ...

16. i have two text box in two different pages a    stackoverflow.com

i have two text box in two different pages and same variable use in two text box when enter value in first text box it's reflection show in second text box ...





17. how to create a link to a JSF page from outside the application    stackoverflow.com

I am working with a JSF application that posts on every mouse click, so if you get 5 pages deep, your url stays the same. now i need to link to one ...

18. Problem integrating Captcha in JSF 2.0 page    stackoverflow.com

I am following the tutorial i found in this page http://javahunter.wordpress.com/2010/09/25/integrating-captcha-in-jsf-2-0/ to integrate a captcha to my user registration form made in JSF 2.0 but i am having some ...

19. java sound playing in jsf page    stackoverflow.com

URL url1 = new URL("http://localhost:8080/COEE/audio/underdog.wav");
AudioStream as = new AudioStream(url1.openStream());
// Create an AudioStream object from the input stream.
//    AudioStream as = new AudioStream(in);       ...

20. Is there a way to pass an argument to a method from a JSF page?    stackoverflow.com

I'm using JSF 2. Is it possible to send an argument to a method from a JSF page? I want to do something like this:

<p:dataTable id="groupsTable" var="group" 
  ...

21. Best tool for creating JSF pages(Recommendation needed)    stackoverflow.com

Its being a almost 2 months since is started to work with JEE6 and JSF 2.0. I have to say that in this time i learned lots of things and every ...

22. JSF2 SessionBean to be initialized before page access    stackoverflow.com

We are using JSF2 and Tomcat6. We need to initialize a session bean with backend values before the user access the first page. May I know how to do this? ...

23. How to create addressable pages using JSF    stackoverflow.com

Using the currrent version of Java EE, how do you create addressable web pages using Java Server Faces (JSF). That is, creating JSF pages that have a clean URL, ...

24. How to change the start page of my web project?    stackoverflow.com

When i created a new project in eclipse, it automatically created for me an index.jsp page, i don't want the start page to be a .jsp, i want it to be ...

25. dhtmlxGantt gives me a blank page    stackoverflow.com

I'm interested in creating a GanttChart. After a long search I found "dhtmlxGantt" http://www.dhtmlx.com/docs/products/dhtmlxGantt/index.shtml I tried the sample of dhtmlxGantt in http://www.dhtmlx.com/docs/products/dhtmlxGantt/download/dhtmlxGantt.zip My problem now is when I try to run ...

26. Calling methods from JSF page doubts    stackoverflow.com

I have a couple of questions about the way I call methods in EL. Maybe someone could explain how it actually works. I did this very simple example: index.xhtml

<h:body>
<!-- Using a method -->
#{bba.salute()}
<br/>
<h:outputText ...

27. Not getting 'Page Not Found' with JSF2.0    stackoverflow.com

I'm trying with Javaee6 with GlassFish3.1. I created a web project (with JSF2.0), with only one file, one.xhtml

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    ...

28. adf exception when trying to RUN a jsf page    stackoverflow.com

when I try to RUN a jsf page I get this exception: any One knows the solution ? Thanks;

*** Using port 7101 ***
C:\Users\PC-loyal\AppData\Roaming\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\bin\startWebLogic.cmd [waiting for the server to complete its initialization...] . . JAVA Memory arguments: -Xms256m ...

29. Welcome page in JSF    stackoverflow.com

How can I use a JSF page as welcome file? The FacesServlet is mapped on *.jsf and the <welcome-file> is set to index.xhtml. However, it does not show the JSF components. ...

30. How to access to getFirst() & getLast() from a JSF page?    stackoverflow.com

I have a java object defined as List< List< LinkedList > > >. However, when I print the data on a table and do the next thing, it works:

<f:verbatim>selectableDiv.first=</f:verbatim><h:outputText value="#{column[rowCount][0]"/>
However, if ...

31. synchronisation of pages in address bar in a web application using jsf2    stackoverflow.com

I'm working in a jsf2 application and I have a problem with the page name displayed in the address bar. When I navigate to an other page I have in address ...

32. Using pure JSF to obtain calling page    stackoverflow.com

JSF 1.2-1.2_07-b03-FCS JSTL 1_1-mr2 (special build) Java 1.6.0_22-b04 Eclipse 3.6.0 (Helios) Tomcat 6.0.28 (needs to run also on Weblogic) IE 7.0.5730.13 Firefox: 6.0 We have page: http://{host:port}/mybase/faces/mypage.jsp... It is called from multiple external pages via hyperlink, redirect, etc. We would ...

33. JSF 2 - Unique ids across multiple pages    stackoverflow.com

I'm looking to create a JSF application in which there are multiple xhtml pages displayed in different regions of the browser. I could do this with iframes but they add extra ...

34. Implementing chat in my JSF page    stackoverflow.com

I have J2EE web application which uses JSF framework. Now I am trying to add chat functionality to my application. The problem that I am facing is When someone pings me, i ...

35. Run a java program after final web page    stackoverflow.com

I hava an app on JSF where I upload a file. Very basic. The question is, is there a way to launch (or keep executing) another java program when I reach ...

36. JSF pages in differents directory?    stackoverflow.com

I m developping a webapplication using jsf spring and primefaces i have created a folder called admin the problem that i can't access to the pages located in this directory ...

37. how to extract value from inputtext of JSF page using JavaScript    stackoverflow.com

hello everyone i am try to extract value from the field of a JSF page using document.getElementById("someid") here is the actual code

      <h:form id="hell">
  ...

38. JSF - default page    forums.netbeans.org

39. Wait cursor for JSF pages    forums.netbeans.org

I need to display a wait cursor for a section of code reading from a database. It needs to display automatically when the code starts and return to normal when it ...

40. JSF Pages from entity classes?    forums.netbeans.org

Hi there I am running Netbeans 6.8 with Tomcat. I am using the JSF2 framework when I try to create a JSF Page from an entity class under the available entity ...

41. JSF Pages    forums.netbeans.org

Hi All, I am trying to autogenerate JSF pages from an entity class and I always run into the same issue. The Key = Value always returns an error saying: incompatible types required: java.math.BigDecimal found: java.lang.String I am using a local Oracle installation, is this something to do with datatypes? I have tried doing the same operatin on different tables but ...

42. NB6.7.1 Creating New JSF Pages from Entity Classes from another Project.    forums.netbeans.org

I created a JavaServerFaces Web project using Netbeans. I add a project in the library with previously defined entities. This is intended to save time not having to rebuild entities whenever I need an altogether different Web project against the same entities. I then use the New JSF Pages from Entity Classes wizard. I start with Choose File Type which is ...

43. NetBeans JSF Pages from Entity Classes relationshipMany issue    forums.netbeans.org

Hey there, I've been customizing the JSF Pages from Entity Classes templates in NetBeans 6.8-6.9.1, and found that the template engine doesn't ever execute the <#elseif entityDescriptor.relationshipMany> clause of this code block: Code: <#list entityDescriptors as entityDescriptor> <#if entityDescriptor.dateTimeFormat?? && entityDescriptor.dateTimeFormat ...

44. NB 7.0: Code Completion does not work on JSF page    forums.netbeans.org

On NB 6.9.1, when I type a managed bean name in my JSF page, a list of variables and methods that belong to that managed bean come up. It does not do that anymore in NB 7.0. What did I do wrong here, and how do I fix it. I have snow leopard.

45. NB7. Code Completion does not work in JSF page.    forums.netbeans.org

46. jsf pages from entities    forums.netbeans.org

hello, i'm using netbeans for developing an enterprise application, and i like very much the CRUD app generation. but even if it is little more than a proof of concept, i'd like to know if it is a plugin or a core functionality and where the source code (the one that calls freemarker) resides, so i can try to enhance it ...

49. Problem using more than one listbox on a page?    coderanch.com

I'm running into something strange with two single selection list boxes on the same page. When the user clicks on the first one, my app's processValueChange for that listbox gets called and the app goes to the database and retrieves information to populate the second list box. That part works just fine! When the user selects an item in the second ...

51. Internalization in my jsf page    coderanch.com

52. Whole page localization - is this possible in JSF    coderanch.com

I am trying i18n using different frameworks (this is a part of my university work). Did that with Tapestry and Struts, now came to JSF. It seems to have everything the other two frameworks have, perhaps even more, but one thing seem to be missing - or I just couldn't find how to do that. Say, I have a page which ...

54. PhaseListener for one Page    coderanch.com

I wonder if writing a PhaseListener for the sake of one page is the best solution, but to answer your question: try using the following listener to understand what is going on: import javax.faces.component.UIViewRoot; import javax.faces.context.FacesContext; import javax.faces.event.PhaseEvent; import javax.faces.event.PhaseId; import javax.faces.event.PhaseListener; public class TestPhaseListener implements PhaseListener { public void afterPhase(PhaseEvent event) { dump("after", event); } public void beforePhase(PhaseEvent event) { ...

55. display message when page is first displayed    coderanch.com

Hello everyone. The problem I have been trying to solve is how do you display a global message when you first call a page. What I mean is that when you request a page, I want to process some business logic and depending on the result display or not display some error messages together with the rest of the page. I ...

56. Reinitializing paged table to show first page    coderanch.com

hello All, i am a newbie in JSF. sorry if i am asking something really stupid... In my application i am showing records with the help of paged table. My problem is -- say initially i am viewing page 4 (of 10) records on screen 1 and then visit screen2. now when i come back to screen 1 again it still ...

58. JSF Page refreshes/resubmitted    coderanch.com

59. Reentrant page question.    coderanch.com

Is there anything "special" you have to do to get a page to refresh itself with new data? I am trying to build a test site where a question will be asked on a page then submitted, then the next question will show up on that same page then submitted, until all of the questions are answered. Since each question can ...

60. Where to put the result pages ?    coderanch.com

61. Scrolling with Page Widgets    coderanch.com

62. Pass Object to Page    coderanch.com

Alright all you JSF'ers. The admin piece of my current project has been switched over to JSF. Luckily, I didn't have but a couple of forms built around Struts so the move isn't too bad. I have a page with a dataTable and I have commandLinks for the Email Address. When I click on one of these links, I am navigating ...

63. first JSF page...    coderanch.com

64. Problem while developing a Edit Page    coderanch.com

I am new to Oracle's ADF. I have been successfull on listing a page & saving a new values from a screen. But I have few problems while populating a record on the jsf page to make the page ready to edit. I have used PPR in saving new record, bcz I have several depended dropdowns. But When I was trying ...

65. Redirct of JSF page    coderanch.com

66. Losing part of my page.    coderanch.com

67. Modal JSF page    coderanch.com

68. can we have frame(iframe) in jsf pages?    coderanch.com

69. JSF equivalents of process pages    coderanch.com

71. Access to pages depending on access level    coderanch.com

public class PermissionViewHandler extends org.apache.myfaces.application.jsp.JspViewHandlerImpl { protected ViewHandler baseViewHandler; public PermissionViewHandler(ViewHandler viewHandler) { super(viewHandler); this.baseViewHandler = viewHandler; } @Override public void renderView (FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException { checkPermission(context, viewToRender); super.renderView(context, viewToRender); } private void checkPermission (FacesContext context, UIViewRoot viewToRender) { String viewId = viewToRender.getViewId(); boolean allowed = doYourStuffHere(viewId); //check permission levels if (!allowed) { viewToRender.setViewId("/common/nopermissions.jsp"); } } } ...

73. Text area in JSF page Issue..........    coderanch.com

74. FacesMessage being displayed when the page is opened    coderanch.com

I have a web app that I am currently developing that has a table where data is loaded into from a database. In the list accessor method, the database is queried and the list is populated IF the user has privileges. However, if the user doesn't have privileges then I need a FacesMessage displayed when the page is opened. I already ...

75. how to get old value for edit page    coderanch.com

77. Help required in Page Resizing    coderanch.com

78. populating combo in JSF page    coderanch.com

79. Faces page as an index page    coderanch.com

80. consistency in jsf pages    coderanch.com

81. JSF page wizard    coderanch.com

83. Problem: Embedd JSF into JSF page    coderanch.com

84. Passing values between pages    coderanch.com

85. Displaying hashtable in jsf page    coderanch.com

86. Opening Next Page in New Window    coderanch.com

87. Deadlock in JSF page    coderanch.com

88. connection b/w Two pages    coderanch.com

89. confirmation page in jsf    coderanch.com

DISCLAIMER: The more "do it yourself" security systems I see in J2EE, the more convinced I become that do-it-yourself security is one of the worst things anyone can do. I won't go over the whole list - it's getting too long, but I HIGHLY recommend using the security system that comes with J2EE. It's almost always more secure (most DIY systems ...

90. Using Jasper Reports in JSF Pages    coderanch.com

91. Page Navigaion issue    coderanch.com

92. directing page    coderanch.com

93. JSF page Declarations    coderanch.com

I came across a really weird thing which has a lot to do with jsf page declarations and running javascripts. here is code for two very simple jsf pages (note: I have not used any IDE help to write the declarations) example1.jsp <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%> JSP Page