myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jyotirmoy (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TRINIDAD-2520) <trh:script partialTrigger is getting called through Command Button
Date Fri, 24 Apr 2015 11:01:38 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14510810#comment-14510810
] 

jyotirmoy commented on TRINIDAD-2520:
-------------------------------------

I observed that after removing or commenting the below code from compressed code of jsf.js
file(under myfaces-api-2.1.10.jar\META-INF\resources\javax.faces)  button through partialTrigger
is getting clicked.

if(!window.jsf){var jsf=new function(){this.specversion=200000;this.implversion=6;this.getProjectStage=function(){var
A=myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl",myfaces._impl.core.Impl);return
A.getProjectStage();};this.getViewState=function(B){var A=myfaces._impl.core._Runtime.getGlobalConfig("jsfAjaxImpl",myfaces._impl.core.Impl);return
A.getViewState(B); };};window.jsf=jsf;}


> <trh:script partialTrigger is getting called through Command Button
> -------------------------------------------------------------------
>
>                 Key: TRINIDAD-2520
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2520
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.1.0-core
>         Environment: I am using trinidad 2.1.0 ,Myfaces 2.1.10 server as webshpere 8.5
> and IE11 
>            Reporter: jyotirmoy
>
> <trh:script partialTrigger is getting called through Command Button click
> below is the sample code
> 	<tr:form id="overviewForm">
>    <tr:commandButton id="VisibleOmi2" partialSubmit="true" value="VisibleOmi2" text="VisibleOmi2"></tr:commandButton>
>    <tr:commandButton id="hiddenOmi" onclick="alert('hidden button clicked');" partialSubmit="true"
action="abcd" inlineStyle="display:none"></tr:commandButton>
>     			</tr:form>
>    <trh:script partialTriggers=":VisibleOmi2"
> 				text="
> 				alert('111');
> 				document.getElementById('hiddenOmi').click();
> 				alert('222');
> 				
> 				
> 				"
> 				></trh:script>
> On click of this VisibleOmi2 button the below alerts and button click code is not getting
called.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message