質問編集履歴
3
質問修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
JavaEE7の学習中です。まずはJSFとバッキングビーンの紐付けを確認しようとして、以下のファイルを作成しglassfishにデプロイしました。
|
2
|
+
h:commandButtonでactionを実行しても期待の結果(遷移)になりません。
|
2
|
-
|
3
|
+
exceptionが発生し、どうやらJSFがbeanを見つけられていないようです。
|
3
4
|
|
4
5
|
不足、または誤りがあるポイントについて、ご指導いただけないでしょうか。よろしくお願いします。
|
5
6
|
|
2
余分な記述の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -25,7 +25,6 @@
|
|
25
25
|
|
26
26
|
public String change(String name){
|
27
27
|
return "/login/hogehoge?faces-redirect=true";
|
28
|
-
// return "/login/" + name + "?faces-redirect=true";
|
29
28
|
}
|
30
29
|
|
31
30
|
public String getName() {
|
1
exception 追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -77,4 +77,28 @@
|
|
77
77
|
<url-pattern>/faces/*</url-pattern>
|
78
78
|
</servlet-mapping>
|
79
79
|
</web-app>
|
80
|
+
```
|
81
|
+
|
82
|
+
|
83
|
+
```
|
84
|
+
// exception
|
85
|
+
|
86
|
+
|
87
|
+
type Exception report
|
88
|
+
|
89
|
+
messageInternal Server Error
|
90
|
+
|
91
|
+
descriptionThe server encountered an internal error that prevented it from fulfilling this request.
|
92
|
+
|
93
|
+
exception
|
94
|
+
|
95
|
+
javax.servlet.ServletException: /login.xhtml @17,67 value="#{loginBean.name}": Target Unreachable, identifier 'loginBean' resolved to null
|
96
|
+
root cause
|
97
|
+
|
98
|
+
javax.el.PropertyNotFoundException: /login.xhtml @17,67 value="#{loginBean.name}": Target Unreachable, identifier 'loginBean' resolved to null
|
99
|
+
root cause
|
100
|
+
|
101
|
+
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'loginBean' resolved to null
|
102
|
+
note The full stack traces of the exception and its root causes are available in the GlassFish Server Open Source Edition 4.1.1 logs.
|
103
|
+
|
80
104
|
```
|