Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BAC64200D1B for ; Thu, 12 Oct 2017 20:44:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B97021609E8; Thu, 12 Oct 2017 18:44:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 09D2B1609E4 for ; Thu, 12 Oct 2017 20:44:05 +0200 (CEST) Received: (qmail 63743 invoked by uid 500); 12 Oct 2017 18:44:05 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 63733 invoked by uid 99); 12 Oct 2017 18:44:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2017 18:44:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D8264C60B3 for ; Thu, 12 Oct 2017 18:44:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.918 X-Spam-Level: X-Spam-Status: No, score=0.918 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id C8ymERovyHmG for ; Thu, 12 Oct 2017 18:44:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 62DF46112D for ; Thu, 12 Oct 2017 18:44:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4D02DE2569 for ; Thu, 12 Oct 2017 18:44:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8103823F9F for ; Thu, 12 Oct 2017 18:44:00 +0000 (UTC) Date: Thu, 12 Oct 2017 18:44:00 +0000 (UTC) From: "Jay Sartoris (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MYFACES-4163) h:commandScript execute attribute does not have a default value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Oct 2017 18:44:06 -0000 Jay Sartoris created MYFACES-4163: ------------------------------------- Summary: h:commandScript execute attribute does not have a default value Key: MYFACES-4163 URL: https://issues.apache.org/jira/browse/MYFACES-4163 Project: MyFaces Core Issue Type: Bug Affects Versions: 2.3.0-beta Reporter: Jay Sartoris Priority: Minor Attachments: CommandScript.war The vdldoc for the h:commandScript component state that "@this" should be the default value for the "execute" attribute. The excerpt from the execute attribute description in vdldocs/facelets/h/commandScript.html is: ------- This is a space separated list of client identifiers of components that will participate in the "execute" portion of the Request Processing Lifecycle. If a literal is specified the identifiers must be space delimited. Any of the keywords "@this", "@form", "@all", "@none" may be specified in the identifier list. *If not specified, the default value of "@this" is assumed.* For example, @this clientIdOne clientIdTwo. ------- When I specify the component like this (without an execute attribute): {code:java} {code} I receive the following exception: {noformat} java.lang.NullPointerException at org.apache.myfaces.renderkit.html.HtmlCommandScriptRenderer.getCollectionFromSpaceSplitString(HtmlCommandScriptRenderer.java:690) at org.apache.myfaces.renderkit.html.HtmlCommandScriptRenderer.encodeBegin(HtmlCommandScriptRenderer.java:144) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:597) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:527) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551) at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:551) at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1898) at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:315) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:73) at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:117) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:267) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:206) {noformat} When I try the same example using the Mojarra RI, it works as expected. I tried this with the MyFaces 2.3.0-beta and also several snapshots however, the issue still occurs. The latest snapshot I tried was the 20171010.124738-264 version of the impl. I will upload a sample application to help reproduce the issue. -- This message was sent by Atlassian JIRA (v6.4.14#64029)