Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. JSP StyleID clarification

JSP StyleID clarification

Scheduled Pinned Locked Moved Java
javahtmlcsstoolshelp
8 Posts 4 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    saigowthami
    wrote on last edited by
    #1

    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.

    S L P 3 Replies Last reply
    0
    • S saigowthami

      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.

      S Offline
      S Offline
      Shubhashish_Mandal
      wrote on last edited by
      #2

      styleId is similar as id in normal HTML, to uniquely identified the element

      Regards Shubhashish

      S 1 Reply Last reply
      0
      • S Shubhashish_Mandal

        styleId is similar as id in normal HTML, to uniquely identified the element

        Regards Shubhashish

        S Offline
        S Offline
        saigowthami
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S saigowthami

          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.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          saigowthami wrote:

          In any Java script or CSS??

          Then why have you posted this in the Java forum?

          Use the best guess

          S 1 Reply Last reply
          0
          • L Lost User

            saigowthami wrote:

            In any Java script or CSS??

            Then why have you posted this in the Java forum?

            Use the best guess

            S Offline
            S Offline
            saigowthami
            wrote on last edited by
            #5

            I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.

            L S 2 Replies Last reply
            0
            • S saigowthami

              I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              There is nothing about Java in your question. Please use the Javascript or CSS forums.

              Use the best guess

              1 Reply Last reply
              0
              • S saigowthami

                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.

                P Offline
                P Offline
                Prasad Khandekar
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                • S saigowthami

                  I have seen for JSP or JS discussion forum here in code project. I dint get it so asked here.

                  S Offline
                  S Offline
                  Shubhashish_Mandal
                  wrote on last edited by
                  #8

                  You should read this. This might help you to understand how "tld" works.

                  Regards Shubhashish

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups