Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D913CD934 for ; Thu, 20 Dec 2012 10:46:12 +0000 (UTC) Received: (qmail 56997 invoked by uid 500); 20 Dec 2012 10:46:12 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 56936 invoked by uid 500); 20 Dec 2012 10:46:11 -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 56882 invoked by uid 99); 20 Dec 2012 10:46:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 10:46:09 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhao.koh@gmail.com designates 209.85.220.51 as permitted sender) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Dec 2012 10:46:00 +0000 Received: by mail-pa0-f51.google.com with SMTP id fb11so2006879pad.10 for ; Thu, 20 Dec 2012 02:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:subject:date:message-id:to :mime-version:x-mailer; bh=ANFuxDz6cfzZe5l6k3y6TBCAhswY+os293HjGVZEpVA=; b=0+OLOv7U82A7TASlmoMEt7j2RmZPRJWgPd3sn00dijB7+Nbgrn+dAJWJP5J5fRdSw9 SECMl9+YTDny86r1qhDeSSVusWC4/CSbjghtY6pPFZBCwAFFUjKuCSLVmDcBpL2STOHK noO8/8pkuc3exVi+G09OfoH7gyAuIAEJP8iHVLDToegBtRoQ/CAPvcZFrc09b2BbWm/v 8jq8jc2FP9kC+InwuKQ/4cQvDLtyVFqDd3k5r3TBFOzIou/w8XNX9LnTdE6yF1l01gXb mXZEha5uiYUZhSnDya/Mn1HkblfterYWpEns+HiHc3+zYvZ7xTu7A1Yf3PKkiQGRtfK4 TPDw== X-Received: by 10.68.242.3 with SMTP id wm3mr28389175pbc.44.1356000339404; Thu, 20 Dec 2012 02:45:39 -0800 (PST) Received: from [192.168.1.4] (115-64-130-151.static.tpgi.com.au. [115.64.130.151]) by mx.google.com with ESMTPS id wf8sm4841660pbc.65.2012.12.20.02.45.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Dec 2012 02:45:38 -0800 (PST) From: Zhao Koh Content-Type: multipart/alternative; boundary="Apple-Mail=_BCAB5A6A-1E75-44E1-8C7C-079DB44E37CA" Subject: MyFaces 2.1.8 - Issues with composite component renderFacet Date: Thu, 20 Dec 2012 21:45:30 +1100 Message-Id: <60517876-ED01-413E-8228-FF2CBA1674B7@gmail.com> To: dev@myfaces.apache.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_BCAB5A6A-1E75-44E1-8C7C-079DB44E37CA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi all, I am currently using MyFaces 2.1.8 but discovered an issue with = composite component renderFacet - and this issue started at version = 2.1.4. The following describes the problem: I have a composite component called buttonSelectBox that uses = composite:renderFacet to inject content from client - nothing fancy, = only a span that surrounds the content. =20 =20 =20 =20 =20= =20 =20 =20 =20 =20 =20 =20 Then I have a facelet page that uses this composite component and a = standard that invokes an action. =20 =20 =20 =20 =20 =20 =20 =20 =20 The issue is whenever the web app that contains the above deployed to = web container (I am using Websphere 7), the button on the facelet page = does not register the action until the second click, i.e. the first = click does nothing. The request did reach the server though. I have tried every version since 2.1.4 - 2.1.8, and it still occurring - = so I am currently downgraded to 2.1.3. Can you please advise if this is a bug or something that I have missed? = If this is a bug, how can I go about raising this in JIRA? Any comment would be much appreciated. Thanks. Regards, Zhao --Apple-Mail=_BCAB5A6A-1E75-44E1-8C7C-079DB44E37CA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = all,

I am currently using MyFaces 2.1.8 but = discovered an issue with composite component renderFacet - and this = issue started at version 2.1.4.

The following = describes the problem:

I have a composite = component called buttonSelectBox that uses composite:renderFacet to = inject content from client - nothing fancy, only a span that surrounds = the content.


<html xmlns=3D"
http://www.w3.org/1999/xhtml" 
        xmlns:h=3D"http://java.sun.com/jsf/html" 
        xmlns:f=3D"http://java.sun.com/jsf/core" 
        xmlns:c=3D"http://java.sun.com/jsp/jstl/core" 
        xmlns:ui=3D"http://java.sun.com/jsf/facelets" 
        xmlns:composite=3D"http://java.sun.com/jsf/composite" 
        xmlns:p=3D"http://primefaces.org/ui"> 

        <composite:interface> 
            =     <composite:attribute name=3D"compId" required=3D"true" /> 
              =   <composite:attribute name=3D"defaultText" required=3D"true" /> 
              =   <composite:facet name=3D"content" required=3D"false" /> 
        </composite:interface> 

        <composite:implementation> 
            =     <span class=3D"buttonlink"> 
              =           <composite:renderFacet name=3D"content" /> 
              =     </span>               =       
        </composite:implementation> 

</html> 



Then I have a facelet page that uses this composite = component and a standard <h:commandButton> that invokes an = action.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd<= /font>"> 

<html xmlns=3D"http://www.w3.org/1999/xhtml" 
        xmlns:h=3D"http://java.sun.com/jsf/html" 
        xmlns:c=3D"http://java.sun.com/jsp/jstl/core"
 
        xmlns:f=3D"http://java.sun.com/jsf/core" 
        xmlns:ui=3D"http://java.sun.com/jsf/facelets" 
        xmlns:custom=3D"http://java.sun.com/jsf/composite/components" 
        xmlns:p=3D"http://primefaces.org/ui" 
        xmlns:pe=3D"http://primefaces.org/ui/extensions"
 
        lang=3D"en"> 

<h:head> 
</h:head> 
<h:body> 

      =   <div class=3D"container"> 
        
            =     <div class=3D"row"> 
              =           <div id=3D"workspace"> 
              =                 =   <h:form id=3D"taskListForm" prependId=3D"false"> 
              =                     =       <custom:buttonSelectBox compId=3D"myLinksMenu" defaultText=3D"2222"> 
              =                     =               <f:facet name=3D"content"> 
              =                     =           <ul> 
              =                     =               <li><a href=3D"#">My = Preferences</a></li> 
              =                     =       </ul> 
              =                     =       <ul> 
              =                     =               <li><a href=3D"#">My = Profile</a></li> 
              =                     =           <li><a href=3D"#{facesContext.externalContext.requestContextPath}/l= ogout">Logout</a></li> 
              =                     =       </ul> 
              =                     =               </f:facet> 
            =                     =         </custom:buttonSelectBox> 
              =                 =   
    =                     =               =   <h:commandButton action=3D"#{testBean.buttonAction}" value=3D"Click ME" /> 
              =                 =   </h:form> 
              =           </div>       =   
    =             </div> 
        </div> 
        
</h:body> 
</html> 


The issue is whenever the web app that contains the above deployed to = web container (I am using Websphere 7), the button on the facelet page = does not register the action until the second click, i.e. the first = click does nothing. The request did reach the server = though.

I have tried every version since 2.1.4 = - 2.1.8, and it still occurring - so I am currently downgraded to = 2.1.3.

Can you please advise if this is a bug = or something that I have missed? If this is a bug, how can I go about = raising this in JIRA?

Any comment would be much = appreciated.

Thanks.

Reg= ards,
Zhao







= --Apple-Mail=_BCAB5A6A-1E75-44E1-8C7C-079DB44E37CA--