[[embedded-view]]
= Embedded View

:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR  CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


The Wicket viewer provides some support such that an Apache Isis application can be embedded within a host webapp, for example within an iframe.
Currently this support consists simply of being able to suppress the header and/or footer.

== Screenshots

For example, the regular view is:

image::embedded-view/regular.png[width="720px"]


With the header and footer both suppressed only the main content is shown:

image::embedded-view/no-header-no-footer.png[width="720px"]


It is also possible to suppress just the header, or just the footer.



== Request parameters

To suppress the header, add the following as a request parameter:

[source,ini]
----
isis.no.header
----

and to suppress the header, add the following as a request parameter:

[source,ini]
----
isis.no.footer
----

For example,

[source,ini]
----
http://localhost:8080/wicket/entity/TODO:0?isis.no.header&isis.no.footer
----

