Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3804946
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:35:58+00:00 2026-05-19T14:35:58+00:00

Is it possible to get the behaviour of a h:commandLink without using javascript? I’m

  • 0

Is it possible to get the behaviour of a h:commandLink without using javascript? I’m using JSF2

If I want to use a lightbox component, I will need to have the full generated URL beforehand. If my URLs are action-based, I can only use h:commandLink, which generates javascript binded to the mouse click action.

I would like to have the JSF navigation features (eg: use action="#{bean.action}" to generate links) and have a way to get the full generated URL.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:35:59+00:00Added an answer on May 19, 2026 at 2:35 pm

    Use <h:outputLink> or <h:link> instead. This generates a plain HTML <a> element without the need for a <h:form>. To invoke actions, you have to move the logic from the bean action method to the constructor or @PostConstruct of the managed bean which is associated with the opened view.

    If you need to pass parameters, use <f:param> to append them as a query string. You can use <managed-property> in faces-config.xml (or @ManagedProperty when you’re already on JSF 2.0) to set those parameters in the bean. You can access them in @PostConstruct method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using optparse i want to get the whole string after an option, but
I am starting to use Fluent nHibernate on a project and am trying to
I'm wondering if it's possible to add an ivar to the UIButton class? A
Suppose that you have the following logic in place: processMissing(masterKey, masterValue, p.getPropertiesData().get(i).getDuplicates()); public StringBuffer
I'm displaying prices on a DataGridView (on a WinForms application developped in C# on
I am trying to position a div (footer) element at the bottom of a
I have a html page on my localhost - get_description.html . The snippet below
I have a windows service that is, intermittently, throwing an exception that sometimes kills
I'm writing some simple queries which return a single value and I'd like to
This is a follow up to a previous question . if I have multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.