Closed rxue closed 2 years ago
first trial with javax.faces.view.@ViewScoped
encountered error at server startup time:
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class rx.dictionary.ui.jsf.update.UpdateComponent] with qualifiers [@Default @Any @Named]
crux of the error: Bean declaring a passivating scope must be passivation capable
After implements Serializable
on UpdateComponent
still encountered error at server startup time:
Caused by: org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413: The bean Managed Bean [class rx.dictionary.ui.jsf.update.UpdateComponent] with qualifiers [@Default @Any @Named] declares a passivating scope but has a non-passivation-capable dependency Managed Bean [class rx.dictionary.DefinitionRepository] with qualifiers [@Any @Default]
case: open update page, search for an existing work, then update it and click "update"
expected: the target word's explanations should be updated actual: the target word's explanations is not updated