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

  • Home
  • SEARCH
  • 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 8301689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:06:21+00:00 2026-06-08T17:06:21+00:00

I have a table, using display tag, in my application, that is using spring

  • 0

I have a table, using display tag, in my application, that is using spring web flow. I would like to have a check box in each row, a button that allows me to select/uselect all and a button to execute a function. After clicking the button, the action will perform some database actions and the page should be render, so we can see these changes.

I don´t know which could be the best option, submitting the whole table

<form method="POST" (more params)>
    <display:table id="row">
          ....
   </display:table>
</form>

Or only the checkbox column. I this case I wouldn´t know how to implement it.

I have tryed two different approaches:
1. Using a simple input text, checkbox type. This is not possible, because when I submit the form, I need to set a path to another page.jsp (I am working with flows). Besides, I wouldn´t know how to send these values to java backend.

  1. Using spring tags.
    In this case, the problem comes whith the class conversationAction

I found some examples, but allways using MVC and controller cases.

How could I implement this issue??

EDIT
I have found a kind of solution, but I faced a new problem…

flow.xml

 var name="model1" class="com.project.Model1"/>
 var name="model2" class="com.project.Model2"/>

view-state id="overview" model="formAggregation">
...
</view-state>

page.jsp

 form:form modelAttribute="formAggregation.model1" id="overviewForm">
...
/form:form>
...
 form:form method="POST" modelAttribute="formAggregation.model2">
    display:table id="row" name="displayTagValueList" requestURI="overview?_eventId=tableAction">

display:column title="">
            form:checkbox path="conversationIds" value="${row.threadId}"/>
        /display:column>

/display:table>
        input type="submit" name="_eventId_oneFunction" value="Send>>"/>
    /form:form>

FormAggregation.java

@Component("formAggregation")
public class FormAggregation {
   private Model1 model1;
   private Model2 model2;
//Getters and setters

I need this aggregator, because I need both models. I have tested it one by one and it is working as wished. Any idea about that??

Thanks!!

  • 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-08T17:06:23+00:00Added an answer on June 8, 2026 at 5:06 pm

    I couldn´t find a solution to add two model in a view-state. So I made a workaround, adding the fields I needed to the model I was using, com.project.Model1. So the result is:

    page.jsp

    <form:form method="POST" id="tableForm" modelAttribute="model1">
         <display:table id="row">
               <display:column title="">
                <form:checkbox path="chosenIds" value="${row.id}"/>
              </display:column>
              <display:footer>
                <div class="tableFooter" >
                    <input type="submit" name="_eventId_workIds" value="Send"/>
                </div>
            </display:footer>
          </display:table>
      </form:form>
    

    flow.xml

    <var name="model1" class="com.project.Model1"/>
    ...
    <transition on="workIds" to="overview" validate="false">
                <evaluate expression="actionBean.workIds(model1.chosenIds)" />
            </transition>
    

    java class

    public void workIds(List<Long> ids) {
    

    Hope it helps

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

Sidebar

Related Questions

I have added checkbox in display table using decorator class as shown in below
I have a table from which I query data to display resultset using stored
I have a following table using MVC that shows number of items the user
I have a table like this (using wordpress) +---------+----------+------------+ | meta_id | meta_key |
I have a stored procedure that updates a table using linq, eg: (this is
I want to export the table which is displayed using display tag on the
I have configured spring security core plugin using requestmap table inside the database.. Now
I am using display tag to render tables in my application. When I click
In jsp I'm using Display tag to print a table. I want to display
I am using display tag to show user list on my JSP. I have

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.