Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reloading JSF  RSS feed

 
Frederic Filiatrault
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I would like to double-check something with you guys.

(Using Tomcat 6.x, JSF 1.2, JDK 1.6.x) I was trying a simple JSP/JSF file:



and changed the minimum requirement for 4 :



The error msg was still showing with value "2". After investigation, I found that the validation is somehow link with the user session as I needed to close the browser, stop and start Tomcat, restart the browser and reload the file (to start a new jsessionid) so I can see the error msg change to 4.

This is very annoying. How do you develop JSF files in a dev environnement so you are sure that any changes to JSF tags attributes are being taken in account right away? Thk!
[ April 02, 2008: Message edited by: Frederic Filiatrault ]
 
Dylan Honorez
Ranch Hand
Posts: 30
AngularJS Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This issue is not related to JSF actually, but how you deploy your files on your web/application server.

Start by explainig how you are deploying on tomcat. Are you copying a web-app folder or are you using Tomcat's hot deploy with war-files?

There's also an option in Eclipse, that's called Dynamic Web Project, which manages the updating for you and could help you a lot.
 
Frederic Filiatrault
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dylan,

First, thk for your answer. Actually (and don't laugh), I wanted to test something very quickly and simple in JSF so I dl Tomcat and edited manually my JSP files directly in webapps folder.

I then after decided to take 2-3 hours to setup correctly my environment with Eclipse and used a dynamic web project as you just said. Guess what, it worked perfectly. :shocked:

I just said to myself this morning : " Welcome in 2008".

Can't believe I was still editing my JSP files with VI.
[ April 03, 2008: Message edited by: Frederic Filiatrault ]
 
Tim Holloway
Bartender
Posts: 18709
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just be careful about editing stuff in the webapps folder. If you redeploy the app, you may have your changes overlaid.

Editing the deployed WAR is a great time-saver for debugging things, but it does have its dangers!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!