01: /*
02: * ==============================================================================
03: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
04: * use this file except in compliance with the License. You may obtain a copy of
05: * the License at
06: *
07: * http://www.apache.org/licenses/LICENSE-2.0
08: *
09: * Unless required by applicable law or agreed to in writing, software
10: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12: * License for the specific language governing permissions and limitations under
13: * the License.
14: */
15: package wicket.protocol.http.portlet.pages;
16:
17: import wicket.markup.html.link.BookmarkablePageLink;
18: import wicket.protocol.http.portlet.PortletPage;
19:
20: /**
21: * Internal error portlet page
22: *
23: * @author Janne Hietamäki
24: */
25: public class InternalErrorPortletPage extends PortletPage {
26: private static final long serialVersionUID = 1L;
27:
28: /**
29: * Constructor.
30: */
31: public InternalErrorPortletPage() {
32: add(new BookmarkablePageLink("homePageLink", getApplication()
33: .getHomePage()));
34: }
35:
36: /**
37: * @see wicket.markup.html.WebPage#configureResponse()
38: */
39: protected void configureResponse() {
40: super .configureResponse();
41: }
42:
43: /**
44: * @see wicket.Component#isVersioned()
45: */
46: public boolean isVersioned() {
47: return false;
48: }
49:
50: /**
51: * @see wicket.Page#isErrorPage()
52: */
53: public boolean isErrorPage() {
54: return true;
55: }
56: }
|