Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Examples (for Wicket 1.3beta3 or later version)

Example 1 - on/off image in tabs

1.MyAjaxFallbackLink.java (Link enhanced with Image)

...

Code Block
html
html
<wicket:panel>

<div wicket:id="tabs-container" class="tab-row">
<ul>
    <li wicket:id="tabs">
        <a href="#" wicket:id="link">
             <img wicket:id="image" class="left-image"/>
             <span wicket:id="title">[[tab title]]</span>
        </a>
    </li>
</ul>
</div>
<div wicket:id="panel" class="tab-panel">[panel]</div>

</wicket:panel>

Example 2 - custom images in tabs

In this example you can have in each tab different image. Do the steps 2 and 3 as in previous example. Alter the code to appropriate ajax / non ajax variant.

...