rxue / dictionary

Practice in Java EE
1 stars 0 forks source link

Bug: (Subtask of #17) update does not work properly during refactor #19

Closed rxue closed 2 years ago

rxue commented 2 years ago

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

rxue commented 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

rxue commented 2 years ago

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]