1.2 is better in making sure all IModels implement Serializable (which
is needed for clusters and Tomcat to persist the session). Just check
you models.
public myModel implements Serializable
{
...
}
Juergen
On 2/2/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> Well, I tested with the setTransparent(boolean transparent) and it
> worked fine. Loaded the page fine and refreshed fine.
>
> It should be the old name of the method. When I download the next
> snapshot I will need to change my code to use the new name. No
> problem.
>
> Thanks again, but now I found another strange thing when using the 1.2
> snapshot:
>
> wicket.WicketRuntimeException: Internal error cloning object. Make
> sure all dependent objects implement Serializable. Class:
> myApp.MySession
> wicket.Session.setAttribute(Session.java:727)
> wicket.Session.update(Session.java:751)
> wicket.protocol.http.WebSession.update(WebSession.java:117)
> wicket.RequestCycle.cleanUp(RequestCycle.java:787)
> wicket.RequestCycle.steps(RequestCycle.java:1059)
> wicket.RequestCycle.request(RequestCycle.java:524)
> wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:205)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
>
> I looked in the wicket source code and it is happening only when the
> logger has debug enabled, but I do not have any log4j.properties file.
> I added one with "log4j.rootLogger=INFO,Stdout" and it worked fine.
>
> What am I loosing with this? Will it create problems latter? Do I
> really need the session to be Serializable? How would be a better way
> of making available in a per user mode non serializable resources?
>
> Thanks.
>
> ___
> André Matheus
>
>
> On 2/2/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > Might be that it is not in the SNAPSHOT yet. It is in CVS HEAD and
> > will be in the next SNAPSHOT than.
> >
> > Juergen
> >
> > On 2/2/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > > Well, I took a look at your code. MyPage MUST replace add(), remove(),
> > > > removeAll() and autoAdd() to work properly (in 1.1)
> > >
> > > Yes, you are right. I replaced some, but I forgot the remove and the
> > > autoAdd ones. Probably the problem was the remove, as it was not able
> > > to remove the previous "_header". My mistake.
> > >
> > > > In 1.2 you can simply do border.setTransparentResolver(true).
> > >
> > > As I said before, I downloaded the 1.2 (wicket-1.2-20060131.jar) to
> > > test, but I have not found the setTransparentResolver method in the
> > > Border class. Is it the setTransparent(boolean transparent) method?
> > >
> > > Thank you again.
> > >
> > > ___
> > > André Matheus
> > >
> > > On 2/2/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > > > Well, I took a look at your code. MyPage MUST replace add(), remove(),
> > > > removeAll() and autoAdd() to work properly (in 1.1).Please see the
> > > > library example for a "bordered page". In 1.2 you can simply do
> > > > border.setTransparentResolver(true).
> > > >
> > > > Juergen
> > > >
> > > > On 2/2/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > > > I am already using version 1.1.1.
> > > > >
> > > > > If I make the Index extend WebPage instead of MyPage and I add in
> > > > > Index the PageLayout directly it works even when I reload. But in this
> > > > > way I need to add the layout on every single page and I can not use
> > > > > the page inheritance.
> > > > >
> > > > > Do you have any suggestion?
> > > > >
> > > > > Thanks for your help.
> > > > >
> > > > > __
> > > > > André Matheus
> > > > >
> > > > > On 2/2/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote:
> > > > > > It happens only on reload? That is a bug of an old version. Did you
> > > > > > try the 1.1.1 build? It should be fixed there.
> > > > > >
> > > > > > Juergen
> > > > > >
> > > > > > On 2/2/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > > > > > > There is something wrong with your <wicket:head> tags.
> > > > > > >
> > > > > > > This was my very first idea. To check it I just removed all my
> > > > > > > <wicket:head> and <head> tags from the files and tried again. Same
> > > > > > > result, the first time it loads fine, if I reload it fails with
> > > > > > > the
> > > > > > > same error.
> > > > > > >
> > > > > > > > Without any more details it'll be difficult to help.
> > > > > > >
> > > > > > > I sent this message yesterday, with the files zipped but the
> > > > > > > server
> > > > > > > send me a warning that .zip extension are been blocked. I am
> > > > > > > sending
> > > > > > > it again and attaching the zipped files but I am changing their
> > > > > > > extension to isZip.:
> > > > > > >
> > > > > > > border/PageLayout.java
> > > > > > > border/PageLayout.html
> > > > > > > page/Index.java
> > > > > > > page/Index.html
> > > > > > > page/base/MyPage.java
> > > > > > > page/base/MyPage.html
> > > > > > >
> > > > > > > I hope it helps.
> > > > > > > If you need any other file or info, please tell me.
> > > > > > >
> > > > > > > > Header support is still fairly new and some parts are still
> > > > > > > > under review.
> > > > > > >
> > > > > > > OK.
> > > > > > >
> > > > > > > > Under the hood a lot has changed in 1.2 and I'd suggest you try
> > > > > > > > 1.2
> > > > > > > > for better header support.
> > > > > > >
> > > > > > > I will download it and try.
> > > > > > >
> > > > > > > Thanks a lot.
> > > > > > >
> > > > > > > --
> > > > > > > __
> > > > > > > André Matheus
> > > > > > >
> > > > > > > > There is something wrong with your <wicket:head> tags. There
> > > > > > > > must just
> > > > > > > > be one in each panel/border markup file. They are not allowed in
> > > > > > > > Pages. Without any more details it'll be difficult to help.
> > > > > > > > Header
> > > > > > > > support is still fairly new and some parts are still under
> > > > > > > > review.
> > > > > > > > Under the hood a lot has changed in 1.2 and I'd suggest you try
> > > > > > > > 1.2
> > > > > > > > for better header support.
> > > > > > > >
> > > > > > > > Juergen
> > > > > > >
> > > > > > >
> > > > > > > On 2/1/06, Andre Matheus <[EMAIL PROTECTED]> wrote:
> > > > > > > > I am using wicket 1.1.1, but this error was there also with
> > > > > > > > version 1.1.
> > > > > > > > I did not test with version 1.0.
> > > > > > > >
> > > > > > > > I created just a simple Index page, extending a base page which
> > > > > > > > includes a border component to define a layout. When I access
> > > > > > > > the page
> > > > > > > > everything goes fine, but If I reload the page, the following
> > > > > > > > error
> > > > > > > > occurs:
> > > > > > > >
> > > > > > > > Unexpected RuntimeException
> > > > > > > >
> > > > > > > > java.lang.IllegalArgumentException: A child with id '_header'
> > > > > > > > already exists:
> > > > > > > > [MarkupContainer [Component id = pageLayout, page = page.Index,
> > > > > > > > path =
> > > > > > > > 0:pageLayout.PageLayout, isVisible = true, isVersioned = true]]
> > > > > > > > at wicket.MarkupContainer.add(MarkupContainer.java:135)
> > > > > > > > at page.base.MyPage.add(MyPage.java:35)
> > > > > > > > at wicket.MarkupContainer.autoAdd(MarkupContainer.java:168)
> > > > > > >
> > > > > > > (...8<...)
> > > > > > > - Hide quoted text -
> > > > > > >
> > > > > > > > Component Tree
> > > > > > > >
> > > > > > > > Component tree for [Page class = page.Index, id = 0]:
> > > > > > > > # Path Type Model Object
> > > > > > > > 1 pageLayout border.PageLayout
> > > > > > > > 2 pageLayout:_body
> > > > > > > > wicket.markup.html.BodyOnLoadContainer
> > > > > > > > 3 pageLayout:_child
> > > > > > > > wicket.markup.html.WebMarkupContainer
> > > > > > > > 4 pageLayout:_child:_extend
> > > > > > > > wicket.markup.html.WebMarkupContainer
> > > > > > > > 5 pageLayout:_header
> > > > > > > > wicket.markup.html.HtmlHeaderContainer
> > > > > > > >
> > > > > > > > If needed I can post zipped here the 6 files used (3 java and 3
> > > > > > > > html).
> > > > > > > >
> > > > > > > > Thanks in advance,
> > > > > > >
> > > > > > > --
> > > > > > > __
> > > > > > > André Matheus
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > > > > > log files
> > > > > > for problems? Stop! Download the new AJAX search engine that makes
> > > > > > searching your log files as easy as surfing the web. DOWNLOAD
> > > > > > SPLUNK!
> > > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > [email protected]
> > > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > __
> > > > > André Matheus
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> > > > > log files
> > > > > for problems? Stop! Download the new AJAX search engine that makes
> > > > > searching your log files as easy as surfing the web. DOWNLOAD
> > > > > SPLUNK!
> > > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > > > _______________________________________________
> > > > > Wicket-user mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > > files
> > > > for problems? Stop! Download the new AJAX search engine that makes
> > > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > > --
> > > __
> > > André Matheus
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files
> > > for problems? Stop! Download the new AJAX search engine that makes
> > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > > _______________________________________________
> > > Wicket-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> --
> __
> André Matheus
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user