If you run in DEVELOPMENT mode, we try to give you meaningful messages
when you fail to put a component definition in your html file. This is
done by creating a stack trace at the moment of component creation and
addition. This gives you line precise error messages in this case:

java:

public MyPage() {
    add(new Label("foo", "Hello, World"));
}

html:

<html>
<body><span>Foo</span></body>
</html

(note the missing wicket:id in the html file)

You can turn this off by selecting either: DEPLOYMENT mode in your
web.xml, or by disabling the component use check in your
application#init() method (default on for DEVELOPMENT and default off
for DEPLOYMENT)

Martijn

On 7/5/07, dx74a19 <[EMAIL PROTECTED]> wrote:
>
> Hi, I have a question about session files. (second level cache store)
> I was courious, why some of theese file are so big (100k +) so I opened one.
> I saw full of partial stack traces - like this:
>
> The ajaxsubmitbutton with id 'updateButton' that failed to render was added
>      at
> com.panteon.wicket.markup.html.data.CRUDForm$Toolbar.<init>(CRUDForm.java:290)
>      at
> com.panteon.wicket.markup.html.data.CRUDForm.newToolbarPanel(CRUDForm.java:25)
>      at
> com.panteon.wicket.markup.html.data.DataForm.<init>(DataForm.java:23)
>      at
> com.panteon.wicket.markup.html.data.RecordForm.<init>(RecordForm.java:17)
>      at
> com.panteon.wicket.markup.html.data.CRUDForm.<init>(CRUDForm.java:10)
>      at
> com.panteon.wicket.markup.html.data.CRUDForm.<init>(CRUDForm.java:17)
>      at com.panteon.em1.panel.client.ClientForm.<init>(ClientForm.java:10)
>      at
> com.panteon.em1.panel.client.ClientDetail.<init>(ClientDetail.java:15)
>
>
> All the files are full of this, hundreds of kb, probably for every component
> on my pages. It says: failed to render. (???)
> Yet, the application works perfectly fine, the console is quiet, the logs
> are ok... Why / What is this?
>
> Thx
>
> --
> View this message in context: 
> http://www.nabble.com/Strange-content-serialized-tf4028146.html#a11442083
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Wicket joins the Apache Software Foundation as Apache Wicket
Apache Wicket 1.3.0-beta2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to