Discussions
Web tier: servlets, JSP, Web frameworks: how to add checkbox in to display tag column headers?
-
how to add checkbox in to display tag column headers? (10 messages)
- Posted by: Biswa Ranjan mishra
- Posted on: June 21 2005 10:27 EDT
Hi all,
i need to add one checkbox in displayTag column headers.
i am able to add checkbox in all rows for the above column. but i need at the column header level. i need to do a selectall functionality, only after putting a checkbox in the column header. selectall can be done by using javascript, but unable to add one checkbox at table level.
if, any one has any solutions , please forward me the solution...
regards,
mishraThreaded Messages (10)
- how to add checkbox in to display tag column headers? by Time PassX on June 21 2005 12:24 EDT
- how to add checkbox in to display tag column headers by Biswa Ranjan mishra on June 22 2005 01:01 EDT
- how to add checkbox in to display tag column headers? by Ramnath Natarajan on June 22 2005 09:26 EDT
- how to add checkbox in to display tag column headers? by Biswa Ranjan mishra on June 22 2005 09:51 EDT
-
how to add checkbox in to display tag column headers? by Biswa Ranjan mishra on June 22 2005 09:58 EDT
- how to add checkbox in to display tag ? by Fani P on June 28 2005 11:59 EDT
-
how to add checkbox in to display tag column headers? by Biswa Ranjan mishra on June 22 2005 09:58 EDT
- how to add checkbox in to display tag column headers? by Biswa Ranjan mishra on June 22 2005 09:51 EDT
- one solution for checkbox in display tag column header by Andrey Barabonkov on August 07 2005 06:43 EDT
- retain checkbox value over multiple pages by Ramesh Bhagasra on September 06 2005 04:48 EDT
- Thank you by Taeil Yoon on June 10 2008 00:20 EDT
- adding checkbox title by Zoe James on August 12 2011 08:55 EDT
-
how to add checkbox in to display tag column headers?[ Go to top ]
- Posted by: Time PassX
- Posted on: June 21 2005 12:24 EDT
- in response to Biswa Ranjan mishra
Is there any other work you'd like done for you? -
how to add checkbox in to display tag column headers[ Go to top ]
- Posted by: Biswa Ranjan mishra
- Posted on: June 22 2005 01:01 EDT
- in response to Time PassX
Is It clear for you, what is my problem......
if you do have any solution for my problem, please let me know -
how to add checkbox in to display tag column headers?[ Go to top ]
- Posted by: Ramnath Natarajan
- Posted on: June 22 2005 09:26 EDT
- in response to Biswa Ranjan mishra
<display:column title="Select">
<html:checkbox name="choosen" value='<c:out value="${user.id}"/>' />
</display:column>
Check it out
Regards
RamnathN -
how to add checkbox in to display tag column headers?[ Go to top ]
- Posted by: Biswa Ranjan mishra
- Posted on: June 22 2005 09:51 EDT
- in response to Ramnath Natarajan
Hi Ramanth,
is it possible without "value='<c:out value="${user.id}"/>'"
i donot want to use JSTL ,
Reply me,
biswa -
how to add checkbox in to display tag column headers?[ Go to top ]
- Posted by: Biswa Ranjan mishra
- Posted on: June 22 2005 09:58 EDT
- in response to Biswa Ranjan mishra
<display:column property="editableCheckbox" title="" oddRowStyle="Row1StyleLeft"
evenRowStyle="Row2StyleLeft" decorator="displaytag.decorator.CheckboxDecorator"/>
i am using like this, i am able to add checkbox to all the lineitems , but not to the column header...
do u have any soultion....
please mail me...
regards,
biswa -
how to add checkbox in to display tag ?[ Go to top ]
- Posted by: Fani P
- Posted on: June 28 2005 11:59 EDT
- in response to Biswa Ranjan mishra
Hey Biswa,
Can u plzz let me know how u implemented the checkBox functionality for display Tag..forget ab't header...I just need checkboxes for my line items...sample code welcome.
Thanks...
Phani -
one solution for checkbox in display tag column header[ Go to top ]
- Posted by: Andrey Barabonkov
- Posted on: August 07 2005 06:43 EDT
- in response to Biswa Ranjan mishra
I came upon the same problem and found (thanks to a colleague in the office) the following solution, thought not very elegant:
<display:column title="<input type='checkbox' name='selectall' />">
<input type="checkbox" name="select" />
</display:column>
HTH,
Andrey -
retain checkbox value over multiple pages[ Go to top ]
- Posted by: Ramesh Bhagasra
- Posted on: September 06 2005 04:48 EDT
- in response to Andrey Barabonkov
Hi,
i am not able to retain checkbox values over multiple pages, when i come back the checkbox value is reset again. is there any way, i can retain the checkbox values.
Thanks,
Ramesh -
Thank you[ Go to top ]
- Posted by: Taeil Yoon
- Posted on: June 10 2008 00:20 EDT
- in response to Andrey Barabonkov
I was almost about to give up to use displaytag due to this problem. Thank you. -
adding checkbox title[ Go to top ]
- Posted by: Zoe James
- Posted on: August 12 2011 08:55 EDT
- in response to Taeil Yoon
A bit after the fact I know, but I have this:
<display:column title="<input type='checkbox' name='selectall' onClick='selectAll(this, \"selectableCheckbox\")' />" media="html">
<input type="checkbox" name="${myMapSet.id}" class="selectableCheckbox" />which not only displays the checkboxes but also displays a tick box in the title bar which selects all. In addition it takes the name of the checkbox from the id element in each map of myMapSet, the object being displayed.
Also need this java script function to make it work:
function selectAll(box, classStyle) {
var checked = box.checked;
document.getElementsByClassName(classStyle).each( function(checkbox){
checkbox.checked = checked;
});
}which needs you to include prototype.js.