Re: [Wicket-user] Updating items of a Set...
So, the need is basically to browse a set to be able to increase/decrease the value of each element. So, for each element, it should look like this: ElementName ElementValue + - + and – are links that the user can click on. Then I would like a submit button under this to be able to submit the whole stuff. As I'm Ajax curious, I would like the action on the + or – to be done through Ajax. Currently, I'm using a RefreshingView with, for each element of the Set, some Labels (elementName, elementValue) and an action panel with two AjaxLink, one for plus and one for minus. Sounds good. Up to now, I manage to retrieve on which AjaxLink the user has clicked, but I don't manage to refresh the RefreshingView afterwards. I've two issues : how to tell the View to refresh and how to deal with the model, since I want to update it but not to save it to the database…NB : I give to the Panel containing the RefreshingView the model object containing the set. Do you have any comment/question/clue ? Yep, it's one of the common questions here. Please read http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html Eelco - 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
Re: [Wicket-user] What's the easiest way to do a pageable/sortable list screen?
For more information on the redirect strategies available in Wicket (that we don't have any documentation is a lie ;-)) see: http://cwiki.apache.org/WICKET/render-strategies.html Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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
Re: [Wicket-user] Is there a success message example?
igor.vaynberg wrote: On 4/24/07, mraible [EMAIL PROTECTED] wrote: You typically don't need to call setRedirect yourself though. Was there any reason for doing that? Also, flash message works good here, but if you already know the page you are going to display it on, you might as well set it on there. I'm using setRedirect(true) in order to do redirect-after-post so clicking refresh on the browser doesn't prompt the user. what eelco meant to say is that wicket does redirect-after-post for you by default, thus no need for you to bother with it. Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. Matt -- View this message in context: http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10175013 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
Re: [Wicket-user] Is there a success message example?
its been doing that since before 1.0 afaik. in fact i dont even remember what that dialog looks like anymore :) did you mess with render strategies at all? i think if you change the strat to one-pass-render it might not do it for you. -igor On 4/24/07, mraible [EMAIL PROTECTED] wrote: igor.vaynberg wrote: On 4/24/07, mraible [EMAIL PROTECTED] wrote: You typically don't need to call setRedirect yourself though. Was there any reason for doing that? Also, flash message works good here, but if you already know the page you are going to display it on, you might as well set it on there. I'm using setRedirect(true) in order to do redirect-after-post so clicking refresh on the browser doesn't prompt the user. what eelco meant to say is that wicket does redirect-after-post for you by default, thus no need for you to bother with it. Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. Matt -- View this message in context: http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10175013 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 - 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
Re: [Wicket-user] Is there a success message example?
Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. That's surprising. What does your application object look like? The default IRequestCycleSettings.RenderStrategy setting for Wicket (since quite a long time) is to use IRequestCycleSettings#REDIRECT_TO_BUFFER. Did you change that to ONE_PASS_RENDER by any chance? Eelco - 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
Re: [Wicket-user] Is there a success message example?
On 4/25/07, mraible [EMAIL PROTECTED] wrote: Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. If you haven't changed the default render strategy it should work. I just fired up my released wicket-examples (1.2.6) and the form input example works without post back upon back button presses. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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
Re: [Wicket-user] Is there a success message example?
rofl, ok thats only three of the same response so far, lets see if we can rack up some more. i wish gmail could tell you that someone is responding to the same message you are. it does IM, why not this??? -igor On 4/24/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/25/07, mraible [EMAIL PROTECTED] wrote: Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. If you haven't changed the default render strategy it should work. I just fired up my released wicket-examples (1.2.6) and the form input example works without post back upon back button presses. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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 - 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-user] Integrate Wicket into existing Spring MVC application
Hi, I have an existing web application based on Spring and Spring MVC. I've seen a lot of articles describing how to integrate Spring and Wicket, but haven't find one about integrating Wicket pages into Spring MVC controller dispatch scheme. What I'm trying to achieve is to dispatch certain URLs to Wicket pages by means of Spring's DispatcherServlet. The application already has a large set of URL-to-controller mappings. The idea is that once a web page is implemented/migrated to Wicket, only URL mapping has to be changed to dispatch to Wicket servlet. web.xml: servlet servlet-nameDispatcherServlet/servlet-name servlet-class org.springframework.web.servlet.DispatcherServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameDispatcherServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping Spring config: bean id=urlMapping class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping property name=mappings props prop key=/some/pagewicketController/prop /props /propery /bean bean id=wicketController class=org.springframework.web.servlet.mvc.ServletWrappingController property name=servletClass value=wicket.protocol.http.WicketServlet/ property name=initParameters props prop key=applicationClassName myapplication.WicketApplication/prop /props /property /bean Actually the URL /some/page is dispatched correctly, but Wicket engine responds with error 404. How could I accomplish my goal, or am I heading the wrong direction at all? Thanks, Uladzimir. - 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
Re: [Wicket-user] Is there a success message example?
Eelco Hillenius wrote: Does it do this with 1.2.6? When I don't have it, and I hit refresh after submitting a form, I get the good ol' postdata message from Firefox. If I add setRedirect(true), there is no message. That's surprising. What does your application object look like? The default IRequestCycleSettings.RenderStrategy setting for Wicket (since quite a long time) is to use IRequestCycleSettings#REDIRECT_TO_BUFFER. Did you change that to ONE_PASS_RENDER by any chance? Yes, I did. // Fixed SiteMesh: http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); It's likely be pretty easy to port when I have with SiteMesh to use the page extension stuff that Wicket has, but I'm lazy. ;-) Matt -- View this message in context: http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10175198 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
Re: [Wicket-user] Integrate Wicket into existing Spring MVC application
i dont know that much about springmvc, but if you mount your pages you should be able to redirect to those urls without problems. but for that to work you need to have your servlet properly mapped to /app/* or another path. so if you mount a page to /some/page the actual url is /app/some/page. in 1.3 you can use a filter and map it to /* so you can get rid of the /app prefix. -igor On 4/24/07, Uladzimir Liashkevich [EMAIL PROTECTED] wrote: Hi, I have an existing web application based on Spring and Spring MVC. I've seen a lot of articles describing how to integrate Spring and Wicket, but haven't find one about integrating Wicket pages into Spring MVC controller dispatch scheme. What I'm trying to achieve is to dispatch certain URLs to Wicket pages by means of Spring's DispatcherServlet. The application already has a large set of URL-to-controller mappings. The idea is that once a web page is implemented/migrated to Wicket, only URL mapping has to be changed to dispatch to Wicket servlet. web.xml: servlet servlet-nameDispatcherServlet/servlet-name servlet-class org.springframework.web.servlet.DispatcherServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameDispatcherServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping Spring config: bean id=urlMapping class=org.springframework.web.servlet.handler.SimpleUrlHandlerMapping property name=mappings props prop key=/some/pagewicketController/prop /props /propery /bean bean id=wicketController class=org.springframework.web.servlet.mvc.ServletWrappingController property name=servletClass value=wicket.protocol.http.WicketServlet/ property name=initParameters props prop key=applicationClassName myapplication.WicketApplication/prop /props /property /bean Actually the URL /some/page is dispatched correctly, but Wicket engine responds with error 404. How could I accomplish my goal, or am I heading the wrong direction at all? Thanks, Uladzimir. - 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 - 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-user] Proxy Error: Wicket Library Examples
I am trying to access the wicket library examples but there is a proxy error. James - 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
Re: [Wicket-user] onGoingBack2Page(+innerForm) = innerForm.fields = empty!?
Actually the flow page1ToPage2 it's done by form submission, i.e., all form is correctly processed. The matter was when going back from Page2...N to Page1. It was happening that the inerForm page1.Form1 was not keeping state (fields were null). After reviewing the code, I noticed that I was keeping a reference of Page1 in Page2...N, but Page1 is not a direct WebPage, but a custom extension of it. Then, what I did was just keeping the reference in Page2...N as a pure WebPage (implicit upcast), and then worked fine. So, it seems that the framework didn't like me to use the custom extension to keep the reference of Page1; just the WebPage. Danke ;) On 4/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you cannot navigate from page1-page2 via a link because that will not submit the form, and so you will lose all your values. try submitlink and make sure there are no form errors - ie all models have been updated with proper values - and then navigate to page2. -igor On 4/24/07, manu [EMAIL PROTECTED] wrote: Dear Sirs, The scenario is the following: - Page1 Form1 (innerClass) input1(String)... inputN(String) - Page2 Link/Button (whatever for going back to Page1 - has a reference object of Page1) ... - PageN Link/Button (idem) It happens that, when flowing-back from Page2, or... PageN, to Page1, then Page1 displays but with all innerClass-Form1 fields empty! The state of other things in Page1 keep there, but all the state of fields in Form1 has desappeared. What's wrong here, any idea? Regards. - 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 - 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 - 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
Re: [Wicket-user] General question on DetachableModel, edit form for based on set and components
Le mardi 24 avril 2007 à 08:08 -0700, Igor Vaynberg a écrit : On 4/24/07, Francois Armand [EMAIL PROTECTED] wrote: i only have time to help you with one, so here goes [resolve my pb in just a few lignes of code] -igor Wow. thanks you very much for you answer, now I'm _really_ impressed by Wicket. The way it handle this problem, and more generally how wicket handle nested and recursive structure is quite elegant. And I think I begin to understand how the framework works, the possibilities are, hum, exciting. I think I will push a little bit further my investigation on this fabulous framework :) Thanks you very much ! Francois - 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
Re: [Wicket-user] State management and new page instances
those examples (like those auto links) are bookmarkable pages. And a bookmarkable url wil always make a new page (there are talk about stable pages, 1 instance for a session but that is today just an idea) When you do a submit (like form input) then you target the same page. or click on links or buttons on: http://wicketstuff.org/wicket13/linkomatic/for example the Action link clicked 0 timeshttp://wicketstuff.org/wicket13/linkomatic/?wicket:interface=:1:actionLink::ILinkListener: And yes if you create a bookmarkable link new PageLink(xx, Page1.class) or BookmarkablePageLink(xxx, Page1.class) then a new instance is being created. As i said above we don't have those stable pages where only one instance per session can be there.. We internally don't pool. setResponsePage(new Page()) or setResponsePage(previousPage) that will result in the reuse of those pages. and yes that you need to do your self. Wicket is un managed it doesn't do it for you. johan On 4/25/07, Daniel Stoch [EMAIL PROTECTED] wrote: Hi, I don't fully understand a concept of state management in Wicket: One of the primary objectives was to make state management a Java thing that is abstracted away from implementation details like HttpSession. In Wicket, state is stored in components that are nested in Pages which are all contained in a map in the user's session. All of this is very well defined and occurs behind the scenes. But in almost all examples available on Wicket pages, every time I choose a link from one page (Page1) to another one (Page2), a new instance of that Page2 is created. Examples: 1. I can do it by placing a link inside a wicket:link tags on Page1: wicket:link a href=Page2.htmlGoto second page/a /wicket:link 2. I can create a link in the Page1 code: add(new PageLink(linkToPage1, Page1.class)); etc... But what about a state of that page? I want to have exactly the same state of Page2, each time when I choose a link to it from other pages. State is stored inside a page, so should I store a reference to the first instance of my Page2 somewhere (eg. inside a session object) and change all of links to Page2 to something like this: add(new PageLink(linkToPage1, mySession.getPage2Instance())); Or should I store a page state inside a session manually (in some object or model instance) and pass this state to the new instance of Page2 in constructor like this: add(new PageLink(linkToPage1, new Page1(mySession.getMySavedModelForPage2(; But then it does not occur behind the scenes. -- Daniel - 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 - 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
Re: [Wicket-user] Problem with TinyMCE on a panel
this question is mostly for Igor and his rtebehavior and tinymceenabler examples. does tinymceenabler really works for you? if it does please tell me what wicket/tinymce versions are you using. in your case i also saw that tinymce scripts are loaded from a static context, /html/static/js/... something. they are not packed within the web application. becasue of the way tinymce library initialize itself, it relies on src attribute of script tag that imports 'tiny_mce_src.js' file. but if you add a javascript url in ajax response then the script is prefetched and it is embedded into the page, in the same time the 'src' attribute is renamed to 'src_' and also the other attributes are removed/cleaned up. i didnt follow wicket development for a while and i might miss something but i dont see how tinymce can initialize in this case if there is no src attribute to rely on. something magic in between. :) /iulian On 4/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ok you are all set -igor On 4/18/07, Iulian Costan [EMAIL PROTECTED] wrote: done, username: syca /iulian On 4/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: lulian could you please sign up for wicketstuff.org/jira so i can set you as the lead for wicket contrib tinymce thanks -igor On 4/11/07, Iulian Costan [EMAIL PROTECTED] wrote: hi, there is an already known issue related to this; tinymce's JS/CSS imports are lost if there is any AJAX request involved. it is on my TODO list but unfortunately i couldnt put my hands on it. i'll try to do it this weekend. /iulian On 4/11/07, Brian Topping [EMAIL PROTECTED] wrote: Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 - 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 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take
Re: [Wicket-user] Proxy Error: Wicket Library Examples
http://wicketstuff.org/wicket13/ On 4/25/07, James Perry [EMAIL PROTECTED] wrote: I am trying to access the wicket library examples but there is a proxy error. James - 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 - 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
Re: [Wicket-user] Problem with TinyMCE on a panel
the behavior works, i like it a lot better then a panel. to me: TextField tf=new TextField(..); tf.add(new TinyMceEnabler().setAllowLinking(false)); seems a lot more natural then adding a panel, etc. and yes, in my project we store tinymce in a static dir so all of its scripts/modules are served by apache instead of wicket. that said, i havent ever tried to use it in an ajax response, so i wouldnt know if it works or not. is that what is used here? maybe if it does choke because of that we can create a loader script for it or something like that. -igor On 4/25/07, Iulian Costan [EMAIL PROTECTED] wrote: this question is mostly for Igor and his rtebehavior and tinymceenabler examples. does tinymceenabler really works for you? if it does please tell me what wicket/tinymce versions are you using. in your case i also saw that tinymce scripts are loaded from a static context, /html/static/js/... something. they are not packed within the web application. becasue of the way tinymce library initialize itself, it relies on src attribute of script tag that imports 'tiny_mce_src.js' file. but if you add a javascript url in ajax response then the script is prefetched and it is embedded into the page, in the same time the 'src' attribute is renamed to 'src_' and also the other attributes are removed/cleaned up. i didnt follow wicket development for a while and i might miss something but i dont see how tinymce can initialize in this case if there is no src attribute to rely on. something magic in between. :) /iulian On 4/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ok you are all set -igor On 4/18/07, Iulian Costan [EMAIL PROTECTED] wrote: done, username: syca /iulian On 4/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: lulian could you please sign up for wicketstuff.org/jira so i can set you as the lead for wicket contrib tinymce thanks -igor On 4/11/07, Iulian Costan [EMAIL PROTECTED] wrote: hi, there is an already known issue related to this; tinymce's JS/CSS imports are lost if there is any AJAX request involved. it is on my TODO list but unfortunately i couldnt put my hands on it. i'll try to do it this weekend. /iulian On 4/11/07, Brian Topping [EMAIL PROTECTED] wrote: Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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
Re: [Wicket-user] Is there a success message example?
rofl, ok thats only three of the same response so far, lets see if we can rack up some more. i wish gmail could tell you that someone is responding to the same message you are. it does IM, why not this??? Gmail actually had the feature that showed you updates in the thread while you are writing (updates must be submitted). But it seems they rolled back that feature. Eelco - 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
Re: [Wicket-user] Is there a success message example?
// Fixed SiteMesh: http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); It's likely be pretty easy to port when I have with SiteMesh to use the page extension stuff that Wicket has, but I'm lazy. ;-) I see how SiteMesh can work with Wicket, and I even can imagine a couple of useful use cases, but in general I believe people are ruining their programming model by using it with Wicket. My 2c, Eelco - 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-user] Access Feedbackmessages on RedirectPage
Hi, can I, in a forms onSubmit method redirect to a new page (setRedirect(new Page())) and access the error/info feedback messages on the new Page? If so, how? Cheers -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10184451 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
Re: [Wicket-user] Access Feedbackmessages on RedirectPage
Page page = new Page(); page.info(Hello, World!); setResponsePage(page); On 4/25/07, behlma [EMAIL PROTECTED] wrote: Hi, can I, in a forms onSubmit method redirect to a new page (setRedirect(new Page())) and access the error/info feedback messages on the new Page? If so, how? Cheers -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10184451 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 -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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
Re: [Wicket-user] Access Feedbackmessages on RedirectPage
On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Page page = new Page(); page.info(Hello, World!); setResponsePage(page); That, or alternatively, you can use 'flash' messages by doing Session.get().info(Hello, World!) in which case they will be rendered the first time a feedbackpanel (or another component doing the same thing) is encountered. Eelco - 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-user] Is it possible to prevent page expired?
I'm using Eclipse, Maven 2 and the Maven Jetty Plugin (with mvn jetty:run) to develop my Wicket application. Everytime I save a .java or .html file, Jetty reloads and all is good. However, when I hit refresh on my browser, Wicket allways gives me a page expired error and I have to start from http://localhost/app again. Is there anyway to prevent this? Does DEVELOPMENT mode (in Application.init()) create a new page instead of expiring it? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-prevent-page-expired--tf3646633.html#a10184774 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
Re: [Wicket-user] Is there a success message example?
Eelco Hillenius wrote: // Fixed SiteMesh: http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); It's likely be pretty easy to port when I have with SiteMesh to use the page extension stuff that Wicket has, but I'm lazy. ;-) I see how SiteMesh can work with Wicket, and I even can imagine a couple of useful use cases, but in general I believe people are ruining their programming model by using it with Wicket. My 2c, Eelco I agree that using Wicket's decoration mechanism is probably a better way to go. One small question though - how do I put the contextPath into URLs in my BasePage.html? In my SiteMesh decorator, I have: c:set var=ctx value=${pageContext.request.contextPath}/ link rel=shortcut icon href=${ctx}/images/favicon.ico type=image/x-icon/ link rel=stylesheet type=text/css href=${ctx}/styles/deliciouslyblue/theme.css title=default / link rel=alternate stylesheet type=text/css href=${ctx}/styles/deliciouslygreen/theme.css title=green / script type=text/javascript src=${ctx}/scripts/prototype.js/script script type=text/javascript src=${ctx}/scripts/scriptaculous.js/script script type=text/javascript src=${ctx}/scripts/stylesheetswitcher.js/script script type=text/javascript src=${ctx}/scripts/global.js/script Thanks, Matt -- View this message in context: http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10184929 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
Re: [Wicket-user] Is it possible to prevent page expired?
This is strange. It seems that your session is being invalidated when you save .java or .html file. This is not normal. I don't know what kind of magic maven jetty plugin does, i usually run my web apps with embedded jetty as regular Java application, though I'm not sure that this is what causes your problem. -Matej On 4/25/07, mraible [EMAIL PROTECTED] wrote: I'm using Eclipse, Maven 2 and the Maven Jetty Plugin (with mvn jetty:run) to develop my Wicket application. Everytime I save a .java or .html file, Jetty reloads and all is good. However, when I hit refresh on my browser, Wicket allways gives me a page expired error and I have to start from http://localhost/app again. Is there anyway to prevent this? Does DEVELOPMENT mode (in Application.init()) create a new page instead of expiring it? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-prevent-page-expired--tf3646633.html#a10184774 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 - 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
Re: [Wicket-user] Is it possible to prevent page expired?
Using Wicket 1.3 is the surest way to get rid of it. In your case, I wouldn't be surprised if the problem can be traced back to the fact that you use SiteMesh with Wicket. As I understand it, SiteMesh combines separate requests like working with frames would do, correct? So for every Wicket piece you include, and instance is kept, and if you have too many pieces you may run out of what Wicket reserves by default for back button support. To fix this, place every SiteMesh fragment in a separate page map[1]. If it is not SiteMesh (e.g. you just include one fragment), you should try to figure out why it can't find the page. Typically, in any Wicket application, refreshing like that should work should fine. Eelco [1] http://cwiki.apache.org/WICKET/faqs.html#FAQs-HowdoIprovidethepagemapforbookmarkablepages%253F On 4/25/07, mraible [EMAIL PROTECTED] wrote: I'm using Eclipse, Maven 2 and the Maven Jetty Plugin (with mvn jetty:run) to develop my Wicket application. Everytime I save a .java or .html file, Jetty reloads and all is good. However, when I hit refresh on my browser, Wicket allways gives me a page expired error and I have to start from http://localhost/app again. Is there anyway to prevent this? Does DEVELOPMENT mode (in Application.init()) create a new page instead of expiring it? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-prevent-page-expired--tf3646633.html#a10184774 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 - 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
Re: [Wicket-user] Access Feedbackmessages on RedirectPage
Thanks as always :) Eelco Hillenius wrote: On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Page page = new Page(); page.info(Hello, World!); setResponsePage(page); That, or alternatively, you can use 'flash' messages by doing Session.get().info(Hello, World!) in which case they will be rendered the first time a feedbackpanel (or another component doing the same thing) is encountered. Eelco - 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 -- View this message in context: http://www.nabble.com/Access-Feedbackmessages-on-RedirectPage-tf3646550.html#a10185074 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
Re: [Wicket-user] Is there a success message example?
I agree that using Wicket's decoration mechanism is probably a better way to go. One small question though - how do I put the contextPath into URLs in my BasePage.html? In my SiteMesh decorator, I have: c:set var=ctx value=${pageContext.request.contextPath}/ link rel=shortcut icon href=${ctx}/images/favicon.ico type=image/x-icon/ link rel=stylesheet type=text/css href=${ctx}/styles/deliciouslyblue/theme.css title=default / link rel=alternate stylesheet type=text/css href=${ctx}/styles/deliciouslygreen/theme.css title=green / script type=text/javascript src=${ctx}/scripts/prototype.js/script script type=text/javascript src=${ctx}/scripts/scriptaculous.js/script script type=text/javascript src=${ctx}/scripts/stylesheetswitcher.js/script script type=text/javascript src=${ctx}/scripts/global.js/script It should be done automatically for you. Just do: link rel=shortcut icon href=images/favicon.ico type=image/x-icon/ link rel=stylesheet type=text/css href=styles/deliciouslyblue/theme.css title=default / link rel=alternate stylesheet type=text/css href=styles/deliciouslygreen/theme.css title=green / script type=text/javascript src=scripts/prototype.js/script script type=text/javascript src=scripts/scriptaculous.js/script script type=text/javascript src=scripts/stylesheetswitcher.js/script script type=text/javascript src=scripts/global.js/script and all should work fine. See PrependContextPathHandler for more info. Eelco - 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-user] Custom CSS for Tree and TreeTable
Hi, is it possible to use my own CSS style definitions for Tree and TreeTable? Both components add their own CSS file via header contribution. I would like to override some style definitions. How would I do this? Thanks, Stefan - 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
Re: [Wicket-user] Is it possible to prevent page expired?
I'll try disabling SiteMesh and see if it still happens. Matt Eelco Hillenius wrote: Using Wicket 1.3 is the surest way to get rid of it. In your case, I wouldn't be surprised if the problem can be traced back to the fact that you use SiteMesh with Wicket. As I understand it, SiteMesh combines separate requests like working with frames would do, correct? So for every Wicket piece you include, and instance is kept, and if you have too many pieces you may run out of what Wicket reserves by default for back button support. To fix this, place every SiteMesh fragment in a separate page map[1]. If it is not SiteMesh (e.g. you just include one fragment), you should try to figure out why it can't find the page. Typically, in any Wicket application, refreshing like that should work should fine. Eelco [1] http://cwiki.apache.org/WICKET/faqs.html#FAQs-HowdoIprovidethepagemapforbookmarkablepages%253F On 4/25/07, mraible [EMAIL PROTECTED] wrote: I'm using Eclipse, Maven 2 and the Maven Jetty Plugin (with mvn jetty:run) to develop my Wicket application. Everytime I save a .java or .html file, Jetty reloads and all is good. However, when I hit refresh on my browser, Wicket allways gives me a page expired error and I have to start from http://localhost/app again. Is there anyway to prevent this? Does DEVELOPMENT mode (in Application.init()) create a new page instead of expiring it? Thanks, Matt -- View this message in context: http://www.nabble.com/Is-it-possible-to-prevent-page-expired--tf3646633.html#a10184774 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 - 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 -- View this message in context: http://www.nabble.com/Is-it-possible-to-prevent-page-expired--tf3646633.html#a10185174 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
Re: [Wicket-user] Problem with TinyMCE on a panel
I don't believe the behavior works *in* a panel though. I put a link to a complete M2 project with the behavior in the email that started this thread, and it uses this behavior with no result. Brian On Apr 25, 2007, at 8:36 AM, Igor Vaynberg wrote: the behavior works, i like it a lot better then a panel. to me: TextField tf=new TextField(..); tf.add(new TinyMceEnabler().setAllowLinking(false)); seems a lot more natural then adding a panel, etc. and yes, in my project we store tinymce in a static dir so all of its scripts/ modules are served by apache instead of wicket. that said, i havent ever tried to use it in an ajax response, so i wouldnt know if it works or not. is that what is used here? maybe if it does choke because of that we can create a loader script for it or something like that. -igor On 4/25/07, Iulian Costan [EMAIL PROTECTED] wrote: this question is mostly for Igor and his rtebehavior and tinymceenabler examples. does tinymceenabler really works for you? if it does please tell me what wicket/tinymce versions are you using. in your case i also saw that tinymce scripts are loaded from a static context, /html/static/ js/... something. they are not packed within the web application. becasue of the way tinymce library initialize itself, it relies on src attribute of script tag that imports 'tiny_mce_src.js' file. but if you add a javascript url in ajax response then the script is prefetched and it is embedded into the page, in the same time the 'src' attribute is renamed to 'src_' and also the other attributes are removed/cleaned up. i didnt follow wicket development for a while and i might miss something but i dont see how tinymce can initialize in this case if there is no src attribute to rely on. something magic in between. :) /iulian On 4/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ok you are all set -igor On 4/18/07, Iulian Costan [EMAIL PROTECTED] wrote: done, username: syca /iulian On 4/17/07, Igor Vaynberg [EMAIL PROTECTED] wrote: lulian could you please sign up for wicketstuff.org/jira so i can set you as the lead for wicket contrib tinymce thanks -igor On 4/11/07, Iulian Costan [EMAIL PROTECTED] wrote: hi, there is an already known issue related to this; tinymce's JS/CSS imports are lost if there is any AJAX request involved. it is on my TODO list but unfortunately i couldnt put my hands on it. i'll try to do it this weekend. /iulian On 4/11/07, Brian Topping [EMAIL PROTECTED] wrote: Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php? page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php? page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- 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-user] Authentication and page expired
Hi, I'm trying to implement authentication using wicket and I get some trouble... My problem is that when I try to access a page requiring authentication, I get redirected to a login page. Fine. But then, once authenticated, I get a Page expired message, and I don't find how to get rid of it instead of going to the page requiring authentication. Here is some detail on what I've done: - I use the not yet released wicket 1.3.0-incubating-beta1 [1] - I use wicket-auth-roles, with an AuthenticatedWebApplication, AuthenticatedWebSession, and RoleAuthorizationStrategy - my link to the role protected page is created like this: new PageLink(project, new IPageLink() { public Class getPageIdentity() { return ProjectPage.class; } public Page getPage() { return new ProjectPage(project); } } - my page is protected with an annotation: @AuthorizeInstantiation(Roles.USER) public class ProjectCreationPage extends WebPage { - my signin page is a very simple page using a panel including the SignInPanel from wicket-auth-roles Any idea? Xavier [1] http://people.apache.org/~dashorst/releases/apache-wicket-1.3.0-incubating-beta1/m2-repo/ -- Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - 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
Re: [Wicket-user] Authentication and page expired
what do you mean by once authenticated what does your loginpage code look like, eg how do you navigate back? -igor On 4/25/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hi, I'm trying to implement authentication using wicket and I get some trouble... My problem is that when I try to access a page requiring authentication, I get redirected to a login page. Fine. But then, once authenticated, I get a Page expired message, and I don't find how to get rid of it instead of going to the page requiring authentication. Here is some detail on what I've done: - I use the not yet released wicket 1.3.0-incubating-beta1 [1] - I use wicket-auth-roles, with an AuthenticatedWebApplication, AuthenticatedWebSession, and RoleAuthorizationStrategy - my link to the role protected page is created like this: new PageLink(project, new IPageLink() { public Class getPageIdentity() { return ProjectPage.class; } public Page getPage() { return new ProjectPage(project); } } - my page is protected with an annotation: @AuthorizeInstantiation(Roles.USER) public class ProjectCreationPage extends WebPage { - my signin page is a very simple page using a panel including the SignInPanel from wicket-auth-roles Any idea? Xavier [1] http://people.apache.org/~dashorst/releases/apache-wicket-1.3.0-incubating-beta1/m2-repo/ -- Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - 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 - 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-user] SLF4J and wicket
Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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
Re: [Wicket-user] SLF4J and wicket
It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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
Re: [Wicket-user] SLF4J and wicket
Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init(ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900(FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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 - 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
Re: [Wicket-user] SLF4J and wicket
btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init(ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900(FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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 - 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
Re: [Wicket-user] SLF4J and wicket
Could you try to suggestion in the error message to put: Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) in your Application's init method and see if all works ok then? Meanwhile, I hope Johan notes this error and takes a look. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init(ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900(FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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 - 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 - 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
Re: [Wicket-user] Authentication and page expired
On 4/25/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what do you mean by once authenticated what does your loginpage code look like, eg how do you navigate back? My login page is really very simple, it doesn't do much except include a SigninPanel. So as far as I understand from the SigninPanel code, the navigation back is handled by Component#continueToOriginalDestination(). But maybe I'd need to implement something special in my LoginPage, and not rely on the SigninPanel only? Xavier -igor On 4/25/07, Xavier Hanin [EMAIL PROTECTED] wrote: Hi, I'm trying to implement authentication using wicket and I get some trouble... My problem is that when I try to access a page requiring authentication, I get redirected to a login page. Fine. But then, once authenticated, I get a Page expired message, and I don't find how to get rid of it instead of going to the page requiring authentication. Here is some detail on what I've done: - I use the not yet released wicket 1.3.0-incubating-beta1 [1] - I use wicket-auth-roles, with an AuthenticatedWebApplication, AuthenticatedWebSession, and RoleAuthorizationStrategy - my link to the role protected page is created like this: new PageLink(project, new IPageLink() { public Class getPageIdentity() { return ProjectPage.class; } public Page getPage() { return new ProjectPage(project); } } - my page is protected with an annotation: @AuthorizeInstantiation(Roles.USER) public class ProjectCreationPage extends WebPage { - my signin page is a very simple page using a panel including the SignInPanel from wicket-auth-roles Any idea? Xavier [1] http://people.apache.org/~dashorst/releases/apache-wicket-1.3.0-incubating-beta1/m2-repo/ -- Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - 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 - 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 -- Learn Ivy at ApacheCon: http://www.eu.apachecon.com/ Manage your dependencies with Ivy! http://incubator.apache.org/ivy/ - 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
Re: [Wicket-user] SLF4J and wicket
Why would you want to serializable a log?! -Matej On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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
Re: [Wicket-user] SLF4J and wicket
On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to not make the loggers static, but just members or local vars? If you make them non-static members, they'll get serialized. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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
Re: [Wicket-user] SLF4J and wicket
Yeah, I would prefer to either have log fields as static in components or get them just in time rather than keeping references to them. Keeping references in instances kind of combines the worst of both. Eelco On 4/25/07, Peter Ertl [EMAIL PROTECTED] wrote: looks like the logging guru is wrong when it comes to wicket... Am 25.04.2007 um 22:15 schrieb Martijn Dashorst: On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to not make the loggers static, but just members or local vars? If you make them non-static members, they'll get serialized. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org -- --- 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 - 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 - 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-user] Form.loadPersistentFormComponentValues is called too late?
I have a login form which persists username and password using FormComponent.setPersistent(boolean) On page load I want to set the focus on - username, if username is empty - password, if username is not empty The form values are initialized from the cookie values in Page.renderPage() -- call setFormComponentsFromCookies() -- Form.loadPersistentFormComponentValues() so, basically, the form values will not be there before rendering starts unfortunately, render time is too late to generate some javascript for form focus : document.getElementById('..').focus() in the head of the page I tried to call Form.loadPersistentFormComponentValues in @Override LoginForm::onAttach { super.onAttach this.loadFormComponentsFromCookies } and it worked... I could generate the javascript before rendering start So I am wondering... Shouldn't the form values being filled out at attach time already and not at render time by wicket? Regards Peter - 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-user] from 1.2.5 to 1.2.6
I have replaced wicket jar files in my project from 1.2.5 to 1.2.6. CSS does not work properly now. I have the css directory in the root directory of the Eclipse. The following line in my html files produced the correct CSS before: link rel=stylesheet type=text/css media=screen href=css/box.css / Now, I get the message: the resource requested by request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8081/dmLite-2.0/app/css/box.css, contentType = null, contentLength = -1, contextPath = /dmLite-2.0, pathInfo = /css/box.css, requestURI = /dmLite-2.0/app/css/box.css, servletPath = /app, pathTranslated = D:\software\tomcat6\webapps\dmLite-2.0\css\box.css] was not found But my box.css file is in the css directory of the dmLite-2.0 directory that is located in the webapps directory of tomcat6. -- View this message in context: http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10189203 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
Re: [Wicket-user] SLF4J and wicket
Thats what i have heard too. At least JCL isnt thread-safe. Dont really know about slf4j On 4/25/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/25/07, Matej Knopp [EMAIL PROTECTED] wrote: Why would you want to serializable a log?! Isn't the recommendation of one of the logging guru's to not make the loggers static, but just members or local vars? If you make them non-static members, they'll get serialized. Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - 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 - 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
Re: [Wicket-user] Custom CSS for Tree and TreeTable
You can override the css with more specific rules. Wicket tree already uses an html element specifier, so your best bet would be to put the tree in another div with a class, say mytree. Then in the wicket:head section of your panels markup, provide a style element with rules such as: .mytree div.wicket-tree { border-top: 3px solid #000; } best, jim On 4/25/07, Stefan Wille [EMAIL PROTECTED] wrote: Hi, is it possible to use my own CSS style definitions for Tree and TreeTable? Both components add their own CSS file via header contribution. I would like to override some style definitions. How would I do this? Thanks, Stefan - 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 - 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
Re: [Wicket-user] SLF4J and wicket
Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin Bjön Limell [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init(ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup(ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField(ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields(ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride(WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage(FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900(FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run(FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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 - 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 - 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
Re: [Wicket-user] SLF4J and wicket
Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory (new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init( ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup( ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride( WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField (ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields( ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride( WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage( FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run( FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar : org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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 - 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 - This SF.net
Re: [Wicket-user] SLF4J and wicket
What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't hold a reference, which is probably quite inefficient), or store it as a transient field, and initiatlize it lazily (check on null) so that it won't be serialized. More work but safe. If you choose the latter, be sure to always do the null check, as serializaing/ deserializing will null the reference. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory (new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init( ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup( ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride( WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField (ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields( ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride( WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage (FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run( FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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 - 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
Re: [Wicket-user] SLF4J and wicket
here's the trace: ERROR org.apache.wicket.util.lang.Objects Error serializing object class testpage.PollPage [object=[Page class = testpage.PollPage, id = 1, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable to serialize class: org.apache.commons.logging.impl.SLF4JLocationAwareLog Field hierarchy is: 1 [class=testpage.PollPage, path=1] private final org.apache.commons.logging.Log testpage.BasePage.log[class= org.apache.commons.logging.impl.SLF4JLocationAwareLog] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:347) at org.apache.wicket.util.io.SerializableChecker.checkFields( SerializableChecker.java:615) at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:538) at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride (SerializableChecker.java:683) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :322) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride( IObjectStreamFactory.java:74) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage( FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run( FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) Caused by: java.io.NotSerializableException: org.apache.commons.logging.impl.SLF4JLocationAwareLog at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1156) at java.io.ObjectOutputStream.defaultWriteFields( ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData( ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject( ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :326) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride( IObjectStreamFactory.java:66) ... 6 common frames omitted Using jdk1.6.0_01 On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't hold a reference, which is probably quite inefficient), or store it as a transient field, and initiatlize it lazily (check on null) so that it won't be serialized. More work but safe. If you choose the latter, be sure to always do the null check, as serializaing/ deserializing will null the reference. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog ()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init( ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup( ClassStreamHandler.java:116)
Re: [Wicket-user] SLF4J and wicket
Yep, that's pretty clear. SLF4JLocationAwareLog[1] doesn't implement serializable. So, to fix, see my previous comment. Eelco [1] http://www.slf4j.org/api/org/apache/commons/logging/impl/SLF4JLocationAwareLog.html On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: here's the trace: ERROR org.apache.wicket.util.lang.Objects Error serializing object class testpage.PollPage [object=[Page class = testpage.PollPage, id = 1, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable to serialize class: org.apache.commons.logging.impl.SLF4JLocationAwareLog Field hierarchy is: 1 [class=testpage.PollPage, path=1] private final org.apache.commons.logging.Log testpage.BasePage.log[class= org.apache.commons.logging.impl.SLF4JLocationAwareLog] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:347) at org.apache.wicket.util.io.SerializableChecker.checkFields ( SerializableChecker.java:615) at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:538) at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride( SerializableChecker.java :683) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :322) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride( IObjectStreamFactory.java:74) at java.io.ObjectOutputStream.writeObject (ObjectOutputStream.java :322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage( FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run( FilePageStore.java:237) at java.lang.Thread.run (Thread.java:619) Caused by: java.io.NotSerializableException: org.apache.commons.logging.impl.SLF4JLocationAwareLog at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1156) at java.io.ObjectOutputStream.defaultWriteFields ( ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData( ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject( ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java :1150) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java :326) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride ( IObjectStreamFactory.java:66) ... 6 common frames omitted Using jdk1.6.0_01 On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't hold a reference, which is probably quite inefficient), or store it as a transient field, and initiatlize it lazily (check on null) so that it won't be serialized. More work but safe. If you choose the latter, be sure to always do the null check, as serializaing/ deserializing will null the reference. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog ()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage[object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by
Re: [Wicket-user] SLF4J and wicket
Yeah, if it really should be a member variable (which makes sense when logger is not thread safe), it probably could be something like this: private transient Logger logger; private Logger getLogger() { if (logger == null) initializeLogger; return logger; } On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't hold a reference, which is probably quite inefficient), or store it as a transient field, and initiatlize it lazily (check on null) so that it won't be serialized. More work but safe. If you choose the latter, be sure to always do the null check, as serializaing/ deserializing will null the reference. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog ()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage [object=[Page class = test.page.SignInPage, id = 1, version = 0]] org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog test.page.SignInPage-log NOTE: if you feel Wicket is at fault with this exception, please report to the mailing list. You can switch to JDK based serialization by calling: org.apache.wicket.util.lang.Objects.setObjectStreamFactory(new IObjectStreamFactory.DefaultObjectStreamFactory()) e.g. in the init method of your application at org.apache.wicket.util.io.ClassStreamHandler.init( ClassStreamHandler.java:252) at org.apache.wicket.util.io.ClassStreamHandler.lookup( ClassStreamHandler.java:116) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride (WicketObjectOutputStream.java:752) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.writeField (ClassStreamHandler.java:862) at org.apache.wicket.util.io.ClassStreamHandler.writeFields( ClassStreamHandler.java:387) at org.apache.wicket.util.io.WicketObjectOutputStream.writeObjectOverride (WicketObjectOutputStream.java:779) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage( FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run (FilePageStore.java:237) at java.lang.Thread.run(Thread.java:619) ps. thanks for the SUPER quick response!! ;) On 4/25/07, Eelco Hillenius [EMAIL PROTECTED] wrote: It might be a bug in our custom serialization. Could you please paste the full stack trace please? Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Hi. Anyone had success with slf4j and wicket pages? Im getting serializeable exceptions with jcl104-over-slf4j-1.3.1.jar: org.apache.wicket.util.io.WicketSerializeableException: No Serializable constructor found for class org.apache.commons.logging.impl.SLF4JLocationAwareLog At the moment I dont need to cluster, but im not sure how its gonna be later on... - 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/
Re: [Wicket-user] SLF4J and wicket
Yepp, thanks! But i think the best thing for me to do is to replace all use of Log(jcl) - Logger(slf4j) in my app :) On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Yep, that's pretty clear. SLF4JLocationAwareLog[1] doesn't implement serializable. So, to fix, see my previous comment. Eelco [1] http://www.slf4j.org/api/org/apache/commons/logging/impl/SLF4JLocationAwareLog.html On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: here's the trace: ERROR org.apache.wicket.util.lang.Objects Error serializing object class testpage.PollPage [object=[Page class = testpage.PollPage, id = 1, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException:Unable to serialize class: org.apache.commons.logging.impl.SLF4JLocationAwareLog Field hierarchy is: 1 [class=testpage.PollPage, path=1] private final org.apache.commons.logging.Log testpage.BasePage.log[class= org.apache.commons.logging.impl.SLF4JLocationAwareLog] - field that is not serializable at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:347) at org.apache.wicket.util.io.SerializableChecker.checkFields ( SerializableChecker.java:615) at org.apache.wicket.util.io.SerializableChecker.check( SerializableChecker.java:538) at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride( SerializableChecker.java :683) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:322) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride( IObjectStreamFactory.java:74) at java.io.ObjectOutputStream.writeObject ( ObjectOutputStream.java:322) at org.apache.wicket.util.lang.Objects.objectToByteArray( Objects.java:1102) at org.apache.wicket.protocol.http.FilePageStore.serializePage( FilePageStore.java:651) at org.apache.wicket.protocol.http.FilePageStore.access$900( FilePageStore.java:49) at org.apache.wicket.protocol.http.FilePageStore$PageSerializingThread.run( FilePageStore.java:237) at java.lang.Thread.run (Thread.java:619) Caused by: java.io.NotSerializableException: org.apache.commons.logging.impl.SLF4JLocationAwareLog at java.io.ObjectOutputStream.writeObject0( ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields ( ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeSerialData( ObjectOutputStream.java:1474) at java.io.ObjectOutputStream.writeOrdinaryObject( ObjectOutputStream.java:1392) at java.io.ObjectOutputStream.writeObject0( ObjectOutputStream.java:1150) at java.io.ObjectOutputStream.writeObject( ObjectOutputStream.java:326) at org.apache.wicket.util.io.IObjectStreamFactory$1.writeObjectOverride ( IObjectStreamFactory.java:66) ... 6 common frames omitted Using jdk1.6.0_01 On 4/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: What's the stack trace you get when you use normal serialization? It should point you to an offending field. If you only get it with JCL, there is probably something in JCL that isn't serializable. You should consider either making it a static variable, getting it only when you need it (don't hold a reference, which is probably quite inefficient), or store it as a transient field, and initiatlize it lazily (check on null) so that it won't be serialized. More work but safe. If you choose the latter, be sure to always do the null check, as serializaing/ deserializing will null the reference. Eelco On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Maybe I was a bit unclear. The problem only occurs when you're using jcl104-over-slf4j (JCL's Log not slf4j's Logger). JCL104-over-slf4j just enables you to use old 'Log log = LogFactory.getLog ()' with slf4j (without classloading issues etc) ps. Same problem with Objects.setObjectStreamFactory(...); On 4/25/07, Justin Morgan [EMAIL PROTECTED] wrote: Just a data point...I am using the Wicket 1.3 snapshot jars along with SLF4J with no problems; my pages log just fine. The underlying logging implementation I'm using is the Log4J (v1.2) logging system. So far I really like slf4j, BTW. - Justin *Bjön Limell [EMAIL PROTECTED]* Sent by: [EMAIL PROTECTED] 04/25/2007 11:57 AM Please respond to wicket-user@lists.sourceforge.net To wicket-user@lists.sourceforge.net cc Subject Re: [Wicket-user] SLF4J and wicket btw, im using 1.3.0-incubating-SNAPSHOT On 4/25/07, Bjön Limell [EMAIL PROTECTED] wrote: Sure! ERROR org.apache.wicket.util.lang.Objects Error serializing object class test.page.SignInPage[object=[Page class = test.page.SignInPage, id = 1, version = 0]]
[Wicket-user] MarkupContainer.autoAdd in DataView
Is it possible to implement IComponentResolver interface in a child implementation of DataView so that a Label object is added for each cell found in the markup? This would be similar to some of the examples I've seen when extending ListView. Thanks Craig -- View this message in context: http://www.nabble.com/MarkupContainer.autoAdd-in-DataView-tf3648862.html#a10192136 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
Re: [Wicket-user] MarkupContainer.autoAdd in DataView
Ok, after doing a little research I found out that if you create your own implementation of IDataProvider or extend an existing one. you can over ride the model method with; @Override public IModel model(Object object) { return new BoundCompoundPropertyModel(object); } // model This seems to work, but is this the correct way to go about this? -Craig craigdd wrote: Is it possible to implement IComponentResolver interface in a child implementation of DataView so that a Label object is added for each cell found in the markup? This would be similar to some of the examples I've seen when extending ListView. Thanks Craig -- View this message in context: http://www.nabble.com/MarkupContainer.autoAdd-in-DataView-tf3648862.html#a10192361 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