jsp 1 « JSP « JSF Q&A





1. Mixing jsp and jsf    stackoverflow.com

I will elaborate somewhat. Jsf is kind-of extremely painful for working with from designer's perspective, somewhat in the range of trying to draw a picture while having hands tied at your ...

2. Difference between value and itemvalue    stackoverflow.com

What is the difference between the value and itemValue attribute of the radiobutton in Jsf?

3. jsf: iterate in jsp    stackoverflow.com

I am using jsf framework and want to iterate a list of Integers in jsp. The result should look something like the following: 1 2 3 4. The tags ...

4. Auto-logout in JSF Application    stackoverflow.com

I have a JSF app and would like to have the user auto logout after a period of inactivity. Is there an standard way to do this?

5. Refactoring JSP pages    stackoverflow.com

hi i want to take out the common content in the 2 FACES JSPS and put in one jsp and include two tabs in that FACESJSP and those two tabs will ...

6. How to have unique keywords and description on each page of jsp/jsf?    stackoverflow.com

Our website skill-guru has dynamic contents. So we have lots of test and quiz and each page has this at top The keywords and description has to be unique for each ...

7. How to show a client-side message with Java JSF/Tobago?    stackoverflow.com

I have a web application created with JSF and Tobago. The user types some date into a sheet and clicks a button (all within one sheet-row). Now my java class checks ...

8. javascript validation    stackoverflow.com

I have two input fields say val1 and val2 in jsp.Let say val1 is dynamic, I need to restrict user entering the value of val2 not exceeding val1. It can be ...

9. JSF or JSP! Which one to use?    stackoverflow.com

JSF or JSP! Which one to use? Is JSF the newer replacement of JSP.





10. Multiple validators for one field. JSF    stackoverflow.com

Can you apply multiple validators for one field. i.e:

     <ice:inputText id="tawjihiAvg" maxlength="5" partialSubmit="true"
               ...

11. Cannot convert #{ad.userid} of type class java.lang.String to class javax.faces.component.UIComponent    stackoverflow.com

I am getting home page, but when going to a JSP page which has a h:inputText I am getting the following error:

root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.el.JspELException: /login.jsp(21,0) '#{ad.userid}' Cannot convert #{ad.userid} ...

12. JSF app on mobile phone - no scrolling in divs    stackoverflow.com

I'm writing a simple web application for mobile phones using JSF/Hibernate. I want to display images in a div but since the image size is quite big (400-500 px) I need ...

13. JSF 2.0 - Two interfaces for mobile and PC browsers    stackoverflow.com

I'm developing an application which requires two interfaces - one for mobile phones browsers and another one for normal PC browsers. The second interface needs to present more information and have ...

14. how to set the default in dropdown?    stackoverflow.com

I have dropdown with dynamic values.for example in dropdown have 1,5,10,20. when page loading need to display the 5 only.How to do in the jsf ?

15. How to split column and row in shopping cart with java JSP or JSF    stackoverflow.com

i want to present one shopping cart in index i want to show 3 column and 5 row for each category Example

Books
||  Books A   ||   Books B ...

16. How can I create a Java web application which looks the same as my desktop?    stackoverflow.com

I want create a web application which looks similar as my Windows 7 desktop. I am using JSP and JSF. I wonder how I could create a start button and gadgets. ...





17. Data transfer between JSF pages in separate projects    stackoverflow.com

Two JSF/JSF pages and associated managed beans in two separate projects (maybe different servers) Name them PageA.jsp and PageB.jsp with BackingBeanA.java and BackingBeanB.java (again, separate projects) Desire is to redirect from PageA.jsp to ...

18. How to I set up a lock that will automatically time out if it does not get a keep alive signal?    stackoverflow.com

I have a certain resouce I want to limit access to. Basically, I am using a session level lock. However, it is getting to be a pain writing JavaScript ...

19. How to track changes in web pages in JSP JSF1.2    stackoverflow.com

I am developing a web page in JSP/JSF. It has some text fields and check boxes. Page has Save button and few links to other pages. On clock of save button, ...

20. passing objects between jsf and jpa    stackoverflow.com

How can I emulate this behaviour

             <h:selectOneMenu id="idMovie" value="#{comments.comments.idMovie}" title="IdMovie" required="true" requiredMessage="The idMovie field is required." >
   ...

21. java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@19ded20 not expected type    stackoverflow.com

I'm retrieving this exception when I open a JSF page. How is this caused and how can I fix it?

org.apache.jasper.JasperException: An exception occurred processing JSP page /searchResultJSF.jsp at line 18

15:  ...

22. How can I use jsp scriptlets at JSF 2.0 page?    stackoverflow.com

I use JSF 2.0 and facelets. I want to login check at each page and redirect to loginpage if it fails...

<%HttpSession sess = request.getSession(true);
 if ( sess.getAttribute("userName") == null ) {%>
<jsp:forward ...

23. Javascript in jsp page outputs 'true' when var is defined in function    stackoverflow.com

I have a webpage using a javascript. The code sample:

<script type="text/javascript">
var shown = 0;

function showOrHidePanel()
{
    var isComplete = '<h:outputText value="#{general.sessionCompleted}" />';

    if (isComplete == true){
 ...

24. hello Everybody , i have a question in JSP/jsf , i am developing a school project    stackoverflow.com

i am developing a school project ,in that there is a jsp page and this jsp page has table with 2 columns onpage load begin of this jsp first column will ...

25. how to pass values from jsf-jsp     stackoverflow.com

How can I pass user entered values from/to JSP where I have used JSF as framework? Here is my code:

<h:dataTable id="dt1" value="#{Ack.list}" var="ack" >
    <h:column>
    ...

26. pass values from jsp-jsf    stackoverflow.com

<h:dataTable id="dt1" value="#{Student.stuList}" var="stuList" bgcolor="#F1F1F1">

            <h:column>
               ...

27. create a popup using jsf in a jsp    stackoverflow.com

I'm trying to make a registration application using JSF 2.0 with jsp as pages. My page has several input fields, once the user enters all the data and clicks on the submit ...

28. how can i display a value which is retrieved from the back end in all the pages of my application    stackoverflow.com

I'm using JSF 2.0 and jsp as views instead of facelets. I have a registration form, which on success returns a registration number, which i want to display it as a popup. ...

29. How can i get MAC address of client machine in jsp    stackoverflow.com

I am developing one application for secure voting system. I need to get MAC address of a particular machine to set as 'voting machine'. How can I get MAC address of ...

30. populate the value selected from the popup jsp to current jsp    stackoverflow.com

I'm using the following code to generate a popup

Current Page

        <script LANGUAGE="JavaScript">
        function popUp(URL) {
   ...

31. Java Web: How use JSP with JSF and Ajax?    stackoverflow.com

i'm working in a project with jsp, i need to start to use ajax too. i'm enjoying jsf , is possible work with these together (JSP, JSF and AJAX) ? I'm asking this ...

32. Use jsf within jsp (change portion of jsp to use jsf)    stackoverflow.com

I need help about converting a portion of jsp page to jsf. My old jsp page is big, and I am trying to change a portion of it (CountryDropdown List) to ...

33. In JSF how to hide resultBean until doAction executed?    stackoverflow.com

I am adding a web service into JSF page. The page should take some input and give some output after the submit button clicked. My problem is that before the button ...

34. get the value from selectOneMenu JSF    stackoverflow.com

<f:view>
 <h:form>
  <h:panelGrid>
   <f:facet name="header">
    <h:outputText value="Create Order"/>
   </f:facet>
   <h:column>
    <h:outputText value="Customer Number : "></h:outputText>
  ...

35. JSP page values are not getting populated after getting values from JSP popup window    stackoverflow.com

I am passing JSP values to JSF's backing bean. Once I get the values in bean, then I am trying to assign values to inputText fields with setters method, something like ...

36. How use JSF 2.0 f:ajax option with .jsp pages    stackoverflow.com

Due to yet FusionCharts is not support for acelets, I should have to use .jsp page for my dashboard.

 <h:commandLink value="next &gt;" styleClass="paginationLink">
        ...

37. Change selected item of JSF h:selectManyCheckbox on event    stackoverflow.com

I have two fields in my website. An inputtext and a selectManyCheckbox. In the inputtext the user writes a date like 30.03.2014. The selectManyCheckbox has all days of a week (monday, ...

38. Looking for something similar to ui:repeat to use in a JSP    stackoverflow.com

I just want to iterate over a list, I don't want any html spitted out, so datalist and c:ForEach are not an option. The reason is, the mockup is already made and as ...

39. JSF please don't escape my html    stackoverflow.com

From the dbms I get stuff like <font color="red"> abc</font>. When it reaches the ${someManagedBean.someValue} in my xhtml file the output is sanitized. That is great for 99,999% of all cases. ...

40. JSF/JSP - Beginner Question    stackoverflow.com

I've recently dipped my toes into JBoss Seam and naturally have ton to learn but having had a hands on approach so far with looking at code and trying to write ...

41. Multiple AJAX listeners in JSF    stackoverflow.com

I'm trying to trigger two listeners after an event valueChange, like that:

<h:selectOneListbox id="premiumLevel"
   value="#{createPremiumUserDTO.premiumLevel}" size="1"
   rendered="#{createPremiumUser.step >= 2}">
      <f:selectItem itemValue="9" itemLabel="Partner (9)" ...

42. Why jsf can't handle jsf error pages?    stackoverflow.com

I have an error page error.jsf mentioned in the web.xml:

<error-page>
    <exception-type>javax.faces.application.ViewExpiredException</exception-type>
    <location>/viewExpired.jsp</location>
</error-page>
<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/error.jsp</location>
</error-page>
If the file is ...

43. JSF ValueChangeListener not working    stackoverflow.com

I am learning how to use events with JSF. For some reason, the program is not changing the value in the text field when I change the value of the dropdown ...

44. NPE when trying to load a JSP in an IFrame using JSF    stackoverflow.com

I'm trying to load a JSP into an IFrame in a JSF page, but I'm getting a weird Weblogic Exception that I'm trying to debug:

`####<Nov 15, 2011 1:59:58 PM ...

45. JAAS login without JSF or JSP    seamframework.org

46. JSP without JSF    seamframework.org

Thanks for reply. I got it.There is another option that I was trying.Create a normal jsp file and add taglibs. The jsp is as follows.<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> Register New User Hi there other JavaServer Faces tags and core tags, including one ...

47. JSP and JSF interaction    coderanch.com

48. JSF or JSP    coderanch.com

49. differenc e between JSP & JSF TECHNOLOGY    coderanch.com

Are JSF tied to JSP technolgy, or can be used with other approaches, like Velocity or Struts? I heard that Velocity provides better flexibility and performance for creation dynamic web content. Does JSF beat it here, or it just provides more sophisticated environment for development? Is any framework allowing to build JavaScript based dynamic content? I mean that all actual web ...

50. JSP vs JSF ?!!    coderanch.com

51. How JSF 1.x relates to JSP ?    coderanch.com

54. How to update the screen without reloading jsp/sertvlet ?    coderanch.com

It sounds like you mean AJAX If you speak about updating the part of the page without reloading it. This is a list of the steps have to be done to add AJAX behaviour to the JSF application: 1 Create a Javascript function that returns a XMLHttpRequest/XMLHTTP object appropriate for the browser in use. 2 Create a Javascript function for processing ...

55. how much u teach jsp and how much not    coderanch.com

56. Should all HTML be banned from JSP pages in JSF?    coderanch.com

Recently I was transferred to a new project where I got an assignment to do some JSF stuff. After I checked in my code, I got a furious message from the project leader who told me HTML tags don't belong in JSF (when using it in a JSP file). I'm not talking about making complex layouts by abusing tables, but just ...

57. JSF 1.1 and JSP spec    coderanch.com

58. JSP/JSF/Javascript popup window    coderanch.com

Hi I have a list of categories each with 100's of associated codes. I would like to be able to click on the category as a link and have a popup window appear with all the codes for the category selected. However I have thousands of categories and one page for each isn't exactly practical! Is there some way I can ...

59. to pass values between jsp    coderanch.com

60. Sending Mails From JSP pages    coderanch.com

61. JSF and JSP    coderanch.com

Here's an example: Using IBM Rational Software Architect, a large, very capable and quite expensive Plug-In to Eclipse providing GUI JSF development (and much more) capability, I have built an entire JSF application, with Oracle back-end, without ever _seeing_ even a single line of code, let alone writing one, and not knowing or caring how it displays anything. I haven't the ...

62. diff between jsp and jsf    coderanch.com

63. JSF AND JSP    coderanch.com

64. Does JSF rewrite JSP Page?    coderanch.com

65. Merging JSF script and JSP scriptlet => possible?    coderanch.com

Hi, thanks for all the help rendered. I have 1 issue now. I use JSP to create a Java Beans. I call initParameters to do something and a vector getSymbolMenu() is retrieved. I want to place the items in this vector into a dropdown menu. There is no error. But there is nothing in my dropdown list. ...

67. What is JSP and how..    coderanch.com

68. JSP AJAX postback    coderanch.com

I have a javascript function for a POST request from XMLHttprequest object: function lookup(field) { .... if (window.XMLHttpRequest) { req = new XMLHttpRequest(); } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); } var formdata = "ajaxreq=true"; " var formAction = window.document.forms[0].action;\n" + "req.open(\"POST\",formAction,true);\n" + "req.setRequestHeader(\"Content-Type\",\"application/x-www-form-urlencoded\");\n" + req.onreadystatechange = processXMLResponse; req.send(formdata); } This request is generated from within the directoryBrowser.jsp itself. ...

69. JSP/JSF coding conventions doco    coderanch.com

70. JSP for JSF Won't Compile    coderanch.com

I'm trying to work my way through Geary/Horstmann's "Core Java Server Faces" and am having a problem with the library application in chapter 8. BTW, he has a new edition coming out in a couple of months so maybe this problem is fixed there. Also they admit to a "sleigh-of-hand" in this application and this may be it. library/bookMenu.jsp is the ...

71. Protecting direct access to JSP pages    coderanch.com

72. Difference between JSP and JSF?    coderanch.com

73. JSP or JSF?    coderanch.com

74. jsp scripting in jsf    coderanch.com

75. Call JFrame From JSP    coderanch.com

76. Passing values to JSp with href    coderanch.com

77. tree structure in jsp    coderanch.com

78. jsp problem    coderanch.com

Hi, In the case that you have mentioned "employeefirst" cannot be used as a function to return the value. You need to define it as a variable in the managed bean whose values is then initialized by the action called from the page.The variable also needs to have corresponding getter and setter method. Ketan.

79. UnsupportedOperationException while running jsp    coderanch.com

Ick. I think this has to do with a version mismatch between the EL jar in Tomcat and the one in your app. I forget how you fix this, but I found the answer in Google a while back. It might simply mean not including the EL jar in your webapp, but like I said, I no longer remember.

83. .jsp or .jsf    coderanch.com

84. to Inclue jsp page in another using jsf    coderanch.com

85. Ajax call from a JSP-Page    coderanch.com

Hello Community. I have a problem using Ajax in my JSF-Application. I'm running a tomcat-container and want to access php-File placed in my "htdocs" of the apache server. When i make a call like: function getOnline(action, attribute, wait_id) { var url = 'http://192.168.2.102/ProjektOnlineAjax/ajaxOnlineResponse.php?action='+action ... // Here comes the trouble // always the same "Access to restricted URI denied" http.open('get', url); http.onreadystatechange ...

86. App serving JSF instead of JSP, j_username always null    coderanch.com

Hello guys, Of several JSF applications I support, only one does this: the files are in fact jsp but the requests to the server must be done with the jsf extension. This wasn't a problem until recently when I was asked to add login audit functionality, I realized j_username and j_password were always received as null by the access management filter. ...

88. JSF    coderanch.com

Hi, From faq on JSF from sun site : Ease-of-Use: Several aspects of the JavaServer Faces architecture contribute to its ease-of-use. For one, JavaServer Faces technology offers a clean separation between logic and presentation, enabling a wide range of users -- from web-page designers to component developers-- to take advantage of JavaServer technology, resulting in a division of labor and a ...

89. JSF    coderanch.com

90. JSF    coderanch.com

JavaServer Faces JSF is a framework for building web-based user interfaces in Java. Like Swing, it provides a set of standard widgets (buttons, hyperlinks, checkboxes, and so on), a model for creating custom widgets, a way to process client-generated events (like changing the value of a text box or clicking on a button), and excellent tool support. Since web-based applications, unlike ...

91. are JSP going replace by JSF    coderanch.com

92. Question for Bill about JSF    coderanch.com

93. General JSF Question    coderanch.com

94. JavaServer Faces prerequisites and features    coderanch.com

Bill- Great to have you here in this forum Right now, I am only familiar with the term "JSF" but would really be interested in finding more about the technology, especially as it deals with standardizing UI development. Are there any prerequisites from an "understanding JSF" perspective, like a familiarity with a particular package, framework etc? As part of a corporate ...

95. Flash and JSF    coderanch.com

96. JSF vs Swing    coderanch.com

Well with the current render kit in the RI the functionality is no where near Swing. Basically to get Swing like UI's you should use an applet. However you can do a lot with JavaScript and other client side browser technologies. There is a potential that XUL could become something. If it does then you might be able to approach Swing. ...

97. JSF: Where do the technologies fit in?    coderanch.com

98. JSF: What UI components are available?    coderanch.com

Hi Bear, Well I'd say that the major benefit of JSF is architectural. With JSF you get a component based server side programming model. Events are fired and listeners listen etc. Also since you have a component on the back end its got extension points. Lets say you wanted a custom UIOutput that spit out the html element (I know ...

99. JSF Validation    coderanch.com

100. Question for Bill Dudney about JSF    coderanch.com