回答編集履歴
2
getterについて追記
test
CHANGED
@@ -1 +1,23 @@
|
|
1
1
|
恐らくPostConstructで文字列検索を行っているので、文字列がnullでExceptionが発生しているのではないでしょうか。try catchで調べてみてはどうでしょう。PostConstructで文字列検索が走るのは意図通りでしょうか。
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
BackingBeanの変数にJSFタグの入力値を渡すにはgetterメソッドを記載する必要が有ります。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
```Java
|
10
|
+
|
11
|
+
private String search;
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
public String getSearch(){
|
16
|
+
|
17
|
+
return search;
|
18
|
+
|
19
|
+
}
|
20
|
+
|
21
|
+
```
|
22
|
+
|
23
|
+
上記のメソッドが実装されていれば,commandbtnのsubmitなどの契機でBackingBeanにJSFから値が渡ります。すでに上記のメソッド実装ずみであれば、なんらかの要因で引き渡し出来ていないと思われます。
|
1
文字列がnull を追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
恐らくPostConstructで文字列検索を行っているので、Exceptionが発生しているのではないでしょうか。try catchで調べてみてはどうでしょう。PostConstructで文字列検索が走るのは意図通りでしょうか。
|
1
|
+
恐らくPostConstructで文字列検索を行っているので、文字列がnullでExceptionが発生しているのではないでしょうか。try catchで調べてみてはどうでしょう。PostConstructで文字列検索が走るのは意図通りでしょうか。
|