request « HTML « JSF Q&A





1. Dynamically generated GET request to an external database    stackoverflow.com

I'm asking for help to my problem. I am new to JSF and I have a simple JSF online store demo page. I don't even use navigation rules since I only ...

2. How to intercept request ends?    stackoverflow.com

Hi in JSF i need to perform some action when each request of the user ends. I need some kind of interceptor but i don't know how to do it. I ...

3. Passing data from request ManagedBeans in JSF    stackoverflow.com

I'm somewhat confused about the lifecycle of ManagedBeans of type "request". In this example i'm using one request bean "userBean" to fill this page and one request bean "userEditBean" to fill the ...

4. When do browsers send application/octet-stream as Content-Type?    stackoverflow.com

I'm developing a file upload with JSF. The application saves three dates about the file:

  • Filename
  • Bytes
  • Content-Type as submitted by the browser.
My problem is that some files are saved with content type = ...

5. JSF view id as request tokens    stackoverflow.com

I read somewhere the view ids used by JSF framework have a happy side effect of acting as request tokens and thus foiling CSRF. Can someone please tell me if this ...

6. JSF: initial request and postback request?    stackoverflow.com

Please take a look at this below line of code in JSF

<h:inputText id="name" value="#{customer.name}" />
Quote from java.sun.com:
For an initial request of the page containing this tag, the JavaServer Faces ...

7. Are all "GET" requests to JSF "Initial Request"s?    stackoverflow.com

In JSF 1.1, I am assuming that GET requests are treated as initial requests (resulting in the creation of a new view), and POST requests are treated as Postbacks (resulting in ...

8. JSF AJAX Request not working with hx:panelDialog    stackoverflow.com

I wrote the following code,

        <h:form id="PrefForm" >
        <hx:commandExButton id="preferenceButton" type="button" style="align:right;" value="#{nls.preferenceLink }" title="#{nls.preferenceLinkTitle}" >
  ...

9. How can I find out which Javascript causes an Ajax request?    stackoverflow.com

I'm having a problem with a Java JSF application: In a certain case, a user action causes an Ajax HTTP request that updates the UI correctly, but then immediately a second ...





10. Difference between Apply Request Values and Update Model Values    stackoverflow.com

I often get doubt on these two phases. The following is my understanding:

  1. Apply Request Values
    • In this phase, the submitted values are coming from the request parameter. Then the request values are ...

11. How to differentiate Ajax requests from normal Http requests?    stackoverflow.com

I am using JSF framework in my application. I need to run a specific script before the render response phase in my Phase Listener class. Condition for running this script is ...

12. How to stop reload the data from db for every request?    stackoverflow.com

I loaded the data from db and set to beans. It diplay in screen. Suppose if i click any button in same screen, the data loaded again from db. All beans ...

13. JSF request not sent if value is changed through javascript    stackoverflow.com

I have the following code in XHTML:

<h:inputText value="#{SearchAction.lat}" id="lat">
            <f:ajax event="valueChange"  listener="#{SearchAction.findAddress}"/>
</h:inputText>
If I change the content of the input ...

14. Mixing Ajax and full requests in JSF 2.0    stackoverflow.com

The JSF code which is giving me problems is the following:

<h:panelGrid columns="3">
          <!-- Minimum Password Length -->
    ...

15. How to execute action on GET request with f:viewParam?    stackoverflow.com

I'm currently trying out sending the id of a record from one page to another page. So in the page 1, i have something like this :

<p:column>
    <h:link value="#{rpb.map['transNum']}" ...

16. JSF 2 Partial Requests doesn't use FacesContext from the Factory    stackoverflow.com

It seems like the partial requests don't use the faces context instances that are created by FacesContextFactory implementations. Here's the code in UIViewRoot#processDecodes that indicates the same

if (context.getPartialViewContext().isPartialRequest() &&
   ...





17. Editable Data table in request scop JSF2.0    stackoverflow.com

Hi All I have list of module object. I want to show it to user and user can edit it and can save it also. In ...

18. JSF 2 Ajax requests fail on IE 9    stackoverflow.com

I recently tried to test my JSF application on IE9 and discovered all Ajax requests to fail with a MalformedXML exception complaining about an undefined object when trying to access the ...

19. How this works, keeping static (global) reference to the request data    stackoverflow.com

I need to know how this works:

HttpServletRequest request =  (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();
This means that, some where when the server receive the request (actually the Faces APIs who do that) , it ...

20. Aborting an Ajax request if confirmation dialog is "Cancel"    stackoverflow.com

I'd like to have a <f:ajax> component that would display a confirmation dialog and then do the action tag if OK was selected or abort if Cancel was selected. I thought this ...

21. JSF Clearing facesmessage after each request    stackoverflow.com

I have a reports page that submits user generated queries for data retrieval. When no data exists for the query, I add a facesmessage-"No data" to the session and associate it ...

22. Using JSF/Mojarra on IE7/IE8: Request is not applied    stackoverflow.com

I have a quite complicated table website in which I want to browse with pages (e.g. 5 rows at a time). This browsing works great in Firefox, but does not in ...

23. Getting the original request URI with PrettyFaces    stackoverflow.com

I am using PrettyFaces in my JSF application. The site requires authentication to access some pages, so I'm using a listener (prerender view) that checks whether the user is logged in. ...

24. Compress JSF 2.0 Ajax requests?    stackoverflow.com

Is there a way to compress all JSF Ajax requests?

25. Show loading message when making ajax request using jsf 2.0    stackoverflow.com

How can I show some loading message when making request using <f:ajax>?

26. Mixing ajax and full requests    stackoverflow.com

I have an ajax and full request in the same form. A mouse click fires the ajax in the input field and if I press enter on the same input field ...

27. Debugging JSF 2.0 request dispatching    forums.netbeans.org

I am having an issue in an jsf.ajax.request javascript call. It is not making it to the methods and classes that I am expecting. Even if I am making a

28. Problem with apply request values phase    coderanch.com

29. how can i reach the request    coderanch.com

30. JSF Request Processing Lifecycle Basics    coderanch.com

One of the biggest problems I've faced in moving from Struts to JSF is dealing with the JSF lifecycle. In short, stuff happens to the data in my backing beans and I'm spending too much time trying to get the right data on a page and keep it there, unmolested, throughout the JSF request processing lifecycle. Here is a simple generic ...

31. 'apply request value' phase doubt...    coderanch.com

32. Ignore multiple requests to the server    coderanch.com

Hi all, I don't know if this is the right forum for me, but I'll give it a shot... I have a web application, written with JSF. I want my web application to always behave according the principle: "Abort unfinished events, if there's a newer one in the queue". For example - if the user pressed a link, and then pressed ...

33. How to handle request params and navigation    coderanch.com

Hello, in plain web (jsp, php etc.) world I use simple technique to pass data between pages - url params. How to solve this issue with jsf? Suppose we have page A with list of orders. Each order item is rendered as url to page B for single order management. Each url has param - order id. And that's all - ...

35. Passing JSF request Object    coderanch.com

36. what is request processor in JSF    coderanch.com

37. JSF calendar value in request    coderanch.com

38. Returning JSF view from non JSF Request    coderanch.com

39. TabIndex problem using JSF and Ajax4jsf for ajax request    coderanch.com

Hi, I am using the latest JSF Tomahawk library and Ajax4JSF components in my application. My application have several forms and each form contains a large number of fields. Each field is also having validations for the values contained in it. These validations are server side validation, requiring me to validate the value entered by the user on Tab out/onblur of ...

42. Problem with AJAX requests    coderanch.com

43. Request Object    coderanch.com

45. Failure occurred in the execution of deployment request with ID '1219300288    coderanch.com

I deployed my JSF application from workspacestudio 1.1 (workshop for weblogic 10) to weblogic 10 server. It works fine for me. All other teammates are facing problem with their deployment. They get an error as

46. Initial request    coderanch.com

Hi Guys JSF newbie here! Can anyone help me with this one? I have an app that can get 3 types of request: create, update, read I need to get the params off the request and display the appropriate page. Currently I am doing this in a scriplet in index.jsp. code looks like: String action = request.getParameter("prospectAction"); //default action if (action ...

47. How to get connection at each request?    coderanch.com

48. ajax request and RequestParameter    coderanch.com

When loading a page, pass some params to backing bean. After loading, in the page, I have some a4j command links to call ajax request, but each ajax call will change the RequestParameter values to null. I don't want to pass those params in each command link, and keep the RequestParameter's original value(when page loading). Any solutions? thanks very much!

49. ajax request and RequestParameter    coderanch.com

50. Concurrent Request Processing Issue    coderanch.com

51. Losing Tab Index Order After Ajax Request    coderanch.com

Hi Guys, I've a minor but sticky problem; After selecting a element from rich:combobox there comes an ajax request and after the "Please Wait" Icon disappear, the current tab index is lost and starts from 1 again. which completely destroys the user-friendliness of the page. If you've any idea and if you can help me about this I'll be glad & ...

52. JSF and generating a long GET request with REST    coderanch.com

Hello, I'm asking for help to my problem. I am new to JSF and I have a simple JSF online store demo page. I don't even use navigation rules since I only include the page with search results beneath the searching tags fields. The problem is a have sth like 15 fields (input texts and menus) to perform a detailed search. ...

53. Intercepting HTTP requests using JSF    coderanch.com

55. Override request headers    coderanch.com

(my mom always tell me that I have to study more english =) I need to localize resources (I am doing this now) but I need to change the resource's localePrefix when the user picks up the choice on selectOneMenu. Let me show you my codes: faces-config.xml pt_BR de en es fr pt_BR bundles.mensagens mens bundles.mensagenssistema ...

57. Jsf Request forward    coderanch.com

58. jsf 2.0 ajax-request to other side (e.g. simple js...)    coderanch.com

Hi guys, im searching a method to get content of an other side and put it into my jsf-application... normaly (for example php or something like this) I do that with simple javascript, but this time i want to use the jsf 2.0 ajax-functionality... after searching and searching and asking google for a reason, nothing found... the only thing is: making ...

59. h:commandlink request uri does not change    coderanch.com

I have the following issue with h:commandlink tag: My dir structure is as follows _App Contx | |_ _css | |_ _protected pages | | Welcome.page I have page (pg1) in the protected folder that uses an h:commandlink. The link uses an action method and jsf navigation rules to navigate to another page(pg2) in the protected folder. A custom filter filters ...

61. Editable Data table in request scop JSF2.0    coderanch.com

Hi All I have list of module object. I want to show it to user and user can edit it and can save it also. In module object three members are there 1 String moduleName 2.boolean readFlag 3. writFlag. The bean i am using is in Request Scop i don't want to use any other scop. My problem is setterOfThatList is ...

63. AJAX Request    coderanch.com

64. No mapping found for HTTP request with URI [/myapp/webservice] in DispatcherServlet with nam    coderanch.com

can any body please help below error [DEBUG:http-8080-1] [2011-09-15 15:28:40,419] (SimpleUrlHandlerMapping:161) - Looking up handler for [/webservice] [ WARN:http-8080-1] [2011-09-15 15:28:40,419] (PageNotFound:1068) - No mapping found for HTTP request with URI [/myapp/webservice] in DispatcherServlet with name 'myapp' [DEBUG:http-8080-1] [2011-09-15 15:28:40,419] (DispatcherServlet:939) - Cleared thread-bound request context: org.apache.catalina.connector.RequestFacade@1ced821 [DEBUG:http-8080-1] [2011-09-15 15:28:40,419] (DispatcherServlet:591) - Successfully completed request [DEBUG:http-8080-1] [2011-09-15 15:28:40,419] (XmlWebApplicationContext:273) - Publishing ...

65. Get Request    coderanch.com

/** * Obtain the currently logged in user's ID. * * @return ID or null if user not logged in. */ public static String getUserId() { HttpServletRequest req = getServletRequest(); Principal pri = req.getUserPrincipal(); if (pri == null) { return null; } return pri.getName(); } /** * @return Servlet Request (HttpServletRequest) object. */ private static HttpServletRequest getServletRequest() { FacesContext facesContext = ...