You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Enes Fazli <fa...@googlemail.com> on 2009/07/02 09:25:43 UTC

Two WebPages one Site

Hello everybody,

I have a requirement where I need to have two or more styles for a website.
Since layout and content can be different between the two variations I went
for a two Webpage classes solution. I created base and base2 which are both
abstract and extend webpage.

Each page inherits either from base or base2. The homepage of base is
mounted on / while the homepage of base2 is mounted on /base2. This works
fine. But oddly all the form submits (stateless forms) on base2 pages do not
work. It seems that the action url is wrong because I get an 404 not found
error.

Could someone give me a hint to where I have to look to debug this issue.

Regards,
Enes

Re: Two WebPages one Site

Posted by Igor Vaynberg <ig...@gmail.com>.
try with rc5/6/snapshot. i think sometihng like this might have been
fixed since then.

-igor

On Thu, Jul 2, 2009 at 9:36 AM, Enes Fazli<fa...@googlemail.com> wrote:
> Hi Igor,
>
> I use Wicket 1.4-rc4.
>
> Regards,
> Enes
>
> On Thu, Jul 2, 2009 at 5:33 PM, Igor Vaynberg <ig...@gmail.com>wrote:
>
>> what version of wicket are you using?
>>
>> -igor
>>
>> On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazli<fa...@googlemail.com>
>> wrote:
>> > Hello everybody,
>> >
>> > I have a requirement where I need to have two or more styles for a
>> website.
>> > Since layout and content can be different between the two variations I
>> went
>> > for a two Webpage classes solution. I created base and base2 which are
>> both
>> > abstract and extend webpage.
>> >
>> > Each page inherits either from base or base2. The homepage of base is
>> > mounted on / while the homepage of base2 is mounted on /base2. This works
>> > fine. But oddly all the form submits (stateless forms) on base2 pages do
>> not
>> > work. It seems that the action url is wrong because I get an 404 not
>> found
>> > error.
>> >
>> > Could someone give me a hint to where I have to look to debug this issue.
>> >
>> > Regards,
>> > Enes
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

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


Re: Two WebPages one Site

Posted by Enes Fazli <fa...@googlemail.com>.
Hi Igor,

I use Wicket 1.4-rc4.

Regards,
Enes

On Thu, Jul 2, 2009 at 5:33 PM, Igor Vaynberg <ig...@gmail.com>wrote:

> what version of wicket are you using?
>
> -igor
>
> On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazli<fa...@googlemail.com>
> wrote:
> > Hello everybody,
> >
> > I have a requirement where I need to have two or more styles for a
> website.
> > Since layout and content can be different between the two variations I
> went
> > for a two Webpage classes solution. I created base and base2 which are
> both
> > abstract and extend webpage.
> >
> > Each page inherits either from base or base2. The homepage of base is
> > mounted on / while the homepage of base2 is mounted on /base2. This works
> > fine. But oddly all the form submits (stateless forms) on base2 pages do
> not
> > work. It seems that the action url is wrong because I get an 404 not
> found
> > error.
> >
> > Could someone give me a hint to where I have to look to debug this issue.
> >
> > Regards,
> > Enes
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Two WebPages one Site

Posted by Igor Vaynberg <ig...@gmail.com>.
what version of wicket are you using?

-igor

On Thu, Jul 2, 2009 at 12:25 AM, Enes Fazli<fa...@googlemail.com> wrote:
> Hello everybody,
>
> I have a requirement where I need to have two or more styles for a website.
> Since layout and content can be different between the two variations I went
> for a two Webpage classes solution. I created base and base2 which are both
> abstract and extend webpage.
>
> Each page inherits either from base or base2. The homepage of base is
> mounted on / while the homepage of base2 is mounted on /base2. This works
> fine. But oddly all the form submits (stateless forms) on base2 pages do not
> work. It seems that the action url is wrong because I get an 404 not found
> error.
>
> Could someone give me a hint to where I have to look to debug this issue.
>
> Regards,
> Enes
>

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