JSP StyleID clarification
-
Hi,
In my JSP I am trying to add a field with a check box option. I am modifying the existing code.
Existing Code is,
<tr> <td class="right"> <signifo:label key="vendor.title"/> Enabled </td> <td class="left"> <html:checkbox property="vendorEnabled" styleId="vendorchkbx" onclick="isVendorEnabled(this);"/> <html:hidden property="vendorEnabled" value="false"/> </td> </tr>
Modified one is
<tr>
<td class="right">
<signifo:label key="duplicatecheck.title"/> Enabled
</td>
<td class="left">
<html:checkbox property="duplicateCheckEnabled" styleId="duplicatechkbx"/>
</td>
</tr>In modified one, styleId is duplicatechkbx, please tell me where this might be assigned as check box?
In any Java script or CSS??I have no idea.. please somebody help.
-
Hi,
In my JSP I am trying to add a field with a check box option. I am modifying the existing code.
Existing Code is,
<tr> <td class="right"> <signifo:label key="vendor.title"/> Enabled </td> <td class="left"> <html:checkbox property="vendorEnabled" styleId="vendorchkbx" onclick="isVendorEnabled(this);"/> <html:hidden property="vendorEnabled" value="false"/> </td> </tr>
Modified one is
<tr>
<td class="right">
<signifo:label key="duplicatecheck.title"/> Enabled
</td>
<td class="left">
<html:checkbox property="duplicateCheckEnabled" styleId="duplicatechkbx"/>
</td>
</tr>In modified one, styleId is duplicatechkbx, please tell me where this might be assigned as check box?
In any Java script or CSS??I have no idea.. please somebody help.
styleId
is similar asid
in normal HTML, to uniquely identified the elementRegards Shubhashish
-
styleId
is similar asid
in normal HTML, to uniquely identified the elementRegards Shubhashish
Ya that is fine. That is ID only. what I am asking is, I should assign the label with checkbox option. But instead of giving as input type, as shown in existing code snippet, there is a styleId 'vendorchkbox' right. Where this might be assigned as checkbox? that place I want to know to create new checkbox with another field.
-
Hi,
In my JSP I am trying to add a field with a check box option. I am modifying the existing code.
Existing Code is,
<tr> <td class="right"> <signifo:label key="vendor.title"/> Enabled </td> <td class="left"> <html:checkbox property="vendorEnabled" styleId="vendorchkbx" onclick="isVendorEnabled(this);"/> <html:hidden property="vendorEnabled" value="false"/> </td> </tr>
Modified one is
<tr>
<td class="right">
<signifo:label key="duplicatecheck.title"/> Enabled
</td>
<td class="left">
<html:checkbox property="duplicateCheckEnabled" styleId="duplicatechkbx"/>
</td>
</tr>In modified one, styleId is duplicatechkbx, please tell me where this might be assigned as check box?
In any Java script or CSS??I have no idea.. please somebody help.
-
saigowthami wrote:
In any Java script or CSS??
Then why have you posted this in the Java forum?
Use the best guess
I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.
-
I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.
-
Hi,
In my JSP I am trying to add a field with a check box option. I am modifying the existing code.
Existing Code is,
<tr> <td class="right"> <signifo:label key="vendor.title"/> Enabled </td> <td class="left"> <html:checkbox property="vendorEnabled" styleId="vendorchkbx" onclick="isVendorEnabled(this);"/> <html:hidden property="vendorEnabled" value="false"/> </td> </tr>
Modified one is
<tr>
<td class="right">
<signifo:label key="duplicatecheck.title"/> Enabled
</td>
<td class="left">
<html:checkbox property="duplicateCheckEnabled" styleId="duplicatechkbx"/>
</td>
</tr>In modified one, styleId is duplicatechkbx, please tell me where this might be assigned as check box?
In any Java script or CSS??I have no idea.. please somebody help.
I am thinking that the code posted is for a jsp page using struts library. To answer your question the modified code will render the checkbox with id as duplicatechkbx. The checkbox will be either checked or unchecked based on the value of duplicateCheckEnabled property of the form bean. Regards,
Prasad P. Khandekar Knowledge exists, man only discovers it.
-
I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.
You should read this. This might help you to understand how "tld" works.
Regards Shubhashish