Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
On Tue, May 14, 2013 at 9:51 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi Vineet, On Mon, May 13, 2013 at 11:09 PM, vineet semwal vineetsemwa...@gmail.comwrote: hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is registering the panel tagname so i don't know what is registering it but it's getting

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread Martin Grigorov
On Tue, May 14, 2013 at 3:28 PM, vineet semwal vineetsemwa...@gmail.comwrote: also why is well known tagnames getting registered and why are not they just kept at start itself,they are just strings ,registering only makes sense for the new tags in my opinion.. Agreed. We can pre-register all

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
i have just created issue https://issues.apache.org/jira/browse/WICKET-5189 thank you ! On Tue, May 14, 2013 at 7:15 PM, Martin Grigorov mgrigo...@apache.orgwrote: On Tue, May 14, 2013 at 3:28 PM, vineet semwal vineetsemwa...@gmail.com wrote: also why is well known tagnames getting

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-14 Thread vineet semwal
On Tue, May 14, 2013 at 6:45 PM, vineet semwal vineetsemwa...@gmail.comwrote: Martin, thanks for the explanation,you are right ! ,i just tested that static block doesn't get executed .. but i could never reproduce Andy's problem .., i also checked and noticed that WicketTagIdentifier is

RE: Unknown tag name with Wicket namespace: 'panel'

2013-05-13 Thread Paul Bors
Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. If you do not like the default location of the HTML next to your Java classes, then read Chapter 4 of the Wicket user guide you can get for free from wicket's website at:

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-13 Thread Martin Grigorov
Hi, On Mon, May 13, 2013 at 10:02 PM, Paul Bors p...@bors.ws wrote: Get rid of your newMarkupSourcingStrategy() override and place the HTML right next to the Java source code and you'll be fine. This will not work because usually Link component has no its own markup file. See Panel.java.

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-13 Thread vineet semwal
see link#setbody(model) ,i think this is what you are trying to do :-) else that should be PanelMarkupSourcingStrategy(*false*) On Mon, May 13, 2013 at 11:33 PM, Andy Van Den Heuvel andy.vandenheu...@gmail.com wrote: I get an exception and it's not very clear to me what I'm doing wrong.

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-13 Thread vineet semwal
hi martin, that static block need not be copied to make it work,since it's a static block, it will get executed when the Panel class gets loaded, the Panel class will get loaded by PanelMarkupSourcingStrategy itself since it's referring a constant of panel . yes but i agree not a very nice code

Re: Unknown tag name with Wicket namespace: 'panel'

2013-05-13 Thread Andy Van Den Heuvel
The html is right next to the javacode. I understand that Link does not normally have a panel, but i want to have one. This code is actually copied from wicket-bootstrap.