why one page? Use markup inheritance to define the different part of a
and b. use wicket:link to link between the two pages.

base.html

<html>
...... shared markup between a and b
<wicket:link>
<ul>
<li><a href="A.html">A</a></li>
<li><a href="B.html">B</a></li>
</ul>
</wicket:link>
<wicket:child />
...... shared markup between a and b
</html>

base.java
public abstract class Base extends WebPage{}

A.java
public class A extends Base {
    // specific components for A
}

A.html
<html>
<wicket:extend>
specific markup for A
</wicket:extend>
</html>

.... etc.

Martijn

On Mon, Mar 16, 2009 at 8:30 AM, Ista Pouss <ista...@gmail.com> wrote:
> Hi,
>
> I want to include, in wicket html page, some existing html page. These
> pages have inner links.
>
> How can I modify these links to be wicket capable ?
>
> For instance, I have two html page, A.html and B.html. In A there is a
> link to B (<a href="B.html">), and in B a link to A.
>
> I want to put these pages in one Wicket page, so Wic.html and
> Wic.java. With a parameter, I know if I include A or B : Wic?page=A
> show Wic whith A.html inside, and Wic?page=B show Wic with B.html.
>
> In Wic.html I have something like that :
> <div wicket:id="insert-copy">COPY HERE ! </div>
>
> On the process of the "insert-copy" component, how can I modify A and
> B to put the right wicket link ?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to