How to edit cells in JSP grid

This code demonstrates a usage Label taglib from Coldtags suite in grids. Now cells in your grid could be editable:

Click on the row and you will be able to edit it. And here is the code:

<%@ taglib uri="taglib.tld" prefix="lb" %>

<table width="400" border="1" cellspacing="0">
   <td><lb:label name="r11" edit="true">Ivan</lb:label></td>
   <td><lb:label name="r12" edit="true">Ivanov</lb:label></td>

   <td><lb:label name="r21" edit="true">Joe</lb:label></td>
   <td><lb:label name="r22" edit="true">Doe</lb:label></td>


 © Coldbeans   Comments?

See also Other tips from Coldbeans.