• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Links without JavaScript

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am a Struts veteran beggining with JSF playing with tutorials and stuff.
I want to know if there is a way to work with regular dynamic links intead of the always-use-javascript way. More exactly, I want a link object that referers to a navigation name like "home", for example:



But instead of using javascript, simply reads the configuration and renders a html output like



pretty much like Struts' ActionForward. I understand why using javascript in links is good sometimes, but it also limits the user capability of accessing directly a link or using the "open in new window" feature.

Thanks for any help.
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The javascript in the link is used to post a form to the server. If you have an idea how to submit the form by clicking the link, but without using javascript let us know.
There are two standard components that represent link. Those are commandLink and outputLink. The first on is using for form submition, the secord one is for the regular ckickable link that points directly to the page.
 
Eiji Seki
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The point is that I don't need to submit a form with the link. I just want to use a navigation case configuration to dynamicaly create the link.
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at http://blog.exadel.com/?p=19
Basically, it might be better to un-learn Struts to ride JSF horse effectively. I know, it is hard.
 
You guys wanna see my fabulous new place? Or do you wanna look at 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