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 6182113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:08:45+00:00 2026-05-24T01:08:45+00:00

Is there a visualforce component for links? I’d like a link () on my

  • 0

Is there a visualforce component for links? I’d like a link () on my page which can trigger an ajax call to one of the functions in the controller and rerender an element on the page.

This is how I’m doing it right now, but I don’t want it to be a button, I need a link:

  • 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-24T01:08:47+00:00Added an answer on May 24, 2026 at 1:08 am

    There are two standard apex link components, an apex:outputLink and an apex:commandLink. Both render anchor tags in html. From what you are asking, it sounds like need the command link, but I’ve posted information about both of them here.

    You can find out more about them in the Visualforce Developer’s Guide.

    The apex:outputLink should be used when you want to create a standard hyperlink:

    This component is rendered in HTML as an anchor tag
    with an href attribute. Like its HTML equivalent, the body of an
    is the text or image that displays as the link. To
    add query string parameters to a link, use nested
    components.

     <apex:outputLink value="https://www.salesforce.com"
     id="theLink">www.salesforce.com</apex:outputLink>
    

    The example above renders the following HTML:

     <a id="theLink" name="theLink"
     href="https://www.salesforce.com">www.salesforce.com</a>
    

    The apex:commandLink is probably what you need.

    … executes an action defined by a controller, and then either
    refreshes the current page, or navigates to a different page based on
    the PageReference variable that is returned by the action. An
    apex:commandLink component must always be a child of an apex:form
    component.

    <apex:commandLink action="{!save}" value="Save" id="theCommandLink"/>
    

    The example above renders the following HTML:

    <a id="thePage:theForm:theCommandLink" href="#" onclick="generatedJs()">Save</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are several shading languages available today like GLSL, HLSL, CG, which one to
I have a visualforce page which is rendering correctly. There is a commandbutton Save
There can only be one IDENTITY column per table Why is it so? Take
There are things like f.call(...) f.apply(...) But then there's this (1, alert)('Zomg what is
From the Salesforce documentation : Because there are applications like Access which do not
There are two popular closure styles in javascript. The first I call anonymous constructor
There are a few ways to get class-like behavior in javascript, the most common
There are numerous Agile software development methods. Which ones have you used in practice
In Visualforce, I'm using an <apex:dataTable> component as follows: <apex:dataTable value={!Qualifications} var=qual styleClass=cv_table >
There are many string matching algorithms can be used to find a pattern (string)

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.