Re: 8.0.0-M1 MarkupNotFoundException

2016-10-27 Thread greg.johnson
should be ...

> So yes, in the real application the 
> 
>  tags surround \
> 
> a\
> 
>  elements and the Page is inherited from a 



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675922.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-27 Thread greg.johnson
Hi Martin,
Ok, thanks.
The quickstart was stripped down to a bare minimum of html that would
demonstrate the issue.
So yes, in the real application the  tags surround   elements
and the Page is inherited from a Bootstrap template with ,  etc.
Issue is now fixed thanks to Andrea.
Thanks again, Regards, Greg

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675921.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-24 Thread Martin Grigorov
Hi Greg,


   Some Text
 

doesn't make much sense.
 is supposed to be used around  and  elements.
In your demo application it is around . I hope your real application
makes good use of it.

Also the marku of the Page is not really a page, i.e. it doesn't have
, .  It starts with a .

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Oct 21, 2016 at 12:18 AM, Greg Johnson <greg.john...@saltaire.com.au
> wrote:

> Hi Martin,
>
> This is supposed to be a trivial menu/content replacement system that runs
> http://www.willinge.com.au, the architecture may very well be flawed :-)
>
> The quickstart at  http://anekol.com/pub/myproject2.zip is a cutdown
> version of the website (images removed etc) for you to see the big picture.
>
> Even if the architecture is flawed, it's still been running this trivial
> website successfully for years, a testament to Wicket :-)
>
> I would of course appreciate your advice on what the architecture should
> look like if you ever ran out of more important things on your list to do
> :-)
>
> With many years of IT experience, the very early versions of Wicket came
> to our notice as a high integrity framework and it continues to be a
> delight to watch the continuing success fo those who truly understand what
> it takes to build and deploy critical enterprise infrastructure.
> Congratulations.
>
> Regards,
> Greg Johnson
>
> > On 18 Oct. 2016, at 05:58, Martin Grigorov <mgrigo...@apache.org> wrote:
> >
> > Hi Greg,
> >
> > What is the idea behind:
> >
> > com/mycompany/AboutMenu$Overview.html (a Panel) containing just:
> >
> > 
> >Some Text
> > 
> >
> >
> > The full HTML produced by the home page is:
> >
> > 
> > 
> > 
> > http://localhost:8080/?5-1.-menu-items-0-item-link>">
> > Overview
> > 
> > 
> > 
> > 
> >
> >
> > 
> > 
> > Some Text
> > 
> > 
> > 
> > 
> >
> >
> > It is totally incorrect!
> >
> >
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
> > On Mon, Oct 17, 2016 at 1:19 AM, Greg Johnson <
> greg.john...@saltaire.com.au>
> > wrote:
> >
> >> Hi, the example is a very basic “menu” example where on menu select main
> >> content is changed.
> >>
> >> From the attached quickstart …
> >> * run Start.java
> >> * localhost:8080/ - Home Page displays
> >> * Press browser refresh - Home Page displays
> >> * Press browser refresh - MarkupNotFoundException: Markup not found for
> >> Component: [TransparentWebMarkupContainer [Component id = wicket_link1]]
> >>
> >> if the  tags are removed there is no problem. Note that
> there
> >> are no links, it is just the mere presence of the  tags
> that
> >> seems to cause the problem.
> >> Perhaps the architecture is flawed, however it is not clear to me why it
> >> only fails on the 3rd render.
> >>
> >> Any help would be appreciated, thanks.
> >>
> >> Regards, Greg Johnson
> >>
> >>
> >>
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: 8.0.0-M1 MarkupNotFoundException

2016-10-20 Thread Greg Johnson
Hi Martin,

This is supposed to be a trivial menu/content replacement system that runs 
http://www.willinge.com.au, the architecture may very well be flawed :-)

The quickstart at  http://anekol.com/pub/myproject2.zip is a cutdown version of 
the website (images removed etc) for you to see the big picture.

Even if the architecture is flawed, it's still been running this trivial 
website successfully for years, a testament to Wicket :-)

I would of course appreciate your advice on what the architecture should look 
like if you ever ran out of more important things on your list to do :-)

With many years of IT experience, the very early versions of Wicket came to our 
notice as a high integrity framework and it continues to be a delight to watch 
the continuing success fo those who truly understand what it takes to build and 
deploy critical enterprise infrastructure. Congratulations.

Regards,
Greg Johnson

> On 18 Oct. 2016, at 05:58, Martin Grigorov <mgrigo...@apache.org> wrote:
> 
> Hi Greg,
> 
> What is the idea behind:
> 
> com/mycompany/AboutMenu$Overview.html (a Panel) containing just:
> 
> 
>Some Text
> 
> 
> 
> The full HTML produced by the home page is:
> 
> 
> 
> 
> http://localhost:8080/?5-1.-menu-items-0-item-link>">
> Overview
> 
> 
> 
> 
> 
> 
> 
> 
> Some Text
> 
> 
> 
> 
> 
> 
> It is totally incorrect!
> 
> 
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Mon, Oct 17, 2016 at 1:19 AM, Greg Johnson <greg.john...@saltaire.com.au>
> wrote:
> 
>> Hi, the example is a very basic “menu” example where on menu select main
>> content is changed.
>> 
>> From the attached quickstart …
>> * run Start.java
>> * localhost:8080/ - Home Page displays
>> * Press browser refresh - Home Page displays
>> * Press browser refresh - MarkupNotFoundException: Markup not found for
>> Component: [TransparentWebMarkupContainer [Component id = wicket_link1]]
>> 
>> if the  tags are removed there is no problem. Note that there
>> are no links, it is just the mere presence of the  tags that
>> seems to cause the problem.
>> Perhaps the architecture is flawed, however it is not clear to me why it
>> only fails on the 3rd render.
>> 
>> Any help would be appreciated, thanks.
>> 
>> Regards, Greg Johnson
>> 
>> 
>> 
>> 
>> 


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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-20 Thread Andrea Del Bene

Ok thank you!

Andrea.


On 20/10/2016 12:07, Greg Johnson wrote:

Create link missing from home page (MacOs 10.12 Safari 10.0) …

Found a “create” link in the help docs …

Created WICKET-6256

Regards, Greg Johnson


On 20 Oct. 2016, at 19:47, Andrea Del Bene <an.delb...@gmail.com> wrote:

That's strange...you should be able to create issues as you belong to  
jira-users group:

https://issues.apache.org/jira/plugins/servlet/project-config/WICKET/permissions

Which is exactly the problem or the error you get?


On 19/10/2016 02:40, greg.johnson wrote:

sure,

i don't seem to have permission in jira to create an issue, am i missing
something?
username: gregjohnson

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675828.html
Sent from the Users forum mailing list archive at Nabble.com.

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



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




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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-20 Thread greg.johnson
Created WICKET-6256 ...

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675852.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-20 Thread Greg Johnson
Create link missing from home page (MacOs 10.12 Safari 10.0) …

Found a “create” link in the help docs …

Created WICKET-6256

Regards, Greg Johnson

> On 20 Oct. 2016, at 19:47, Andrea Del Bene <an.delb...@gmail.com> wrote:
> 
> That's strange...you should be able to create issues as you belong to  
> jira-users group:
> 
> https://issues.apache.org/jira/plugins/servlet/project-config/WICKET/permissions
> 
> Which is exactly the problem or the error you get?
> 
> 
> On 19/10/2016 02:40, greg.johnson wrote:
>> sure,
>> 
>> i don't seem to have permission in jira to create an issue, am i missing
>> something?
>> username: gregjohnson
>> 
>> thanks
>> 
>> --
>> View this message in context: 
>> http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675828.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: 8.0.0-M1 MarkupNotFoundException

2016-10-20 Thread Andrea Del Bene
That's strange...you should be able to create issues as you belong to  
jira-users group:


https://issues.apache.org/jira/plugins/servlet/project-config/WICKET/permissions

Which is exactly the problem or the error you get?


On 19/10/2016 02:40, greg.johnson wrote:

sure,

i don't seem to have permission in jira to create an issue, am i missing
something?
username: gregjohnson

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675828.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-18 Thread greg.johnson
sure,

i don't seem to have permission in jira to create an issue, am i missing
something?
username: gregjohnson

thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/8-0-0-M1-wicket-link-MarkupNotFoundException-tp4675812p4675828.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: 8.0.0-M1 MarkupNotFoundException

2016-10-17 Thread Martin Grigorov
Hi Greg,

What is the idea behind:

com/mycompany/AboutMenu$Overview.html (a Panel) containing just:


Some Text



The full HTML produced by the home page is:




http://localhost:8080/?5-1.-menu-items-0-item-link>">
Overview








Some Text






It is totally incorrect!



Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Oct 17, 2016 at 1:19 AM, Greg Johnson <greg.john...@saltaire.com.au>
wrote:

> Hi, the example is a very basic “menu” example where on menu select main
> content is changed.
>
> From the attached quickstart …
> * run Start.java
> * localhost:8080/ - Home Page displays
> * Press browser refresh - Home Page displays
> * Press browser refresh - MarkupNotFoundException: Markup not found for
> Component: [TransparentWebMarkupContainer [Component id = wicket_link1]]
>
> if the  tags are removed there is no problem. Note that there
> are no links, it is just the mere presence of the  tags that
> seems to cause the problem.
> Perhaps the architecture is flawed, however it is not clear to me why it
> only fails on the 3rd render.
>
> Any help would be appreciated, thanks.
>
> Regards, Greg Johnson
>
>
>
>
>


Re: 8.0.0-M1 MarkupNotFoundException

2016-10-17 Thread Andrea Del Bene

Hi Greg,


can you open an issue and attach the quickstart.


Thank you.


On 17/10/2016 01:19, Greg Johnson wrote:

Hi, the example is a very basic “menu” example where on menu select main 
content is changed.

 From the attached quickstart …
* run Start.java
* localhost:8080/ - Home Page displays
* Press browser refresh - Home Page displays
* Press browser refresh - MarkupNotFoundException: Markup not found for 
Component: [TransparentWebMarkupContainer [Component id = wicket_link1]]

if the  tags are removed there is no problem. Note that there are no 
links, it is just the mere presence of the  tags that seems to cause the 
problem.
Perhaps the architecture is flawed, however it is not clear to me why it only 
fails on the 3rd render.

Any help would be appreciated, thanks.

Regards, Greg Johnson







MarkupNotFoundException

2012-12-11 Thread cosmindumy
Hi, 
I started a new application and I receive the following exception. 
/org.apache.wicket.markup.MarkupNotFoundException: Can not determine
Markup. Component is not yet connected to a parent/
The application is quite simple. I subclassed the application and a home
page.
Which is usually the cause and how can I find the cause in my application? 
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-tp4654698.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: MarkupNotFoundException

2012-12-11 Thread Sven Meier
Check spelling, upper/lower case and the location of the html file for 
your home page.


Sven

On 12/11/2012 12:59 PM, cosmindumy wrote:

Hi,
I started a new application and I receive the following exception.
/org.apache.wicket.markup.MarkupNotFoundException: Can not determine
Markup. Component is not yet connected to a parent/
The application is quite simple. I subclassed the application and a home
page.
Which is usually the cause and how can I find the cause in my application?
Thanks.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-tp4654698.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: MarkupNotFoundException

2012-12-11 Thread Sven Meier

Check the first answer here:

http://stackoverflow.com/questions/2689198/wicket-war-in-jetty-html-files-not-on-classpath

Sven

On 12/11/2012 02:10 PM, cosmindumy wrote:

I checked that ans is not the cause. I noticed that html files are not in
war.
I just have a page that subclass WebPage and a customized Application as
subclass of wicket application.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-tp4654698p4654701.html
Sent from the Users forum mailing list archive at Nabble.com.

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




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



Re: how to debug MarkupNotFoundException

2012-05-16 Thread Hans Lesmeister
Hi,

 Enable debug messages for org.apache.wicket.util.resource to get a list
of all filenames tried

As Wicket suggests: Please enable debug messages and check the console
output. You will see a list of files Wicket is looking up which *might* lead
you to the cause of your problem

Cheers




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



Re: AW: how to debug MarkupNotFoundException

2012-05-15 Thread cosmindumy
So, I haven't solved the MarkupNotFoundException. 

The error occurs after I refresh the parent of repeater using Ajax. Actually
I use a ListView. Here is the error in the log:

RequestCycle.java | 1531 | Markup of type 'html' for component
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component
'com.lingo24.orderingsystem.customer.web.wicket.wos.estimator.UploadFilesControl$1$1'
not found. Enable debug messages for org.apache.wicket.util.resource to get
a list of all filenames tried.: [MarkupContainer [Component id =
iconMinusPanelId]]
at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:227)  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4634680.html
Sent from the Users forum mailing list archive at Nabble.com.

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



how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy

I've got the following exception. How can I know wich is the problem? I have
a FormComponent that has inside a RepeatingView. I'm not sure that is the
problem, but I coldn't find ogher cause. How can I start debugging the
cause?

Markup of type 'html' for component
'org.apache.wicket.markup.html.panel.Panel' not found. Enable debug messages
for org.apache.wicket.util.resource to get a list of all filenames tried.:
[MarkupContainer [Component id = 1]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'org.apache.wicket.markup.html.panel.Panel' not found. Enable
debug messages for org.apache.wicket.util.resource to get a list of all
filenames tried.: [MarkupContainer [Component id = 1]]

Thanks.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356.html
Sent from the Users forum mailing list archive at Nabble.com.

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



AW: how to debug MarkupNotFoundException

2012-05-14 Thread Hans Lesmeister
Hi,

- do you have an HTML file with the same name as Panel-Class? (like
MyPanel.java and MyPanel.html - case sensitiv). 
- Is the HTML-file in the same package?
- Is it copied to the class-path after compiling? 
- there is a markup-setting which you can set to get more info on your
console about how Wicket tries to find the HTML file


-Ursprüngliche Nachricht-
Von: cosmindumy [mailto:cosmind...@yahoo.com] 
Gesendet: Montag, 14. Mai 2012 16:57
An: users@wicket.apache.org
Betreff: how to debug MarkupNotFoundException


I've got the following exception. How can I know wich is the problem? I have
a FormComponent that has inside a RepeatingView. I'm not sure that is the
problem, but I coldn't find ogher cause. How can I start debugging the
cause?

Markup of type 'html' for component
'org.apache.wicket.markup.html.panel.Panel' not found. Enable debug messages
for org.apache.wicket.util.resource to get a list of all filenames tried.:
[MarkupContainer [Component id = 1]]
org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'org.apache.wicket.markup.html.panel.Panel' not found. Enable
debug messages for org.apache.wicket.util.resource to get a list of all
filenames tried.: [MarkupContainer [Component id = 1]]

Thanks.

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundExcept
ion-tp4632356.html
Sent from the Users forum mailing list archive at Nabble.com.

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



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



Re: AW: how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy
Thanks for reply. 
Actually the panel is first time displayed, but after I refershit with ajax
I get that exception. The problem is that I don't know exactly which panel
cause that problem. Is it mandatory to be a panel that is in its own class
and has html file or it might be any other panel?  
The situation is that from that panel I go to another one and after I return
to it I get that error. I added a repeater and this could be the problem.  

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4632436.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: AW: how to debug MarkupNotFoundException

2012-05-14 Thread cosmindumy
The problem is at repeater. I replaced it with another dummy component and
there is no error. I just have to learn how to use the repeater. Maybe you
can help with a link at a good example. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/how-to-debug-MarkupNotFoundException-tp4632356p4632612.html
Sent from the Users forum mailing list archive at Nabble.com.

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



MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Dirk Forchel
Hello,
I've a question regarding Fragements inside a TransparentWebMarkupContainer.
I've a base WebPage with a TransparentWebMarkupContainer to allow subclasses
register CSS classes on the body tag. If I add a Fragment to one of these
subsclasses, the markup of the Fragment is not found. 

BasePage.java

Markup of BasePage.html

My subclass looks like:

Markup of FragmentTestPage.html


Why is it not possible to do this!? And why doesn't find the
FragmentMarkupSourcingStrategy the markup for Fragment testFragment in the
providong markup container (Page class FragmentTestPage)?


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-for-Fragment-and-TransparentWebMarkupContainer-tp4619968.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Martin Grigorov
Hi,

Create a ticket with a quickstart please.
As a workaround you can put the fragment in the base page's html.

On Wed, May 9, 2012 at 1:18 PM, Dirk Forchel dirk.forc...@exedio.com wrote:
 Hello,
 I've a question regarding Fragements inside a TransparentWebMarkupContainer.
 I've a base WebPage with a TransparentWebMarkupContainer to allow subclasses
 register CSS classes on the body tag. If I add a Fragment to one of these
 subsclasses, the markup of the Fragment is not found.

 BasePage.java

 Markup of BasePage.html

 My subclass looks like:

 Markup of FragmentTestPage.html


 Why is it not possible to do this!? And why doesn't find the
 FragmentMarkupSourcingStrategy the markup for Fragment testFragment in the
 providong markup container (Page class FragmentTestPage)?


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-for-Fragment-and-TransparentWebMarkupContainer-tp4619968.html
 Sent from the Users forum mailing list archive at Nabble.com.

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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Thomas Heigl
I had the same problem. I solved it by using the transparent container as
markup provider for the fragment:

add(new MyFragment(fragmentId, getTransparentBodyContainer()))

It works, but is kind of awkward, as subclasses shouldn't really know about
transparent containers in the base class.

Thomas

On Wed, May 9, 2012 at 12:52 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi,

 Create a ticket with a quickstart please.
 As a workaround you can put the fragment in the base page's html.

 On Wed, May 9, 2012 at 1:18 PM, Dirk Forchel dirk.forc...@exedio.com
 wrote:
  Hello,
  I've a question regarding Fragements inside a
 TransparentWebMarkupContainer.
  I've a base WebPage with a TransparentWebMarkupContainer to allow
 subclasses
  register CSS classes on the body tag. If I add a Fragment to one of these
  subsclasses, the markup of the Fragment is not found.
 
  BasePage.java
 
  Markup of BasePage.html
 
  My subclass looks like:
 
  Markup of FragmentTestPage.html
 
 
  Why is it not possible to do this!? And why doesn't find the
  FragmentMarkupSourcingStrategy the markup for Fragment testFragment in
 the
  providong markup container (Page class FragmentTestPage)?
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-for-Fragment-and-TransparentWebMarkupContainer-tp4619968.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: MarkupNotFoundException for Fragment and TransparentWebMarkupContainer

2012-05-09 Thread Dirk Forchel
JIRA Issue https://issues.apache.org/jira/browse/WICKET-4545 with quickstart
created.
Thanks for the awkward hint and for the quick hack. I'll use a Panel
instead.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/MarkupNotFoundException-for-Fragment-and-TransparentWebMarkupContainer-tp4619968p4620173.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
From the error message it seems there is no PersonXmlRestService.html around.
Please describe how wicket-rest actually works.

On Thu, Jun 16, 2011 at 1:55 AM, gerar gerardp...@gmail.com wrote:
 Hi,

 I've tried to port http://wicket-rest.googlecode.com/svn to Wicket
 1.5-RC4.2.
 That took some minor changes like the package that PageParameters is in, the
 way the HttpServletRequest is fetched and the onRender methods.

 All compiles well. However, when I make a request in a browser for a URL
 like http://localhost:8080/wicket-rest-example/person-api/xml;, I get
 errors like this one:

 org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
 Component is not yet connected to a parent. [Page class =
 org.innobuilt.wicket.rest.example.pages.PersonXmlRestService, id = 2, render
 count = 1]

 When using Wicket 1.4.x, that all works fine.

 Does anyone have an idea what is going on?

 Cheers,

 Gerar

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3600779.html
 Sent from the Users forum mailing list archive at Nabble.com.

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Details:

The  PersonXmlRestService.html is an example that comes with the wicket-rest
library. It is a subclass of XmlWebServicePage which in  turn is based on
AbstractWebServicePage. Class AbstractWebServicePage has a method:

@Override
public final boolean hasAssociatedMarkup() {
return false;
}

to indicate that no HTML is associated. All output generated by pages based
on these superclasses is as is. No HTML but XML (or Json) is produced.
It seems that this is ignored.

and in the XmlWebServicePage there's a method

@Override
public final MarkupType getMarkupType() {
return new MarkupType(xml, text/xml);

}   
@Override
protected final void onRender() {
getResponse().write(getXML().toString());
}
which generates the actual output (without any HTML file).


I've attached sources as well. You can run it by unzipping followed by:

cd wicket-rest-trunk
mvn clean install
cd wicket-rest-example
mvn jetty:run

then request http://localhost:8080/wicket-rest-example/person-api/xml; in a
browser.


http://apache-wicket.1842946.n4.nabble.com/file/n3602257/wicket-rest-wicket15rc42.zip
wicket-rest-wicket15rc42.zip 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602257.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
On Thu, Jun 16, 2011 at 3:16 PM, gerar gerardp...@gmail.com wrote:
 Details:

 The  PersonXmlRestService.html is an example that comes with the wicket-rest
 library. It is a subclass of XmlWebServicePage which in  turn is based on
 AbstractWebServicePage. Class AbstractWebServicePage has a method:

    @Override
    public final boolean hasAssociatedMarkup() {
        return false;
    }
Instead of overriding this you can try with implementing
IMarkupResourceStreamProvider and return new
StringResourceStream()

I think it should work now.

 to indicate that no HTML is associated. All output generated by pages based
 on these superclasses is as is. No HTML but XML (or Json) is produced.
 It seems that this is ignored.

 and in the XmlWebServicePage there's a method

    @Override
    public final MarkupType getMarkupType() {
        return new MarkupType(xml, text/xml);

    }
    @Override
    protected final void onRender() {
        getResponse().write(getXML().toString());
    }
 which generates the actual output (without any HTML file).


 I've attached sources as well. You can run it by unzipping followed by:

 cd wicket-rest-trunk
 mvn clean install
 cd wicket-rest-example
 mvn jetty:run

 then request http://localhost:8080/wicket-rest-example/person-api/xml; in a
 browser.


 http://apache-wicket.1842946.n4.nabble.com/file/n3602257/wicket-rest-wicket15rc42.zip
 wicket-rest-wicket15rc42.zip

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602257.html
 Sent from the Users forum mailing list archive at Nabble.com.

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Thanks for the very quick answer.

However, now another error message appears.

The superclass now looks like this:

public abstract class AbstractWebServicePage extends WebPage implements
IMarkupResourceStreamProvider {
// Removed hasAssociatedMarkup method and added:

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class? containerClass) {
return new StringResourceStream();
}



This error appears when requesting the page in a browser:

Root cause:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
at org.apache.wicket.markup.Markup.get(Markup.java:109)
at org.apache.wicket.Component.internalRender(Component.java:2371)
at org.apache.wicket.Component.render(Component.java:2322)
at org.apache.wicket.Page.renderPage(Page.java:1120)
 at
org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
 at
org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
 at
org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
 at
org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
 at
org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
 at
org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
 at
org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
 at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
 at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
 at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
.




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Martin Grigorov
One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
   }

On Thu, Jun 16, 2011 at 3:39 PM, gerar gerardp...@gmail.com wrote:
 Thanks for the very quick answer.

 However, now another error message appears.

 The superclass now looks like this:

 public abstract class AbstractWebServicePage extends WebPage implements
 IMarkupResourceStreamProvider {
 // Removed hasAssociatedMarkup method and added:
 
    public IResourceStream getMarkupResourceStream(MarkupContainer
 container, Class? containerClass) {
        return new StringResourceStream();
    }

 

 This error appears when requesting the page in a browser:

 Root cause:

 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
 at java.util.ArrayList.RangeCheck(ArrayList.java:547)
 at java.util.ArrayList.get(ArrayList.java:322)
 at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
 at org.apache.wicket.markup.Markup.get(Markup.java:109)
 at org.apache.wicket.Component.internalRender(Component.java:2371)
 at org.apache.wicket.Component.render(Component.java:2322)
 at org.apache.wicket.Page.renderPage(Page.java:1120)
     at
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
     at
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
     at
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
     at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
     at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
     at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
     at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
     at
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
     at
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
     at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
 .




 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
 Sent from the Users forum mailing list archive at Nabble.com.

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





-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Bruno Borges
I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

Gerard, you can now ask for commit access at wicketstuff, or just fork it
from there and then push a patch.

https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

Thanks again for showing interest in this project.

Cheers
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorov mgrigo...@apache.orgwrote:

 One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

 with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
}

 On Thu, Jun 16, 2011 at 3:39 PM, gerar gerardp...@gmail.com wrote:
  Thanks for the very quick answer.
 
  However, now another error message appears.
 
  The superclass now looks like this:
 
  public abstract class AbstractWebServicePage extends WebPage implements
  IMarkupResourceStreamProvider {
  // Removed hasAssociatedMarkup method and added:
  
 public IResourceStream getMarkupResourceStream(MarkupContainer
  container, Class? containerClass) {
 return new StringResourceStream();
 }
 
  
 
  This error appears when requesting the page in a browser:
 
  Root cause:
 
  java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  at java.util.ArrayList.RangeCheck(ArrayList.java:547)
  at java.util.ArrayList.get(ArrayList.java:322)
  at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
  at org.apache.wicket.markup.Markup.get(Markup.java:109)
  at org.apache.wicket.Component.internalRender(Component.java:2371)
  at org.apache.wicket.Component.render(Component.java:2322)
  at org.apache.wicket.Page.renderPage(Page.java:1120)
  at
 
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
  at
 
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
  at
 
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
  at
 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
  at
 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
  at
 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
  at
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
  at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
  .
 
 
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



 --
 Martin Grigorov
 jWeekend
 Training, Consulting, Development
 http://jWeekend.com

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




Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Michael O'Cleirigh

Hello,

Once the wicket-rest project works it would be better placed into the 
wicketstuff/core repository as no snapshots or releases are done using 
sandbox code.


But they come for free if you contribute into the wicketstuff/core 
repository.


Mike

I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

Gerard, you can now ask for commit access at wicketstuff, or just fork it
from there and then push a patch.

https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

Thanks again for showing interest in this project.

Cheers
*Bruno Borges*
www.brunoborges.com.br
+55 21 76727099



On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorovmgrigo...@apache.orgwrote:


One more replace:

  @Override
   protected final void onRender() {
   getResponse().write(getXML().toString());
   }

with
  @Override
   public void renderPage() {
   getResponse().write(getXML().toString());
}

On Thu, Jun 16, 2011 at 3:39 PM, gerargerardp...@gmail.com  wrote:

Thanks for the very quick answer.

However, now another error message appears.

The superclass now looks like this:

public abstract class AbstractWebServicePage extends WebPage implements
IMarkupResourceStreamProvider {
// Removed hasAssociatedMarkup method and added:

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class?  containerClass) {
return new StringResourceStream();
}



This error appears when requesting the page in a browser:

Root cause:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
at org.apache.wicket.markup.Markup.get(Markup.java:109)
at org.apache.wicket.Component.internalRender(Component.java:2371)
at org.apache.wicket.Component.render(Component.java:2322)
at org.apache.wicket.Page.renderPage(Page.java:1120)
 at


org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)

 at


org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)

 at


org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)

 at


org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)

 at


org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)

 at


org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)

 at


org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)

 at


org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)

 at


org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)

 at


org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)

.




--
View this message in context:

http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html

Sent from the Users forum mailing list archive at Nabble.com.

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





--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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





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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
Hi,

Maybe the cause of the problem is to be found elsewhere. I created a simple
test page. Code is below.
It produces the HTML itself without an HTML file, just like the pages that
use wicket-rest baseclasses.

1)
The code below runs just fine, but neither onInitialize nor onBeforeRender
are ever run. Why is that?
2)
Why doesn't implementation of hasAssociatedMarkup work for this example?

Please find the code for the testpage below.

Cheers,

Gerard

package org.innobuilt.wicket.rest.example.pages;

import org.apache.wicket.MarkupContainer;
import org.apache.wicket.markup.IMarkupResourceStreamProvider;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.util.resource.IResourceStream;
import org.apache.wicket.util.resource.StringResourceStream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestPage extends WebPage implements
IMarkupResourceStreamProvider {
private static final Logger LOG =
LoggerFactory.getLogger(TestPage.class);

@Override
protected void onInitialize() {
super.onInitialize();
LOG.info(onInitialize);
}

@Override
protected void onBeforeRender() {
super.onInitialize();
LOG.info(onBeforeRender);
}

@Override
public void renderPage() {
LOG.info(renderPage);
getResponse().write(htmlbodyhello/body/html);
}

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class? containerClass) {
LOG.info(getMarkupResourceStream);
return new StringResourceStream();
}
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602838.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread gerar
I forgot to say that implementing 

@Override
public void renderPage() {
getResponse().write(getXML().toString());
}
and 

public IResourceStream getMarkupResourceStream(MarkupContainer
container, Class? containerClass) {
return new StringResourceStream();
}

still didn't solve the problem since onBeforeRender and/or onInitialize are
not called. That is the place in wicket-rest where the payload data is
prepared depending on the HTTP method.

Cheers,

Gerard

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602855.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-16 Thread Gerard J. Piek
Bruno,

Thanks. Once I have the details right, I'll dive into this.

Cheers,

Gerard

2011/6/16 Bruno Borges bruno.bor...@gmail.com

 I forked the project wicket-rest from googlecode to wicketstuff-sandbox.

 Gerard, you can now ask for commit access at wicketstuff, or just fork it
 from there and then push a patch.

 https://github.com/wicketstuff/sandbox/tree/master/wicket-rest

 Thanks again for showing interest in this project.

 Cheers
 *Bruno Borges*
 www.brunoborges.com.br
 +55 21 76727099



 On Thu, Jun 16, 2011 at 9:42 AM, Martin Grigorov mgrigo...@apache.org
 wrote:

  One more replace:
 
   @Override
protected final void onRender() {
getResponse().write(getXML().toString());
}
 
  with
   @Override
public void renderPage() {
getResponse().write(getXML().toString());
 }
 
  On Thu, Jun 16, 2011 at 3:39 PM, gerar gerardp...@gmail.com wrote:
   Thanks for the very quick answer.
  
   However, now another error message appears.
  
   The superclass now looks like this:
  
   public abstract class AbstractWebServicePage extends WebPage implements
   IMarkupResourceStreamProvider {
   // Removed hasAssociatedMarkup method and added:
   
  public IResourceStream getMarkupResourceStream(MarkupContainer
   container, Class? containerClass) {
  return new StringResourceStream();
  }
  
   
  
   This error appears when requesting the page in a browser:
  
   Root cause:
  
   java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.RangeCheck(ArrayList.java:547)
   at java.util.ArrayList.get(ArrayList.java:322)
   at java.util.Collections$UnmodifiableList.get(Collections.java:1154)
   at org.apache.wicket.markup.Markup.get(Markup.java:109)
   at org.apache.wicket.Component.internalRender(Component.java:2371)
   at org.apache.wicket.Component.render(Component.java:2322)
   at org.apache.wicket.Page.renderPage(Page.java:1120)
   at
  
 
 org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:105)
   at
  
 
 org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:218)
   at
  
 
 org.apache.wicket.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:139)
   at
  
 
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:718)
   at
  
 
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:63)
   at
  
 
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:212)
   at
  
 
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:253)
   at
  
 
 org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:138)
   at
  
 
 org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
   at
  
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1112)
   .
  
  
  
  
   --
   View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3602317.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
   -
   To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
   For additional commands, e-mail: users-h...@wicket.apache.org
  
  
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
  For additional commands, e-mail: users-h...@wicket.apache.org
 
 



wicket-rest and Wicket 1.5-RC4.2: MarkupNotFoundException: Can not determine Markup

2011-06-15 Thread gerar
Hi,

I've tried to port http://wicket-rest.googlecode.com/svn to Wicket
1.5-RC4.2.
That took some minor changes like the package that PageParameters is in, the
way the HttpServletRequest is fetched and the onRender methods.

All compiles well. However, when I make a request in a browser for a URL
like http://localhost:8080/wicket-rest-example/person-api/xml;, I get
errors like this one:

org.apache.wicket.markup.MarkupNotFoundException: Can not determine Markup.
Component is not yet connected to a parent. [Page class =
org.innobuilt.wicket.rest.example.pages.PersonXmlRestService, id = 2, render
count = 1]

When using Wicket 1.4.x, that all works fine.

Does anyone have an idea what is going on?

Cheers,

Gerar

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-rest-and-Wicket-1-5-RC4-2-MarkupNotFoundException-Can-not-determine-Markup-tp3600779p3600779.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Tito
Yes Clint. In fact extends from BasePage wich extends from WebPage. But the
point is, it's working except for one user y one computer.

Andrea, It's so weird. I asked user to remove Cookies, to try with anothers
navigators, and to refresh page. Not to clean cache, but while I'm having
this problem in my server (I checked it on log) I think it shouldn't be user
machine. Isn't it?

Thanks!
Tito

2011/5/16 andrea del bene andrea.on@libero.it

 Do you mean that on another computer with the same user you don't get the
 error?
 That sounds weird. Have you tried cleaning cache and temporary files on pc
 that gives error?

  Hi, I'm having this error:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
 for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
 found. Enable debug messages for org.apache.wicket.util.resource to get a
 list of all filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version = 0]
 Usually It's because html doesn't exist. But my application is deployed
 and
 working. Only with one user, and only in his computer (at least for the
 moment) I get this error.

 Does anyone know what could be causing this selective error?

 Thanks in advance

 Tito



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




Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Andrea Del Bene
Is there any software on the infamous machine that could interfere 
with the tcp/ip connection (firewall, antivirus, security suite, etc...) ?

Yes Clint. In fact extends from BasePage wich extends from WebPage. But the
point is, it's working except for one user y one computer.

Andrea, It's so weird. I asked user to remove Cookies, to try with anothers
navigators, and to refresh page. Not to clean cache, but while I'm having
this problem in my server (I checked it on log) I think it shouldn't be user
machine. Isn't it?

Thanks!
Tito

2011/5/16 andrea del beneandrea.on@libero.it


Do you mean that on another computer with the same user you don't get the
error?
That sounds weird. Have you tried cleaning cache and temporary files on pc
that gives error?

  Hi, I'm having this error:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
found. Enable debug messages for org.apache.wicket.util.resource to get a
list of all filenames tried.: [Page class =
com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version = 0]
Usually It's because html doesn't exist. But my application is deployed
and
working. Only with one user, and only in his computer (at least for the
moment) I get this error.

Does anyone know what could be causing this selective error?

Thanks in advance

Tito



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





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



Re: MarkupNotFoundException strange behavior

2011-05-17 Thread Tito
I don't know, I'm gonna ask him. But I have not access to user machine.
For now, I will still trying to get a more specific information about error.

2011/5/17 Andrea Del Bene adelb...@ciseonweb.it

 Is there any software on the infamous machine that could interfere with
 the tcp/ip connection (firewall, antivirus, security suite, etc...) ?

  Yes Clint. In fact extends from BasePage wich extends from WebPage. But
 the
 point is, it's working except for one user y one computer.

 Andrea, It's so weird. I asked user to remove Cookies, to try with
 anothers
 navigators, and to refresh page. Not to clean cache, but while I'm having
 this problem in my server (I checked it on log) I think it shouldn't be
 user
 machine. Isn't it?

 Thanks!
 Tito

 2011/5/16 andrea del beneandrea.on@libero.it

  Do you mean that on another computer with the same user you don't get the
 error?
 That sounds weird. Have you tried cleaning cache and temporary files on
 pc
 that gives error?

  Hi, I'm having this error:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type
 'html'
 for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
 found. Enable debug messages for org.apache.wicket.util.resource to get
 a
 list of all filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version =
 0]
 Usually It's because html doesn't exist. But my application is deployed
 and
 working. Only with one user, and only in his computer (at least for the
 moment) I get this error.

 Does anyone know what could be causing this selective error?

 Thanks in advance

 Tito


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




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




MarkupNotFoundException strange behavior

2011-05-16 Thread Tito
Hi, I'm having this error:

   org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
found. Enable debug messages for org.apache.wicket.util.resource to get a
list of all filenames tried.: [Page class =
com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version = 0]
Usually It's because html doesn't exist. But my application is deployed and
working. Only with one user, and only in his computer (at least for the
moment) I get this error.

Does anyone know what could be causing this selective error?

Thanks in advance

Tito


Re: MarkupNotFoundException strange behavior

2011-05-16 Thread Clint Checketts
This happens because you don't have an HTML file for your page. (Assuming
you are extending WebPage). You'll need to tell more about your setup and
when you are extending to really pinpoint the issue.

EmployeeDedicationLoad extends WebPage, right?

-Clint




On Mon, May 16, 2011 at 1:24 PM, Tito njyt...@gmail.com wrote:

 Hi, I'm having this error:

   org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
 for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
 found. Enable debug messages for org.apache.wicket.util.resource to get a
 list of all filenames tried.: [Page class =
 com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version = 0]
 Usually It's because html doesn't exist. But my application is deployed and
 working. Only with one user, and only in his computer (at least for the
 moment) I get this error.

 Does anyone know what could be causing this selective error?

 Thanks in advance

 Tito



Re: MarkupNotFoundException strange behavior

2011-05-16 Thread andrea del bene
Do you mean that on another computer with the same user you don't get 
the error?
That sounds weird. Have you tried cleaning cache and temporary files on 
pc that gives error?

Hi, I'm having this error:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for component 'com.keepcon.web.timetracking.EmployeeDedicationLoad' not
found. Enable debug messages for org.apache.wicket.util.resource to get a
list of all filenames tried.: [Page class =
com.keepcon.web.timetracking.EmployeeDedicationLoad, id = 0, version = 0]
Usually It's because html doesn't exist. But my application is deployed and
working. Only with one user, and only in his computer (at least for the
moment) I get this error.

Does anyone know what could be causing this selective error?

Thanks in advance

Tito




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



Re: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread Mathias Nilsson

After plugin in the pom file

resources
  resource
filteringfalse/filtering
 directorysrc/main/resources/directory
   /resource
   resource
filteringfalse/filtering
directorysrc/main/java/directory
includes
  include**/include
/includes
excludes
  exclude**/*.java/exclude
/excludes
  /resource
/resources
-- 
View this message in context: 
http://www.nabble.com/MarkupnotFoundException-in-eclipse-3.4.2-tp25001104p25006663.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread jWeekend

The quick fix is:
  in Project Properties/Java Build Path/Source) set Included: *.* (and
make sure *.html is not Excluded) for the folder your html is in, most
likely src/main/java if you keep your templates next to your Java source
files.

Regards - Cemal 
jWeekend 
OO  Java Technologies, Wicket Training and Development 
http://jWeekend.com


dale77 wrote:
 
 Hello,
 
 The quickstart is proving anything but. I run quickstart:
 
 mvn archetype:create -DarchetypeGroupId=org.apache.wicket
 -DarchetypeArtifactId=wicket-archetype-quickstart
 -DarchetypeVersion=1.4.0 -DgroupId=nz.co.acme -DartifactId=myproject
 
 Then generate and eclipse project:
 
 mvn eclipse:eclipse -DdownloadSources=true
 
 Then I import the project into eclipse, leaving copy into workspace
 unchecked, and Run As Junit test on TestHomePage.java...
 
 Markup of type 'html' for component 'nz.co.acme.HomePage' not found.
 Enable debug messages for org.apache.wicket.util.resource to get a list
 of all filenames tried.: [Page class = nz.co.acme.HomePage, id = 0,
 version = 0] org.apache.wicket.markup.MarkupNotFoundException: Markup of
 type 'html' for component 'nz.co.acme.HomePage' not found.
 
 Eclipse is not copying the .html file alongside the .class. But the Java
 | Compiler | Output Folder | Filtered Resources is only *.launch. How do
 I make eclipse copy the html file next to the class?
 
 No doubt there is a simple explanation, but I'm not seeing it. Can
 anyone help me out?
 
 Thanks
 
 Dale
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MarkupnotFoundException-in-eclipse-3.4.2-tp25001104p25010844.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



RE: MarkupnotFoundException in eclipse 3.4.2

2009-08-17 Thread Dale Ogilvie
 
Thanks, that worked. 

I wonder why this isn't automatically set up in the quickstart?

-Original Message-
From: jWeekend [mailto:jweekend_for...@cabouge.com] 
Sent: Tuesday, 18 August 2009 5:25 a.m.
To: users@wicket.apache.org
Subject: Re: MarkupnotFoundException in eclipse 3.4.2


The quick fix is:
  in Project Properties/Java Build Path/Source) set Included: *.* (and
make sure *.html is not Excluded) for the folder your html is in, most
likely src/main/java if you keep your templates next to your Java source
files.

Regards - Cemal
jWeekend
OO  Java Technologies, Wicket Training and Development
http://jWeekend.com


dale77 wrote:
 
 Eclipse is not copying the .html file alongside the .class. But the 
 Java
 | Compiler | Output Folder | Filtered Resources is only *.launch. How 
 | do
 I make eclipse copy the html file next to the class?

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



MarkupnotFoundException in eclipse 3.4.2

2009-08-16 Thread Dale Ogilvie
Hello,

The quickstart is proving anything but. I run quickstart:

mvn archetype:create -DarchetypeGroupId=org.apache.wicket
-DarchetypeArtifactId=wicket-archetype-quickstart
-DarchetypeVersion=1.4.0 -DgroupId=nz.co.acme -DartifactId=myproject

Then generate and eclipse project:

mvn eclipse:eclipse -DdownloadSources=true

Then I import the project into eclipse, leaving copy into workspace
unchecked, and Run As Junit test on TestHomePage.java...

Markup of type 'html' for component 'nz.co.acme.HomePage' not found.
Enable debug messages for org.apache.wicket.util.resource to get a list
of all filenames tried.: [Page class = nz.co.acme.HomePage, id = 0,
version = 0] org.apache.wicket.markup.MarkupNotFoundException: Markup of
type 'html' for component 'nz.co.acme.HomePage' not found.

Eclipse is not copying the .html file alongside the .class. But the Java
| Compiler | Output Folder | Filtered Resources is only *.launch. How do
I make eclipse copy the html file next to the class?

No doubt there is a simple explanation, but I'm not seeing it. Can
anyone help me out?

Thanks

Dale


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



WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread Steve Hiller
Hi All,

I'm trying out the small WicketTester example that is shown in the 
org.apache.wicket.util.tester.WicketTester API page.
However, I am getting the following exception:

Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not found. 
Component class: integration.wicket.MyPage 

I must be doing some basic thing wrong but I don't know what it is. Any ideas?

Thanks,

Steve

Re: WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread Petr Fejfar
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not 
 found. Component class: integration.wicket.MyPage

Do you have a MyPage.html with related markup in the same folder as
your MyPage.java file?

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



Re: WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread shetc

Yes, I do, Petr
-- 
View this message in context: 
http://www.nabble.com/WicketTester-Newbie-User-Issue%3A-MarkupNotFoundException-tp24881185p24881598.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread Igor Vaynberg
make sure your ide copies it to the same place where it generates .class files.

-igor

On Sat, Aug 8, 2009 at 12:49 PM, shetcsh...@bellsouth.net wrote:

 Yes, I do, Petr
 --
 View this message in context: 
 http://www.nabble.com/WicketTester-Newbie-User-Issue%3A-MarkupNotFoundException-tp24881185p24881598.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


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



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



Re: WicketTester Newbie User Issue: MarkupNotFoundException

2009-08-08 Thread shetc

That was it, Igor! I started a new project in Rational Application Developer
and I forgot
that it sets Eclipse to filter out *.html files from the bin directory.
Thanks so much!
-- 
View this message in context: 
http://www.nabble.com/WicketTester-Newbie-User-Issue%3A-MarkupNotFoundException-tp24881185p24881812.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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



MarkupNotFoundException

2008-05-09 Thread AlexTM

Hi.

I have a class IpLookupPage that uses markupinheritence and inherits a class
called BasePage. I is working fine when i test it manually but when i am
using testng to do unit testing on the page i get an exception.

The code looks like:
ApplicationContext context = getStubApplicationContextForPage();
BossoWicketTester app = createWicketTester(context);

app.openPage(IpLookupPage.class);

And i get this error message:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'com.ongame.bo.bofraud.markup.pages.IpLookupPage' not found.
Enable debug messages for org.apache.wicket.util.resource to get a list of
all filenames tried:
 [Page class = com.ongame.bo.bofraud.markup.pages.IpLookupPage, id = 0,
version = 0]
 at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:354)
 at org.apache.wicket.Page.onRender(Page.java:1435)
 at org.apache.wicket.Component.render(Component.java:2266)
 at org.apache.wicket.Page.renderPage(Page.java:891)
 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:231)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103)
 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1100)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(MockWebApplication.java:382)
 at
com.ongame.bo.bofraud.WicketApplicationTest$BossoWicketTester.openPage(WicketApplicationTest.java:101)
 at
com.ongame.bo.bofraud.markup.pages.IpLookupPageTest.testInvalidIpAddress(IpLookupPageTest.java:68)
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
found. Component class: com.ongame.bo.bofraud.markup.pages.IpLookupPage
Enable debug messages for org.apache.wicket.util.resource to get a list of
all filenames tried
 at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215)
 at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:342)
 ... 33 more
 ... Removed 21 stack frames


Anyone that knows what the problem is?

Regards 
Alex
-- 
View this message in context: 
http://www.nabble.com/MarkupNotFoundException-tp17142219p17142219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: MarkupNotFoundException

2008-05-09 Thread Zappaterrini, Larry
Are IpLookupPage.html and BasePage.html both in the same location as
IpLookupPage.class and BasePage.class respectively and on the testing
classpath?

-Original Message-
From: AlexTM [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 09, 2008 2:41 AM
To: users@wicket.apache.org
Subject: MarkupNotFoundException


Hi.

I have a class IpLookupPage that uses markupinheritence and inherits a
class
called BasePage. I is working fine when i test it manually but when i am
using testng to do unit testing on the page i get an exception.

The code looks like:
ApplicationContext context = getStubApplicationContextForPage();
BossoWicketTester app = createWicketTester(context);

app.openPage(IpLookupPage.class);

And i get this error message:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
for
component 'com.ongame.bo.bofraud.markup.pages.IpLookupPage' not found.
Enable debug messages for org.apache.wicket.util.resource to get a list
of
all filenames tried:
 [Page class = com.ongame.bo.bofraud.markup.pages.IpLookupPage, id = 0,
version = 0]
 at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContai
ner.java:354)
 at org.apache.wicket.Page.onRender(Page.java:1435)
 at org.apache.wicket.Component.render(Component.java:2266)
 at org.apache.wicket.Page.renderPage(Page.java:891)
 at
org.apache.wicket.request.target.component.BookmarkablePageRequestTarget
.respond(BookmarkablePageRequestTarget.java:231)
 at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(Abstract
RequestCycleProcessor.java:103)
 at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java
:1100)
 at org.apache.wicket.RequestCycle.step(RequestCycle.java:1169)
 at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
 at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
 at
org.apache.wicket.protocol.http.MockWebApplication.processRequestCycle(M
ockWebApplication.java:382)
 at
com.ongame.bo.bofraud.WicketApplicationTest$BossoWicketTester.openPage(W
icketApplicationTest.java:101)
 at
com.ongame.bo.bofraud.markup.pages.IpLookupPageTest.testInvalidIpAddress
(IpLookupPageTest.java:68)
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
found. Component class: com.ongame.bo.bofraud.markup.pages.IpLookupPage
Enable debug messages for org.apache.wicket.util.resource to get a list
of
all filenames tried
 at
org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:21
5)
 at
org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContai
ner.java:342)
 ... 33 more
 ... Removed 21 stack frames


Anyone that knows what the problem is?

Regards 
Alex
-- 
View this message in context:
http://www.nabble.com/MarkupNotFoundException-tp17142219p17142219.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

__

The information contained in this message is proprietary and/or confidential. 
If you are not the 
intended recipient, please: (i) delete the message and all copies; (ii) do not 
disclose, 
distribute or use the message in any manner; and (iii) notify the sender 
immediately. In addition, 
please be aware that any message addressed to our domain is subject to 
archiving and review by 
persons other than the intended recipient. Thank you.
_

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MarkupNotFoundException: Markup of type 'html' for component ... not found ???

2007-11-29 Thread lodhur

Thanks for the hint.
Sometimes you can't see the forest for the trees.

Heiko


igor.vaynberg wrote:
 
 do you have a JobOverviewPage$ActionPanel.html next to
 JobOverviewPage.java?
 
 -igor
 
 
 On Nov 28, 2007 9:52 AM, Heiko [EMAIL PROTECTED] wrote:
 Hi,

 according to the DataTable Example from the Repeater View Examples
 I've written my own Page.
 My Page-Class is derived from Webpage. But if I add an AbstractColumn
 to the ListIColumn like in the example application

 columns.add(new AbstractColumn(new Model(Actions)) {
   public void populateItem(Item cellItem, String componentId, IModel
 model)
 {
 cellItem.add(new ActionPanel(componentId, model));
   }
 });

 I get the following exception:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html'
 for
 component 'de.lbb.it34.qman.JobOverviewPage$ActionPanel' not found.
 Enable
 debug messages for org.apache.wicket.util.resource to get a list of all
 filenames tried:
 [MarkupContainer [Component id = cell, page =
 de.lbb.it34.qman.JobOverviewPage, path = 6:table:rows:1:cells:6:
 cell.JobOverviewPage$ActionPanel, isVisible = true, isVersioned = true]]
 .
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
 found. Component class: .

 In similiar threads I couldn't found an answer for this issue.

 Thanks,
 Heiko

 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/MarkupNotFoundException%3A-Markup-of-type-%27html%27-for-component-...-not-found-tf4892243.html#a14022553
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: MarkupNotFoundException: Markup of type 'html' for component ... not found ???

2007-11-28 Thread Igor Vaynberg
do you have a JobOverviewPage$ActionPanel.html next to JobOverviewPage.java?

-igor


On Nov 28, 2007 9:52 AM, Heiko [EMAIL PROTECTED] wrote:
 Hi,

 according to the DataTable Example from the Repeater View Examples
 I've written my own Page.
 My Page-Class is derived from Webpage. But if I add an AbstractColumn
 to the ListIColumn like in the example application

 columns.add(new AbstractColumn(new Model(Actions)) {
   public void populateItem(Item cellItem, String componentId, IModel model)
 {
 cellItem.add(new ActionPanel(componentId, model));
   }
 });

 I get the following exception:

 org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
 component 'de.lbb.it34.qman.JobOverviewPage$ActionPanel' not found. Enable
 debug messages for org.apache.wicket.util.resource to get a list of all
 filenames tried:
 [MarkupContainer [Component id = cell, page =
 de.lbb.it34.qman.JobOverviewPage, path = 6:table:rows:1:cells:6:
 cell.JobOverviewPage$ActionPanel, isVisible = true, isVersioned = true]]
 .
 Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
 found. Component class: .

 In similiar threads I couldn't found an answer for this issue.

 Thanks,
 Heiko


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



MarkupNotFoundException: Markup of type 'html' for component ... not found ???

2007-11-28 Thread Heiko
Hi,

according to the DataTable Example from the Repeater View Examples
I've written my own Page.
My Page-Class is derived from Webpage. But if I add an AbstractColumn
to the ListIColumn like in the example application

columns.add(new AbstractColumn(new Model(Actions)) {
  public void populateItem(Item cellItem, String componentId, IModel model)
{
cellItem.add(new ActionPanel(componentId, model));
  }
});

I get the following exception:

org.apache.wicket.markup.MarkupNotFoundException: Markup of type 'html' for
component 'de.lbb.it34.qman.JobOverviewPage$ActionPanel' not found. Enable
debug messages for org.apache.wicket.util.resource to get a list of all
filenames tried:
[MarkupContainer [Component id = cell, page =
de.lbb.it34.qman.JobOverviewPage, path = 6:table:rows:1:cells:6:
cell.JobOverviewPage$ActionPanel, isVisible = true, isVersioned = true]]
.
Caused by: org.apache.wicket.markup.MarkupNotFoundException: Markup not
found. Component class: .

In similiar threads I couldn't found an answer for this issue.

Thanks,
Heiko