You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by rkanadam <rk...@gmail.com> on 2007/12/06 06:25:21 UTC
Border support broken ?
Is perchance border support broken in 1.3 rc1 or am I using it in the
wrong way... ?
BoxBorder border = new BoxBorder ("borderId");
border.add (new Label ("label", "Hello World"));
gives a "Did you forget to add it to the markup... ?" exception.
Thanks,
Raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Border support broken ?
Posted by rkanadam <rk...@gmail.com>.
Igor Vaynberg wrote:
> what does your markup look like?
>
> -igor
>
> On Dec 5, 2007 9:25 PM, rkanadam <rk...@gmail.com> wrote:
>
>> Is perchance border support broken in 1.3 rc1 or am I using it in the
>> wrong way... ?
>>
>> BoxBorder border = new BoxBorder ("borderId");
>> border.add (new Label ("label", "Hello World"));
>>
>> gives a "Did you forget to add it to the markup... ?" exception.
>>
>> Thanks,
>> Raghu
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
I am sorry looks like something is totally wrong with the way I am using
borders....
will appreciate any help
HomePage.java
import wicket.markup.html.WebPage;
import wicket.markup.html.border.BoxBorder;
@SuppressWarnings("serial")
public class HomePage extends WebPage {
public HomePage() {
final BoxBorder border = new BoxBorder ("container");
add (border);
border.add(new Label("label", "Hello World"));
}
public boolean isAccessible() {
return true;
}
}
HomePage.html
<html>
<body>
<span wicket:id = "container"></span>
</body>
</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Border support broken ?
Posted by rkanadam <rk...@gmail.com>.
Igor Vaynberg wrote:
> what does your markup look like?
>
> -igor
>
> On Dec 5, 2007 9:25 PM, rkanadam <rk...@gmail.com> wrote:
>
>> Is perchance border support broken in 1.3 rc1 or am I using it in the
>> wrong way... ?
>>
>> BoxBorder border = new BoxBorder ("borderId");
>> border.add (new Label ("label", "Hello World"));
>>
>> gives a "Did you forget to add it to the markup... ?" exception.
>>
>> Thanks,
>> Raghu
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>
Thanks, Igor. Realized my mistake. I was thinking of borders in a
totally wrong way.
Thanks,
Raghu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Border support broken ?
Posted by Igor Vaynberg <ig...@gmail.com>.
what does your markup look like?
-igor
On Dec 5, 2007 9:25 PM, rkanadam <rk...@gmail.com> wrote:
> Is perchance border support broken in 1.3 rc1 or am I using it in the
> wrong way... ?
>
> BoxBorder border = new BoxBorder ("borderId");
> border.add (new Label ("label", "Hello World"));
>
> gives a "Did you forget to add it to the markup... ?" exception.
>
> Thanks,
> Raghu
>
> ---------------------------------------------------------------------
> 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