3 Replies Latest reply on May 28, 2010 12:01 PM by Alexander Nemsadze

    Seam - javascript is not rendered

    Frantisek Hradil Newbie

      Hello,
      I have got a problem with rendering javascript. There is example of my problem:


      This code is ok:


        • 1. Re: Seam - javascript is not rendered
          Frantisek Hradil Newbie

          Sorry, error during send :)


          This code is ok:


          <h:commandLink action="#{workflowBean.deleteWorkflow}" value="#{messages.cmn_btn_delete}" 
            onclick="return confirm('#{messages.admin_workflow_query_delete}')">
            <f:setPropertyActionListener target="#{workflowBean.selectedWorkflow}" value="#{wf}"/>
          </h:commandLink>



          And there is problem:



          <h:commandLink action="#{workflowBean.deleteWorkflow}" value="#{messages.cmn_btn_delete}" 
            onclick="return confirm('#{messages.admin_workflow_query_delete}')">
            <f:setPropertyActionListener target="#{workflowBean.selectedWorkflow}" value="#{wf}"/>
          </h:commandLink>



          Button in html source code have no javascript.


          Another problem is there:




          <h:selectOneListbox value="" size="5" onclick="alert('b')">
            <f:selectItem itemValue="010" itemLabel="-- New Actions --"/>
          </h:selectOneListbox>





          I need catch event onclick or onchange. In sourcecod there is not javascript.


          Any idea?


          Thank you!

          • 2. Re: Seam - javascript is not rendered
            Frantisek Hradil Newbie

            Sorry, second code examle is bad, problem is if I use h:commandButton.

            • 3. Re: Seam - javascript is not rendered
              Alexander Nemsadze Newbie

              I am sure you are making something wrong or not deploying your updated code, there must definitely be you javascript in source code of generated page.