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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:10:38+00:00 2026-05-31T22:10:38+00:00

I want to create a JSF table like this . But instead delete button

  • 0

I want to create a JSF table like this. But instead delete button in every row I want to place check box in every row in the first column because I want to delete more than one row simultaneously. How I can create such a row and delete button which deletes every selected row? And can this be done with AJAX? I don’t want to refresh the page.

Best wishes

  • 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-31T22:10:39+00:00Added an answer on May 31, 2026 at 10:10 pm

    Since you want an example that uses f:ajax and since other answer uses the given example in How to use JSF’s h:selectBooleanCheckbox with h:dataTable to create one object per row? which is aimed for jsf 1 (and not 2) you can modify the delete button into something like this (make use of the f:ajax)

    <h:commandButton value="Delete Selected">
        <f:ajax execute="@form" render="@form" listener="#{bean.submit}"/>
    </h:commandButton>
    

    and change public void submit() into public void submit(AjaxBehaviorEvent ev)

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

Sidebar

Related Questions

I want to create a dynamic Accordion, My usecase is like, On every click
I want to translate this html table into JSF table <table border=1> <tr> <td>OS
I want to dynamically create object of HtmlDivElement in my jsf managed bean and
I want to dynamically create controls in my bean. I am using JSF 2.0
I am running Eclipse 3.5 and JBoss 5.1. I want to create a JSF
I want create a pdf using iText. The method which does this is a
I want to create a component which can be used like: <mc:chart data=#{bean.data} width=200
I use <f:facet> to create a table header and I want a symbol beside
I want to create JSF page which displays Oracle connections. The web page will
I want to create JSF page which displays Glassfish connections. The web page will

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.