• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Reloading JSF

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 30
Mac OS X Spring AngularJS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Saloon Keeper
Posts: 28392
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic