Win a copy of Terraform in Action this week in the Cloud 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Implementing deeplinks in a webapp

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

I am not sure that I am in the right forum but I will ask anyway.

I would like to implement deeplinks in my webapplication. I have a Sales detail .xhtml page
which I want to call when the user enters/or clicks the link:

www.mysite.com?salesid={id}

Do you guys know how I could implement such a thing?

Many thanks in advance and best regards,
Kris
 
Kristian Jacobs
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
moved it to the JSF forum
https://coderanch.com/t/746480/java/Implementing-deeplinks-webapp
 
Saloon Keeper
Posts: 7181
166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I removed the duplicate posts and instead added this post to the JSF forum.

It's not exactly a deep link you're describing - it sounds like any other  page that displays data based on a parameter. Apparently you want to implement this in JSF? That should not be hard to do - what do you have so far? Are you familiar with JSF? If not, why JSF?
 
Saloon Keeper
Posts: 24589
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not JSF? It's the only GUI web framework that's actually part of the JEE standard. And it's a pretty good framework, in my opinion, which is how I ended up long-term moderating our JSF forum.

What Kristian is looking to do, it appears, is link from a JSF page to a non-JSF page. And an external page at that. No problem, actually. You don't use the h:commandLink here, since that routes you through JSF and you are at least temporarily looking to depart from JSF. So use the h:outputLink tag, which will render as a standard "<a href=" tag in the JSF page. If you want the link to contain variable information, use EL.

For example:


You'll see a lot of examples of outputLink that only reference destinations within the JSF webapp, so they won't bother with the absolute form of the URL, but this is how it goes.
 
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