Source Code Cross Referenced for Details.java in  » IDE-Netbeans » visualweb.api.designer » travelcenter » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE Netbeans » visualweb.api.designer » travelcenter 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003:         *
004:         * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005:         *
006:         * The contents of this file are subject to the terms of either the GNU
007:         * General Public License Version 2 only ("GPL") or the Common
008:         * Development and Distribution License("CDDL") (collectively, the
009:         * "License"). You may not use this file except in compliance with the
010:         * License. You can obtain a copy of the License at
011:         * http://www.netbeans.org/cddl-gplv2.html
012:         * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013:         * specific language governing permissions and limitations under the
014:         * License.  When distributing the software, include this License Header
015:         * Notice in each file and include the License file at
016:         * nbbuild/licenses/CDDL-GPL-2-CP.  Sun designates this
017:         * particular file as subject to the "Classpath" exception as provided
018:         * by Sun in the GPL Version 2 section of the License file that
019:         * accompanied this code. If applicable, add the following below the
020:         * License Header, with the fields enclosed by brackets [] replaced by
021:         * your own identifying information:
022:         * "Portions Copyrighted [year] [name of copyright owner]"
023:         *
024:         * Contributor(s):
025:         *
026:         * The Original Software is NetBeans. The Initial Developer of the Original
027:         * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028:         * Microsystems, Inc. All Rights Reserved.
029:         *
030:         * If you wish your version of this file to be governed by only the CDDL
031:         * or only the GPL Version 2, indicate your decision by adding
032:         * "[Contributor] elects to include this software in this distribution
033:         * under the [CDDL or GPL Version 2] license." If you do not indicate a
034:         * single choice of license, a recipient has the option to distribute
035:         * your version of this file under either the CDDL, the GPL Version 2 or
036:         * to extend the choice of license to its licensees as provided above.
037:         * However, if you add GPL Version 2 code and therefore, elected the GPL
038:         * Version 2 license, then the option applies only if the new code is
039:         * made subject to such option by the copyright holder.
040:         */
041:
042:        package travelcenter;
043:
044:        import com.sun.data.provider.impl.CachedRowSetDataProvider;
045:        import com.sun.rave.web.ui.appbase.AbstractPageBean;
046:        import com.sun.webui.jsf.component.Body;
047:        import com.sun.webui.jsf.component.Button;
048:        import com.sun.webui.jsf.component.Form;
049:        import com.sun.webui.jsf.component.Head;
050:        import com.sun.webui.jsf.component.Html;
051:        import com.sun.webui.jsf.component.Label;
052:        import com.sun.webui.jsf.component.Link;
053:        import com.sun.webui.jsf.component.Page;
054:        import com.sun.webui.jsf.component.StaticText;
055:        import com.sun.webui.jsf.component.Table;
056:        import com.sun.webui.jsf.component.TableColumn;
057:        import com.sun.webui.jsf.component.TableRowGroup;
058:        import javax.faces.FacesException;
059:        import javax.faces.component.html.HtmlPanelGrid;
060:
061:        /**
062:         * <p>Page bean that corresponds to a similarly named JSP page.  This
063:         * class contains component definitions (and initialization code) for
064:         * all components that you have defined on this page, as well as
065:         * lifecycle methods and event handlers where you may add behavior
066:         * to respond to incoming events.</p>
067:         */
068:        public class Details extends AbstractPageBean {
069:            // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
070:            private int __placeholder;
071:
072:            /**
073:             * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
074:             * This method is automatically generated, so any user-specified code inserted
075:             * here is subject to being replaced.</p>
076:             */
077:            private void _init() throws Exception {
078:                flightDataProvider
079:                        .setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.flightRowSet}"));
080:                carrentalDataProvider
081:                        .setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.carrentalRowSet}"));
082:                hotelDataProvider
083:                        .setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.hotelRowSet}"));
084:                personDataProvider1
085:                        .setCachedRowSet((javax.sql.rowset.CachedRowSet) getValue("#{SessionBean1.personRowSet1}"));
086:            }
087:
088:            private Page page1 = new Page();
089:
090:            public Page getPage1() {
091:                return page1;
092:            }
093:
094:            public void setPage1(Page p) {
095:                this .page1 = p;
096:            }
097:
098:            private Html html1 = new Html();
099:
100:            public Html getHtml1() {
101:                return html1;
102:            }
103:
104:            public void setHtml1(Html h) {
105:                this .html1 = h;
106:            }
107:
108:            private Head head1 = new Head();
109:
110:            public Head getHead1() {
111:                return head1;
112:            }
113:
114:            public void setHead1(Head h) {
115:                this .head1 = h;
116:            }
117:
118:            private Link link1 = new Link();
119:
120:            public Link getLink1() {
121:                return link1;
122:            }
123:
124:            public void setLink1(Link l) {
125:                this .link1 = l;
126:            }
127:
128:            private Body body1 = new Body();
129:
130:            public Body getBody1() {
131:                return body1;
132:            }
133:
134:            public void setBody1(Body b) {
135:                this .body1 = b;
136:            }
137:
138:            private Form form1 = new Form();
139:
140:            public Form getForm1() {
141:                return form1;
142:            }
143:
144:            public void setForm1(Form f) {
145:                this .form1 = f;
146:            }
147:
148:            private HtmlPanelGrid mainPanel = new HtmlPanelGrid();
149:
150:            public HtmlPanelGrid getMainPanel() {
151:                return mainPanel;
152:            }
153:
154:            public void setMainPanel(HtmlPanelGrid hpg) {
155:                this .mainPanel = hpg;
156:            }
157:
158:            private Button backButton = new Button();
159:
160:            public Button getBackButton() {
161:                return backButton;
162:            }
163:
164:            public void setBackButton(Button b) {
165:                this .backButton = b;
166:            }
167:
168:            private StaticText staticText1 = new StaticText();
169:
170:            public StaticText getStaticText1() {
171:                return staticText1;
172:            }
173:
174:            public void setStaticText1(StaticText st) {
175:                this .staticText1 = st;
176:            }
177:
178:            private Label label1 = new Label();
179:
180:            public Label getLabel1() {
181:                return label1;
182:            }
183:
184:            public void setLabel1(Label l) {
185:                this .label1 = l;
186:            }
187:
188:            private StaticText personsName = new StaticText();
189:
190:            public StaticText getPersonsName() {
191:                return personsName;
192:            }
193:
194:            public void setPersonsName(StaticText st) {
195:                this .personsName = st;
196:            }
197:
198:            private StaticText staticText2 = new StaticText();
199:
200:            public StaticText getStaticText2() {
201:                return staticText2;
202:            }
203:
204:            public void setStaticText2(StaticText st) {
205:                this .staticText2 = st;
206:            }
207:
208:            private StaticText staticText3 = new StaticText();
209:
210:            public StaticText getStaticText3() {
211:                return staticText3;
212:            }
213:
214:            public void setStaticText3(StaticText st) {
215:                this .staticText3 = st;
216:            }
217:
218:            private StaticText staticText4 = new StaticText();
219:
220:            public StaticText getStaticText4() {
221:                return staticText4;
222:            }
223:
224:            public void setStaticText4(StaticText st) {
225:                this .staticText4 = st;
226:            }
227:
228:            private Table flights = new Table();
229:
230:            public Table getFlights() {
231:                return flights;
232:            }
233:
234:            public void setFlights(Table t) {
235:                this .flights = t;
236:            }
237:
238:            private TableRowGroup tableRowGroup1 = new TableRowGroup();
239:
240:            public TableRowGroup getTableRowGroup1() {
241:                return tableRowGroup1;
242:            }
243:
244:            public void setTableRowGroup1(TableRowGroup trg) {
245:                this .tableRowGroup1 = trg;
246:            }
247:
248:            private Table autoRental = new Table();
249:
250:            public Table getAutoRental() {
251:                return autoRental;
252:            }
253:
254:            public void setAutoRental(Table t) {
255:                this .autoRental = t;
256:            }
257:
258:            private TableRowGroup tableRowGroup2 = new TableRowGroup();
259:
260:            public TableRowGroup getTableRowGroup2() {
261:                return tableRowGroup2;
262:            }
263:
264:            public void setTableRowGroup2(TableRowGroup trg) {
265:                this .tableRowGroup2 = trg;
266:            }
267:
268:            private Table hotel = new Table();
269:
270:            public Table getHotel() {
271:                return hotel;
272:            }
273:
274:            public void setHotel(Table t) {
275:                this .hotel = t;
276:            }
277:
278:            private TableRowGroup tableRowGroup3 = new TableRowGroup();
279:
280:            public TableRowGroup getTableRowGroup3() {
281:                return tableRowGroup3;
282:            }
283:
284:            public void setTableRowGroup3(TableRowGroup trg) {
285:                this .tableRowGroup3 = trg;
286:            }
287:
288:            private CachedRowSetDataProvider flightDataProvider = new CachedRowSetDataProvider();
289:
290:            public CachedRowSetDataProvider getFlightDataProvider() {
291:                return flightDataProvider;
292:            }
293:
294:            public void setFlightDataProvider(CachedRowSetDataProvider crsdp) {
295:                this .flightDataProvider = crsdp;
296:            }
297:
298:            private TableColumn tableColumn3 = new TableColumn();
299:
300:            public TableColumn getTableColumn3() {
301:                return tableColumn3;
302:            }
303:
304:            public void setTableColumn3(TableColumn tc) {
305:                this .tableColumn3 = tc;
306:            }
307:
308:            private StaticText staticText7 = new StaticText();
309:
310:            public StaticText getStaticText7() {
311:                return staticText7;
312:            }
313:
314:            public void setStaticText7(StaticText st) {
315:                this .staticText7 = st;
316:            }
317:
318:            private TableColumn tableColumn10 = new TableColumn();
319:
320:            public TableColumn getTableColumn10() {
321:                return tableColumn10;
322:            }
323:
324:            public void setTableColumn10(TableColumn tc) {
325:                this .tableColumn10 = tc;
326:            }
327:
328:            private StaticText staticText14 = new StaticText();
329:
330:            public StaticText getStaticText14() {
331:                return staticText14;
332:            }
333:
334:            public void setStaticText14(StaticText st) {
335:                this .staticText14 = st;
336:            }
337:
338:            private TableColumn tableColumn11 = new TableColumn();
339:
340:            public TableColumn getTableColumn11() {
341:                return tableColumn11;
342:            }
343:
344:            public void setTableColumn11(TableColumn tc) {
345:                this .tableColumn11 = tc;
346:            }
347:
348:            private StaticText staticText15 = new StaticText();
349:
350:            public StaticText getStaticText15() {
351:                return staticText15;
352:            }
353:
354:            public void setStaticText15(StaticText st) {
355:                this .staticText15 = st;
356:            }
357:
358:            private TableColumn tableColumn12 = new TableColumn();
359:
360:            public TableColumn getTableColumn12() {
361:                return tableColumn12;
362:            }
363:
364:            public void setTableColumn12(TableColumn tc) {
365:                this .tableColumn12 = tc;
366:            }
367:
368:            private StaticText staticText16 = new StaticText();
369:
370:            public StaticText getStaticText16() {
371:                return staticText16;
372:            }
373:
374:            public void setStaticText16(StaticText st) {
375:                this .staticText16 = st;
376:            }
377:
378:            private TableColumn tableColumn13 = new TableColumn();
379:
380:            public TableColumn getTableColumn13() {
381:                return tableColumn13;
382:            }
383:
384:            public void setTableColumn13(TableColumn tc) {
385:                this .tableColumn13 = tc;
386:            }
387:
388:            private StaticText staticText17 = new StaticText();
389:
390:            public StaticText getStaticText17() {
391:                return staticText17;
392:            }
393:
394:            public void setStaticText17(StaticText st) {
395:                this .staticText17 = st;
396:            }
397:
398:            private TableColumn tableColumn14 = new TableColumn();
399:
400:            public TableColumn getTableColumn14() {
401:                return tableColumn14;
402:            }
403:
404:            public void setTableColumn14(TableColumn tc) {
405:                this .tableColumn14 = tc;
406:            }
407:
408:            private StaticText staticText18 = new StaticText();
409:
410:            public StaticText getStaticText18() {
411:                return staticText18;
412:            }
413:
414:            public void setStaticText18(StaticText st) {
415:                this .staticText18 = st;
416:            }
417:
418:            private TableColumn tableColumn15 = new TableColumn();
419:
420:            public TableColumn getTableColumn15() {
421:                return tableColumn15;
422:            }
423:
424:            public void setTableColumn15(TableColumn tc) {
425:                this .tableColumn15 = tc;
426:            }
427:
428:            private StaticText staticText19 = new StaticText();
429:
430:            public StaticText getStaticText19() {
431:                return staticText19;
432:            }
433:
434:            public void setStaticText19(StaticText st) {
435:                this .staticText19 = st;
436:            }
437:
438:            private TableColumn tableColumn16 = new TableColumn();
439:
440:            public TableColumn getTableColumn16() {
441:                return tableColumn16;
442:            }
443:
444:            public void setTableColumn16(TableColumn tc) {
445:                this .tableColumn16 = tc;
446:            }
447:
448:            private StaticText staticText20 = new StaticText();
449:
450:            public StaticText getStaticText20() {
451:                return staticText20;
452:            }
453:
454:            public void setStaticText20(StaticText st) {
455:                this .staticText20 = st;
456:            }
457:
458:            private CachedRowSetDataProvider carrentalDataProvider = new CachedRowSetDataProvider();
459:
460:            public CachedRowSetDataProvider getCarrentalDataProvider() {
461:                return carrentalDataProvider;
462:            }
463:
464:            public void setCarrentalDataProvider(CachedRowSetDataProvider crsdp) {
465:                this .carrentalDataProvider = crsdp;
466:            }
467:
468:            private TableColumn tableColumn6 = new TableColumn();
469:
470:            public TableColumn getTableColumn6() {
471:                return tableColumn6;
472:            }
473:
474:            public void setTableColumn6(TableColumn tc) {
475:                this .tableColumn6 = tc;
476:            }
477:
478:            private StaticText staticText10 = new StaticText();
479:
480:            public StaticText getStaticText10() {
481:                return staticText10;
482:            }
483:
484:            public void setStaticText10(StaticText st) {
485:                this .staticText10 = st;
486:            }
487:
488:            private TableColumn tableColumn18 = new TableColumn();
489:
490:            public TableColumn getTableColumn18() {
491:                return tableColumn18;
492:            }
493:
494:            public void setTableColumn18(TableColumn tc) {
495:                this .tableColumn18 = tc;
496:            }
497:
498:            private StaticText staticText22 = new StaticText();
499:
500:            public StaticText getStaticText22() {
501:                return staticText22;
502:            }
503:
504:            public void setStaticText22(StaticText st) {
505:                this .staticText22 = st;
506:            }
507:
508:            private TableColumn tableColumn19 = new TableColumn();
509:
510:            public TableColumn getTableColumn19() {
511:                return tableColumn19;
512:            }
513:
514:            public void setTableColumn19(TableColumn tc) {
515:                this .tableColumn19 = tc;
516:            }
517:
518:            private StaticText staticText23 = new StaticText();
519:
520:            public StaticText getStaticText23() {
521:                return staticText23;
522:            }
523:
524:            public void setStaticText23(StaticText st) {
525:                this .staticText23 = st;
526:            }
527:
528:            private TableColumn tableColumn20 = new TableColumn();
529:
530:            public TableColumn getTableColumn20() {
531:                return tableColumn20;
532:            }
533:
534:            public void setTableColumn20(TableColumn tc) {
535:                this .tableColumn20 = tc;
536:            }
537:
538:            private StaticText staticText24 = new StaticText();
539:
540:            public StaticText getStaticText24() {
541:                return staticText24;
542:            }
543:
544:            public void setStaticText24(StaticText st) {
545:                this .staticText24 = st;
546:            }
547:
548:            private TableColumn tableColumn21 = new TableColumn();
549:
550:            public TableColumn getTableColumn21() {
551:                return tableColumn21;
552:            }
553:
554:            public void setTableColumn21(TableColumn tc) {
555:                this .tableColumn21 = tc;
556:            }
557:
558:            private StaticText staticText25 = new StaticText();
559:
560:            public StaticText getStaticText25() {
561:                return staticText25;
562:            }
563:
564:            public void setStaticText25(StaticText st) {
565:                this .staticText25 = st;
566:            }
567:
568:            private TableColumn tableColumn22 = new TableColumn();
569:
570:            public TableColumn getTableColumn22() {
571:                return tableColumn22;
572:            }
573:
574:            public void setTableColumn22(TableColumn tc) {
575:                this .tableColumn22 = tc;
576:            }
577:
578:            private StaticText staticText26 = new StaticText();
579:
580:            public StaticText getStaticText26() {
581:                return staticText26;
582:            }
583:
584:            public void setStaticText26(StaticText st) {
585:                this .staticText26 = st;
586:            }
587:
588:            private TableColumn tableColumn23 = new TableColumn();
589:
590:            public TableColumn getTableColumn23() {
591:                return tableColumn23;
592:            }
593:
594:            public void setTableColumn23(TableColumn tc) {
595:                this .tableColumn23 = tc;
596:            }
597:
598:            private StaticText staticText27 = new StaticText();
599:
600:            public StaticText getStaticText27() {
601:                return staticText27;
602:            }
603:
604:            public void setStaticText27(StaticText st) {
605:                this .staticText27 = st;
606:            }
607:
608:            private CachedRowSetDataProvider hotelDataProvider = new CachedRowSetDataProvider();
609:
610:            public CachedRowSetDataProvider getHotelDataProvider() {
611:                return hotelDataProvider;
612:            }
613:
614:            public void setHotelDataProvider(CachedRowSetDataProvider crsdp) {
615:                this .hotelDataProvider = crsdp;
616:            }
617:
618:            private TableColumn tableColumn9 = new TableColumn();
619:
620:            public TableColumn getTableColumn9() {
621:                return tableColumn9;
622:            }
623:
624:            public void setTableColumn9(TableColumn tc) {
625:                this .tableColumn9 = tc;
626:            }
627:
628:            private StaticText staticText13 = new StaticText();
629:
630:            public StaticText getStaticText13() {
631:                return staticText13;
632:            }
633:
634:            public void setStaticText13(StaticText st) {
635:                this .staticText13 = st;
636:            }
637:
638:            private TableColumn tableColumn25 = new TableColumn();
639:
640:            public TableColumn getTableColumn25() {
641:                return tableColumn25;
642:            }
643:
644:            public void setTableColumn25(TableColumn tc) {
645:                this .tableColumn25 = tc;
646:            }
647:
648:            private StaticText staticText29 = new StaticText();
649:
650:            public StaticText getStaticText29() {
651:                return staticText29;
652:            }
653:
654:            public void setStaticText29(StaticText st) {
655:                this .staticText29 = st;
656:            }
657:
658:            private TableColumn tableColumn26 = new TableColumn();
659:
660:            public TableColumn getTableColumn26() {
661:                return tableColumn26;
662:            }
663:
664:            public void setTableColumn26(TableColumn tc) {
665:                this .tableColumn26 = tc;
666:            }
667:
668:            private StaticText staticText30 = new StaticText();
669:
670:            public StaticText getStaticText30() {
671:                return staticText30;
672:            }
673:
674:            public void setStaticText30(StaticText st) {
675:                this .staticText30 = st;
676:            }
677:
678:            private TableColumn tableColumn27 = new TableColumn();
679:
680:            public TableColumn getTableColumn27() {
681:                return tableColumn27;
682:            }
683:
684:            public void setTableColumn27(TableColumn tc) {
685:                this .tableColumn27 = tc;
686:            }
687:
688:            private StaticText staticText31 = new StaticText();
689:
690:            public StaticText getStaticText31() {
691:                return staticText31;
692:            }
693:
694:            public void setStaticText31(StaticText st) {
695:                this .staticText31 = st;
696:            }
697:
698:            private TableColumn tableColumn28 = new TableColumn();
699:
700:            public TableColumn getTableColumn28() {
701:                return tableColumn28;
702:            }
703:
704:            public void setTableColumn28(TableColumn tc) {
705:                this .tableColumn28 = tc;
706:            }
707:
708:            private StaticText staticText32 = new StaticText();
709:
710:            public StaticText getStaticText32() {
711:                return staticText32;
712:            }
713:
714:            public void setStaticText32(StaticText st) {
715:                this .staticText32 = st;
716:            }
717:
718:            private CachedRowSetDataProvider personDataProvider1 = new CachedRowSetDataProvider();
719:
720:            public CachedRowSetDataProvider getPersonDataProvider1() {
721:                return personDataProvider1;
722:            }
723:
724:            public void setPersonDataProvider1(CachedRowSetDataProvider crsdp) {
725:                this .personDataProvider1 = crsdp;
726:            }
727:
728:            // </editor-fold>
729:
730:            /**
731:             * <p>Construct a new Page bean instance.</p>
732:             */
733:            public Details() {
734:            }
735:
736:            /**
737:             * <p>Callback method that is called whenever a page is navigated to,
738:             * either directly via a URL, or indirectly via page navigation.
739:             * Customize this method to acquire resources that will be needed
740:             * for event handlers and lifecycle methods, whether or not this
741:             * page is performing post back processing.</p>
742:             * 
743:             * <p>Note that, if the current request is a postback, the property
744:             * values of the components do <strong>not</strong> represent any
745:             * values submitted with this request.  Instead, they represent the
746:             * property values that were saved for this view when it was rendered.</p>
747:             */
748:            public void init() {
749:                // Perform initializations inherited from our superclass
750:                super .init();
751:                // Perform application initialization that must complete
752:                // *before* managed components are initialized
753:                // TODO - add your own initialiation code here
754:
755:                // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
756:                // Initialize automatically managed components
757:                // *Note* - this logic should NOT be modified
758:                try {
759:                    _init();
760:                } catch (Exception e) {
761:                    log("Details Initialization Failure", e);
762:                    throw e instanceof  FacesException ? (FacesException) e
763:                            : new FacesException(e);
764:                }
765:
766:                // </editor-fold>
767:                // Perform application initialization that must complete
768:                // *after* managed components are initialized
769:                // TODO - add your own initialization code here
770:            }
771:
772:            /**
773:             * <p>Callback method that is called after the component tree has been
774:             * restored, but before any event processing takes place.  This method
775:             * will <strong>only</strong> be called on a postback request that
776:             * is processing a form submit.  Customize this method to allocate
777:             * resources that will be required in your event handlers.</p>
778:             */
779:            public void preprocess() {
780:            }
781:
782:            /**
783:             * <p>Callback method that is called just before rendering takes place.
784:             * This method will <strong>only</strong> be called for the page that
785:             * will actually be rendered (and not, for example, on a page that
786:             * handled a postback and then navigated to a different page).  Customize
787:             * this method to allocate resources that will be required for rendering
788:             * this page.</p>
789:             */
790:            public void prerender() {
791:                try {
792:                    Integer personId = this .getRequestBean1().getPersonId();
793:                    Integer trip = this .getRequestBean1().getTripId();
794:                    getSessionBean1().getPersonRowSet1().setObject(1, personId);
795:                    getPersonDataProvider1().refresh();
796:                    getSessionBean1().getFlightRowSet().setObject(1, trip);
797:                    getSessionBean1().getCarrentalRowSet().setObject(1, trip);
798:                    getSessionBean1().getHotelRowSet().setObject(1, trip);
799:                    getFlightDataProvider().refresh();
800:                    getCarrentalDataProvider().refresh();
801:                    getHotelDataProvider().refresh();
802:                } catch (Exception e) {
803:                    throw new FacesException(e);
804:                }
805:            }
806:
807:            /**
808:             * <p>Callback method that is called after rendering is completed for
809:             * this request, if <code>init()</code> was called (regardless of whether
810:             * or not this was the page that was actually rendered).  Customize this
811:             * method to release resources acquired in the <code>init()</code>,
812:             * <code>preprocess()</code>, or <code>prerender()</code> methods (or
813:             * acquired during execution of an event handler).</p>
814:             */
815:            public void destroy() {
816:                flightDataProvider.close();
817:                carrentalDataProvider.close();
818:                hotelDataProvider.close();
819:                personDataProvider1.close();
820:            }
821:
822:            /**
823:             * <p>Return a reference to the scoped data bean.</p>
824:             */
825:            protected SessionBean1 getSessionBean1() {
826:                return (SessionBean1) getBean("SessionBean1");
827:            }
828:
829:            /**
830:             * <p>Return a reference to the scoped data bean.</p>
831:             */
832:            protected RequestBean1 getRequestBean1() {
833:                return (RequestBean1) getBean("RequestBean1");
834:            }
835:
836:            /**
837:             * <p>Return a reference to the scoped data bean.</p>
838:             */
839:            protected ApplicationBean1 getApplicationBean1() {
840:                return (ApplicationBean1) getBean("ApplicationBean1");
841:            }
842:
843:            public String backButton_action() {
844:                // TODO: Process the action. Return value is a navigation
845:                // case name where null will return to the same page.
846:                return "main";
847:            }
848:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.