source: tol/TolJava/WebTOLJavaDEMO/src/java/com/hcarralero/toljava/demo/Encabezado.java @ 9887b93

1941-docker-image-to-testdevel
Last change on this file since 9887b93 was 9887b93, checked in by Humberto Carralero <hacarralero@…>, 15 years ago

Importing TolJava

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@3900 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 3.8 KB
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package com.hcarralero.toljava.demo;
7
8import com.sun.rave.web.ui.appbase.AbstractFragmentBean;
9import javax.faces.FacesException;
10
11/**
12 * <p>Fragment bean that corresponds to a similarly named JSP page
13 * fragment.  This class contains component definitions (and initialization
14 * code) for all components that you have defined on this fragment, as well as
15 * lifecycle methods and event handlers where you may add behavior
16 * to respond to incoming events.</p>
17 *
18 * @version Encabezado.java
19 * @version Created on Nov 28, 2010, 2:48:14 PM
20 * @author hcarralero
21 */
22
23public class Encabezado extends AbstractFragmentBean {
24    // <editor-fold defaultstate="collapsed" desc="Managed Component Definition">
25
26    /**
27     * <p>Automatically managed component initialization. <strong>WARNING:</strong>
28     * This method is automatically generated, so any user-specified code inserted
29     * here is subject to being replaced.</p>
30     */
31    private void _init() throws Exception {
32    }
33    // </editor-fold>
34
35    public Encabezado() {
36    }
37
38    /**
39     * <p>Callback method that is called whenever a page containing
40     * this page fragment is navigated to, either directly via a URL,
41     * or indirectly via page navigation.  Override this method to acquire
42     * resources that will be needed for event handlers and lifecycle methods.</p>
43     *
44     * <p>The default implementation does nothing.</p>
45     */
46    @Override
47    public void init() {
48        // Perform initializations inherited from our superclass
49        super.init();
50        // Perform application initialization that must complete
51        // *before* managed components are initialized
52        // TODO - add your own initialiation code here
53       
54       
55        // <editor-fold defaultstate="collapsed" desc="Visual-Web-managed Component Initialization">
56        // Initialize automatically managed components
57        // *Note* - this logic should NOT be modified
58        try {
59            _init();
60        } catch (Exception e) {
61            log("Page1 Initialization Failure", e);
62            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
63        }
64       
65        // </editor-fold>
66        // Perform application initialization that must complete
67        // *after* managed components are initialized
68        // TODO - add your own initialization code here
69    }
70
71    /**
72     * <p>Callback method that is called after rendering is completed for
73     * this request, if <code>init()</code> was called.  Override this
74     * method to release resources acquired in the <code>init()</code>
75     * resources that will be needed for event handlers and lifecycle methods.</p>
76     *
77     * <p>The default implementation does nothing.</p>
78     */
79    @Override
80    public void destroy() {
81    }
82
83    /**
84     * <p>Return a reference to the scoped data bean.</p>
85     *
86     * @return reference to the scoped data bean
87     */
88    protected ApplicationBean1 getApplicationBean1() {
89        return (ApplicationBean1) getBean("ApplicationBean1");
90    }
91
92    /**
93     * <p>Return a reference to the scoped data bean.</p>
94     *
95     * @return reference to the scoped data bean
96     */
97    protected SessionBean1 getSessionBean1() {
98        return (SessionBean1) getBean("SessionBean1");
99    }
100
101    /**
102     * <p>Return a reference to the scoped data bean.</p>
103     *
104     * @return reference to the scoped data bean
105     */
106    protected RequestBean1 getRequestBean1() {
107        return (RequestBean1) getBean("RequestBean1");
108    }
109
110    public String hyperlink1_action() {
111        // TODO: Process the action. Return value is a navigation
112        // case name where null will return to the same page.
113        return null;
114    }
115
116}
Note: See TracBrowser for help on using the repository browser.