|
|
|
JSF. faces-config.xml
|
|||
|---|---|---|---|
|
#18+
Не могу понять в чем проблема. Есть productItemDetail.jsp, productItems.jsp, faces-config.xml: ... <managed-bean> <managed-bean-name>addProductItemComment</managed-bean-name> <managed-bean-class>forms.AddProductItemComment</managed-bean-class> ; <managed-bean-scope>request</managed-bean-scope> </managed-bean> ... <navigation-rule> <from-view-id>/productItemDetail.jsp</from-view-id> <navigation-case> <from-action>#{addProductItemComment.addCommentBut}</from-action> <from-outcome>commentAdded</from-outcome> <to-view-id>/productItems.jsp</to-view-id> </navigation-case> ... код в методе бина: ... { public String addCommentBut(ActionEvent event){ ... System.out.println( "addCommentBut:return:commentAdded"); return "commentAdded"; } ... Смотрю по логам и вижу: addCommentBut:return:commentAdded. Но переход на страницу productItems.jsp, как определено в faces-config.xml не случается. Где подводный камень? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.03.2007, 23:32:44 |
|
||
|
JSF. faces-config.xml
|
|||
|---|---|---|---|
|
#18+
В бине два метода. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.03.2007, 23:43:18 |
|
||
|
JSF. faces-config.xml
|
|||
|---|---|---|---|
|
#18+
На первой страничке добавь <h:messages/> - может быть валидация чего-ть не проходит. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2007, 09:23:24 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=34401521&tid=2146342]: |
0ms |
get settings: |
22ms |
get forum list: |
21ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
64ms |
get topic data: |
16ms |
get forum data: |
4ms |
get page messages: |
71ms |
get tp. blocked users: |
3ms |
| others: | 319ms |
| total: | 534ms |

| 0 / 0 |
