1 | package org.apache.jsp.JSF.commun; |
---|
2 | |
---|
3 | import javax.servlet.*; |
---|
4 | import javax.servlet.http.*; |
---|
5 | import javax.servlet.jsp.*; |
---|
6 | |
---|
7 | public final class tabs_jsp extends org.apache.jasper.runtime.HttpJspBase |
---|
8 | implements org.apache.jasper.runtime.JspSourceDependent { |
---|
9 | |
---|
10 | private static java.util.Vector _jspx_dependants; |
---|
11 | |
---|
12 | private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_f_verbatim; |
---|
13 | |
---|
14 | public java.util.List getDependants() { |
---|
15 | return _jspx_dependants; |
---|
16 | } |
---|
17 | |
---|
18 | public void _jspInit() { |
---|
19 | _jspx_tagPool_f_verbatim = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig()); |
---|
20 | } |
---|
21 | |
---|
22 | public void _jspDestroy() { |
---|
23 | _jspx_tagPool_f_verbatim.release(); |
---|
24 | } |
---|
25 | |
---|
26 | public void _jspService(HttpServletRequest request, HttpServletResponse response) |
---|
27 | throws java.io.IOException, ServletException { |
---|
28 | |
---|
29 | JspFactory _jspxFactory = null; |
---|
30 | PageContext pageContext = null; |
---|
31 | HttpSession session = null; |
---|
32 | ServletContext application = null; |
---|
33 | ServletConfig config = null; |
---|
34 | JspWriter out = null; |
---|
35 | Object page = this; |
---|
36 | JspWriter _jspx_out = null; |
---|
37 | |
---|
38 | |
---|
39 | try { |
---|
40 | _jspxFactory = JspFactory.getDefaultFactory(); |
---|
41 | response.setContentType("text/html"); |
---|
42 | pageContext = _jspxFactory.getPageContext(this, request, response, |
---|
43 | null, true, 8192, true); |
---|
44 | application = pageContext.getServletContext(); |
---|
45 | config = pageContext.getServletConfig(); |
---|
46 | session = pageContext.getSession(); |
---|
47 | out = pageContext.getOut(); |
---|
48 | _jspx_out = out; |
---|
49 | |
---|
50 | out.write('\n'); |
---|
51 | out.write('\n'); |
---|
52 | out.write('\n'); |
---|
53 | if (_jspx_meth_f_verbatim_0(pageContext)) |
---|
54 | return; |
---|
55 | } catch (Throwable t) { |
---|
56 | if (!(t instanceof SkipPageException)){ |
---|
57 | out = _jspx_out; |
---|
58 | if (out != null && out.getBufferSize() != 0) |
---|
59 | out.clearBuffer(); |
---|
60 | if (pageContext != null) pageContext.handlePageException(t); |
---|
61 | } |
---|
62 | } finally { |
---|
63 | if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); |
---|
64 | } |
---|
65 | } |
---|
66 | |
---|
67 | private boolean _jspx_meth_f_verbatim_0(PageContext pageContext) |
---|
68 | throws Throwable { |
---|
69 | JspWriter out = pageContext.getOut(); |
---|
70 | // f:verbatim |
---|
71 | org.apache.myfaces.taglib.core.VerbatimTag _jspx_th_f_verbatim_0 = (org.apache.myfaces.taglib.core.VerbatimTag) _jspx_tagPool_f_verbatim.get(org.apache.myfaces.taglib.core.VerbatimTag.class); |
---|
72 | _jspx_th_f_verbatim_0.setPageContext(pageContext); |
---|
73 | _jspx_th_f_verbatim_0.setParent(null); |
---|
74 | int _jspx_eval_f_verbatim_0 = _jspx_th_f_verbatim_0.doStartTag(); |
---|
75 | if (_jspx_eval_f_verbatim_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { |
---|
76 | if (_jspx_eval_f_verbatim_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { |
---|
77 | out = pageContext.pushBody(); |
---|
78 | _jspx_th_f_verbatim_0.setBodyContent((javax.servlet.jsp.tagext.BodyContent) out); |
---|
79 | _jspx_th_f_verbatim_0.doInitBody(); |
---|
80 | } |
---|
81 | do { |
---|
82 | out.write("\n"); |
---|
83 | out.write("<script type=\"text/javascript\">\n"); |
---|
84 | out.write("\t\tfunction changePage(page) {\n"); |
---|
85 | out.write("\t\t\twindow.location = page;\n"); |
---|
86 | out.write("\t\t}\n"); |
---|
87 | out.write("\t\t\n"); |
---|
88 | out.write("\t\tfunction initTabs(valeur) {\n"); |
---|
89 | out.write("\t\t\tdocument.getElementById(\"tab1\").className=\"tab1\";\n"); |
---|
90 | out.write("\t\t\tdocument.getElementById(\"tab2\").className=\"tab2\";\n"); |
---|
91 | out.write("\t\t\tdocument.getElementById(\"tab3\").className=\"tab3\";\n"); |
---|
92 | out.write("\t\t\tdocument.getElementById(valeur).className=valeur+\"Selected\";\n"); |
---|
93 | out.write("\t\t}\n"); |
---|
94 | out.write("</script>\n"); |
---|
95 | out.write("\t\t\n"); |
---|
96 | out.write("<div class=\"tabs\">\n"); |
---|
97 | out.write("\t <div id=\"tab1\" class=\"tab1\" onclick=\"changePage('./page_carte.jsf')\">\n"); |
---|
98 | out.write("\t Map\n"); |
---|
99 | out.write("\t </div>\n"); |
---|
100 | out.write("\t\n"); |
---|
101 | out.write("\t <div id=\"tab2\" class=\"tab2\" onclick=\"changePage('./page_graph.jsf')\">\n"); |
---|
102 | out.write("\t Graphic\n"); |
---|
103 | out.write("\t </div>\n"); |
---|
104 | out.write("\t \n"); |
---|
105 | out.write("\t <div id=\"tab3\" class=\"tab3\" onclick=\"changePage('./page_statistique.jsf')\">\n"); |
---|
106 | out.write("\t Stat\n"); |
---|
107 | out.write("\t </div>\n"); |
---|
108 | out.write(" <br style=\"clear: both\"/>\n"); |
---|
109 | out.write("</div>\n"); |
---|
110 | int evalDoAfterBody = _jspx_th_f_verbatim_0.doAfterBody(); |
---|
111 | if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) |
---|
112 | break; |
---|
113 | } while (true); |
---|
114 | if (_jspx_eval_f_verbatim_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) |
---|
115 | out = pageContext.popBody(); |
---|
116 | } |
---|
117 | if (_jspx_th_f_verbatim_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) |
---|
118 | return true; |
---|
119 | _jspx_tagPool_f_verbatim.reuse(_jspx_th_f_verbatim_0); |
---|
120 | return false; |
---|
121 | } |
---|
122 | } |
---|