Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request parameters  RSS feed

 
Davie Lin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • 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.
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
Well, it was posted in RichFaces forum so I'm sure RichFaces team is aware of it.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!