Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 83272 invoked from network); 18 Nov 2009 10:20:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Nov 2009 10:20:58 -0000 Received: (qmail 91935 invoked by uid 500); 18 Nov 2009 10:20:57 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 91844 invoked by uid 500); 18 Nov 2009 10:20:56 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 91834 invoked by uid 99); 18 Nov 2009 10:20:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2009 10:20:56 +0000 X-ASF-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.218.211] (HELO mail-bw0-f211.google.com) (209.85.218.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Nov 2009 10:20:53 +0000 Received: by bwz3 with SMTP id 3so1075716bwz.36 for ; Wed, 18 Nov 2009 02:20:31 -0800 (PST) Received: by 10.204.153.202 with SMTP id l10mr1781368bkw.92.1258539630250; Wed, 18 Nov 2009 02:20:30 -0800 (PST) Received: from ?192.168.1.100? (pool-030ff.externet.hu [88.209.218.254]) by mx.google.com with ESMTPS id k29sm1501924fkk.55.2009.11.18.02.20.28 (version=SSLv3 cipher=RC4-MD5); Wed, 18 Nov 2009 02:20:29 -0800 (PST) Message-ID: <4B03CA67.4040900@mailbox.hu> Date: Wed, 18 Nov 2009 11:20:23 +0100 From: Arnold Preg User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.4pre) Gecko/20090929 Shredder/3.0b4 MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: [Trinidad] Trinidad, Facelets, multiple forms References: <4B02667F.4070903@mailbox.hu> <86473bc40911170450r5160d7f4xa78a0ef4d618a2b6@mail.gmail.com> <4B02F959.6090500@mailbox.hu> <86473bc40911172354o568322d6s50814de670e3cb3b@mail.gmail.com> <4B03B1BA.3050301@mailbox.hu> <86473bc40911180133y6d4fc478g516badd4fe027180@mail.gmail.com> In-Reply-To: <86473bc40911180133y6d4fc478g516badd4fe027180@mail.gmail.com> Content-Type: multipart/alternative; boundary="------------090401030302050104050303" --------------090401030302050104050303 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, If I can reach this ( http://i48.tinypic.com/2q207ib.png ) look with skinning, then yes. (In essence I don't need column headers, pagination bar, radiobuttons etc. Just the layout and collection handling function I need from tr:table in this case.) I think SWF can handle POST and GET parameters equally. On 2009.11.18. 10:33, Bart Kummel wrote: > Hi, > > If you only want to change the appearance, you should definitely take a look > at Trinidad's skinning > features. > You can change the appearance of every Trinidad component this way, while > keeping the functionality. Is that what you're looking for? > > As for you other question: what type of parameters does SWF expect? POST or > GET? > > Best regards, > Bart > > On Wed, Nov 18, 2009 at 09:35, Arnold Preg wrote: > > >> Hi, >> >> I have to use Trinidad components, and minimalize the use of manual HTML >> or js codes. I do not like to use trh: components, but the tr:table >> appearance has not been being suitable and I did not want to write own >> component because I thought the tr:table and iterate will do the work and >> I never wrote an own component before yet, so this was left. Although, as I >> see the own component could be the best solution to reach the proper >> appearance. But one question is still here: How to send parameters with >> tr:commandButton to SWF correctly and easy? Thank you for your patience. >> >> >> On 2009.11.18. 8:54, Bart Kummel wrote: >> >> >>> Hi, >>> >>> I'm afraid I still don't understand exactly what you need. However, I >>> still >>> think you shouldn't use the approach with the, etc. >>> (Should you need *some* HTML for layout of your page, with Facelets you >>> can >>> use HTML in your Facelet, so you don't need any tag for that >>> anymore.) >>> >>> If you want to use JSF, you should use JSF components that do the hard >>> work >>> for you. You can search the Trinidad, Tomahawk and Tobago libraries or >>> other >>> component libraries for a component that suits your needs. If nothing can >>> be >>> found, you can create your own JSF component. If you prefer to be super >>> flexible in the HTML output, you should perhaps consider a framework that >>> isn't component based, like JSF. >>> >>> Best regards, >>> Bart >>> >>> On Tue, Nov 17, 2009 at 20:28, Arnold Preg wrote: >>> >>> >>> >>> >>>> On 2009.11.17. 13:50, Bart Kummel wrote: >>>> >>>> >>>> >>>> >>>>> Hi, >>>>> >>>>> I don't have any experience with Spring WebFlow, so I can't help you on >>>>> that >>>>> part. But when it comes to your other question, as I understand you >>>>> right, >>>>> you want to spread your list of books over multiple pages if the number >>>>> of >>>>> books exceeds a certain value, right? >>>>> >>>>> This is simple to achieve, but you shouldn't use. You >>>>> should use instead. will do all hard work for >>>>> you, >>>>> including the pagination of your data. Please read the documentation of >>>>> < >>>>> http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_table.html >>>>> >>>>> >>>>> >>>>>> first. >>>>>> >>>>>> >>>>>> >>>>> And regarding your: you are right that you don't use it >>>>> properly. In this case, it can be left out, you don't need it here. >>>>> >>>>> One last remark: as I look at your code, I get the impression that you >>>>> don't >>>>> get the idea of JavaServer Faces. The idea is to use components that >>>>> render >>>>> a user interface for you. Those components perform all the hard work for >>>>> you. Generally speaking, you shouldn't be fiddling with repetition in >>>>> any >>>>> JSF page definition. In this example, if you use a, the only >>>>> thing you have to do is tell the table where the collection is that you >>>>> want >>>>> to show. The table component will do all the hard work, including the >>>>> repetition and pagination. I hope this helps. Good luck! >>>>> >>>>> Best regards, >>>>> Bart Kummel >>>>> >>>>> On Tue, Nov 17, 2009 at 10:01, Arnold Preg wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I'm newbie, so sorry for stupid questions. I'm trying to use Facelets >>>>>> 1.1.14. SWF 2.0.8. Spring 2.5.6. Apache Trinidad 1.2.12. JBoss EL >>>>>> 2.0.1. >>>>>> and Hibernate JPA imp. but I think it's not relevant now. My English >>>>>> not >>>>>> too >>>>>> good let the code snippets speak because of this rather. >>>>>> >>>>>> borderLayout.xhtml >>>>>> >>>>>> >>>>> xmlns:h="http://java.sun.com/jsf/html" >>>>>> xmlns:f="http://java.sun.com/jsf/core" >>>>>> xmlns:trh="http://myfaces.apache.org/trinidad/html" >>>>>> xmlns:tr="http://myfaces.apache.org/trinidad" title="#{pageTitle}"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> page.xhtml >>>>>> >>>>>> >>>>> xmlns:h="http://java.sun.com/jsf/html" >>>>>> xmlns:f="http://java.sun.com/jsf/core" >>>>>> xmlns:ui="http://java.sun.com/jsf/facelets" >>>>>> xmlns:tr="http://myfaces.apache.org/trinidad" >>>>>> xmlns:trh="http://myfaces.apache.org/trinidad/html" >>>>>> xmlns:test="http://www.my.net/some/arbitrary/namespace" >>>>>> template="/WEB-INF/layouts/borderLayout.xhtml"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> halign="center"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> text="#{book.title}"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> * >>>>>> >>>>>> >>>>>> * >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> flow.xml >>>>>> >>>>>> >>>>>> >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>>>> xsi:schemaLocation="http://www.springframework.org/schema/webflow >>>>>> http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> result="viewScope.bestsellers"> >>>>>> >>>>>> >>>>>> >>>>> >>>>>> value="catalogService.getBookById(requestParameters.selectedBookId)" >>>>>> /> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>