This content has been marked as final.
Show 3 replies
-
1. Re: Seam - javascript is not rendered
hradil May 27, 2010 12:28 PM (in response to hradil)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
hradil May 27, 2010 12:29 PM (in response to hradil)Sorry, second code examle is bad, problem is if I use h:commandButton.
-
3. Re: Seam - javascript is not rendered
sashkanem May 28, 2010 12:01 PM (in response to hradil)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.