From adffaces-user-return-921-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Tue Sep 12 22:55:30 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 1763 invoked from network); 12 Sep 2006 22:55:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Sep 2006 22:55:30 -0000 Received: (qmail 28565 invoked by uid 500); 12 Sep 2006 22:55:29 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 28549 invoked by uid 500); 12 Sep 2006 22:55:29 -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 28540 invoked by uid 99); 12 Sep 2006 22:55:29 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 15:55:29 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=saasira@gmail.com; spf=pass Authentication-Results: idunn.apache.osuosl.org header.from=saasira@gmail.com; domainkeys=good X-ASF-Spam-Status: No, hits=0.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE,RCVD_BY_IP Received-SPF: pass (idunn.apache.osuosl.org: domain gmail.com designates 66.249.82.234 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 Received: from ([66.249.82.234:16828] helo=wx-out-0506.google.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 3F/E1-05218-BEA37054 for ; Tue, 12 Sep 2006 15:55:40 -0700 Received: by wx-out-0506.google.com with SMTP id s13so2161063wxc for ; Tue, 12 Sep 2006 15:55:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XxsMAfKs1/ROeVCb8gJZdGvKqDU90K+cAdu/yAsl5TqJxLB5eN96UDn7/kKqPBg4n8wiP67ePXPZKQfRmtQpZ1jlnxHJdx4R+dQp1OggtRIQP09Gd9owsVS8R8BQPUJZIDK6jnv0P8GylnlexnZu59j19c/gHJXZtO4GEiCqQE4= Received: by 10.70.129.2 with SMTP id b2mr9064611wxd; Tue, 12 Sep 2006 15:55:22 -0700 (PDT) Received: by 10.70.129.11 with HTTP; Tue, 12 Sep 2006 15:55:22 -0700 (PDT) Message-ID: <9c1059490609121555g3dff53cfxe77410d752df6eaa@mail.gmail.com> Date: Tue, 12 Sep 2006 15:55:22 -0700 From: Samba To: adffaces-user@incubator.apache.org Subject: Re: ADF Bindings Servlet/Filter not invoking Faces Servlet In-Reply-To: <254acf980609121506i278ed6cdkb2d3c83f5bfb0c83@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_234453_12840971.1158101722495" References: <9c1059490609120404x15dac6brb623a691f1527803@mail.gmail.com> <254acf980609120540s68cb5b8em6a2afbb280f89c67@mail.gmail.com> <254acf980609120949y7d719870r287800d78f1be52a@mail.gmail.com> <9c1059490609121306i59c37a94m6aff39bad6600c2c@mail.gmail.com> <254acf980609121323m78fb7a2aua26c6c9d1cb510e9@mail.gmail.com> <9c1059490609121343p1eead987re1fdf4ece9ccf613@mail.gmail.com> <254acf980609121506i278ed6cdkb2d3c83f5bfb0c83@mail.gmail.com> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_234453_12840971.1158101722495 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! simon, Could you provide some Sample application or a link ot the page there is any tutorial which explains this direct coding method instead of Declarative/drag and drop technic. I'm also new to TopLink , So I'm not much familiar with It's API. Could you send me a Sample Application which uses these features? Learning new technology is always thrilling to me... I don't know whether we are going to shift from this bindings to the coding approach, as it depends on severel other factors such as the time it takes to learn the new thing! But we may onsider using it at a later point of time. I'll be really grateful to you if you can provide a working Sample Application that can give me an idea of what can we do using this approach! Thanking you, Samba. On 9/12/06, Simon Lessard wrote: > > Hello Samba, > > Drag & drop works only with data controls to my knowledge. As for EL, I > usually create a facade architecture and managed beans, so yeah it implies > more code, but I get access to the whole API and it's easier to switch > over > another technology after imho. Better extensibility and modularisation at > the cost of an higher initial development effort. Note that I'm more used > to > Hibernate than TopLink though, so the API could be a bit different, but > I'm > prety sure you can do almost the same. > > > Regards, > > ~ Simon > > On 9/12/06, Samba wrote: > > > > Thank you once again Simon, > > > > I understand that I shoiuld place a service request with Metalink. > > > > But before that Please clarify me one more thing: > > > > Can we get the EL access tio the methods that use TopLink > > ExpressionBuilder > > and all the other API(Which I'm not much familiar with). > > But Dragging and dropping DataControls from the DataControl > pallette > > saves a lot of time rather than writing a few lines of code for each > and > > every database related action that we do on a webpage! > > Can we get that drag and drop functionality with out ADF Bindings? > > Thanking you heartfeltly(if such a word exists!) > > Samba. > > > > On 9/12/06, Simon Lessard wrote: > > > > > > Hmmm, > > > > > > Have you tried the following using XHTML extension for Facelets as > well? > > > Theorically it *should* work. > > > > > > > > > adfBindings > > > *.xhtml > > > > > > > > > adfFaces > > > *.xhtml > > > > > > > > > > > > Yet again, my suggestion would be to drop data controls altogether, > this > > > is > > > hard when everyones know the technology, but ADF is not the best MV > > > separation ever invented, the evil pageDef makes me think about ASP > that > > > remind me about IE which gives me nightmares. Furthermore, data > controls > > > will most likely suffer deep changes with JEE 5 persitence with > > > annotations. > > > > > > If the above does not work (it should work though really) and you must > > use > > > data controls, I think you should fill a Metalink issue as they should > > not > > > be so tightly linked to page extension. Sorry that I cannot help much > on > > > this issue, but it's really either a Facelets and/or ADF Databindings > > > (Oracle) issue and I cannot access the code of either to check what's > > > going > > > wrong. > > > > > > > > > Regards, > > > > > > ~ Simon > > > > > > > > > On 9/12/06, Samba wrote: > > > > > > > > Thankyou very much Simon, for your detailed answer. > > > > > > > > I'm displaying those database tables in client pages, and not in > > > > templates, but still I could not access the Bindings in my backing > > bean, > > > > or > > > > get the table displayed. > > > > One more thing is For pages(in the same > > > > facelets application where faces > > > > servlet mapping is done for jsf)with out any Facelets tags in them > > also > > > , > > > > I'm getting the same message Access denied for tables and also the > > > > bindings > > > > are not called in method actions written for commmandbuttons, in > > > backing > > > > bean. > > > > And when I change that we.xml entry to map faces servlet to jspx > pages > > , > > > > I'm > > > > getting ADF Bindings work, but facelets are not working in this > > format. > > > > Those two have become mutually exclusive thiings! > > > > > > > > I tried to change the path attribue for tag in > > > DataBindings.cpxfile > > > > from: > > > > > > > > > > > > to > > > > > > > > but still I did not get the bindings work for jsf pages. > > > > > > > > How is that the bindings filter is written to work with only jspx > > > > pages? > > > > > > > > Is this immutable? > > > > Can't we use bindings in jsf format? > > > > Or may be Is it that JDevloper is not recognising the jsf file > > format? > > > > > > > > Thanking you for the support you are providing,, > > > > Samba. > > > > > > > > > > > > On 9/12/06, Simon Lessard wrote: > > > > > > > > > > As for the extension I think you should use .xhtml for everything > > when > > > > > using > > > > > Facelets. I don't remember if I actually succeeded using both > > > > techonology > > > > > together however. > > > > > > > > > > On 9/12/06, Simon Lessard wrote: > > > > > > > > > > > > Hello Samba, > > > > > > > > > > > > This is more an ADF issue than a Trinidad one. However, I will > try > > > my > > > > > best > > > > > > to answer it. Data bindings uses a pageDef file, I assume you > > > already > > > > > found > > > > > > that out. However, Facelet uses templates based on different > > pages. > > > > The > > > > > > question thus arise, where do you place your bindings? In the > main > > > > page > > > > > or > > > > > > the template. The answer, may be a bit unintuitive, but it's > > always > > > in > > > > > the > > > > > > page, never in the template, even if the binding is used in the > > > > > template. > > > > > > > > > > > > That is, if your template is displaying the table, if should not > > > have > > > > > the > > > > > > table defined in its pageDef, the table should instead be > defined > > in > > > > the > > > > > > page using that that template so that ADF lifecycle load the > > > pageDef, > > > > > and > > > > > > thus the bindings, before the render phase (prepare model phase > if > > I > > > > > > remember well). Since pages included by Facelets are never known > > > (and > > > > > cannot > > > > > > be) by ADF at that moment, their pageDef is NEVER ever read, so > > drag > > > & > > > > > drop > > > > > > from the binding pane in JDeveloper in combination with Facelets > > > > almost > > > > > > never work, you have to edit the pageDef manually. So my first > > > > > suggestion > > > > > > would be to check your pageDef files. My second suggestion, > which > > is > > > > my > > > > > > preferred most of the time, especially with product like TopLink > > (as > > > > > opposed > > > > > > to BC4J), is to do it all programatically and drop databinding > > > > > altogether. > > > > > > > > > > > > Note, I think you would have more success on OTN for this issue, > > > Steve > > > > > Muench > > > > > > is probably the highest authority on that matter. > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > ~ Simon > > > > > > > > > > > > Technically, Facelet actually only fill the component tree > > > > > > > > > > > > > > > > > > On 9/12/06, Samba wrote: > > > > > > > > > > > > > > I'm getting ADF Faces and Facelets working properly with pages > > > > written > > > > > > > in > > > > > > > jspx format, but the Faces Servlet being mapped to jsf format. > > > > > > > > > > > > > > The problem I'm getting is while displaying ADF Tables with > data > > > > > > > retrieved > > > > > > > from the database using Toplink and bindings provided by ADF > > > > > > > Databindings. > > > > > > > > > > > > > > The following is the Web.xml mappings for Faces Servlet and > ADF > > > > > bindings > > > > > > > filter: > > > > > > > > > > > > > > > > > > > > > Faces Servlet > > > > > > > javax.faces.webapp.FacesServlet > > > > > > > 1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > resources > > > > > > > /adf/* > > > > > > > > > > > > > > > > > > > > > > > > > > > > Faces Servlet > > > > > > > *.jsf > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > adfBindings > > > > > > > oracle.adf.model.servlet.ADFBindingFilter > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > adfBindings > > > > > > > *.jsp > > > > > > > > > > > > > > > > > > > > > > > > > > > > adfBindings > > > > > > > *.jspx > > > > > > > > > > > > > > > > > > > > > > > > > > > > I'm getting the ADF tables displayed using ADF Bindings, if > the > > > > faces > > > > > > > servlet is mapped for jspx format;but, at the cost of losing > > > > > > > Facelets...Facelets is not working with Faces Servlet mapped > to > > > jspx > > > > > > > format(though written in jspx format, the faces servlet > mappping > > > has > > > > > to > > > > > > > be > > > > > > > made for jsf format.On the other hand, if I use faces servlet > > > > mapping > > > > > > > for > > > > > > > jsf pages I'm getting Facelets working but ADF Databindings > are > > > not > > > > > > > working > > > > > > > ,(I guess) and hence ADF Faces Tables are not being > > displayed(I'm > > > > > > > getting > > > > > > > Access Denied message). > > > > > > > > > > > > > > I even tried to change the ADF binding filter mappings > > > > > > > > > > > > > > ---- from ---- jsp &jspx---- to ----- jsp and jsf ---- > > > > > > > > > > > > > > But I got the same Access denied message. > > > > > > > > > > > > > > > > > > > > > Suppose, > > > > > > > > > > > > > > I need customised display, rather than just a Table or > > Form,like: > > > > > > > > > > > > > > public String getEmp() { > > > > > > > BindingContainer bindings = getBindings(); > > > > > > > OperationBinding operationBinding = > > > > > > > bindings.getOperationBinding("findAllEmp"); > > > > > > > Object result = operationBinding.execute(); > > > > > > > if (!operationBinding.getErrors().isEmpty()) { > > > > > > > return null; > > > > > > > } > > > > > > > > > > > > > > List res=(List)result; > > > > > > > for(int i=0;i > > > > > > { > > > > > > > Emp myrec=res.get(i); > > > > > > > System.out.println("Employee ["+myrec.getEname()+"], Salary > > > > > > > ["+myrec.getSal()+"]"); > > > > > > > } > > > > > > > return ""; > > > > > > > } > > > > > > > > > > > > > > where I do some customisation in the backing bean. > > > > > > > > > > > > > > and I call that method binded to a button as below: > > > > > > > > > > > > > > > > > > > > > > > > > > > > text="findAllEmp" > > > > > > > disabled="#{!bindings.findAllEmp.enabled}" > > > > > > > binding="#{backing_Success.commandButton1}" > > > > > > > id="commandButton1" > > > > > > > action="#{backing_Success.getEmp}"/> > > > > > > > > > > > > > > What I'm getting is a disabled button. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Why doesn't ADF bindings servlet invoke the faces Servlet? > > > > > > > Can't we make ADF Bindings Servlet invoke Faces Servlet by > > > > configuring > > > > > > > in > > > > > > > the web.xml? > > > > > > > > > > > > > > Can't we get ADF Bindings filter mapped to work with jsf > pages? > > > > > > > Won't ADF Bindings work with jsf pages, will they work only > with > > > > jspx > > > > > > > pages? > > > > > > > > > > > > > > , > > > > > > > Please Help me. > > > > > > > > > > > > > > > > > > > > > Thanking you, > > > > > > > - > > > > > > > Regards, > > > > > > > Samba. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > Vuntaanu... > > > > Samba. > > > > > > > > > > > > > > > > > > > > -- > > Vuntaanu... > > Samba. > > > > > > -- Regards... Samba. ------=_Part_234453_12840971.1158101722495--