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 Wed, 22 Apr 2015 10:29:58 GMT

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

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

partialTrigger can be called applying the workaround suggested in the Trinidad JIRA https://issues.apache.org/jira/browse/TRINIDAD-2431
or using parent tag like the below code snippet

<tr:panelGroupLayout  partialTriggers=":VisibleOmi2">

<trh:script 
 text="
 alert('111');
  document.getElementById('hiddenOmi').click();
alert('222');

"
 ></trh:script>
</tr:panelGroupLayout>

but we observed that both of the scenario  button click( document.getElementById('hiddenOmi').click();
) is not getting executed inside the script tag.


> <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:form>
>    <trh:script partialTriggers=":VisibleOmi2"
> 				text="
> 				alert('111');
> 				
> 				alert('222');
> 				
> 				
> 				"
> 				></trh:script>
> On click of this button the below alert is not getting called.



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

Mime
View raw message