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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:34:03+00:00 2026-06-09T17:34:03+00:00

I have 2 commandLink in my page. A user has to fill in the

  • 0

I have 2 commandLink in my page. A user has to fill in the details in the input text box (I have used h:inputText for this and all fields are mandatory), and click on “Submit”. If a user dont wish to fill in any of these fields there is a link provided below Submit for “Skipping this activitiy” . This skip link will redirect to some other page. Both Submit link and Skip link are h:commandLink. I cant use h:outputLink for Skip because when user clicks on Skip I want to call bean and do some business checks.

Now, when a user doesn’t fill in any of the details in the fields, but instead clicks on Skip link, the required=true attribute of h:inputText is getting fired. I want this to get fired only when user clicks on Submit without filling in any details and not when he clicks on Skip link.

How to achieve this?

  • 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-06-09T17:34:04+00:00Added an answer on June 9, 2026 at 5:34 pm

    Add immediate="true" to the commandLink.

    It will make sure that all the input fields where immediate="true" hasn’t been defined will be skipped in processing and no validation error will trigger.

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

Sidebar

Related Questions

I have richfaces page thru which i have to add/update/delete a user details. My
i have a command link in my page which looks like: <h:commandLink value=Add user
I have a <code>rich:extendedDataTable</code>. Each row has a a4j:commandLink as below. Table Page: <a4j:commandLink
I have a page that has a table list through AJAX pagination, all custom.
I have pop-up with h:selectOneMenu . This pop-up will be displayed on a4j:commandLink click.
I have the following line in a JSF page: <h:commandLink action=#{myBean.test} value=Wizard Step></h:commandLink> I
This line is inside a form tag: <p:commandLink actionListener=#{questionBean.removeQuestion(question)} value=Delete styleClass=delete update=@all/> However, it
Hope you all will be fine. The scenerio is that i have a page
The commandlink link2 does not have work after an ajax call is made to
I have such structure in my jsp: <h:commandLink action=#{docbean.save}> <a4j:actionParam name=somename value=bill_all assignTo=#{billdoc.billType}/> <a4j:actionParam

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.