Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Passing Parameters Using commandLink

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am new here as I am also new to JSF. Thus far have found your community very informative. I have a question that I am somewhat embarrassed by, though after hours of searching Google and some time searching your forums (I sincerely hope this isn't a repost), I have no choice but to ask my question...

I am going to post a simplified version of my code below. I am trying to pass parameters using <f:param..> inside of an <h:commandLink... and I cannot get anything to work. I have tried several solutions I found on here and on Google, but none have worked. So, I am currently trying to implement what seems to be the most common methods, but I am receiving parsing errors... My bean (EntityDetails) is session scope.

entitySearchResults.jsp... should pass entityID to EntityDetails and then to entityDetails.jsp.

entitySearchResults.jsp


EntityDetails.java


I don't think you need entityDetails.jsp... if I can get entityID to print out in the log, I think it will be fine.

My compiler error is as follows:



So as you can see, I can use all the help I can get. I'm using Sun Appserver if that makes a difference.

Thanks for any guidance you can give...

[ July 21, 2006: Message edited by: Henry Hund ]

[ July 21, 2006: Message edited by: Henry Hund ]
[ July 21, 2006: Message edited by: Henry Hund ]
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
are you facing compilation issue ? if yes, you need to have j2ee.jar (this is what i have) or servlet.jar in your classpath

thanks,
 
Henry Hund
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your advice. That unfortunately did not work. While I have had j2ee.jar in my sun appserver /lib directory, I also just copied it to the project lib directory and referenced it in my ant build file. Unfortunately I still get the same exact error...!
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic