From adffaces-user-return-49-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Thu Apr 06 22:52:05 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 48691 invoked from network); 6 Apr 2006 22:52:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Apr 2006 22:52:05 -0000 Received: (qmail 15848 invoked by uid 500); 6 Apr 2006 22:51:46 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 15832 invoked by uid 500); 6 Apr 2006 22:51:46 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 15822 invoked by uid 99); 6 Apr 2006 22:51:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 15:51:45 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.251.33.34] (HELO mail.chessys.com) (209.251.33.34) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2006 15:51:43 -0700 Received: from Jeremy [209.251.44.105] by mail.chessys.com with ESMTP (SMTPD-8.21) id AB6A0424; Thu, 06 Apr 2006 18:51:22 -0400 From: "Jeremy Sager" To: Subject: RE: Bug in ADF showOne components Date: Thu, 6 Apr 2006 18:58:31 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <6dac79b90604061402p20a53328o5c20e1fa2dbe7ec3@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcZZvXyNRjI+kcHoS+6vv780FQ5J/QAD/6hg Message-Id: <200604061851650.SM04668@Jeremy> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Actually I just realized our web project depends on the core project so it wouldn't be a trivial as I thought to zip it and send it, but it could still be done if it was super necessary. It might be easier to zip up the key items (jars, config files) and send 'em over. Jeremy Sager Data Communications Product Manager Chesapeake System Solutions 410.356.6805 x120 JSager@chessys.com -----Original Message----- From: Adam Winer [mailto:awiner@gmail.com] Sent: Thursday, April 06, 2006 5:03 PM To: adffaces-user@incubator.apache.org Subject: Re: Bug in ADF showOne components Jeremy, Could you try a quick experiment? Swap from af:showOneChoice to af:showOneTab and see if it all works? I'm curious if the problems are with the renderer (I'm less than 100% confident in the showOneChoice renderer code) or with the component logic. -- Adam On 4/6/06, Jeremy Sager wrote: > > > > Hi guys - > > > > I'm moving this from the myfaces list to the adf faces list because it's > more appropriate here, and I'm sure Jonas checks both. > > > > It turns out that using the correct html and body tags solved our test case, > but it did not solve my production case. I've done more testing and further > isolated some issues. > > > > Scenario 1: > > > > If I assign an id by hand (i.e. having an attribute id="_123456" or > whatever) to the showOneChoice, it malfunctions in the way I initially > described, with the input automatically reverting to the first item in the > drop down list whenever anything is selected. > > > > Scenario 1b: > > > > If you remove the facet and just have the showOneChoice inside the panel > page, it misbehaves exactly once and then moves on to Scenario 2. > > > > Scenario 2: > > > > If you do not assign the id by hand and it is generated automatically, the > input does NOT revert to the first item in the drop down list automatically, > but it does still have a problem. > > > > The correct CoreShowDetailItem does not display... the final visible output > for the test page I am about to show you is always "Showing One" even when > the input box shows "Item Two". I included a picture here, it may show up > as an attachment. > > > > > > > > Included here is the exact page from beginning to end that renders Scenario > Two. To get Scenario One, just add id= to the showOneChoice. Below that I > will also include the generated source from the page (it's not that big) and > also the facelets debug screen. > > > > My Facelets Page: > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > > > xmlns:ui="http://java.sun.com/jsf/facelets" > > xmlns:h="http://java.sun.com/jsf/html" > > xmlns:c="http://java.sun.com/jstl/core" > > xmlns:f="http://java.sun.com/jsf/core" > > xmlns:t="http://myfaces.apache.org/tomahawk" > > xmlns:cssi="http://www.chessys.com" > > xmlns:afh="http://xmlns.oracle.com/adf/faces/html" > > xmlns:af="http://xmlns.oracle.com/adf/faces"> > > > > > > > > > > > > > > text="Item One"> > > value="Showing One"/> > > > > text="Item Two"> > > value="Showing Two"/> > > > > > > > > > > > > > > > > > > > > > > The results are the same with the ui:debug tag removed. > > > > > > Generated Source: > > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > > > "http://www.w3.org/TR/html4/loose.dtd"> > > > > onunload="_checkUnload(event)"> > > > >
onclick="return _pprConsumeClick(event);" > style="position:absolute;left:0;top:0;width:0;height:0;cursor:wait;" > onkeydown="return false;" onkeyup="return false;" onmousedown="return > false;" onmouseup="return false;" onkeypress="return > false;">
> > > > > >
action="/TRecsWebClient/pages/trecs.jsf;jsessionid=FF3329E7CD5F9FBA6D10F3687 ECCD300">Skip > navigation elements to page contents summary=""> > > > > > > > > > > > > > > > > > > > >
id="_id6" summary="" border="0" cellspacing="0" cellpadding="0"> > > > > > > > > > > > > > > > > > > > > > > > >
cellspacing="0" cellpadding="0" summary=""> > > > > > > > > > > > > > > > >
> > > >
Showing One
width="10" height="1">
cellspacing="0" border="0" summary="" width="100%"> > > > > > > > >
class="xj"> summary="" border="0" cellspacing="0" cellpadding="0"> > > > > > > > > > > > >
> >
class="x4r">
class="x4t">
class="x1a"> class="x1c">
> > id="__id4_Postscript"> name="oracle.adf.faces.STATE_TOKEN" > value="1caffdd1">
> > > > > > > > > > > > > > > > > > Facelets Debug Screen: > > > > Debug Output > > /pages/trecs.xhtml > > +- Component Tree > > transient="false" viewId="/pages/trecs.xhtml"> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > > > > > > > transient="false"> > > usesUpload="false"> > > menu1="CoreShowOneChoice[UINodeFacesBean, id=_id6]" messageType="none" > quickLinksShown="false" rendered="true" transient="false"> > > menu1 > > rendered="true" transient="false"> > > id="_id7" immediate="false" rendered="true" text="Item One" > transient="false"> > > truncateAt="0" value="Showing One"/> > > > > id="_id9" immediate="false" rendered="true" text="Item Two" > transient="false"> > > truncateAt="0" value="Showing Two"/> > > > > > > > > > > > > > > > > > > +- Scoped Variables > > > Request Parameters > > > Name > > Value > > > None > > > > > Request Attributes > > > Name > > Value > ... > > [Message clipped]