• 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

JSF & Struts 2gether in Jetspeed

 
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have deployed portlets in jetspeed, some JSF and some struts and they can communicate with each other through session just fine, so maybe no need to choose just one!!!

My question is I have a requirement to not use Javascript, JSF seems to generate Javascript in the background. What are my options..... is JSF completely dependant on using javascript???

Greg B
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Greg Belyea:
I have deployed portlets in jetspeed, some JSF and some struts and they can communicate with each other through session just fine, so maybe no need to choose just one!!!

My question is I have a requirement to not use Javascript, JSF seems to generate Javascript in the background. What are my options..... is JSF completely dependant on using javascript???

Greg B



Sun's JSF implementation generates no javascript whatsoever. Other implementations, like MyFaces's components will generate some javascript.
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From JSF specification section 3.1.12

encodeBegin/Children/End methods are called during the Render Response phase of the request processing lifecycle, and have the responsibility of creating the response data
.......
Typically, this will involve generating markup for the output technology being supported, such as creating an HTML <input> element for a UIInput component. For clients that support it, the encode methods might also generate client-side scripting code (such as JavaScript), and/or stylesheets (such as CSS). The default implementations in UIComponentBase delegate to a corresponding Renderer, if the rendererType property is true, and do nothing otherwise.


Hence it's upto you, if you want - it will generate,
but by default - it doesn't !!!
 
Greg Belyea
Greenhorn
Posts: 27
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, that makes sense... I am using the myfaces implementation... That is good news because i had been lobbying to use both technologies to take advantage of JSF and learn how to use it, while the majority of the team wanted to use Struts because of familiarity. We are not allowed to depend on Javascript at all with the project so i was'nt sure if Sun's Implentation depended on it or not....

Thanks Guys
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic