Re: [Wicket-user] Updating items of a Set...
Hi Eelco Thanks for the help. I've a question however : currently, I put an object containing the Set as a final attribute of my Panel class, in order to be able to increase/decrease its values depending of the action in the AjaxLink onClick. However, having read about memory/session size, I wonder whether there is a better way to do so. Indeed, I fear this Set will stay in Session forever, which isn't needed nor wished. BTW, the Set in questionning isn't coming from the database, but will later be saved into it. What would you advice ? Thanks in advance Joseph, aka ZedroS - 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] RadioGroup Broken(1.2.5+?/when using wantOnSelectionChangedNotifications)?
Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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
On 4/25/07, Igor Vaynberg <[EMAIL PROTECTED]> 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)); yes, it looks better this way, less boiler plate code. 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? i see, i've tried to make tinymce to be ajax-aware but for some reasons it it doesnt work as expected. main tiny_mce_src.js script is loaded and executed but later on some global js variables are not found. it might be a tinymce library issue, not sure yet. maybe if it does choke because of that we can create a loader script for it or something like that. well, i dont know yet but i'll digg into it little more and see what needs to be done. /iulian -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.php&p=sourceforge&CID=DEVDEV > > > > > > > > > > > > ___ > > > > > > Wicket-user mailing list > > > > > > Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Internal Error but no error log?
On 4/26/07, Nick Johnson <[EMAIL PROTECTED]> wrote: > One other thing from today :) > > A few of my users have reported, and I've experienced once myself, getting > an "Internal Error" page while navigating the new site, but I don't get > anything in my containers stdout or stderr log files. > > Is there something I need to do to configure the logging level for Wicket > to make sure any exceptions thrown are printed to stderr or logged > somewhere? I googled around a bit but didn't turn up much. > > Any pointers? Depends on your application server. Tomcat logs everything in catalina.out. Wicket typically logs all caught exceptions on error level, so those shouldn't go unnoticed, unless you catch them yourself without logging :) in your log4j config make sure you have the wicket category set to info, warn or error. This is from our logging configuration: log4j.category.wicket=INFO log4j.category.resource=INFO log4j.category.wicket.protocol.http.RequestLogger=INFO 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] Internal Error but no error log?
Here is another example log4j properties file ("log4j.properties"). Maybe it will help you. It logs everything into a file called tomcat.log in Tomcat's logs directory. At runtime, log4j will create tomcat.log if it doesn't exist. It logs Wicket code at an INFO level and logs code from my project at DEBUG level. In my project, Ant copies log4j.properties into my WAR file's WEB-INF/classes directory and log4j does the rest at runtime. Best wishes. # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=WARN, R # # Configure a rolling log file named "tomcat.log". # log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.DatePattern='.'-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=[%d{HH:mm:ss,SSS} %-5p %c]: %m%n log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 # # Application log level options # log4j.logger.org.apache.wicket=WARN log4j.logger.org.springframework=WARN log4j.logger.com.example=DEBUG On Apr 26, 2007, at 1:31 AM, Martijn Dashorst wrote: > On 4/26/07, Nick Johnson <[EMAIL PROTECTED]> wrote: >> One other thing from today :) >> >> A few of my users have reported, and I've experienced once myself, >> getting >> an "Internal Error" page while navigating the new site, but I >> don't get >> anything in my containers stdout or stderr log files. >> >> Is there something I need to do to configure the logging level for >> Wicket >> to make sure any exceptions thrown are printed to stderr or logged >> somewhere? I googled around a bit but didn't turn up much. >> >> Any pointers? > > Depends on your application server. Tomcat logs everything in > catalina.out. Wicket typically logs all caught exceptions on error > level, so those shouldn't go unnoticed, unless you catch them yourself > without logging :) > > in your log4j config make sure you have the wicket category set to > info, warn or error. > > This is from our logging configuration: > > log4j.category.wicket=INFO > log4j.category.resource=INFO > log4j.category.wicket.protocol.http.RequestLogger=INFO > > 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] Internal Error but no error log?
Er, that should be as follows (logging Wicket at INFO level). Sorry, I need to proof-read better next time... :) # # Application log level options # log4j.logger.org.apache.wicket=INFO log4j.logger.org.springframework=INFO log4j.logger.com.example=DEBUG On Apr 26, 2007, at 1:47 AM, Justin Morgan (Logic Sector) wrote: > Here is another example log4j properties file ("log4j.properties"). > Maybe it will help you. It logs everything into a file called > tomcat.log in Tomcat's logs directory. At runtime, log4j will create > tomcat.log if it doesn't exist. It logs Wicket code at an INFO level > and logs code from my project at DEBUG level. In my project, Ant > copies log4j.properties into my WAR file's WEB-INF/classes directory > and log4j does the rest at runtime. Best wishes. > > # > # Configure the logger to output info level messages into a rolling > log file. > # > log4j.rootLogger=WARN, R > > # > # Configure a rolling log file named "tomcat.log". > # > log4j.appender.R.File=${catalina.home}/logs/tomcat.log > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.DatePattern='.'-MM-dd > log4j.appender.R.layout=org.apache.log4j.PatternLayout > log4j.appender.R.layout.ConversionPattern=[%d{HH:mm:ss,SSS} %-5p %c]: > %m%n > log4j.appender.R.MaxFileSize=10MB > log4j.appender.R.MaxBackupIndex=10 > > # > # Application log level options > # > log4j.logger.org.apache.wicket=WARN > log4j.logger.org.springframework=WARN > log4j.logger.com.example=DEBUG > > > On Apr 26, 2007, at 1:31 AM, Martijn Dashorst wrote: > >> On 4/26/07, Nick Johnson <[EMAIL PROTECTED]> wrote: >>> One other thing from today :) >>> >>> A few of my users have reported, and I've experienced once myself, >>> getting >>> an "Internal Error" page while navigating the new site, but I >>> don't get >>> anything in my containers stdout or stderr log files. >>> >>> Is there something I need to do to configure the logging level for >>> Wicket >>> to make sure any exceptions thrown are printed to stderr or logged >>> somewhere? I googled around a bit but didn't turn up much. >>> >>> Any pointers? >> >> Depends on your application server. Tomcat logs everything in >> catalina.out. Wicket typically logs all caught exceptions on error >> level, so those shouldn't go unnoticed, unless you catch them >> yourself >> without logging :) >> >> in your log4j config make sure you have the wicket category set to >> info, warn or error. >> >> This is from our logging configuration: >> >> log4j.category.wicket=INFO >> log4j.category.resource=INFO >> log4j.category.wicket.protocol.http.RequestLogger=INFO >> >> 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] How to force WicketTester object to type cast in other Application object
package com.xyz.xyzcom.wicket.pages.sections; import com.xyz.xyzcom.wicket.pages.DefaultxyzPage; public class DefaultHomePage extends DefaultxyzPage { public static final String HOME = "home"; public String getSection() { return HOME; } public String getTitle() { return "xyz Home"; } } On testing the above code the test case gives following error: -- The stack trcae of the test code is given below package com.xyz.xyzcom.wicket.pages.sections; import junit.framework.TestCase; import wicket.util.tester.WicketTester; import com.xyz.xyzcom.wicket.xyzApplication; import com.xyz.xyzcom.wicket.pages.Home; public class TestDefaultHomePage extends TestCase{ private WicketTester tester; public TestDefaultHomePage(){ super ("Test DefaultHomePage class"); } protected void setUp() { tester = new WicketTester(); } public void testGetTitle(){ tester.startPage(DefaultHomePage.class); tester.assertRenderedPage(DefaultHomePage.class); java.lang.ClassCastException: wicket.util.tester.WicketTester at com.xyz.xyzcom.wicket.xyzApplication.get(xyzApplication.java:68) at com.xyz.xyzcom.wicket.pages.sections.TestDefaultHomePage.setUp(TestDefaultHomePage.java:21) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) The above test case needs the Wicket Tester object but client specific code had typecast the WicketTester object to its owned class object. The snippet of that code is given below:- public class xyzApplication extends AuthenticatedWebApplication implements ApplicationContextAware { public static xyzApplication get() { return (xyzApplication) Application.get(); } Query is : Is there any way by which I can force the Wicket Tester object to get typecast in client specific class object. Do i need to make any configuration changes . -- View this message in context: http://www.nabble.com/How-to-force-WicketTester-object-to-type-cast-in-other-Application-object-tf3650578.html#a10197182 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
since when does a logger have state? I am very interrested to know what it is that a logger isn't thread safe. You configure it through the constructor (so i guess assign final fields) you don't set any variables after that on it. And you call only info/error with 1 or to params that it needs to log! johan On 4/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote: 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) ; 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.( > > > 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? > >
Re: [Wicket-user] SLF4J and wicket
But if static logs are really a problem: http://wiki.apache.org/jakarta-commons/Logging/StaticLog if would do this: private void doSomething() { /// foo LogFactory.getLog(Xxx.class).debug("blaat") // bar } or private void doSomething() { /// foo getLog().debug("blaat"); // bar } private Log getLog() { return LogFactory.getLog(Xxx.class); } On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: since when does a logger have state? I am very interrested to know what it is that a logger isn't thread safe. You configure it through the constructor (so i guess assign final fields) you don't set any variables after that on it. And you call only info/error with 1 or to params that it needs to log! johan On 4/26/07, Matej Knopp <[EMAIL PROTECTED]> wrote: > > 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) ; > 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.( > > > > 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.a
Re: [Wicket-user] Authentication and page expired
On 4/25/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > 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? After some modifications in the code, the problem disappears if I use a BookmarkablePageLink instead of a PageLink. But I'd still would like to know if there is a way to avoid this problem with a simple PageLink being intercepted by an authentication... and for the moment I still don't know. Xavier - 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] Why checkbox doesnt update property model when roundtrip??
Hi , I am wondering why the checkbox property model is not updated when the method wantOnSelectionChangedNotifications is overriden and returns true. When i call form submit, property is set ok. DropDownChoice updates the model well on roudtrip , so I am surprise that checkbox not. I had to add my own logic in to the onSelectionChangedMethod to update the model(boolean property). Is this ok? Thanks in advance. -- View this message in context: http://www.nabble.com/Why-checkbox-doesnt-update-property-model-when-roundtrip---tf3651503.html#a10199958 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] Internal Error but no error log?
On Thu, 26 Apr 2007, Martijn Dashorst wrote: > > Any pointers? > > Depends on your application server. Tomcat logs everything in > catalina.out. Wicket typically logs all caught exceptions on error > level, so those shouldn't go unnoticed, unless you catch them yourself > without logging :) > > in your log4j config make sure you have the wicket category set to > info, warn or error. That could have been the problem. I'm using Resin Opensource as my container in production, and did not have a log4j.properties file on my classpath. I'll try adding one and see if that helps. Thanks, Nick -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)?
bump anyone for answer? Fra: [EMAIL PROTECTED] på vegne af Nino Wael Sendt: to 26-04-2007 09:25 Til: wicket-user@lists.sourceforge.net Emne: [Wicket-user] RadioGroup Broken(1.2.5+?/when usingwantOnSelectionChangedNotifications)? Hi Something's not right with RadioGroup when using wantOnSelectionChangedNotifications or I am doing something wrong. When the same Radio are selected for the 2nd time, the radio becomes unselected and cannot be selected again until another radio has been selected. However the RadioGroup's model remains the same even though the radio does not appear to be selected. I've created a Quickstart project that showes this behavior. You can get it here: http://www.badongo.com/file/2868077 Im not sure what the normal behavior should be for the radioGroup? Im guessing/expecting that not matter how many times you click on a radio to select it, it should always be selected? Also some would argue that wantOnSelectionChangedNotifications, arent the best name since it tells that you only get notifications when selection changes, however you also get notified if the selection remains the same. A more proper name would be wantSelectionNotifications? Since english arent my primary language I might be somewhat off here, also I guess it will break dependant code, if it were to be renamed :(. BTW: I noticed this behavior when using 1.2.5, but it could also be there before. - 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] Internal Error but no error log?
Yep, that was it. Here's the very primitive log4j.properties I'm including now (src/main/resources for Maven 2), just in case this thread ever turns up in a Google search or it helps somebody else: log4j.rootLogger=WARN, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.category.wicket=INFO log4j.category.resource=INFO log4j.category.wicket.protocol.http.RequestLogger=INFO log4j.category.wicket.protocol.http.WicketServlet=INFO I'll probably set those levels to WARN once the code has been in production for a while. For now, the extra detail is nice. On Thu, 26 Apr 2007, Nick Johnson wrote: > On Thu, 26 Apr 2007, Martijn Dashorst wrote: > > > > Any pointers? > > > > Depends on your application server. Tomcat logs everything in > > catalina.out. Wicket typically logs all caught exceptions on error > > level, so those shouldn't go unnoticed, unless you catch them yourself > > without logging :) > > > > in your log4j config make sure you have the wicket category set to > > info, warn or error. > > That could have been the problem. I'm using Resin Opensource as my > container in production, and did not have a log4j.properties file on my > classpath. > > I'll try adding one and see if that helps. > > Thanks, > >Nick > > -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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] ModalWindow + AjaxFallbackLink + IE
what does the generated link markup look like? -igor On 4/25/07, Nick Johnson <[EMAIL PROTECTED]> wrote: I opened https://issues.apache.org/jira/browse/WICKET-506 on this, but I'm curious to see if it's just me or if others have had similar problems, and if so, if there is a known workaround. Basically when using an AjaxFallbackLink to launch a ModalWindow, IE 6 and 7 both fail to launch the window. It works beautifully in Firefox. This is with Wicket 1.2.5. Any advice? Nick -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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] How to force WicketTester object to type cast in other Application object
myapplication app=nnew myapplication(); wickettester tester=new wicketteseter(app); -igor On 4/26/07, Akshat <[EMAIL PROTECTED]> wrote: package com.xyz.xyzcom.wicket.pages.sections; import com.xyz.xyzcom.wicket.pages.DefaultxyzPage; public class DefaultHomePage extends DefaultxyzPage { public static final String HOME = "home"; public String getSection() { return HOME; } public String getTitle() { return "xyz Home"; } } On testing the above code the test case gives following error: -- The stack trcae of the test code is given below package com.xyz.xyzcom.wicket.pages.sections; import junit.framework.TestCase; import wicket.util.tester.WicketTester; import com.xyz.xyzcom.wicket.xyzApplication; import com.xyz.xyzcom.wicket.pages.Home; public class TestDefaultHomePage extends TestCase{ private WicketTester tester; public TestDefaultHomePage(){ super ("Test DefaultHomePage class"); } protected void setUp() { tester = new WicketTester(); } public void testGetTitle(){ tester.startPage(DefaultHomePage.class); tester.assertRenderedPage(DefaultHomePage.class); java.lang.ClassCastException: wicket.util.tester.WicketTester at com.xyz.xyzcom.wicket.xyzApplication.get(xyzApplication.java :68) at com.xyz.xyzcom.wicket.pages.sections.TestDefaultHomePage.setUp( TestDefaultHomePage.java:21) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java :38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196) The above test case needs the Wicket Tester object but client specific code had typecast the WicketTester object to its owned class object. The snippet of that code is given below:- public class xyzApplication extends AuthenticatedWebApplication implements ApplicationContextAware { public static xyzApplication get() { return (xyzApplication) Application.get(); } Query is : Is there any way by which I can force the Wicket Tester object to get typecast in client specific class object. Do i need to make any configuration changes . -- View this message in context: http://www.nabble.com/How-to-force-WicketTester-object-to-type-cast-in-other-Application-object-tf3650578.html#a10197182 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] Authentication and page expired
hrm. it does seem rather strange. we have a similar authenetication stuff going on in a few projects and it works. but i wonder is the page being intercepted a stateless page? is the login page a stateless page? -igor On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: On 4/25/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > 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? After some modifications in the code, the problem disappears if I use a BookmarkablePageLink instead of a PageLink. But I'd still would like to know if there is a way to avoid this problem with a simple PageLink being intercepted by an authentication... and for the moment I still don't know. Xavier - 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] Why checkbox doesnt update property model when roundtrip??
open a bug please -igor On 4/26/07, kubino <[EMAIL PROTECTED]> wrote: Hi , I am wondering why the checkbox property model is not updated when the method wantOnSelectionChangedNotifications is overriden and returns true. When i call form submit, property is set ok. DropDownChoice updates the model well on roudtrip , so I am surprise that checkbox not. I had to add my own logic in to the onSelectionChangedMethod to update the model(boolean property). Is this ok? Thanks in advance. -- View this message in context: http://www.nabble.com/Why-checkbox-doesnt-update-property-model-when-roundtrip---tf3651503.html#a10199958 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] ModalWindow + AjaxFallbackLink + IE
This is going to paste in an ugly way I'm sure, but I'll try to tidy up the spacing just a bit. Could it be gagging on that &wicket bit and trying to interpret it as an HTML character entity? Or does that not matter when it's inside a Javascript function... Nick On Thu, 26 Apr 2007, Igor Vaynberg wrote: > what does the generated link markup look like? > > -igor > > > On 4/25/07, Nick Johnson <[EMAIL PROTECTED]> wrote: > > > > I opened https://issues.apache.org/jira/browse/WICKET-506 on this, but I'm > > curious to see if it's just me or if others have had similar problems, and > > if so, if there is a known workaround. > > > > Basically when using an AjaxFallbackLink to launch a ModalWindow, IE 6 and > > 7 both fail to launch the window. It works beautifully in Firefox. > > > > This is with Wicket 1.2.5. > > > > Any advice? > > > >Nick > > > > -- > > "Humans are a dangerously insane and very sick species." > >-- Eckhart Tolle > > This message has been brought to you by Nick Johnson 2.2 and the number 6. > > http://healerNick.com/ http://morons.org/http://spatula.net/ > > > > - > > 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 > > > > -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > hrm. it does seem rather strange. we have a similar authenetication stuff > going on in a few projects and it works. > > but i wonder > > is the page being intercepted a stateless page? > is the login page a stateless page? I don't think so, because I haven't done anything special, but I don't know wicket well enough to say. But if you say it should be working, I will double check on my own, check again the examples, and see if I can figure out what's going on, and come back with more details if I'm really lost. Thanks for your help. Xavier > > -igor > > > > > On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > > > On 4/25/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > > 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? > > > > After some modifications in the code, the problem disappears if I use > > a BookmarkablePageLink instead of a PageLink. But I'd still would like > > to know if there is a way to avoid this problem with a simple PageLink > > being intercepted by an authentication... and for the moment I still > > don't know. > > > > Xavier > > > > > - > > 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] Internal Error but no error log?
you could just make sure that your deployed app has no bugs, that way there is no need to bother setting up all this logging mambojumbo -igor On 4/26/07, Nick Johnson <[EMAIL PROTECTED]> wrote: Yep, that was it. Here's the very primitive log4j.properties I'm including now (src/main/resources for Maven 2), just in case this thread ever turns up in a Google search or it helps somebody else: log4j.rootLogger=WARN, stdout log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n log4j.category.wicket=INFO log4j.category.resource=INFO log4j.category.wicket.protocol.http.RequestLogger=INFO log4j.category.wicket.protocol.http.WicketServlet=INFO I'll probably set those levels to WARN once the code has been in production for a while. For now, the extra detail is nice. On Thu, 26 Apr 2007, Nick Johnson wrote: > On Thu, 26 Apr 2007, Martijn Dashorst wrote: > > > > Any pointers? > > > > Depends on your application server. Tomcat logs everything in > > catalina.out. Wicket typically logs all caught exceptions on error > > level, so those shouldn't go unnoticed, unless you catch them yourself > > without logging :) > > > > in your log4j config make sure you have the wicket category set to > > info, warn or error. > > That could have been the problem. I'm using Resin Opensource as my > container in production, and did not have a log4j.properties file on my > classpath. > > I'll try adding one and see if that helps. > > Thanks, > >Nick > > -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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
I'm sorry, I've just noticed that I have an exception[1] before getting the Page Expired message. The exception occurs during deserialization of the page from which I come, and is related to a field injected with via Spring using the wicket-spring-annot. Then this exception is catched and simply output with a e.printStackTrace() (nothing in the log, see org.apache.wicket.util.lang.Objects.byteArrayToObject) which then results in a NPE in FilePageStore logged at debug level, which results in a null page in AbstractRequestCycleProcessor.resolveRenderedPage, which throws the PageExpiredException. So I have two questions: - is it normal that a deserialization exception is not more verbose (a printstacktrace + a not directly related debug message only)? - how can I deal with my spring injected field? Do I have to write specific serialization/deserialization code, to reinject the field at deserialization time? Isn't this case of serializing a component with spring injected fields pretty common? Ok, it's more than two questions :-) Xavier [1] org.apache.wicket.util.io.WicketSerializeableException: Error reading field: projects for object class: class org.xoocode.xooctory.web.projects.ProjectsPage 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.readFields(ClassStreamHandler.java:426) at org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride(WicketObjectInputStream.java:97) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345) at org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:397) at org.apache.wicket.protocol.http.FilePageStore.getPage(FilePageStore.java:476) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:137) at org.apache.wicket.Session.getPage(Session.java:741) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:427) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:137) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1026) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) Caused by: java.lang.NullPointerException at org.apache.wicket.util.io.ClassStreamHandler.createObject(ClassStreamHandler.java:303) at org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride(WicketObjectInputStream.java:92) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:345) at org.apache.wicket.util.io.ClassStreamHandler$ObjectFieldAndIndex.readField(ClassStreamHandler.java:871) at org.apache.wicket.util.io.ClassStreamHandler.readFields(ClassStreamHandler.java:416) ... 30 more On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > hrm. it does seem rather strange. we have a similar authenetication stuff > > going on in a few projects and it works. > > >
Re: [Wicket-user] Authentication and page expired
ah well that explains it :) 1.3 is using our experimental serialization code to save the state which results in a much smaller size then the default serialization. currently it doesnt handle all cases, such as serializing proxies. that is why there are instructions in that error message that tell you how to switch to default serialization. once you do that everything should work. -igor On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: I'm sorry, I've just noticed that I have an exception[1] before getting the Page Expired message. The exception occurs during deserialization of the page from which I come, and is related to a field injected with via Spring using the wicket-spring-annot. Then this exception is catched and simply output with a e.printStackTrace() (nothing in the log, see org.apache.wicket.util.lang.Objects.byteArrayToObject) which then results in a NPE in FilePageStore logged at debug level, which results in a null page in AbstractRequestCycleProcessor.resolveRenderedPage, which throws the PageExpiredException. So I have two questions: - is it normal that a deserialization exception is not more verbose (a printstacktrace + a not directly related debug message only)? - how can I deal with my spring injected field? Do I have to write specific serialization/deserialization code, to reinject the field at deserialization time? Isn't this case of serializing a component with spring injected fields pretty common? Ok, it's more than two questions :-) Xavier [1] org.apache.wicket.util.io.WicketSerializeableException: Error reading field: projects for object class: class org.xoocode.xooctory.web.projects.ProjectsPage 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.readFields( ClassStreamHandler.java:426) at org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride( WicketObjectInputStream.java:97) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :345) at org.apache.wicket.util.lang.Objects.byteArrayToObject( Objects.java:397) at org.apache.wicket.protocol.http.FilePageStore.getPage( FilePageStore.java:476) at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get (SecondLevelCacheSessionStore.java:137) at org.apache.wicket.Session.getPage(Session.java:741) at org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage (AbstractRequestCycleProcessor.java:427) at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java:137) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1026) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127) at org.apache.wicket.RequestCycle.request(RequestCycle.java:489) at org.apache.wicket.protocol.http.WicketFilter.doGet( WicketFilter.java:248) at org.apache.wicket.protocol.http.WicketServlet.doGet( WicketServlet.java:126) at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.mortbay.jetty.servlet.ServletHolder.handle( ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler.handle( ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle( SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle( ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle( WebAppContext.java:391) at org.mortbay.jetty.handler.HandlerWrapper.handle( HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest( HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete( HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java :209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java :357) at org.mortbay.io.nio.SelectChannelEndPoint.run( SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run( BoundedThreadPool.java:475) Caused by: java.lang.NullPointerException at org.apache.wicket.util.io.ClassStreamHandler.createObject( ClassStreamHandler.java:303) at org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride( WicketObjectInputStream.java:92) at java.io.ObjectInputStream.readObject(ObjectInputStream.java :345) at org.apac
Re: [Wicket-user] from 1.2.5 to 1.2.6
Not a single line of code has been changed between the two versions. The version with Wicket 1.2.5 jars displays property web pages using css files in the css subdirectory of the web application root directory, and the version with Wicket 1.2.6 jars cannot find the css files that are in the same directory as in the previous version. -- View this message in context: http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 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] from 1.2.5 to 1.2.6
maybe it is because wicket now always adds a / to the end of the servlet mapping. this was inconsistent in the past, sometimes urls were /context/mapping?wicket:id... and sometimes they were /context/mapping/?wicket:id=... the problem was that /context/mapping?wicket:id urls did not always get mapped to the servlet properly, but the /context/mapping/? did, so that is the option we went with. is that the problem? the browser thinks you are in /context/mapping while your link assumes you are in /context ? what is your servlet mapping? -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: Not a single line of code has been changed between the two versions. The version with Wicket 1.2.5 jars displays property web pages using css files in the css subdirectory of the web application root directory, and the version with Wicket 1.2.6 jars cannot find the css files that are in the same directory as in the previous version. -- View this message in context: http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 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] Authentication and page expired
On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ah well that explains it :) > > 1.3 is using our experimental serialization code to save the state which > results in a much smaller size then the default serialization. currently it > doesnt handle all cases, such as serializing proxies. that is why there are > instructions in that error message that tell you how to switch to default > serialization. once you do that everything should work. Indeed, everything works now :-) I guess it's only because you are in development on this feature, but I think that this kind of problem is important enough to deserve either an exception going higher on the method call stack (maybe wrapping the IOException in a RuntimeException) or at least use the logging mechanism at warn or error level, instead of calling a simple printStackTrace, because it's not straightforward to figure out the cause of this Page Expired message. Anyway, thanks a lot for your help and your time. Xavier > > > -igor > > > On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > I'm sorry, I've just noticed that I have an exception[1] before > > getting the Page Expired message. > > > > The exception occurs during deserialization of the page from which I > > come, and is related to a field injected with via Spring using the > > wicket-spring-annot. Then this exception is catched and simply output > > with a e.printStackTrace() (nothing in the log, see > > org.apache.wicket.util.lang.Objects.byteArrayToObject) > which then > > results in a NPE in FilePageStore logged at debug level, which results > > in a null page in > AbstractRequestCycleProcessor.resolveRenderedPage, > > which throws the PageExpiredException. > > > > So I have two questions: > > - is it normal that a deserialization exception is not more verbose (a > > printstacktrace + a not directly related debug message only)? > > - how can I deal with my spring injected field? Do I have to write > > specific serialization/deserialization code, to reinject the field at > > deserialization time? Isn't this case of serializing a component with > > spring injected fields pretty common? > > > > Ok, it's more than two questions :-) > > > > Xavier > > [1] > > org.apache.wicket.util.io.WicketSerializeableException: > Error reading > > field: projects for object class: class > > org.xoocode.xooctory.web.projects.ProjectsPage > > 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.readFields(ClassStreamHandler.java:426) > > at > org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride > (WicketObjectInputStream.java:97) > > at > java.io.ObjectInputStream.readObject(ObjectInputStream.java:345) > > at > org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:397) > > at > org.apache.wicket.protocol.http.FilePageStore.getPage > (FilePageStore.java:476) > > at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get(SecondLevelCacheSessionStore.java:137) > > at org.apache.wicket.Session.getPage(Session.java > :741) > > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:427) > > at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java > :137) > > at > org.apache.wicket.RequestCycle.step(RequestCycle.java:1026) > > at > org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127) > > at > org.apache.wicket.RequestCycle.request(RequestCycle.java > :489) > > at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:248) > > at > org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:126) > > at javax.servlet.http.HttpServlet.service > (HttpServlet.java:595) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) > > at > org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:367) > > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) > > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > > at > org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:689) > > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) > > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > > at org.mortbay.jetty.Server.handle (Server.java:285) > > at > org.mortbay.jetty.HttpConnection.
Re: [Wicket-user] from 1.2.5 to 1.2.6
dmWicketApplication /app/* -- View this message in context: http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10203607 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] from 1.2.5 to 1.2.6
Yes, it seems that this is the problem: http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage But I do not know how to correct it since my servlet mapping is: /app/* igor.vaynberg wrote: > > maybe it is because wicket now always adds a / to the end of the servlet > mapping. this was inconsistent in the past, sometimes urls were > /context/mapping?wicket:id... and sometimes they were > /context/mapping/?wicket:id=... > > the problem was that /context/mapping?wicket:id urls did not always get > mapped to the servlet properly, but the /context/mapping/? did, so that is > the option we went with. > > is that the problem? the browser thinks you are in /context/mapping while > your link assumes you are in /context ? > > what is your servlet mapping? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Not a single line of code has been changed between the two versions. The >> version with Wicket 1.2.5 jars displays property web pages using css >> files >> in the css subdirectory of the web application root directory, and the >> version with Wicket 1.2.6 jars cannot find the css files that are in the >> same directory as in the previous version. >> -- >> View this message in context: >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 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] Authentication and page expired
well, at first i didnt want to believe we had a printstacktrace() somewhere. but yeah i found it. i changed it to throw an rte, hopefully there was a very good reason for swallowing it like that and someone will revert my change with an explanation. -igor On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ah well that explains it :) > > 1.3 is using our experimental serialization code to save the state which > results in a much smaller size then the default serialization. currently it > doesnt handle all cases, such as serializing proxies. that is why there are > instructions in that error message that tell you how to switch to default > serialization. once you do that everything should work. Indeed, everything works now :-) I guess it's only because you are in development on this feature, but I think that this kind of problem is important enough to deserve either an exception going higher on the method call stack (maybe wrapping the IOException in a RuntimeException) or at least use the logging mechanism at warn or error level, instead of calling a simple printStackTrace, because it's not straightforward to figure out the cause of this Page Expired message. Anyway, thanks a lot for your help and your time. Xavier > > > -igor > > > On 4/26/07, Xavier Hanin <[EMAIL PROTECTED]> wrote: > > I'm sorry, I've just noticed that I have an exception[1] before > > getting the Page Expired message. > > > > The exception occurs during deserialization of the page from which I > > come, and is related to a field injected with via Spring using the > > wicket-spring-annot. Then this exception is catched and simply output > > with a e.printStackTrace() (nothing in the log, see > > org.apache.wicket.util.lang.Objects.byteArrayToObject) > which then > > results in a NPE in FilePageStore logged at debug level, which results > > in a null page in > AbstractRequestCycleProcessor.resolveRenderedPage, > > which throws the PageExpiredException. > > > > So I have two questions: > > - is it normal that a deserialization exception is not more verbose (a > > printstacktrace + a not directly related debug message only)? > > - how can I deal with my spring injected field? Do I have to write > > specific serialization/deserialization code, to reinject the field at > > deserialization time? Isn't this case of serializing a component with > > spring injected fields pretty common? > > > > Ok, it's more than two questions :-) > > > > Xavier > > [1] > > org.apache.wicket.util.io.WicketSerializeableException: > Error reading > > field: projects for object class: class > > org.xoocode.xooctory.web.projects.ProjectsPage > > 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.readFields( ClassStreamHandler.java:426) > > at > org.apache.wicket.util.io.WicketObjectInputStream.readObjectOverride > (WicketObjectInputStream.java:97) > > at > java.io.ObjectInputStream.readObject(ObjectInputStream.java:345) > > at > org.apache.wicket.util.lang.Objects.byteArrayToObject(Objects.java:397) > > at > org.apache.wicket.protocol.http.FilePageStore.getPage > (FilePageStore.java:476) > > at > org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.get (SecondLevelCacheSessionStore.java:137) > > at org.apache.wicket.Session.getPage(Session.java > :741) > > at > org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage (AbstractRequestCycleProcessor.java:427) > > at > org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve( WebRequestCycleProcessor.java > :137) > > at > org.apache.wicket.RequestCycle.step(RequestCycle.java:1026) > > at > org.apache.wicket.RequestCycle.steps(RequestCycle.java:1127) > > at > org.apache.wicket.RequestCycle.request(RequestCycle.java > :489) > > at > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java :248) > > at > org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java :126) > > at javax.servlet.http.HttpServlet.service > (HttpServlet.java:595) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:688) > > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) > > at > org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:367) > > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java :185) > > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > > at > org.mortbay.jetty.handler.ContextHandler.handle
Re: [Wicket-user] ModalWindow + AjaxFallbackLink + IE
Many thanks to Igor and Matej, the problem was found this morning. It turns out that while Firefox and Opera let you get away with it, MSIE will not allow you to use as the placeholder for a ModalWindow. It has to be . Also found an obscure bug in IE after that one got fixed. The symptom was that the ModalWindow's contents were blank until the window was resized. The cause was an old hack that was still in my CSS where I had "position: relative" set on the html element. I vaguely recall that the reason I had this had something to do with a CSS rule regarding page flow related to the parent's position: setting. In any case, it looks like I don't need it anymore, so the solution was to just drop that, and now ModalWindow is working fine in MSIE. The AjaxFallbackLink was a red herring. Nick -- "Humans are a dangerously insane and very sick species." -- Eckhart Tolle This message has been brought to you by Nick Johnson 2.2 and the number 6. http://healerNick.com/ http://morons.org/http://spatula.net/ - 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] Updating items of a Set...
> Hi Eelco > > Thanks for the help. > > I've a question however : currently, I put an object containing the > Set as a final attribute of my Panel class, in order to be able to > increase/decrease its values depending of the action in the AjaxLink > onClick. > > However, having read about memory/session size, I wonder whether there > is a better way to do so. I wouldn't be too worried about it. If it turns out to be too consuming, it should be easy to refactor this, right? > Indeed, I fear this Set will stay in Session > forever, which isn't needed nor wished. It won't, Wicket takes care for cleaning up stuff. What stays in RAM is always limited. > BTW, the Set in questionning isn't coming from the database, but will > later be saved into it. > > What would you advice ? It depends on how expensive that set is to create. If that is cheap, you could just create it only for the request, e.g. using a LoadableDetachableModel. And as a final note, always implement object identity (hashCode/ equals) properly. Some components (like dropdown lists) depend on that. And if you done that in a good way, it won't be a problem if you create the objects for just the request. 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] SLF4J and wicket
Yes, that was my point earlier. Or make it a transient with lazy creation as that would be more efficient. Eelco On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: But if static logs are really a problem: http://wiki.apache.org/jakarta-commons/Logging/StaticLog if would do this: private void doSomething() { /// foo LogFactory.getLog(Xxx.class).debug("blaat") // bar } or private void doSomething() { /// foo getLog().debug("blaat"); // bar } private Log getLog() { return LogFactory.getLog(Xxx.class); } On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > since when does a logger have state? > I am very interrested to know what it is that a logger isn't thread > safe. > You configure it through the constructor (so i guess assign final > fields) > you don't set any variables after that on it. And you call only > info/error with 1 or to params that it needs to log! > > johan > > > On 4/26/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > 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) ; > > 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 > > > > > .(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.writeFie
Re: [Wicket-user] from 1.2.5 to 1.2.6
is that the 1.2.6 or the 1.2.5 url? -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: Yes, it seems that this is the problem: http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage But I do not know how to correct it since my servlet mapping is: /app/* igor.vaynberg wrote: > > maybe it is because wicket now always adds a / to the end of the servlet > mapping. this was inconsistent in the past, sometimes urls were > /context/mapping?wicket:id... and sometimes they were > /context/mapping/?wicket:id=... > > the problem was that /context/mapping?wicket:id urls did not always get > mapped to the servlet properly, but the /context/mapping/? did, so that is > the option we went with. > > is that the problem? the browser thinks you are in /context/mapping while > your link assumes you are in /context ? > > what is your servlet mapping? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Not a single line of code has been changed between the two versions. The >> version with Wicket 1.2.5 jars displays property web pages using css >> files >> in the css subdirectory of the web application root directory, and the >> version with Wicket 1.2.6 jars cannot find the css files that are in the >> same directory as in the previous version. >> -- >> View this message in context: >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 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] from 1.2.5 to 1.2.6
Sorry, It is the 1.2.6 url and the url is: http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage When the page is displayed there is no CSS formatting for the page. In the log there is a warning message: the resource requested by request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType = null, contentLength = -1, contextPath = /dmWicket, pathInfo = /css/box.css, requestURI = /dmWicket/app/css/box.css, servletPath = /app, pathTranslated = D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found The translated path is the correct one for the CSS file. igor.vaynberg wrote: > > is that the 1.2.6 or the 1.2.5 url? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Yes, it seems that this is the problem: >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> But I do not know how to correct it since my servlet mapping is: >> >> /app/* >> >> >> >> igor.vaynberg wrote: >> > >> > maybe it is because wicket now always adds a / to the end of the >> servlet >> > mapping. this was inconsistent in the past, sometimes urls were >> > /context/mapping?wicket:id... and sometimes they were >> > /context/mapping/?wicket:id=... >> > >> > the problem was that /context/mapping?wicket:id urls did not always get >> > mapped to the servlet properly, but the /context/mapping/? did, so that >> is >> > the option we went with. >> > >> > is that the problem? the browser thinks you are in /context/mapping >> while >> > your link assumes you are in /context ? >> > >> > what is your servlet mapping? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Not a single line of code has been changed between the two versions. >> The >> >> version with Wicket 1.2.5 jars displays property web pages using css >> >> files >> >> in the css subdirectory of the web application root directory, and the >> >> version with Wicket 1.2.6 jars cannot find the css files that are in >> the >> >> same directory as in the previous version. >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10205161 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/ __
Re: [Wicket-user] from 1.2.5 to 1.2.6
try changing this: to notice the ../ in href. that should fix that. also note that this isnt the greatest way to include css because it will break if you use a mounted page. -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: Sorry, It is the 1.2.6 url and the url is: http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage When the page is displayed there is no CSS formatting for the page. In the log there is a warning message: the resource requested by request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType = null, contentLength = -1, contextPath = /dmWicket, pathInfo = /css/box.css, requestURI = /dmWicket/app/css/box.css, servletPath = /app, pathTranslated = D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found The translated path is the correct one for the CSS file. igor.vaynberg wrote: > > is that the 1.2.6 or the 1.2.5 url? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Yes, it seems that this is the problem: >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> But I do not know how to correct it since my servlet mapping is: >> >> /app/* >> >> >> >> igor.vaynberg wrote: >> > >> > maybe it is because wicket now always adds a / to the end of the >> servlet >> > mapping. this was inconsistent in the past, sometimes urls were >> > /context/mapping?wicket:id... and sometimes they were >> > /context/mapping/?wicket:id=... >> > >> > the problem was that /context/mapping?wicket:id urls did not always get >> > mapped to the servlet properly, but the /context/mapping/? did, so that >> is >> > the option we went with. >> > >> > is that the problem? the browser thinks you are in /context/mapping >> while >> > your link assumes you are in /context ? >> > >> > what is your servlet mapping? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Not a single line of code has been changed between the two versions. >> The >> >> version with Wicket 1.2.5 jars displays property web pages using css >> >> files >> >> in the css subdirectory of the web application root directory, and the >> >> version with Wicket 1.2.6 jars cannot find the css files that are in >> the >> >> same directory as in the previous version. >> >> -- >> >> View this message in context: >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10205161 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF
[Wicket-user] setting an attribute on the HttpSession.
I need to work with a servlet from another group and they need to see the user as an attribute on the HttpSession.It seems as though setAttribute on my wicket.Session doesn't actually set it on the HttpSession. Is that correct? I've found that the following works, but it just doesn't seem like it's the "wicket way". Is there a better way? ((WebRequest)getRequest()).getHttpServletRequest().getSession().setAttribute( "user", NrgSession.get().getUser() ); This seems like a dumb question, but my google-fu must not be very good on this. Thanks, Tom - 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] reloading a DataTable after submit with validation error
On my page, I use a DataTable with custom IColumn implementtions that use fragments to make the cells editable. If I change that values in the cells and click submit (which just submits the Form object) then it preoperly persists my data and refreshes with the correct data when there are no validation problems. If I attempt to submit but there is a validation problem, then the DataTable cells reset back to their original values. This is unlike a TextField that is directly on the Form which would retain the last entered value. I'm trying to understand the difference between the two scenarios. I believe it has something to do with DataTable creating new Items on each render. I even tried to use ReuseIfModelsEqualStrategy, which I verified was returning the the existing object versus creating a new one. But it still did not persist the user-entered values, because the model wasn't getting updated (as I expected since the validation failed). I may not fully understand how wicket "redraws" the screen after a validation failure in which the components do not update their models, yet are able to display the last user entered value. Perhaps some insight into that might make me understand where I've gone wrong. Chuck -- View this message in context: http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10205480 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] from 1.2.5 to 1.2.6
Did not help. What I do not understand is the warning message: the resource requested by request [method = GET, protocol = HTTP/1.1, requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType = null, contentLength = -1, contextPath = /dmWicket, pathInfo = /css/box.css, requestURI = /dmWicket/app/css/box.css, servletPath = /app, pathTranslated = D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found The translated path is the correct path to the CSS file. igor.vaynberg wrote: > > try changing this: > > /> > > to > > href="../css/box.css" > /> > > notice the ../ in href. that should fix that. > > also note that this isnt the greatest way to include css because it will > break if you use a mounted page. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Sorry, >> >> It is the 1.2.6 url and the url is: >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> When the page is displayed there is no CSS formatting for the page. In >> the >> log there is a warning message: >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType >> = >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> /css/box.css, >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> pathTranslated >> = >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> The translated path is the correct one for the CSS file. >> >> >> >> igor.vaynberg wrote: >> > >> > is that the 1.2.6 or the 1.2.5 url? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> /app/* >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > maybe it is because wicket now always adds a / to the end of the >> >> servlet >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> > /context/mapping?wicket:id... and sometimes they were >> >> > /context/mapping/?wicket:id=... >> >> > >> >> > the problem was that /context/mapping?wicket:id urls did not always >> get >> >> > mapped to the servlet properly, but the /context/mapping/? did, so >> that >> >> is >> >> > the option we went with. >> >> > >> >> > is that the problem? the browser thinks you are in /context/mapping >> >> while >> >> > your link assumes you are in /context ? >> >> > >> >> > what is your servlet mapping? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> versions. >> >> The >> >> >> version with Wicket 1.2.5 jars displays property web pages using >> css >> >> >> files >> >> >> in the css subdirectory of the web application root directory, and >> the >> >> >> version with Wicket 1.2.6 jars cannot find the css files that are >> in >> >> the >> >> >> same directory as in the previous version. >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 >> >> 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. C
Re: [Wicket-user] setting an attribute on the HttpSession.
> I need to work with a servlet from another group and they need to see the user > as an attribute on the HttpSession.It seems as though setAttribute on my > wicket.Session doesn't actually set it on the HttpSession. Is that correct? Typicaly it does, but it depends on your configuration. Session delegates this to the ISessionStore your application uses. For Wicket 1.3, the default store is SecondLevelCacheSessionStore, which extends HttpSessionStore (which was the default for 1.2). Both these session stores pass and the attributes from/ to the underlying HttpSession. 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] from 1.2.5 to 1.2.6
To be more precise: It works in the home page when it is It does not work in the home page when it is It works in the about page (link from the home page) when it is It does not work in the about page when it is Now I am completely lost. What is the best way to use CSS? igor.vaynberg wrote: > > try changing this: > > /> > > to > > href="../css/box.css" > /> > > notice the ../ in href. that should fix that. > > also note that this isnt the greatest way to include css because it will > break if you use a mounted page. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Sorry, >> >> It is the 1.2.6 url and the url is: >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> When the page is displayed there is no CSS formatting for the page. In >> the >> log there is a warning message: >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType >> = >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> /css/box.css, >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> pathTranslated >> = >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> The translated path is the correct one for the CSS file. >> >> >> >> igor.vaynberg wrote: >> > >> > is that the 1.2.6 or the 1.2.5 url? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> /app/* >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > maybe it is because wicket now always adds a / to the end of the >> >> servlet >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> > /context/mapping?wicket:id... and sometimes they were >> >> > /context/mapping/?wicket:id=... >> >> > >> >> > the problem was that /context/mapping?wicket:id urls did not always >> get >> >> > mapped to the servlet properly, but the /context/mapping/? did, so >> that >> >> is >> >> > the option we went with. >> >> > >> >> > is that the problem? the browser thinks you are in /context/mapping >> >> while >> >> > your link assumes you are in /context ? >> >> > >> >> > what is your servlet mapping? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> versions. >> >> The >> >> >> version with Wicket 1.2.5 jars displays property web pages using >> css >> >> >> files >> >> >> in the css subdirectory of the web application root directory, and >> the >> >> >> version with Wicket 1.2.6 jars cannot find the css files that are >> in >> >> the >> >> >> same directory as in the previous version. >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> >> 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/from-1.2.5-to-1.2.6-tf3647980.html#a10204234 >> >> 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:
Re: [Wicket-user] reloading a DataTable after submit with validation error
your model reuse strategy must not be working correctly. the input values are lost because they bound to the component, and if that component is recreated by the repeater they are then gone. thus the disappearing values. -igor On 4/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote: On my page, I use a DataTable with custom IColumn implementtions that use fragments to make the cells editable. If I change that values in the cells and click submit (which just submits the Form object) then it preoperly persists my data and refreshes with the correct data when there are no validation problems. If I attempt to submit but there is a validation problem, then the DataTable cells reset back to their original values. This is unlike a TextField that is directly on the Form which would retain the last entered value. I'm trying to understand the difference between the two scenarios. I believe it has something to do with DataTable creating new Items on each render. I even tried to use ReuseIfModelsEqualStrategy, which I verified was returning the the existing object versus creating a new one. But it still did not persist the user-entered values, because the model wasn't getting updated (as I expected since the validation failed). I may not fully understand how wicket "redraws" the screen after a validation failure in which the components do not update their models, yet are able to display the last user entered value. Perhaps some insight into that might make me understand where I've gone wrong. Chuck -- View this message in context: http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10205480 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] from 1.2.5 to 1.2.6
I have found out what the problem is: In HomePage.html I use: @import "css/box.css"; @import "css/cite.css"; @import "css/code.css"; @import "css/def.css"; @import "css/form.css"; @import "css/layout.css"; @import "css/layout2c.css"; @import "css/layout3c.css"; @import "css/link.css"; @import "css/list.css"; @import "css/marker.css"; @import "css/menu.css"; @import "css/msg.css"; @import "css/page.css"; @import "css/section.css"; @import "css/slide.css"; @import "css/table.css"; and it works. In the AboutPage.html I use: @import "../css/box.css"; @import "../css/cite.css"; @import "../css/code.css"; @import "../css/def.css"; @import "../css/form.css"; @import "../css/layout.css"; @import "../css/layout2c.css"; @import "../css/layout3c.css"; @import "../css/link.css"; @import "../css/list.css"; @import "../css/marker.css"; @import "../css/menu.css"; @import "../css/msg.css"; @import "../css/page.css"; @import "../css/section.css"; @import "../css/slide.css"; @import "../css/table.css"; and it works. It seems that link element works as in 1.2.5, but the import element has a changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import elements. igor.vaynberg wrote: > > try changing this: > > /> > > to > > href="../css/box.css" > /> > > notice the ../ in href. that should fix that. > > also note that this isnt the greatest way to include css because it will > break if you use a mounted page. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Sorry, >> >> It is the 1.2.6 url and the url is: >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> When the page is displayed there is no CSS formatting for the page. In >> the >> log there is a warning message: >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType >> = >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> /css/box.css, >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> pathTranslated >> = >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> The translated path is the correct one for the CSS file. >> >> >> >> igor.vaynberg wrote: >> > >> > is that the 1.2.6 or the 1.2.5 url? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> /app/* >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > maybe it is because wicket now always adds a / to the end of the >> >> servlet >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> > /context/mapping?wicket:id... and sometimes they were >> >> > /context/mapping/?wicket:id=... >> >> > >> >> > the problem was that /context/mapping?wicket:id urls did not always >> get >> >> > mapped to the servlet properly, but the /context/mapping/? did, so >> that >> >> is >> >> > the option we went with. >> >> > >> >> > is that the problem? the browser thinks you are in /context/mapping >> >> while >> >> > your link assumes you are in /context ? >> >> > >> >> > what is your servlet mapping? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> versions. >> >> The >> >> >> version with Wicket 1.2.5 jars displays property web pages using >> css >> >> >> files >> >> >> in the css subdirectory of the web application root directory, and >> the >> >> >> version with Wicket 1.2.6 jars cannot find the css files that are >> in >> >> the >> >> >> same directory as in the previous version. >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> >> 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] from 1.2.5 to 1.2.6
link and import have not changed behavior what has changed is that wicket now always appends a / after the servlet mapping, where as before it only did so sometimes. so now it is more consistent but is messing with your context path. -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: I have found out what the problem is: In HomePage.html I use: @import "css/box.css"; @import "css/cite.css"; @import "css/code.css"; @import "css/def.css"; @import "css/form.css"; @import "css/layout.css"; @import "css/layout2c.css"; @import "css/layout3c.css"; @import "css/link.css"; @import "css/list.css"; @import "css/marker.css"; @import "css/menu.css"; @import "css/msg.css"; @import "css/page.css"; @import "css/section.css"; @import "css/slide.css"; @import "css/table.css"; and it works. In the AboutPage.html I use: @import "../css/box.css"; @import "../css/cite.css"; @import "../css/code.css"; @import "../css/def.css"; @import "../css/form.css"; @import "../css/layout.css"; @import "../css/layout2c.css"; @import "../css/layout3c.css"; @import "../css/link.css"; @import "../css/list.css"; @import "../css/marker.css"; @import "../css/menu.css"; @import "../css/msg.css"; @import "../css/page.css"; @import "../css/section.css"; @import "../css/slide.css"; @import "../css/table.css"; and it works. It seems that link element works as in 1.2.5, but the import element has a changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import elements. igor.vaynberg wrote: > > try changing this: > > /> > > to > > href="../css/box.css" > /> > > notice the ../ in href. that should fix that. > > also note that this isnt the greatest way to include css because it will > break if you use a mounted page. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Sorry, >> >> It is the 1.2.6 url and the url is: >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> When the page is displayed there is no CSS formatting for the page. In >> the >> log there is a warning message: >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, contentType >> = >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> /css/box.css, >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> pathTranslated >> = >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> The translated path is the correct one for the CSS file. >> >> >> >> igor.vaynberg wrote: >> > >> > is that the 1.2.6 or the 1.2.5 url? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> /app/* >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > maybe it is because wicket now always adds a / to the end of the >> >> servlet >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> > /context/mapping?wicket:id... and sometimes they were >> >> > /context/mapping/?wicket:id=... >> >> > >> >> > the problem was that /context/mapping?wicket:id urls did not always >> get >> >> > mapped to the servlet properly, but the /context/mapping/? did, so >> that >> >> is >> >> > the option we went with. >> >> > >> >> > is that the problem? the browser thinks you are in /context/mapping >> >> while >> >> > your link assumes you are in /context ? >> >> > >> >> > what is your servlet mapping? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> versions. >> >> The >> >> >> version with Wicket 1.2.5 jars displays property web pages using >> css >> >> >> files >> >> >> in the css subdirectory of the web application root directory, and >> the >> >> >> version with Wicket 1.2.6 jars cannot find the css files that are >> in >> >> the >> >> >> same directory as in the previous version. >> >> >> -- >> >> >> View this message in context: >> >> >> http://www.nabble.com/from-1.2.5-to-1.2.6-tf3647980.html#a10202910 >> >> >> 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
Re: [Wicket-user] from 1.2.5 to 1.2.6
Well, I changed imports to links and the same definition in both pages works well without using ../: igor.vaynberg wrote: > > link and import have not changed behavior > > what has changed is that wicket now always appends a / after the servlet > mapping, where as before it only did so sometimes. so now it is more > consistent but is messing with your context path. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> I have found out what the problem is: >> >> In HomePage.html I use: >> >> > /> >> >> @import "css/box.css"; >> @import "css/cite.css"; >> @import "css/code.css"; >> @import "css/def.css"; >> @import "css/form.css"; >> @import "css/layout.css"; >> @import "css/layout2c.css"; >> @import "css/layout3c.css"; >> @import "css/link.css"; >> @import "css/list.css"; >> @import "css/marker.css"; >> @import "css/menu.css"; >> @import "css/msg.css"; >> @import "css/page.css"; >> @import "css/section.css"; >> @import "css/slide.css"; >> @import "css/table.css"; >> >> >> and it works. >> >> In the AboutPage.html I use: >> >> > /> >> >> @import "../css/box.css"; >> @import "../css/cite.css"; >> @import "../css/code.css"; >> @import "../css/def.css"; >> @import "../css/form.css"; >> @import "../css/layout.css"; >> @import "../css/layout2c.css"; >> @import "../css/layout3c.css"; >> @import "../css/link.css"; >> @import "../css/list.css"; >> @import "../css/marker.css"; >> @import "../css/menu.css"; >> @import "../css/msg.css"; >> @import "../css/page.css"; >> @import "../css/section.css"; >> @import "../css/slide.css"; >> @import "../css/table.css"; >> >> >> and it works. >> >> It seems that link element works as in 1.2.5, but the import element has >> a >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> elements. >> >> >> >> igor.vaynberg wrote: >> > >> > try changing this: >> > >> > > href="css/box.css" >> > /> >> > >> > to >> > >> > > > href="../css/box.css" >> > /> >> > >> > notice the ../ in href. that should fix that. >> > >> > also note that this isnt the greatest way to include css because it >> will >> > break if you use a mounted page. >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Sorry, >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> When the page is displayed there is no CSS formatting for the page. In >> >> the >> >> log there is a warning message: >> >> >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, >> contentType >> >> = >> >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> >> /css/box.css, >> >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> >> pathTranslated >> >> = >> >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> >> >> The translated path is the correct one for the CSS file. >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > is that the 1.2.6 or the 1.2.5 url? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> >> >> /app/* >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > maybe it is because wicket now always adds a / to the end of the >> >> >> servlet >> >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> >> > /context/mapping?wicket:id... and sometimes they were >> >> >> > /context/mapping/?wicket:id=... >> >> >> > >> >> >> > the problem was that /context/mapping?wicket:id urls did not >> always >> >> get >> >> >> > mapped to the servlet properly, but the /context/mapping/? did, >> so >> >> that >> >> >> is >> >> >> > the option we went with. >> >> >> > >> >> >> > is that the problem? the browser thinks you are in >> /context/mapping >> >> >> while >> >> >> > your link assumes you are in /context ? >> >> >> > >> >> >> > what is your servlet mapping? >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Not a single line of code has been changed between the two >> >> versions. >> >> >> The >> >
Re: [Wicket-user] SLF4J and wicket
but not for Wicket components, an instance log field in Component (or other base wicket class) will be a memory slot for every wicket component instance... johan On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Yes, that was my point earlier. Or make it a transient with lazy creation as that would be more efficient. Eelco On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > But if static logs are really a problem: > http://wiki.apache.org/jakarta-commons/Logging/StaticLog > > if would do this: > > private void doSomething() > { >/// foo >LogFactory.getLog(Xxx.class).debug("blaat") >// bar > } > > or > > private void doSomething() > { >/// foo > getLog().debug("blaat"); >// bar > } > > private Log getLog() > { > return LogFactory.getLog(Xxx.class); > } > > > On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > since when does a logger have state? > > I am very interrested to know what it is that a logger isn't thread > > safe. > > You configure it through the constructor (so i guess assign final > > fields) > > you don't set any variables after that on it. And you call only > > info/error with 1 or to params that it needs to log! > > > > johan > > > > > > On 4/26/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > 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) ; > > > 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 > > > > > > .(ClassStreamHandler.java:252) > > > > > > > at > > > > > > org.apache.wicket.util.io.ClassStreamHandler.lookup( > > > > > > ClassStre
Re: [Wicket-user] reloading a DataTable after submit with validation error
Yeah, I had thought that was the problem, that's I why I switched to ReuseIfModelsEqualStrategy (actually, a custom impl based upon that class because I could figure out how to use a custom model for the cells; AbstractDataGridView.getPopulatorsIterator is private and it doesn't supply an overridable method to wrap the object in a Model and Model doesn't delegate equals/hashCode to the modelObject, but I digress...). The main difference is that my impl uses the modelObject, not the model as the Map key. I can verify that I am returning the oldItem from the IItemReuseStrategy.getItems() method. What else should I be verifying? Could this have anything to do with RefreshingView.internalOnAttach() doing a removeAll() then addItems(). Could the removeAll be disconnecting the component from the user entered data? before it gets re-rendered? I'm just shooting in the dark here because I don't think I fully understand the underlying processing. Chuck igor.vaynberg wrote: > > your model reuse strategy must not be working correctly. > > the input values are lost because they bound to the component, and if that > component is recreated by the repeater they are then gone. thus the > disappearing values. > > -igor > > > On 4/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote: >> >> >> On my page, I use a DataTable with custom IColumn implementtions that use >> fragments to make the cells editable. If I change that values in the >> cells >> and click submit (which just submits the Form object) then it preoperly >> persists my data and refreshes with the correct data when there are no >> validation problems. If I attempt to submit but there is a validation >> problem, then the DataTable cells reset back to their original >> values. This >> is unlike a TextField that is directly on the Form which would retain the >> last entered value. >> >> I'm trying to understand the difference between the two scenarios. I >> believe it has something to do with DataTable creating new Items on each >> render. I even tried to use ReuseIfModelsEqualStrategy, which I verified >> was returning the the existing object versus creating a new one. But it >> still did not persist the user-entered values, because the model wasn't >> getting updated (as I expected since the validation failed). >> >> I may not fully understand how wicket "redraws" the screen after a >> validation failure in which the components do not update their models, >> yet >> are able to display the last user entered value. Perhaps some insight >> into >> that might make me understand where I've gone wrong. >> >> Chuck >> -- >> View this message in context: >> http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10205480 >> 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/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10206546 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
yeah, so it either more efficient in terms of processing (reusing the member var) or in memory (not keep the member var). Eelco On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: but not for Wicket components, an instance log field in Component (or other base wicket class) will be a memory slot for every wicket component instance... johan On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > Yes, that was my point earlier. Or make it a transient with lazy > creation as that would be more efficient. > > Eelco > > > On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > But if static logs are really a problem: > > http://wiki.apache.org/jakarta-commons/Logging/StaticLog > > > > if would do this: > > > > private void doSomething() > > { > >/// foo > >LogFactory.getLog(Xxx.class).debug("blaat") > >// bar > > } > > > > or > > > > private void doSomething() > > { > >/// foo > > getLog().debug("blaat"); > >// bar > > } > > > > private Log getLog() > > { > > return LogFactory.getLog(Xxx.class); > > } > > > > > > On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > > > since when does a logger have state? > > > I am very interrested to know what it is that a logger isn't thread > > > safe. > > > You configure it through the constructor (so i guess assign final > > > fields) > > > you don't set any variables after that on it. And you call only > > > info/error with 1 or to params that it needs to log! > > > > > > johan > > > > > > > > > On 4/26/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > > > 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) ; > > > > 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 > >
Re: [Wicket-user] from 1.2.5 to 1.2.6
what does your output markup look like though? did wicket rewrite css/app.css to /contextpath/css/app.css for you? -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: Well, I changed imports to links and the same definition in both pages works well without using ../: igor.vaynberg wrote: > > link and import have not changed behavior > > what has changed is that wicket now always appends a / after the servlet > mapping, where as before it only did so sometimes. so now it is more > consistent but is messing with your context path. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> I have found out what the problem is: >> >> In HomePage.html I use: >> >> > /> >> >> @import "css/box.css"; >> @import "css/cite.css"; >> @import "css/code.css"; >> @import "css/def.css"; >> @import "css/form.css"; >> @import "css/layout.css"; >> @import "css/layout2c.css"; >> @import "css/layout3c.css"; >> @import "css/link.css"; >> @import "css/list.css"; >> @import "css/marker.css"; >> @import "css/menu.css"; >> @import "css/msg.css"; >> @import "css/page.css"; >> @import "css/section.css"; >> @import "css/slide.css"; >> @import "css/table.css"; >> >> >> and it works. >> >> In the AboutPage.html I use: >> >> > /> >> >> @import "../css/box.css"; >> @import "../css/cite.css"; >> @import "../css/code.css"; >> @import "../css/def.css"; >> @import "../css/form.css"; >> @import "../css/layout.css"; >> @import "../css/layout2c.css"; >> @import "../css/layout3c.css"; >> @import "../css/link.css"; >> @import "../css/list.css"; >> @import "../css/marker.css"; >> @import "../css/menu.css"; >> @import "../css/msg.css"; >> @import "../css/page.css"; >> @import "../css/section.css"; >> @import "../css/slide.css"; >> @import "../css/table.css"; >> >> >> and it works. >> >> It seems that link element works as in 1.2.5, but the import element has >> a >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> elements. >> >> >> >> igor.vaynberg wrote: >> > >> > try changing this: >> > >> > > href="css/box.css" >> > /> >> > >> > to >> > >> > > > href="../css/box.css" >> > /> >> > >> > notice the ../ in href. that should fix that. >> > >> > also note that this isnt the greatest way to include css because it >> will >> > break if you use a mounted page. >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Sorry, >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> When the page is displayed there is no CSS formatting for the page. In >> >> the >> >> log there is a warning message: >> >> >> >> the resource requested by request [method = GET, protocol = HTTP/1.1, >> >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, >> contentType >> >> = >> >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> >> /css/box.css, >> >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> >> pathTranslated >> >> = >> >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> >> >> The translated path is the correct one for the CSS file. >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > is that the 1.2.6 or the 1.2.5 url? >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> But I do not know how to correct it since my servlet mapping is: >> >> >> >> >> >> /app/* >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > maybe it is because wicket now always adds a / to the end of the >> >> >> servlet >> >> >> > mapping. this was inconsistent in the past, sometimes urls were >> >> >> > /context/mapping?wicket:id... and sometimes they were >> >> >> > /context/mapping/?wicket:id=... >> >> >> > >> >> >> > the problem was that /context/mapping?wicket:id urls did not >> always >> >> get >> >> >> > mapped to the servlet properly, but the /context/mapping/? did, >> so >> >> that >> >> >> is >> >> >> > the option we went with. >> >> >> > >> >> >> > is that the problem? the browser thinks you are in >> /context/mapping >> >> >> while >> >> >> > your link assumes you are in /context ? >> >> >> > >> >> >> > what is your servlet mapping? >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 4/2
Re: [Wicket-user] setting an attribute on the HttpSession.
On Thursday 26 April 2007 1:02 pm, Eelco Hillenius escreveu: > > I need to work with a servlet from another group and they need to see the > > user as an attribute on the HttpSession.It seems as though > > setAttribute on my wicket.Session doesn't actually set it on the > > HttpSession. Is that correct? > > Typicaly it does, but it depends on your configuration. Session > delegates this to the ISessionStore your application uses. For Wicket > 1.3, the default store is SecondLevelCacheSessionStore, which extends > HttpSessionStore (which was the default for 1.2). Both these session > stores pass and the attributes from/ to the underlying HttpSession. Cool, thanks. That must mean that I'm doing something wrong. I'll chase it down. - 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] reloading a DataTable after submit with validation error
On 4/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote: Yeah, I had thought that was the problem, that's I why I switched to ReuseIfModelsEqualStrategy (actually, a custom impl based upon that class because I could figure out how to use a custom model for the cells; AbstractDataGridView.getPopulatorsIterator is private and it doesn't supply an overridable method to wrap the object in a Model and Model doesn't delegate equals/hashCode to the modelObject, but I digress...). you dont need access to that, the model used is the one returned form the dataprovider. The main difference is that my impl uses the modelObject, not the model as the Map key. I can verify that I am returning the oldItem from the IItemReuseStrategy.getItems() method. the model you return from dataprovider has to have its equals and hashcode implemented, if you want those can forward to the modelobject. What else should I be verifying? Could this have anything to do with RefreshingView.internalOnAttach() doing a removeAll() then addItems(). Could the removeAll be disconnecting the component from the user entered data? before it gets re-rendered? I'm just shooting in the dark here because I don't think I fully understand the underlying processing. no. removeall() is done, yes, but then if the old item is readded it still has the same path and components. if you are really lost then you can create a quickstart and reproduce the problem. there is also an example in wicket-examples/repeaters that shows a datatable with an itemreusestrategy i believe. -igor Chuck igor.vaynberg wrote: > > your model reuse strategy must not be working correctly. > > the input values are lost because they bound to the component, and if that > component is recreated by the repeater they are then gone. thus the > disappearing values. > > -igor > > > On 4/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote: >> >> >> On my page, I use a DataTable with custom IColumn implementtions that use >> fragments to make the cells editable. If I change that values in the >> cells >> and click submit (which just submits the Form object) then it preoperly >> persists my data and refreshes with the correct data when there are no >> validation problems. If I attempt to submit but there is a validation >> problem, then the DataTable cells reset back to their original >> values. This >> is unlike a TextField that is directly on the Form which would retain the >> last entered value. >> >> I'm trying to understand the difference between the two scenarios. I >> believe it has something to do with DataTable creating new Items on each >> render. I even tried to use ReuseIfModelsEqualStrategy, which I verified >> was returning the the existing object versus creating a new one. But it >> still did not persist the user-entered values, because the model wasn't >> getting updated (as I expected since the validation failed). >> >> I may not fully understand how wicket "redraws" the screen after a >> validation failure in which the components do not update their models, >> yet >> are able to display the last user entered value. Perhaps some insight >> into >> that might make me understand where I've gone wrong. >> >> Chuck >> -- >> View this message in context: >> http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10205480 >> 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/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10206546 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.
Re: [Wicket-user] SLF4J and wicket
why not just make them static? you want the nonstatic loggers so you can get better context, but we dont need better context! for us classname:linenumber is enough. so in the framework we can use the static instances. if a user wants better context then their loggers can be non-static. -igor On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: yeah, so it either more efficient in terms of processing (reusing the member var) or in memory (not keep the member var). Eelco On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: > > but not for Wicket components, an instance log field in Component (or > other base wicket class) > will be a memory slot for every wicket component instance... > > johan > > > On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > Yes, that was my point earlier. Or make it a transient with lazy > > creation as that would be more efficient. > > > > Eelco > > > > > > On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > > > But if static logs are really a problem: > > > http://wiki.apache.org/jakarta-commons/Logging/StaticLog > > > > > > if would do this: > > > > > > private void doSomething() > > > { > > >/// foo > > >LogFactory.getLog(Xxx.class).debug("blaat") > > >// bar > > > } > > > > > > or > > > > > > private void doSomething() > > > { > > >/// foo > > > getLog().debug("blaat"); > > >// bar > > > } > > > > > > private Log getLog() > > > { > > > return LogFactory.getLog(Xxx.class); > > > } > > > > > > > > > On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: > > > > > > > > since when does a logger have state? > > > > I am very interrested to know what it is that a logger isn't > > > > thread safe. > > > > You configure it through the constructor (so i guess assign final > > > > fields) > > > > you don't set any variables after that on it. And you call only > > > > info/error with 1 or to params that it needs to log! > > > > > > > > johan > > > > > > > > > > > > On 4/26/07, Matej Knopp < [EMAIL PROTECTED]> wrote: > > > > > > > > > > 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) ; > > > > > 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
Re: [Wicket-user] SLF4J and wicket
On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: why not just make them static? http://wiki.apache.org/jakarta-commons/Logging/StaticLog - 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] from 1.2.5 to 1.2.6
The answer is yes. igor.vaynberg wrote: > > what does your output markup look like though? did wicket rewrite > css/app.css to /contextpath/css/app.css for you? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Well, I changed imports to links and the same definition in both pages >> works >> well without using ../: >> >> > /> >> > href="css/box.css" /> >> > href="css/cite.css" >> /> >> > href="css/code.css" >> /> >> > href="css/def.css" /> >> > href="css/form.css" >> /> >> > href="css/layout.css" >> /> >> > href="css/layout2c.css" /> >> > href="css/layout3c.css" /> >> > href="css/link.css" >> /> >> > href="css/list.css" >> /> >> > href="css/marker.css" >> /> >> > href="css/menu.css" >> /> >> > href="css/msg.css" /> >> > href="css/page.css" >> /> >> > href="css/section.css" /> >> > href="css/slide.css" >> /> >> > href="css/table.css" >> /> >> >> >> igor.vaynberg wrote: >> > >> > link and import have not changed behavior >> > >> > what has changed is that wicket now always appends a / after the >> servlet >> > mapping, where as before it only did so sometimes. so now it is more >> > consistent but is messing with your context path. >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> I have found out what the problem is: >> >> >> >> In HomePage.html I use: >> >> >> >> > href="css/app.css" >> >> /> >> >> >> >> @import "css/box.css"; >> >> @import "css/cite.css"; >> >> @import "css/code.css"; >> >> @import "css/def.css"; >> >> @import "css/form.css"; >> >> @import "css/layout.css"; >> >> @import "css/layout2c.css"; >> >> @import "css/layout3c.css"; >> >> @import "css/link.css"; >> >> @import "css/list.css"; >> >> @import "css/marker.css"; >> >> @import "css/menu.css"; >> >> @import "css/msg.css"; >> >> @import "css/page.css"; >> >> @import "css/section.css"; >> >> @import "css/slide.css"; >> >> @import "css/table.css"; >> >> >> >> >> >> and it works. >> >> >> >> In the AboutPage.html I use: >> >> >> >> > href="css/app.css" >> >> /> >> >> >> >> @import "../css/box.css"; >> >> @import "../css/cite.css"; >> >> @import "../css/code.css"; >> >> @import "../css/def.css"; >> >> @import "../css/form.css"; >> >> @import "../css/layout.css"; >> >> @import "../css/layout2c.css"; >> >> @import "../css/layout3c.css"; >> >> @import "../css/link.css"; >> >> @import "../css/list.css"; >> >> @import "../css/marker.css"; >> >> @import "../css/menu.css"; >> >> @import "../css/msg.css"; >> >> @import "../css/page.css"; >> >> @import "../css/section.css"; >> >> @import "../css/slide.css"; >> >> @import "../css/table.css"; >> >> >> >> >> >> and it works. >> >> >> >> It seems that link element works as in 1.2.5, but the import element >> has >> >> a >> >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> >> elements. >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > try changing this: >> >> > >> >> > > >> href="css/box.css" >> >> > /> >> >> > >> >> > to >> >> > >> >> > > >> > href="../css/box.css" >> >> > /> >> >> > >> >> > notice the ../ in href. that should fix that. >> >> > >> >> > also note that this isnt the greatest way to include css because it >> >> will >> >> > break if you use a mounted page. >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Sorry, >> >> >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> When the page is displayed there is no CSS formatting for the page. >> In >> >> >> the >> >> >> log there is a warning message: >> >> >> >> >> >> the resource requested by request [method = GET, protocol = >> HTTP/1.1, >> >> >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, >> >> contentType >> >> >> = >> >> >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> >> >> /css/box.css, >> >> >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> >> >> pathTranslated >> >> >> = >> >> >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> >> >> >> >> The translated path is the correct one for the CSS file. >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > is that the 1.2.6 or the 1.2.5 url? >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Yes, it seems that this is the problem: >> >> >> >> >> >> >> >> >> >
[Wicket-user] encoding problem
I've run into a problem with how wicket handles requests in PageParameters. I'm seeing this particular behaviour with BookmarkablePage urls that contain a string with non ascii, utf-8 characters, like this: pages/J%C3%A1nos This doesn't work. The following does: pages/J%E1nos First I thought this is just a simple HttpServletRequest encoding thing, but it turns out it isn't. I've debugged what's going on and I found myself in the following call stack: AbstractRequestTargetUrlCodingStrategy.urlDecode:171 AbstractRequestTargetUrlCodingStrategy.decodeParameters:140 BookmarkablePageRequestTargetUrlCodingStrategy.decode:75 WebRequestCodingStrategy.targetForReques:331 DefaultRequestTargetResolverStrategy.resolve:83 AbstractCompoundRequestCycleProcessor.resolve:48 RequestCycle.step:992 RequestCycle.steps:1084 RequestCycle.request:454 WicketServlet.doGet:219 Here the URLDecoder.decode call gets called with a string that contains no % characters - rather the url parameter's non ascii characters are already decoded to their 8 bit representations. Though I've been using wicket for more than a year now I'm not that into wicket's internals to have a chance to find the bug in a few hours. Should I file a JIRA issue? Thanks Janos - 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 yeah yeah. and this is a problem only for things that are deployed into a SHARED classpath. no body (at least i hope not) is sharing wicket.jar between multiple web applications. so there is no problem. -igor On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > why not just make them static? http://wiki.apache.org/jakarta-commons/Logging/StaticLog - 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] from 1.2.5 to 1.2.6
so it was never the link element that was the problem, it was the @imports because wicket doesnt process those. -igor On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: The answer is yes. igor.vaynberg wrote: > > what does your output markup look like though? did wicket rewrite > css/app.css to /contextpath/css/app.css for you? > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> Well, I changed imports to links and the same definition in both pages >> works >> well without using ../: >> >> > /> >> > href="css/box.css" /> >> > href="css/cite.css" >> /> >> > href="css/code.css" >> /> >> > href="css/def.css" /> >> > href="css/form.css" >> /> >> > href="css/layout.css" >> /> >> > href="css/layout2c.css" /> >> > href="css/layout3c.css" /> >> > href="css/link.css" >> /> >> > href="css/list.css" >> /> >> > href="css/marker.css" >> /> >> > href="css/menu.css" >> /> >> > href="css/msg.css" /> >> > href="css/page.css" >> /> >> > href="css/section.css" /> >> > href="css/slide.css" >> /> >> > href="css/table.css" >> /> >> >> >> igor.vaynberg wrote: >> > >> > link and import have not changed behavior >> > >> > what has changed is that wicket now always appends a / after the >> servlet >> > mapping, where as before it only did so sometimes. so now it is more >> > consistent but is messing with your context path. >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> I have found out what the problem is: >> >> >> >> In HomePage.html I use: >> >> >> >> > href="css/app.css" >> >> /> >> >> >> >> @import "css/box.css"; >> >> @import "css/cite.css"; >> >> @import "css/code.css"; >> >> @import "css/def.css"; >> >> @import "css/form.css"; >> >> @import "css/layout.css"; >> >> @import "css/layout2c.css"; >> >> @import "css/layout3c.css"; >> >> @import "css/link.css"; >> >> @import "css/list.css"; >> >> @import "css/marker.css"; >> >> @import "css/menu.css"; >> >> @import "css/msg.css"; >> >> @import "css/page.css"; >> >> @import "css/section.css"; >> >> @import "css/slide.css"; >> >> @import "css/table.css"; >> >> >> >> >> >> and it works. >> >> >> >> In the AboutPage.html I use: >> >> >> >> > href="css/app.css" >> >> /> >> >> >> >> @import "../css/box.css"; >> >> @import "../css/cite.css"; >> >> @import "../css/code.css"; >> >> @import "../css/def.css"; >> >> @import "../css/form.css"; >> >> @import "../css/layout.css"; >> >> @import "../css/layout2c.css"; >> >> @import "../css/layout3c.css"; >> >> @import "../css/link.css"; >> >> @import "../css/list.css"; >> >> @import "../css/marker.css"; >> >> @import "../css/menu.css"; >> >> @import "../css/msg.css"; >> >> @import "../css/page.css"; >> >> @import "../css/section.css"; >> >> @import "../css/slide.css"; >> >> @import "../css/table.css"; >> >> >> >> >> >> and it works. >> >> >> >> It seems that link element works as in 1.2.5, but the import element >> has >> >> a >> >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> >> elements. >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > try changing this: >> >> > >> >> > > >> href="css/box.css" >> >> > /> >> >> > >> >> > to >> >> > >> >> > > >> > href="../css/box.css" >> >> > /> >> >> > >> >> > notice the ../ in href. that should fix that. >> >> > >> >> > also note that this isnt the greatest way to include css because it >> >> will >> >> > break if you use a mounted page. >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> Sorry, >> >> >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> When the page is displayed there is no CSS formatting for the page. >> In >> >> >> the >> >> >> log there is a warning message: >> >> >> >> >> >> the resource requested by request [method = GET, protocol = >> HTTP/1.1, >> >> >> requestURL = http://localhost:8081/dmWicket/app/css/box.css, >> >> contentType >> >> >> = >> >> >> null, contentLength = -1, contextPath = /dmWicket, pathInfo = >> >> >> /css/box.css, >> >> >> requestURI = /dmWicket/app/css/box.css, servletPath = /app, >> >> >> pathTranslated >> >> >> = >> >> >> D:\software\tomcat6\webapps\dmQuiz-2.0\css\box.css] was not found >> >> >> >> >> >> The translated path is the correct one for the CSS file. >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > is that the 1.2.6 or the 1.2.5 url? >> >> >> > >> >> >> > -igor >> >> >> > >> >>
Re: [Wicket-user] from 1.2.5 to 1.2.6
true Is there a reason why Wicket does not process imports? igor.vaynberg wrote: > > so it was never the link element that was the problem, it was the @imports > because wicket doesnt process those. > > -igor > > > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> > media="screen"/> >> > media="screen"/> >> >> The answer is yes. >> >> >> igor.vaynberg wrote: >> > >> > what does your output markup look like though? did wicket rewrite >> > css/app.css to /contextpath/css/app.css for you? >> > >> > -igor >> > >> > >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Well, I changed imports to links and the same definition in both pages >> >> works >> >> well without using ../: >> >> >> >> > href="css/app.css" >> >> /> >> >> > >> href="css/box.css" /> >> >> > >> href="css/cite.css" >> >> /> >> >> > >> href="css/code.css" >> >> /> >> >> > >> href="css/def.css" /> >> >> > >> href="css/form.css" >> >> /> >> >> > >> href="css/layout.css" >> >> /> >> >> > >> href="css/layout2c.css" /> >> >> > >> href="css/layout3c.css" /> >> >> > >> href="css/link.css" >> >> /> >> >> > >> href="css/list.css" >> >> /> >> >> > >> href="css/marker.css" >> >> /> >> >> > >> href="css/menu.css" >> >> /> >> >> > >> href="css/msg.css" /> >> >> > >> href="css/page.css" >> >> /> >> >> > >> href="css/section.css" /> >> >> > >> href="css/slide.css" >> >> /> >> >> > >> href="css/table.css" >> >> /> >> >> >> >> >> >> igor.vaynberg wrote: >> >> > >> >> > link and import have not changed behavior >> >> > >> >> > what has changed is that wicket now always appends a / after the >> >> servlet >> >> > mapping, where as before it only did so sometimes. so now it is more >> >> > consistent but is messing with your context path. >> >> > >> >> > -igor >> >> > >> >> > >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> I have found out what the problem is: >> >> >> >> >> >> In HomePage.html I use: >> >> >> >> >> >> > >> href="css/app.css" >> >> >> /> >> >> >> >> >> >> @import "css/box.css"; >> >> >> @import "css/cite.css"; >> >> >> @import "css/code.css"; >> >> >> @import "css/def.css"; >> >> >> @import "css/form.css"; >> >> >> @import "css/layout.css"; >> >> >> @import "css/layout2c.css"; >> >> >> @import "css/layout3c.css"; >> >> >> @import "css/link.css"; >> >> >> @import "css/list.css"; >> >> >> @import "css/marker.css"; >> >> >> @import "css/menu.css"; >> >> >> @import "css/msg.css"; >> >> >> @import "css/page.css"; >> >> >> @import "css/section.css"; >> >> >> @import "css/slide.css"; >> >> >> @import "css/table.css"; >> >> >> >> >> >> >> >> >> and it works. >> >> >> >> >> >> In the AboutPage.html I use: >> >> >> >> >> >> > >> href="css/app.css" >> >> >> /> >> >> >> >> >> >> @import "../css/box.css"; >> >> >> @import "../css/cite.css"; >> >> >> @import "../css/code.css"; >> >> >> @import "../css/def.css"; >> >> >> @import "../css/form.css"; >> >> >> @import "../css/layout.css"; >> >> >> @import "../css/layout2c.css"; >> >> >> @import "../css/layout3c.css"; >> >> >> @import "../css/link.css"; >> >> >> @import "../css/list.css"; >> >> >> @import "../css/marker.css"; >> >> >> @import "../css/menu.css"; >> >> >> @import "../css/msg.css"; >> >> >> @import "../css/page.css"; >> >> >> @import "../css/section.css"; >> >> >> @import "../css/slide.css"; >> >> >> @import "../css/table.css"; >> >> >> >> >> >> >> >> >> and it works. >> >> >> >> >> >> It seems that link element works as in 1.2.5, but the import >> element >> >> has >> >> >> a >> >> >> changed behavior in 1.2.6. In 1.2.5 I did not need ../ in import >> >> >> elements. >> >> >> >> >> >> >> >> >> >> >> >> igor.vaynberg wrote: >> >> >> > >> >> >> > try changing this: >> >> >> > >> >> >> > > >> >> href="css/box.css" >> >> >> > /> >> >> >> > >> >> >> > to >> >> >> > >> >> >> > > >> >> > href="../css/box.css" >> >> >> > /> >> >> >> > >> >> >> > notice the ../ in href. that should fix that. >> >> >> > >> >> >> > also note that this isnt the greatest way to include css because >> it >> >> >> will >> >> >> > break if you use a mounted page. >> >> >> > >> >> >> > -igor >> >> >> > >> >> >> > >> >> >> > On 4/26/07, dzenanr <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> >> >> >> >> >> >> Sorry, >> >> >> >> >> >> >> >> It is the 1.2.6 url and the url is: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> http://localhost:8081/dmWicket/app/?wicket:bookmarkablePage=:course.wicket.app.AboutPage >> >> >> >> >> >> >> >> When the page is displayed there is no CSS formatting for the >> page. >> >> In >> >> >> >> the >> >> >
Re: [Wicket-user] SLF4J and wicket
why not just make them static? Earlier this thread: (me) I would prefer to either have log fields as static in components... We were just discussing what people could do if they didn't want those loggers as static variables. Personally, I have no problem with them being static. 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] SLF4J and wicket
what they would do is simple they would do the lazylookup you showed, but instead of using a field they would use the metadata store. that way you get a non-static logger, and do not incur a memory footprint hit. -igor On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: why not just make them static? Earlier this thread: > (me) I would prefer to either have log fields as static in components... We were just discussing what people could do if they didn't want those loggers as static variables. Personally, I have no problem with them being static. 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 - 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] reloading a DataTable after submit with validation error
Here is a quickstart[1] that attempts to illustrate this. Maybe you can tell me where I went wrong. It doesn't use my classes per se, but it does simulate the way in which I construct and use a DataTable. http://www.nabble.com/file/8104/quickstart-datatable.zip quickstart-datatable.zip [1] It is a quickstart minus the libs folder. I am using 1.3 but I haven't yet updated to the latest because I'm waiting for the dust to settle from all of the backports. If this is a problem, I should be able to grab a new jar from your server and modify the quickstart accordingly. Chuck igor.vaynberg wrote: > > your model reuse strategy must not be working correctly. > > the input values are lost because they bound to the component, and if that > component is recreated by the repeater they are then gone. thus the > disappearing values. > > -igor > -- View this message in context: http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10207515 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Best way to model boolean values in a Form
I am experimenting with Wicket to use it for my dissertation. I am developing a basic book library application. I am creating an edit page which edits boolen values of a borrower object (isInDebt, isAccountExpired, etc.). I tried to map it with the following code, which is an inner-class: static public final class EditBorrowerForm extends Form { /** * Constructor * * @param id *id of form * @param book *Book model */ public EditBorrowerForm(final String id, final Borrower borrower) { super(id, new CompoundPropertyModel(borrower)); add(new Label("firstName")); add(new Label("lastName")); add(new Label("email")); // Create a required text field that edits the borrowers's password final TextField password = new TextField("password"); password.setRequired(true); final FormComponentFeedbackBorder passwordFeedback = new FormComponentFeedbackBorder( "passwordFeedback"); add(passwordFeedback); passwordFeedback.add(password); add(new CheckBox("enabled")); add(new CheckBox("accountExpired")); add(new CheckBox("accountLocked")); add(new CheckBox("credentialsExpired")); } /** * Show the resulting valid edit */ public final void onSubmit() { //To do! } } The problem I am finding is that the checkbox component gets it model object value from its corresponding get..() method but I want it to get its value from is...(). Is there a way to change Wicket from getting its is..() method rather then writing a get...() method. Is this a correct approach or is there a better practise? Look forward to your advice, - 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] reloading a DataTable after submit with validation error
Igor Vaynberg wrote: > the model you return from dataprovider has to have its equals and > hashcode implemented, if you want those can forward to the modelobject. If you're using a DatabinderProvider, Chuck, then it's a HibernateObjectModel; I'll add those overrides to it. Something like this came up before and I meant to add them, but it must have slipped through the cracks. Nathan - 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
> what they would do is simple > > they would do the lazylookup you showed, but instead of using a field they > would use the metadata store. > > that way you get a non-static logger, and do not incur a memory footprint > hit. The memory foot print would still be there if you use the Component's meta data. 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] SLF4J and wicket
not really. you would remove the logger in ondetach. it isnt a permanent footprint - that is it doesnt take up a slot in all subclasses. -igor On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > what they would do is simple > > they would do the lazylookup you showed, but instead of using a field they > would use the metadata store. > > that way you get a non-static logger, and do not incur a memory footprint > hit. The memory foot print would still be there if you use the Component's meta data. 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 - 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] encoding problem
* Janos Cserep: > > I've run into a problem with how wicket handles requests in > PageParameters. I'm seeing this particular behaviour with BookmarkablePage > urls that contain a string with non ascii, utf-8 characters, like this: Is it this one? Parameters of nice URL's pages with 'sensitive' characters https://issues.apache.org/jira/browse/WICKET-40 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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 which class is it then bound? we use private static loggers now so they are really bind to the class. But if you are storing them in the meta data then they are not really bind to the class but more the the resulting class/instance so never Component itself. Don't know if that really matters but that would be a difference between een private static log field or private Log getLog() method Besides that the question is how many times for 1 component wold the getLog() be called? if it is just once or twice then don't store it. Just create one But for wicket this is a none issue in my eyes, just private static logs are fine for me. (as long as the logger doesn't keep a reference to the wicket class) johan On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: not really. you would remove the logger in ondetach. it isnt a permanent footprint - that is it doesnt take up a slot in all subclasses. -igor On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > what they would do is simple > > > > they would do the lazylookup you showed, but instead of using a field > they > > would use the metadata store. > > > > that way you get a non-static logger, and do not incur a memory > footprint > > hit. > > The memory foot print would still be there if you use the Component's > meta data. > > 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 > - 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
like i said in my previous response, ditto. for wicket private static is fine. -igor On 4/26/07, Johan Compagner <[EMAIL PROTECTED]> wrote: on which class is it then bound? we use private static loggers now so they are really bind to the class. But if you are storing them in the meta data then they are not really bind to the class but more the the resulting class/instance so never Component itself. Don't know if that really matters but that would be a difference between een private static log field or private Log getLog() method Besides that the question is how many times for 1 component wold the getLog() be called? if it is just once or twice then don't store it. Just create one But for wicket this is a none issue in my eyes, just private static logs are fine for me. (as long as the logger doesn't keep a reference to the wicket class) johan On 4/26/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > not really. you would remove the logger in ondetach. it isnt a permanent > footprint - that is it doesnt take up a slot in all subclasses. > > -igor > > > On 4/26/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > what they would do is simple > > > > > > they would do the lazylookup you showed, but instead of using a > > field they > > > would use the metadata store. > > > > > > that way you get a non-static logger, and do not incur a memory > > footprint > > > hit. > > > > The memory foot print would still be there if you use the Component's > > meta data. > > > > 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 > > > > > > - > 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] form.setVisible(false) possible through an AjaxSubmitButton onSubmit ?
Hi Erik The translation is there : http://zedros.developpez.com/articles/java/wicket/ajax/ The article will be checked by fellow members of developpez.com and then announce on the news of this website. I'll then add it to the wicket. In between, every comment is welcome ;) (or afterwards lol) Best regards, Joseph - 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
great, a neat way to make logging even cheaper... instantiate all the time for each and every message :-) Am 26.04.2007 um 13:28 schrieb Johan Compagner: But if static logs are really a problem: http://wiki.apache.org/jakarta-commons/Logging/StaticLog if would do this: private void doSomething() { /// foo LogFactory.getLog(Xxx.class).debug("blaat") // bar } or private void doSomething() { /// foo getLog().debug("blaat"); // bar } private Log getLog() { return LogFactory.getLog(Xxx.class); } On 4/26/07, Johan Compagner < [EMAIL PROTECTED]> wrote: since when does a logger have state? I am very interrested to know what it is that a logger isn't thread safe. You configure it through the constructor (so i guess assign final fields) you don't set any variables after that on it. And you call only info/error with 1 or to params that it needs to log! johan On 4/26/07, Matej Knopp < [EMAIL PROTECTED]> wrote: 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) ; 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. (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 serial
Re: [Wicket-user] SLF4J and wicket
great, a neat way to make logging even cheaper... instantiate all the time for each and every message :-) It doesn't get instantiated every time. For instance Log4jLoggerFactory creates one instance lazily and then does a map lookup. Of course, it is still more expensive then just referring to a static var, certainly for 'just logging'. But otoh it seems unlikely that this will every be a real problem in web applications. 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] reloading a DataTable after submit with validation error
update wicket and it will work -igor On 4/26/07, ChuckDeal <[EMAIL PROTECTED]> wrote: Here is a quickstart[1] that attempts to illustrate this. Maybe you can tell me where I went wrong. It doesn't use my classes per se, but it does simulate the way in which I construct and use a DataTable. http://www.nabble.com/file/8104/quickstart-datatable.zip quickstart-datatable.zip [1] It is a quickstart minus the libs folder. I am using 1.3 but I haven't yet updated to the latest because I'm waiting for the dust to settle from all of the backports. If this is a problem, I should be able to grab a new jar from your server and modify the quickstart accordingly. Chuck igor.vaynberg wrote: > > your model reuse strategy must not be working correctly. > > the input values are lost because they bound to the component, and if that > component is recreated by the repeater they are then gone. thus the > disappearing values. > > -igor > -- View this message in context: http://www.nabble.com/reloading-a-DataTable-after-submit-with-validation-error-tf3653176.html#a10207515 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
[Wicket-user] I cannot add ajax behavior to an AutoCompleteTextField
Hi everyone! I'm having trouble with an AutoCompleteTextField. I want to add an ajax behavior to it (specifically, for "onblur") like can I do with other wicket components, but somehow it doesn't work. I can add an AjaxFormComponentUpdatingBehavior to a TextField and it works. I cannot add it to an AutoCompleteTextField. The Ajax debug console shows no errors. It seems that the autocomplete has its own hardcoded behavior which cannot be overridden, if I understood the code correctly. Is there any way of adding other behaviors, specifically "onblur"? I'm using Wicket 1.2.4. Thanks! --Andrés - 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
Unless I am missing something, why not do it like this: private transient Logger logger; private Logger getLogger() { if (logger == null) { logger = LoggerFactory.getLogger(Foo.class); } } public void myMethod() { ... getLogger().debug("Something here"); } On Thu, 2007-04-26 at 13:55 -0700, Eelco Hillenius wrote: > > > great, a neat way to make logging even cheaper... > > > instantiate all the time for each and every message :-) > > It doesn't get instantiated every time. For instance > Log4jLoggerFactory creates one instance lazily and then does a map > lookup. Of course, it is still more expensive then just referring to a > static var, certainly for 'just logging'. But otoh it seems unlikely > that this will every be a real problem in web applications. > > 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 -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP signature.asc Description: This is a digitally signed message part - 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
because if we put that into Component for example, all components will have a logger take up a memory slot -igor On 4/26/07, Philip A. Chapman <[EMAIL PROTECTED]> wrote: Unless I am missing something, why not do it like this: private transient Logger logger; private Logger getLogger() { if (logger == null) { logger = LoggerFactory.getLogger(Foo.class); } } public void myMethod() { ... getLogger().debug("Something here"); } On Thu, 2007-04-26 at 13:55 -0700, Eelco Hillenius wrote: great, a neat way to make logging even cheaper... instantiate all the time for each and every message :-) It doesn't get instantiated every time. For instance Log4jLoggerFactory creates one instance lazily and then does a map lookup. Of course, it is still more expensive then just referring to a static var, certainly for 'just logging'. But otoh it seems unlikely that this will every be a real problem in web applications. Eelco -This SF.net email is sponsored by DB2 ExpressDownload DB2 Express C - the FREE version of DB2 express and takecontrol 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 -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP - 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] Can Wicket's CheckBoxMultipleChoice model a hashset?
I am trying to create an edit form which models the hashset of roles in a CheckBoxMultipleChoice; so many roles can be selected and displayed. How can I achieve this? Here is the class that that I am modelling and the EditForm page. *Borrower.java** package libhib.model; import org.acegisecurity.GrantedAuthority; import org.acegisecurity.userdetails.UserDetails; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import java.io.Serializable; import java.math.BigDecimal; import java.util.HashSet; import java.util.Set; /** * User: jamesperry * Date: 20-Mar-2007 * Time: 11:48:06 */ public class Borrower implements Serializable, UserDetails { private Long id; private int version; private String firstName; private String lastName; private String password; private String confirmPassword; private String address; private String email; private BigDecimal debt; private Set roles = new HashSet(); private boolean enabled = true; private boolean accountExpired = false; private boolean accountLocked = false; private boolean credentialsExpired = false; // contains the information about the book copies currently on loan to this Borrower private Set borrows = new HashSet(); private Set reservations = new HashSet(); public Borrower() { } public Borrower(String firstName, String lastName, String password, String address, String email) { assert email != null; this.firstName = firstName; this.lastName = lastName; this.password = password; this.address = address; this.email = email; this.debt = new BigDecimal(0); } public Long getId() { return id; } @SuppressWarnings({"UNUSED_SYMBOL"}) private void setId(Long id) { this.id = id; } public int getVersion() { return version; } public void setVersion(int version) { this.version = version; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public BigDecimal getDebt() { return debt; } public void setDebt(BigDecimal debt) { this.debt = debt; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Set getBorrows() { return borrows; } public void setBorrows(Set borrows) { this.borrows = borrows; } public Set getReservations() { return reservations; } private void setReservations(Set reservations) { this.reservations = reservations; } public void addReservation(Reservation rsv) { reservations.add(rsv); } public void removeReservation(Reservation rsv) { reservations.remove(rsv); } public void addBorrow(Borrow bor) { borrows.add(bor); } public void removeBorrow(Borrow bor) { borrows.remove(bor); } public String getPassword() { return password; } public void setPassword(String passworld) { this.password = passworld; } public void addRole(Role role) { this.getRoles().add(role); role.getUsers().add(this); } public GrantedAuthority[] getAuthorities() { return (GrantedAuthority[]) getRoles().toArray(new GrantedAuthority[0]); } public String getUsername() { return email; } public boolean isEnabled() { return enabled; } public boolean isAccountExpired() { return accountExpired; } public boolean isAccountNonExpired() { return !isAccountExpired(); } public boolean isAccountLocked() { return accountLocked; } public boolean isAccountNonLocked() { return !isAccountLocked(); } public boolean isCredentialsExpired() { return credentialsExpired; } public boolean isCredentialsNonExpired() { return !credentialsExpired; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public boolean getEnabled() { return this.enabled; } public void setAccountExpired(boolean accountExpired) { this.accountExpired = accountExpired; } public boolean getAccountExpired() { return this.accountExpired; } public void setAccountLocked(boolean accountLocked) { this.accountLocked = accountLocked; } public boolean getAccountLocked() { return this.accountLocked;
[Wicket-user] ModalWindow relative positioning
Hello, We've run into a small issue tare trying to position a ModalWindow on the screen relative to the link that spawned it. Does anyone know of a solution for this? Thanks in advance Reuben - 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] [tc-dev] Just a heads up on wicket...
Thanks a lot Steven. Forwarded this to Wicket users for anyone who is interested in playing with it. Eelco On 4/26/07, Steven Harris <[EMAIL PROTECTED]> wrote: > Our first version of a wicket config module is now in trunk (will be in > tomorrow's nightly). we would > love feedback so if anyone gets some time please give it a try. > > Cheers, > Steven Harris > > Director of Engineering > [EMAIL PROTECTED] > > > > > ___ > tc-dev mailing list > [EMAIL PROTECTED] > http://lists.terracotta.org/mailman/listinfo/tc-dev > > - 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] Form.loadPersistentFormComponentValues is called too late?
It makes sense to me to do this. Does anyone object? Eelco On 4/25/07, Peter Ertl <[EMAIL PROTECTED]> wrote: > 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 > - 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
Beg�� example about tree as navigation
Can someone share the code for me? I couldn't get the example from internet. thanks~ - 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] Best way to model boolean values in a Form
I suggest you take a look at this thread for ideas: http://www.nabble.com/Design-questions% 3A-Use-of-controllers-and-wicket-models-tf3373279.html#a9510863 There may be simpler threads, but there are some gems in here that will help you, I'm sure. Cheers, Dave On Thu, 2007-04-26 at 20:56 +0100, James Perry wrote: > I am experimenting with Wicket to use it for my dissertation. I am > developing a basic book library application. I am creating an edit > page which edits boolen values of a borrower object (isInDebt, > isAccountExpired, etc.). I tried to map it with the following code, > which is an inner-class: > > static public final class EditBorrowerForm extends Form > { > /** > * Constructor > * > * @param id > *id of form > * @param book > *Book model > */ > public EditBorrowerForm(final String id, final Borrower borrower) > { > super(id, new CompoundPropertyModel(borrower)); > > add(new Label("firstName")); > add(new Label("lastName")); > add(new Label("email")); > > // Create a required text field that edits the borrowers's > password > final TextField password = new TextField("password"); > password.setRequired(true); > final FormComponentFeedbackBorder passwordFeedback = new > FormComponentFeedbackBorder( > "passwordFeedback"); > add(passwordFeedback); > passwordFeedback.add(password); > > add(new CheckBox("enabled")); > add(new CheckBox("accountExpired")); > add(new CheckBox("accountLocked")); > add(new CheckBox("credentialsExpired")); > } > > /** > * Show the resulting valid edit > */ > public final void onSubmit() > { > //To do! > } > } > > The problem I am finding is that the checkbox component gets it model > object value from its corresponding get..() method but I want it to > get its value from is...(). Is there a way to change Wicket from > getting its is..() method rather then writing a get...() method. Is > this a correct approach or is there a better practise? > > Look forward to your advice, > > - 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
[Wicket-user] Contributing to wicket-contrib-yui
Is this the right place to post for contrib-related stuff?? I noticed that the yui code used in wicket-contrib-yui is very old. Current version is 2.2.2, while wicket seems to be using 0.11.4. I'm still in the investigation stage, but I was thinking about having the yahoo code served by yahoo instead, so "hosting" the code as a wicket package would not be required. Another advantage: unless there are drastic changes, normally it should be sufficient to simply change the version number, since the remote code is referenced by a URL such as: http://yui.yahooapis.com/2.2.2/build/container/assets/container.cs Should I add this "feature" to the wicket-contrib? Or would this just get in the way, so I should just go it on my own? Cheers, Dave - 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] Formatting non-html templates
Hello! I have overridden Page with PlainTextPage that outputs text/plain. I'm wondering: what's the best way to be able to add the plain-text equivalent of panels to my template? wicket-contrib-velocity seems to be no good, since it appears to be for html templates. Should I implement my own velocity stuff, or is there a better way? Maybe something like this already exists, but I just haven't seen it? Thanks! Dave - 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] Contributing to wicket-contrib-yui
> Is this the right place to post for contrib-related stuff?? Sure. > I noticed that the yui code used in wicket-contrib-yui is very old. > Current version is 2.2.2, while wicket seems to be using 0.11.4. Yeah, it's been a while since anyone seriously worked on that. > I'm still in the investigation stage, but I was thinking about having > the yahoo code served by yahoo instead, so "hosting" the code as a > wicket package would not be required. > > Another advantage: unless there are drastic changes, normally it should > be sufficient to simply change the version number, since the remote code > is referenced by a URL such as: > > http://yui.yahooapis.com/2.2.2/build/container/assets/container.cs > > Should I add this "feature" to the wicket-contrib? Or would this just > get in the way, so I should just go it on my own? It's a good idea with the advantages you mentioned. One disadvantage however is that you'll always need to be online, and you are dependent for your own application on other servers being available (Yahoo). Personaly, I wouldn't like that, and I also think this works better for public sites than internal/ intranet sites. It would be cool if people took up the yui project and did something nice with it. I can think of a lot of nice goodies, and I think the current code can use a lot of cleanup (never really got a decent code review), but I simply lack the time. A new date picker based on YUI is now in wicket-datetime, but other widgets are begging to be developed by someone. David, if you send us your sourceforge id, (not the literal id, but the name, like mine is eelco12), we can give you commit rights, and you can decide for yourself whether and when you play with it. Cheers, 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] Formatting non-html templates
> Hello! > > I have overridden Page with PlainTextPage that outputs text/plain. Hmmm. Does that work? Wicket still needs tags to operate... > I'm wondering: what's the best way to be able to add the plain-text > equivalent of panels to my template? Resources. See for instance TextTemplate and friend. > wicket-contrib-velocity seems to be no good, since it appears to be for > html templates. Velocity can be used for anything really. But it only makes sense to use Velocity over e.g. TextTemplate or StringResourceStream or whatever if you need to do some (semi) complex rendering, with loops and conditionals and stuff. > Should I implement my own velocity stuff, or is there a better way? > > Maybe something like this already exists, but I just haven't seen it? Entirely depends on what exactly you need. I think you should play around with resources a bit. 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] How to force WicketTester object to type cast in other Application object
Hi Igor, Thanks for your reply. Here is the thing: (using wicket 1.2.5) I could not find the constructor that takes the "Application" object. So I tried the following. tester = new WicketTester(); tester.set(new xyzApplication()); But this gives me the following stack trace. wicket.WicketRuntimeException: Use Application.init() method for configuring your application object at wicket.Application.getSettings(Application.java:606) at wicket.Application.getDebugSettings(Application.java:449) at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:51) at wicket.protocol.http.AbstractHttpSessionStore.bind(AbstractHttpSessionStore.java:165) at wicket.protocol.http.MockWebApplication.setupRequestAndResponse(MockWebApplication.java:411) at wicket.util.tester.WicketTester.startPage(WicketTester.java:282) at com.xxx.abc.wicket.pages.sections.TestDefaultHomePage.setUp(TestDefaultHomePage.java:23) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Can you please suggest. Also is there any place where i could find some wicketTester samples. That would surely be helpfull to the community. I would like to thank you for an amazing framework "WICKET" :) Thanks & Regards, Ravi Gidwani. igor.vaynberg wrote: > > myapplication app=nnew myapplication(); > wickettester tester=new wicketteseter(app); > > -igor > > > On 4/26/07, Akshat <[EMAIL PROTECTED]> wrote: >> >> >> package com.xyz.xyzcom.wicket.pages.sections; >> >> import com.xyz.xyzcom.wicket.pages.DefaultxyzPage; >> >> public class DefaultHomePage extends DefaultxyzPage { >> >> >>public static final String HOME = "home"; >> >> public String getSection() { >> return HOME; >> } >> >> public String getTitle() { >> return "xyz Home"; >> } >> >> } >> >> On testing the above code the test case gives following error: -- The >> stack >> trcae of the test code is given below >> >> package com.xyz.xyzcom.wicket.pages.sections; >> import junit.framework.TestCase; >> import wicket.util.tester.WicketTester; >> import com.xyz.xyzcom.wicket.xyzApplication; >> import com.xyz.xyzcom.wicket.pages.Home; >> >> public class TestDefaultHomePage extends TestCase{ >> private WicketTester tester; >> public TestDefaultHomePage(){ >> super ("Test DefaultHomePage class"); >> } >> protected void setUp() >> { >> tester = new WicketTester(); >> >> } >> >> public void testGetTitle(){ >> >> tester.startPage(DefaultHomePage.class); >> tester.assertRenderedPage(DefaultHomePage.class); >> >> java.lang.ClassCastException: wicket.util.tester.WicketTester >> at com.xyz.xyzcom.wicket.xyzApplication.get(xyzApplication.java >> :68) >> at >> com.xyz.xyzcom.wicket.pages.sections.TestDefaultHomePage.setUp( >> TestDefaultHomePage.java:21) >> at junit.framework.TestCase.runBare(TestCase.java:125) >> at junit.framework.TestResult$1.protect(TestResult.java:106) >> at junit.framework.TestResult.runProtected(TestResult.java:124) >> at junit.framework.TestResult.run(TestResult.java:109) >> at junit.framework.TestCase.run(TestCase.java:118) >> at junit.framework.TestSuite.runTest(TestSuite.java:208) >> at junit.framework.TestSuite.run(TestSuite.java:203) >> at >> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run( >> JUnit3TestReference.java:128) >> at >> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java >> :38) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( >> RemoteTestRunner.java:460) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( >> RemoteTestRunner.java:673) >> at >> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run( >> RemoteTestRunne
Re: [Wicket-user] Contributing to wicket-contrib-yui
> David, if you send us your sourceforge id, (not the literal id, but > the name, like mine is eelco12), we can give you commit rights, and > you can decide for yourself whether and when you play with it. My id = dleangen Thanks, Eelco! Dave - 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] Formatting non-html templates
Just to be sure we're talking about the same thing here... ;-) > > I have overridden Page with PlainTextPage that outputs text/plain. > > Hmmm. Does that work? Wicket still needs tags to operate... Since there's so much "nice stuff" already available through Wicket and my Wicket framework is already all set up, I was thinking of using Wicket to provide access to text-only resources (and eventually others, too). For example, I want to read in some page parameters and, based on those parameters, directly return a page of mime-type "text/plain" with some strictly text-only output (i.e. no tags). In other words, this is accessed directly from the outside as a url, preferably mounted as a "nice/pretty url". > > I'm wondering: what's the best way to be able to add the plain-text > > equivalent of panels to my template? > > Resources. See for instance TextTemplate and friend. I took a quick look... but aren't resources used internally by wicket for embedding into an html page? If so, it doesn't sound like this would work for what I'm intending... Or maybe I just don't see how to access the resource via a url to accomplish what I'm after. Cheers, Dave - 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] Formatting non-html templates
You know that you can remove all tag from output, do you? To remove is simply a matter of settings and all other tags (e.g. ) can be "removed" by subclassing onComponentTag and not output anything. Juergen On 4/27/07, David Leangen <[EMAIL PROTECTED]> wrote: > Just to be sure we're talking about the same thing here... ;-) > > > > I have overridden Page with PlainTextPage that outputs text/plain. > > > > Hmmm. Does that work? Wicket still needs tags to operate... > > Since there's so much "nice stuff" already available through Wicket and > my Wicket framework is already all set up, I was thinking of using > Wicket to provide access to text-only resources (and eventually others, > too). > > For example, I want to read in some page parameters and, based on those > parameters, directly return a page of mime-type "text/plain" with some > strictly text-only output (i.e. no tags). > > In other words, this is accessed directly from the outside as a url, > preferably mounted as a "nice/pretty url". > > > > > I'm wondering: what's the best way to be able to add the plain-text > > > equivalent of panels to my template? > > > > Resources. See for instance TextTemplate and friend. > > I took a quick look... but aren't resources used internally by wicket > for embedding into an html page? If so, it doesn't sound like this would > work for what I'm intending... > > Or maybe I just don't see how to access the resource via a url to > accomplish what I'm after. > > > Cheers, > Dave > > > > > - > 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] Contributing to wicket-contrib-yui
I also hope that it could be a wicket package. I don't want to be dependent on the hosting. I did some work on the package but unfortunately could not complete it to what we wanted and it's been there for a while. josh On 4/27/07, David Leangen <[EMAIL PROTECTED]> wrote: > David, if you send us your sourceforge id, (not the literal id, but > the name, like mine is eelco12), we can give you commit rights, and > you can decide for yourself whether and when you play with it. My id = dleangen Thanks, Eelco! Dave - 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] Formatting non-html templates
On Fri, 2007-04-27 at 07:59 +0200, Juergen Donnerstag wrote: > You know that you can remove all tag from output, do you? To remove > is simply a matter of settings and all other tags (e.g. > ) can be "removed" by subclassing onComponentTag > and not output anything. Sure, I guess that would work for embedding panels into the text-only page. However, the body of the text must not have any tags and the mime-type header must be "text/plain". So, subclassing WebPage would not work, and even if it did, it seems to be that it would be a bad hack that breaks the wicket model. I am therefore subclassing Page with a PlainTextPage class, which seems to be more appropriate. Trying what you suggest above gives me: java.text.ParseException: Malformed tag My ".plain" file is of the form: ** test plain text goes here ** If I try to insert a component, I get the above error. I tried with this in my java file: add( new ExternalLink( "test", "test.html" ) ); Cheers, Dave - 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] Contributing to wicket-contrib-yui
On Fri, 2007-04-27 at 14:13 +0800, Joshua Lim wrote: > I also hope that it could be a wicket package. I don't want to be > dependent on the hosting. What about having the option to do either one? - 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] Formatting non-html templates
Ok, my bad. The error had nothing to do with what you suggested. I'm playing around with all this now. Thanks for the tips! On Fri, 2007-04-27 at 15:09 +0900, David Leangen wrote: > On Fri, 2007-04-27 at 07:59 +0200, Juergen Donnerstag wrote: > > You know that you can remove all tag from output, do you? To remove > > is simply a matter of settings and all other tags (e.g. > > ) can be "removed" by subclassing onComponentTag > > and not output anything. > > Sure, I guess that would work for embedding panels into the text-only > page. > > However, the body of the text must not have any tags and the mime-type > header must be "text/plain". > > So, subclassing WebPage would not work, and even if it did, it seems to > be that it would be a bad hack that breaks the wicket model. > > I am therefore subclassing Page with a PlainTextPage class, which seems > to be more appropriate. > > Trying what you suggest above gives me: > > java.text.ParseException: Malformed tag > > My ".plain" file is of the form: > > ** > test > plain text goes here > ** > > If I try to insert a component, I get the above error. I tried with this > in my java file: > > add( new ExternalLink( "test", "test.html" ) ); > > > Cheers, > Dave > > > > > > - > 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] Formatting non-html templates
> > On Fri, 2007-04-27 at 07:59 +0200, Juergen Donnerstag wrote: > > > You know that you can remove all tag from output, do you? To remove > > > is simply a matter of settings and all other tags (e.g. > > > ) can be "removed" by subclassing onComponentTag > > > and not output anything. This approach does not work, since wicket must output some kind of tag. Even when setting getMarkupSettings().setStripWicketTags( true ); and when @Overiding on ComponentTag so it doesn't output anything, wicket still needs to output SOMETHING. For example, with the above settings, if I try to add a label using this template: test wicket will output this: test It looks like Eelco's suggesting of using TextTemplate is the way to go. I just need to figure out how to serve it the way I want. Cheers, Dave - 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