Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
titleOverride view meta-data annotation
@PageIcon(...)
public abstract class UseCase1 implements ViewConfig
{
    @Page
    //inherits the page-icon of the use-case
    public final class Step1 extends Wizard
    {
    }

    @Page
    @PageIcon(...) //overrides the page-icon of the use-case
    public final class Step2 extends Wizard
    {
    }
}
Code Block
java
java
titleResolve view meta-data annotations

@Inject
private ViewConfigResolver viewConfigResolver;

this.viewConfigResolver.getViewConfig(UseCase1.Step2.class).getMetaData();

//or something like:
this.viewConfigResolver.getViewConfig(this.facesContext.getViewRoot().getViewId()).getMetaData();

Type-safe Navigation

In the previous section you have learned some details about the view-config mechanism provided by CODI. You can use these meta-classes for the navigation.

...