jsf

Is JSF using JSP?

夙愿已清 提交于 2020-08-22 09:37:08
问题 I am learning JSF and I have some questions regarding it. I know JSF is a UI framework for making pages and I am using it at the moment and successfully been able to make zome. However I don't understand if JSF is built on JSP, so to write your own components you need to know JSP. Or is this a completly another technology? I have not a strong foundation in Servlet/JSP programming and I wonder if I need to read anout that first? What are the best places to learn apart from the Core

Is it possible to include all javascripts files from one folder in JSF?

£可爱£侵袭症+ 提交于 2020-08-21 19:47:46
问题 I am using JSF 2.0, and am looking for a means to include all the javascripts from a given folder on a page, i.e. do something like <h:outputScript library="javascript" name="*.js" target="head" /> Is this kind of thing even possible? Should I write a custom component using java code to achieve this? Thanks for your help, Sébastien Tromp 回答1: Nice idea. This is not supported by the JSF API, but it's in theory possible with a custom script renderer. I played somewhat around it and it's indeed

Is it possible to include all javascripts files from one folder in JSF?

佐手、 提交于 2020-08-21 19:46:24
问题 I am using JSF 2.0, and am looking for a means to include all the javascripts from a given folder on a page, i.e. do something like <h:outputScript library="javascript" name="*.js" target="head" /> Is this kind of thing even possible? Should I write a custom component using java code to achieve this? Thanks for your help, Sébastien Tromp 回答1: Nice idea. This is not supported by the JSF API, but it's in theory possible with a custom script renderer. I played somewhat around it and it's indeed

处理“ java.lang.OutOfMemoryError:PermGen空间”错误

别来无恙 提交于 2020-08-20 07:32:23
问题: Recently I ran into this error in my web application: 最近,我在Web应用程序中遇到此错误: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError:PermGen空间 It's a typical Hibernate/JPA + IceFaces/JSF application running on Tomcat 6 and JDK 1.6. 这是在Tomcat 6和JDK 1.6上运行的典型Hibernate / JPA + IceFaces / JSF应用程序。 Apparently this can occur after redeploying an application a few times. 显然,这可能是在重新部署应用程序几次之后发生的。 What causes it and what can be done to avoid it? 是什么原因引起的,可以采取什么措施避免它发生? How do I fix the problem? 我该如何解决该问题? 解决方案: 参考一: https://stackoom.com/question/Mx9/处理-java-lang-OutOfMemoryError-PermGen空间

盘点 6 个被淘汰的 Java 技术,它们都曾经风光过!

孤街醉人 提交于 2020-08-11 05:26:21
大家好啊,今天栈长给大家分享下我的开发历程中,我知道的那些被淘汰的技术或者框架,有些我甚至都没有用过,但我知道它曾经风光过。 废话不多说,下面我要开始吹了…… 1、Swing 下面这个是用 swing 开发的: 图来源网络,有没有似曾相识的感觉?懂的自然懂! 栈长去年中秋也用过 swing: 这个中秋,我用 Java 画了一个月饼! Swing 算是 Java 早期代替 AWT 的桌面应用 GUI 开发工具包,一个听到就已经淘汰的技术,给我的感觉就是丑丑丑!现在与 AWT 一起在时间这个长河里长眠。 如果 Java GUI 库发展历程分为三代,可以是: AWT > SWING > JAVAFX 随着 JavaFx 的发布,加速 SWING 的被淘汰。下面这个是用 JavaFx 开发的: 图来源:zhihu.com/question/54498643/answer/271632290 现在 JavaFx 也有十来年了,虽然这篇帖子也在说 JavaFx 淘汰了的,只是现在桌面应用不是主流吧,我也没用过不敢乱说,JavaFx 在桌面应用开发应该还是有一席之地的。 2、JSF JSF:Java Server Faces JSF是一种用于构建 Java Web 应用程序的表现层框架,和 Struts 一样性质的框架。 图来源: https://javabeat.net/jsf-2/ 国内用

Is it good to use JSF and JSP in same time [duplicate]

不羁的心 提交于 2020-08-10 20:12:05
问题 This question already has answers here : What is the need of JSF, when UI can be achieved with JavaScript libraries such as jQuery and AngularJS (8 answers) What is the difference between creating JSF pages with .jsp or .xhtml or .jsf extension (2 answers) Closed 4 days ago . Im begginer at programming and im trying to create one simple site for booking movie tickets. So i created JSP pages for admin home page, user home page, login page and register page. I just want to know, because I want

How to use the jar of PrimeFaces-5.2.X using maven?

↘锁芯ラ 提交于 2020-08-10 19:36:07
问题 The question seems easy, but according to my research, the maven repository http://repo.maven.apache.org/maven2/org/primefaces/primefaces/ has only major releases 5.2,5.3,...,6,2 what I want exactly is to use the version 5.2.9 in order to correct the problem of the reCAPTCHA by implementing its v2, the use of the version 5.3 will have much impact on the developed application. 回答1: X.Y.Z releases are only available for paying customers as an elite release. You can then download the jar in a

How to use the jar of PrimeFaces-5.2.X using maven?

时间秒杀一切 提交于 2020-08-10 19:35:08
问题 The question seems easy, but according to my research, the maven repository http://repo.maven.apache.org/maven2/org/primefaces/primefaces/ has only major releases 5.2,5.3,...,6,2 what I want exactly is to use the version 5.2.9 in order to correct the problem of the reCAPTCHA by implementing its v2, the use of the version 5.3 will have much impact on the developed application. 回答1: X.Y.Z releases are only available for paying customers as an elite release. You can then download the jar in a