source: tol/TolJava/WebTOLJavaDEMO/src/java/com/hcarralero/toljava/demo/Docs.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: 5.5 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.AbstractPageBean;
9import javax.faces.FacesException;
10
11/**
12 * <p>Page bean that corresponds to a similarly named JSP page.  This
13 * class contains component definitions (and initialization code) for
14 * all components that you have defined on this page, as well as
15 * lifecycle methods and event handlers where you may add behavior
16 * to respond to incoming events.</p>
17 *
18 * @version Docs.java
19 * @version Created on Nov 28, 2010, 1:55:24 PM
20 * @author hcarralero
21 */
22
23public class Docs extends AbstractPageBean {
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
34    // </editor-fold>
35
36    /**
37     * <p>Construct a new Page bean instance.</p>
38     */
39    public Docs() {
40    }
41
42    /**
43     * <p>Callback method that is called whenever a page is navigated to,
44     * either directly via a URL, or indirectly via page navigation.
45     * Customize this method to acquire resources that will be needed
46     * for event handlers and lifecycle methods, whether or not this
47     * page is performing post back processing.</p>
48     *
49     * <p>Note that, if the current request is a postback, the property
50     * values of the components do <strong>not</strong> represent any
51     * values submitted with this request.  Instead, they represent the
52     * property values that were saved for this view when it was rendered.</p>
53     */
54    @Override
55    public void init() {
56        // Perform initializations inherited from our superclass
57        super.init();
58        // Perform application initialization that must complete
59        // *before* managed components are initialized
60        // TODO - add your own initialiation code here
61       
62        // <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
63        // Initialize automatically managed components
64        // *Note* - this logic should NOT be modified
65        try {
66            _init();
67        } catch (Exception e) {
68            log("Docs Initialization Failure", e);
69            throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
70        }
71       
72        // </editor-fold>
73        // Perform application initialization that must complete
74        // *after* managed components are initialized
75        // TODO - add your own initialization code here
76        MenuIzquierdo mi= (MenuIzquierdo)this.getBean("MenuIzquierdo");
77        if (mi!=null) {
78            mi.getTrMenuIzquierdo().setSelected("tnDocs");
79        }
80    }
81
82    /**
83     * <p>Callback method that is called after the component tree has been
84     * restored, but before any event processing takes place.  This method
85     * will <strong>only</strong> be called on a postback request that
86     * is processing a form submit.  Customize this method to allocate
87     * resources that will be required in your event handlers.</p>
88     */
89    @Override
90    public void preprocess() {
91    }
92
93    /**
94     * <p>Callback method that is called just before rendering takes place.
95     * This method will <strong>only</strong> be called for the page that
96     * will actually be rendered (and not, for example, on a page that
97     * handled a postback and then navigated to a different page).  Customize
98     * this method to allocate resources that will be required for rendering
99     * this page.</p>
100     */
101    @Override
102    public void prerender() {
103    }
104
105    /**
106     * <p>Callback method that is called after rendering is completed for
107     * this request, if <code>init()</code> was called (regardless of whether
108     * or not this was the page that was actually rendered).  Customize this
109     * method to release resources acquired in the <code>init()</code>,
110     * <code>preprocess()</code>, or <code>prerender()</code> methods (or
111     * acquired during execution of an event handler).</p>
112     */
113    @Override
114    public void destroy() {
115    }
116
117    /**
118     * <p>Return a reference to the scoped data bean.</p>
119     *
120     * @return reference to the scoped data bean
121     */
122    protected ApplicationBean1 getApplicationBean1() {
123        return (ApplicationBean1) getBean("ApplicationBean1");
124    }
125
126    /**
127     * <p>Return a reference to the scoped data bean.</p>
128     *
129     * @return reference to the scoped data bean
130     */
131    protected SessionBean1 getSessionBean1() {
132        return (SessionBean1) getBean("SessionBean1");
133    }
134
135    /**
136     * <p>Return a reference to the scoped data bean.</p>
137     *
138     * @return reference to the scoped data bean
139     */
140    protected RequestBean1 getRequestBean1() {
141        return (RequestBean1) getBean("RequestBean1");
142    }
143
144    public String hyperlink1_action() {
145        // TODO: Process the action. Return value is a navigation
146        // case name where null will return to the same page.
147        return "case1";
148    }
149
150    public String hyperlink2_action() {
151        // TODO: Process the action. Return value is a navigation
152        // case name where null will return to the same page.
153        return null;
154    }
155
156    public String hyperlink3_action() {
157        // TODO: Process the action. Return value is a navigation
158        // case name where null will return to the same page.
159        return null;
160    }
161   
162}
163
Note: See TracBrowser for help on using the repository browser.