• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Request parameters

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, you all now I am a JSF newbie and I came from a struts background.

I have never seen it done in JSF but plenty in struts.

can you pass request parameter in the URL like struts in JSF? What I am asking is does anyone do this

myPage.jsf?id=00983&a=0028&b=0029

id, a and b are request parameters. I know that you use <f:param> type of tag to pass parameter in GET.
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you using JSF 1.2 or JSF 2?

Max
http://mkblog.exadel.com
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am currently using 1.1_1

however, I would really like to upgrade to 1.2 or 2.0, but I am not able to display any data when I upgrade to 1.2 + richface 3.3.3

I have all the required dependent jar file from the documentation.
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If using JSF 1.x, then you have to do it this way:

Bean:


JSF configuration file:


URL:
http://host:port/app/page.jsf?id=10


In JSF 2, it's much simpler as this feature is built in (called page params)

Here is a template (http://mkblog.exadel.com/ria/richfaces-ria/the-easiest-way-to-start-with-richfaces/) to start with JSF 1.2 and RichFaces 3.3.3
 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Max, are you aware of that framework.pack.js in org.ajax4jsf package cause IE to hang
luckily, I have found the solution here

http://community.jboss.org/message/525803

I am wondering if the Richface dev team know about this, at least for 3.3.3, it still hasn't change
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, it was posted in RichFaces forum so I'm sure RichFaces team is aware of it.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic