Search code examples
isis

Add textfield searchbox to header/navbar in Apache Isis


I'm trying to work out how to add textfield to the navbar in the header that I can use as an always present search box but I haven't had much success. From the documentation (7.2. Replacing page elements) I see that I can replace components inside a page but I don't think this applies to the header. Can any one point me in the right direction with where to start with this?


Solution

  • It is possible to change the complete header by using ComponentType.HEADER.

    Setup your own ComponentFactory that will have higher priority than the default one.