You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Lester Chua <ci...@gmail.com> on 2009/11/14 01:10:27 UTC

Question regarding extending components and their html markups

Hi,

I'm trying at extending the FeedbackPanel but could not find a reference 
as to how to do a markup extension.
Is there a tag in HTML that is equivalent to the java super()?

This may be a case of rtfm but I cant seem to find it in Manning's 
Wicket in Action. I know about the wicket:extend and the wicket:child 
tag but this dosent seem to apply in my use case as I would like to use 
my parent's markups and just do the parent's rendering.

Am I missing something crucial?

Lester


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


Re: Question regarding extending components and their html markups

Posted by Lester Chua <ci...@gmail.com>.
Hi, thanks for the quick response.
But I do in fact needed to do some markup. Just that I did not want to 
alter the original, just add additional markups.

I guess I could make a main panel and instantiate the FeedbackPanel in 
it and perform markups there. But I feel that this is not making use of 
inheritance at all.
I posted my work around in a previous mail Do you think that approach is 
acceptable baring the existence of <wicket:super> tag?

Lester


Igor Vaynberg wrote:
> if you do not want to alter the parent's markup then simply do not
> provide a markup file.
>
> -igor
>
> On Fri, Nov 13, 2009 at 4:10 PM, Lester Chua <ci...@gmail.com> wrote:
>   
>> Hi,
>>
>> I'm trying at extending the FeedbackPanel but could not find a reference as
>> to how to do a markup extension.
>> Is there a tag in HTML that is equivalent to the java super()?
>>
>> This may be a case of rtfm but I cant seem to find it in Manning's Wicket in
>> Action. I know about the wicket:extend and the wicket:child tag but this
>> dosent seem to apply in my use case as I would like to use my parent's
>> markups and just do the parent's rendering.
>>
>> Am I missing something crucial?
>>
>> Lester
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>   


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


Re: Question regarding extending components and their html markups

Posted by Igor Vaynberg <ig...@gmail.com>.
if you do not want to alter the parent's markup then simply do not
provide a markup file.

-igor

On Fri, Nov 13, 2009 at 4:10 PM, Lester Chua <ci...@gmail.com> wrote:
> Hi,
>
> I'm trying at extending the FeedbackPanel but could not find a reference as
> to how to do a markup extension.
> Is there a tag in HTML that is equivalent to the java super()?
>
> This may be a case of rtfm but I cant seem to find it in Manning's Wicket in
> Action. I know about the wicket:extend and the wicket:child tag but this
> dosent seem to apply in my use case as I would like to use my parent's
> markups and just do the parent's rendering.
>
> Am I missing something crucial?
>
> Lester
>
>
> ---------------------------------------------------------------------
> 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: Question regarding extending components and their html markups

Posted by Lester Chua <ci...@gmail.com>.
For anyone interested, I did a workaround.

Basically I just put in <wicket:extend> tag, without any other tags, 
into my Child panel.
This basically throws an exception, as expected in the webpage.
I just took whatever markup that is shown in the error and added it to 
my Child, thus circumventing my problem of not having my Parent's markup 
available.

Is there an equivalent of <wicket:super>? This is for people who dont 
know the markup of the parent class they are extending.

Lester

Lester Chua wrote:
> Hi,
>
> I'm trying at extending the FeedbackPanel but could not find a 
> reference as to how to do a markup extension.
> Is there a tag in HTML that is equivalent to the java super()?
>
> This may be a case of rtfm but I cant seem to find it in Manning's 
> Wicket in Action. I know about the wicket:extend and the wicket:child 
> tag but this dosent seem to apply in my use case as I would like to 
> use my parent's markups and just do the parent's rendering.
>
> Am I missing something crucial?
>
> Lester
>


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