Pass table row values to struts action class which uses display: column tag - struts2

I have a struts table which displays data using <display:column> tag.It has many rows and checkbox for each row. But for only one column I need to show as text fields which I did using <display:column><input type ="text"..../></display:column>. Now the problem is I need to submit only the value of the text fields for the rows which have been selected by checking the check box. The submit button is outside the display tag. Can anybody please suggest how to achieve this.

Related

How to style an entry in my dynamically created bootstrap table?

I am creating a table dynamically using bootstrap using an ajax call. While displaying the said data, in one particular field, if that field (numeric), does not fulfill a condition, i need it to be highlighted (with say a different color) in the table being displayed. How to do this?

Google sheet- How to auto fill a cell on selection of dropdown value?

How to auto fill a cell on selection of dropdown value in google sheet?
Let say I have a table with two columns
| Text | Value |
i have used Text column to populate dropdown. And on selection of dropdown Text, we need a cell to be auto populated with it's corresponding Value.
Please suggest the approach?
First you have to create “Text” and “Value” columns with their respective values (you can hide those rows later if you want). Then, you can proceed creating the dropdown list.
Try the following, I tested this and worked:
=ARRAYFORMULA(IF(ISBLANK(B8:B),"",(VLOOKUP(B8:B,B2:C4,2,FALSE))))

Google sheets, hide/remove data validation dropdown..unless another cell is not empty?

I have a column that has dropdown list with data validation, and its applied infinitely down that column. So I have lots of cells with the little dropdown arrow which is annoying.
Is there a way to remove that dropdown arrow....IF say "Date" or "Name" column is empty?
I want the drop to to show only when I have started inputting data to that row, I will never start with the drop down, I start with date. So ideally, as soon after entering the date, the dropdown arrow appears.
Can that be done? Thanks!
You can remove the dropdown arrows by unchecking Show Dropdown List in Cell on Data Validation dialog:
This will show the dropdown list only when you start entering data to the cell.

how to get all selected row key values using checkbox selection of devexpress gridview in mvc in javascript

I am using devexpress gridview in mvc with checkboxes. I want all selected checkbox key values of gridview to controller when i am selecting some checkboxes with paging in gridview
Use recommendations from the How to get all GridView selected keys and pass them to a Controller sample.
Key values of all selected checkboxes in the gridview can be retrieved by iterating though all the rows of gridview one by one using a simple loop and checking if the checkbox is selected or not. If yes you can retrieve key value of that row using built in functions(sorry i don't remember the function name, that you need to look yourself) and save the retrieved values in an array. These values can then be passed on to controller. Remember, everytime you check/uncheck even one box you still need to iterate all rows again. Hope it would solve your problem.

how will the checkbox's in the struts2 tag checkboxlist should appear in column wise not in row wise?

how can i arrange the checkbox's in the struts2 tag checkboxlist in the form of table to display it in the column wise , so that i can hide the borders n view it in column wise
list="communityList" value="defaultSelect" />
I do this with an custom template, just extract the struts2-core.jar and copy the checkboxlist.ftl into your WebApp/template folder. after this you can modify it like you want.
in the struts2 checkbox tag you must now specify the templateDir and the checkboxes was displayed like estimated.

Resources