Hey Adam - Well, I just spent forty five minutes learning the hard way that you need the afh:head tag to have your css show up. interesting "gotcha" there. I had it originally, but I stripped it out to present you guys with the minimal set of tags to dupe my issue. showOneTab is just not functional without the ADF css. So anyway, now that I've fixed that traffic accident. It appears that with Tab, the behavior that I earlier described for scenario 1 is always how it behaves, no matter if I change the things that made scenario 1b and scenario 2 different for Choice. Here's my facelets page, followed by the source. to save you some eye strain, search for this: Total Reconciliation Solution
Skip navigation elements to page contents
SelectedItem One Item Two
Showing One

function __id7Validator(){return true;}var _id7_SF={};
Let me know if you need anything more, I'll be happy to give you a listing of my jar files, along with anything you need to see. our Spring/Hibernate layer is in a different project so with my boss's permission I could possibly zip the entire eclipse project and email it to you. 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]