Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend
We had to go back to beta2 because of this. It just hits us in too many places :-( Ari S. - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 12:55 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Hi, What exactly do you mean. Inheritance for Pages is still supported. There is a simple example at http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip trying to view TestExtendedPage2 with 1.2-beta3: Caused by: wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315) at wicket.markup.MergedMarkup.init(MergedMarkup.java:50) at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java:440) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:775) But the same code works perfectly with beta2. It seems that just simple markup inheritance is not eought to trigger the problem, there must be another class which is derived from class using markup inheritance (ie. in the example, TestExtendPage works, TestExtendedPage2 doesn't). Like with the other issue, I always appreciate simple unit test to verify it and to add it to the existing ones. I'm very sorry for not providing these examples as junit test cases. Getting more familiar with junit tests is on my to-do list, but currently I just cannot find time for it. Our applications are all quite large so I cannot directly post parts of them - because of this I always ask if the problem would already be known before building a simple example of the problem. What makes me a little worry (and sad) is that we have plenty of unit tests for headers and inheritance and I don't remember I changed the expected output, but still there are quite some issues poping up with it currently. So, junit tests are more than welcome. I understand this. If I promise that I'll start making junit test cases about my problems during next summer could you check these two problems with the example applications I provided :) Ari S. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There seems to be also problems if wicket:child/ is used in page's html directly ie. in beta2 I was able to use markup inheritance on page level, but not in beta3. Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 9:41 AM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Thanks. I'll check it out. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There is a simple example in http://download.syncrontech.com/public/wicketheadproblem.zip Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, April 04, 2006 3:02 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Note that wicket:head MUST be before body, /head, wicket:panel, wicket:border and wicket:extend. Unfortunately no error message is thrown yet. Its currently only my laptop. I need to test it further before committing. If that is not the case in your example, please send me a stripped down version of the page and panels etc preferably as junit test case like in src/test Juergen On 4/4/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, We just updates from 1.2 beta2 to beta3 and noticted that some our components using wicket:head stuff to add things to page's head no longer work. Closer examination shows that those components are also using wicket:extend tags. Things work if we put an empty wicket:extend/wicket:extend to base panel's html file - after that stuff from derived panel's wicket:head section appears on page. Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking
Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend
beta 4 or rc1 will solve this.You can check out the new improved stuff already from svn trunk if you wish.Building a wicket distribution is a matter of mvn package :-)Martijn On 4/10/06, Ari Suutari [EMAIL PROTECTED] wrote: We had to go back to beta2 because of this. It just hits us in too many places :-(Ari S.- Original Message -From: Ari Suutari [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.netSent: Wednesday, April 05, 2006 12:55 PMSubject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Hi, What exactly do you mean. Inheritance for Pages is still supported.There is a simple example at http://download.syncrontech.com/public/wicketpageinheritanceproblem.ziptrying to view TestExtendedPage2 with 1.2-beta3: Caused by: wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315) at wicket.markup.MergedMarkup.init(MergedMarkup.java:50) at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java:440) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:312) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java :189) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:775)But the same code works perfectly with beta2. It seems that just simple markup inheritance is not eought to trigger the problem,there must be another class which is derived from class usingmarkup inheritance (ie. in the example, TestExtendPage works, TestExtendedPage2 doesn't). Like with the other issue, I always appreciate simple unit test to verify it and to add it to the existing ones.I'm very sorry for not providing these examples as junit test cases. Getting more familiar with junit tests is on my to-do list, but currentlyI just cannot find time for it. Our applications are all quite large so I cannotdirectly post parts of them - because of this I always ask if the problem would already be known before building a simple exampleof the problem. What makes me a little worry (and sad) is that we have plenty of unit tests for headers and inheritance and I don't remember I changed the expected output, but still there are quite some issues poping up with it currently. So, junit tests are more than welcome.I understand this. If I promise that I'll start making junit test cases about my problems during next summer could youcheck these two problems with the example applicationsI provided :)Ari S. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There seems to be also problems if wicket:child/ is used in page's html directly ie. in beta2 I was able to use markup inheritance on page level, but not in beta3.Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 9:41 AM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Thanks. I'll check it out. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There is a simple example in http://download.syncrontech.com/public/wicketheadproblem.zip Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, April 04, 2006 3:02 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Note that wicket:head MUST be before body, /head, wicket:panel, wicket:border and wicket:extend. Unfortunately no error message is thrown yet. Its currently only my laptop. I need to test it further before committing. If that is not the case in your example, please send me a stripped down version of the page and panels etc preferably as junit test case like in src/test Juergen On 4/4/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, We just updates from 1.2 beta2 to beta3 and noticted that some our components using wicket:head stuff to add things to page's head no longer work. Closer examination shows that those components are also using wicket:extend tags. Things work if we put an empty wicket:extend/wicket:extend to base panel's html file - after that stuff from derived panel's wicket:head section appears on page.Ari S. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Check disabled
do you see disable=disable in the html that is generated for disabled checkboxes?-IgorOn 4/9/06, R.A [EMAIL PROTECTED] wrote:Hi.I create a CheckGroup dynamically using GridView. In the GridView, Checks are populated.I would like to enabled or disabled the Checks by conditions as follows.Check check = new Check(check, item.getModel());item.add(activ);if (...) { check.setEnabled(false);}But as matching the condition, the Check is not disabled.Can not Check be disabled?Regars,R.A--View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3836170Sent from the Wicket - User forum at Nabble.com.--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Check disabled
Hi Igor. No, I can not see disable=disable in the html. I wrote System.out.println in the poplulateItem method. Check check = new Check(check, item.getModel()); item.add(activ); if (...) { check.setEnabled(false); } System.out.println(check.isEnabled()); Some check.isEnabled() is false, but all Checks is active in the html. Regars, R.A -- View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3836979 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend
Hi, beta 4 or rc1 will solve this. Great ! You can check out the new improved stuff already from svn trunk if you wish. Building a wicket distribution is a matter of mvn package :-) Yes, I know and I used to build our wicket jars locally, but when beta versions started being available I decided to use them instead (because I thought it would be easier to communicate about possible problems if we are working on a known state/version of wicket). Ari S. On 4/10/06, Ari Suutari [EMAIL PROTECTED] wrote: We had to go back to beta2 because of this. It just hits us in too many places :-( Ari S. - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 12:55 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Hi, What exactly do you mean. Inheritance for Pages is still supported. There is a simple example at http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip trying to view TestExtendedPage2 with 1.2-beta3: Caused by: wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315) at wicket.markup.MergedMarkup.init(MergedMarkup.java:50) at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java :440) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:248) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( MarkupCache.java:312) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189) at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:105) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java :775) But the same code works perfectly with beta2. It seems that just simple markup inheritance is not eought to trigger the problem, there must be another class which is derived from class using markup inheritance (ie. in the example, TestExtendPage works, TestExtendedPage2 doesn't). Like with the other issue, I always appreciate simple unit test to verify it and to add it to the existing ones. I'm very sorry for not providing these examples as junit test cases. Getting more familiar with junit tests is on my to-do list, but currently I just cannot find time for it. Our applications are all quite large so I cannot directly post parts of them - because of this I always ask if the problem would already be known before building a simple example of the problem. What makes me a little worry (and sad) is that we have plenty of unit tests for headers and inheritance and I don't remember I changed the expected output, but still there are quite some issues poping up with it currently. So, junit tests are more than welcome. I understand this. If I promise that I'll start making junit test cases about my problems during next summer could you check these two problems with the example applications I provided :) Ari S. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There seems to be also problems if wicket:child/ is used in page's html directly ie. in beta2 I was able to use markup inheritance on page level, but not in beta3. Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 9:41 AM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Thanks. I'll check it out. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There is a simple example in http://download.syncrontech.com/public/wicketheadproblem.zip Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, April 04, 2006 3:02 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Note that wicket:head MUST be before body, /head, wicket:panel, wicket:border and wicket:extend. Unfortunately no error message is thrown yet. Its currently only my laptop. I need to test it further before committing. If that is not the case in your example, please send me a stripped down version of the page and panels etc preferably as junit test case like in src/test Juergen On 4/4/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi, We just updates from 1.2 beta2 to beta3 and noticted that some our components using wicket:head stuff to add things to page's head no longer work. Closer examination shows that those components are also using wicket:extend tags. Things work if we put an empty wicket:extend/wicket:extend to base panel's html file - after that stuff from derived panel's wicket:head section appears on page. Ari S.
Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend
True,It is in the plans to release the next version tomorrow evening. This way you can see if it is worth doing it yourself or wait for our build.MartijnOn 4/10/06, Ari Suutari [EMAIL PROTECTED] wrote: Hi,beta 4 or rc1 will solve this.Great !You can check out the new improved stuff already from svn trunk if you wish.Building a wicket distribution is a matter of mvn package :-) Yes, I know and I used to build our wicket jars locally, but when beta versionsstarted being available I decided to use them instead (because I thought it wouldbe easier to communicate about possible problems if we are working ona known state/version of wicket).Ari S.On 4/10/06, Ari Suutari [EMAIL PROTECTED] wrote: We had to go back to beta2 because of this. It just hits us in too many places :-( Ari S. - Original Message - From: Ari Suutari [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 12:55 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Hi, What exactly do you mean. Inheritance for Pages is still supported. There is a simple example at http://download.syncrontech.com/public/wicketpageinheritanceproblem.zip trying to view TestExtendedPage2 with 1.2-beta3: Caused by: wicket.WicketRuntimeException: Expected to find wicket:child/ in base markup at wicket.markup.MergedMarkup.merge(MergedMarkup.java:315) at wicket.markup.MergedMarkup.init(MergedMarkup.java:50) at wicket.markup.MarkupCache.checkForMarkupInheritance(MarkupCache.java :440) at wicket.markup.MarkupCache.loadMarkup(MarkupCache.java :248) at wicket.markup.MarkupCache.loadMarkupAndWatchForChanges( MarkupCache.java:312) at wicket.markup.MarkupCache.getMarkup(MarkupCache.java:189) at wicket.markup.MarkupCache.getMarkupStream (MarkupCache.java:105) at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java :775) But the same code works perfectly with beta2. It seems that just simple markup inheritance is not eought to trigger the problem, there must be another class which is derived from class using markup inheritance (ie. in the example, TestExtendPage works, TestExtendedPage2 doesn't). Like with the other issue, I always appreciate simple unit test to verify it and to add it to the existing ones. I'm very sorry for not providing these examples as junit test cases. Getting more familiar with junit tests is on my to-do list, but currently I just cannot find time for it. Our applications are all quite large so I cannot directly post parts of them - because of this I always ask if the problem would already be known before building a simple example of the problem. What makes me a little worry (and sad) is that we have plenty of unit tests for headers and inheritance and I don't remember I changed the expected output, but still there are quite some issues poping up with it currently. So, junit tests are more than welcome. I understand this. If I promise that I'll start making junit test cases about my problems during next summer could you check these two problems with the example applications I provided :) Ari S. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There seems to be also problems if wicket:child/ is used in page's html directly ie. in beta2 I was able to use markup inheritance on page level, but not in beta3. Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, April 05, 2006 9:41 AM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extend Thanks. I'll check it out. Juergen On 4/5/06, Ari Suutari [EMAIL PROTECTED] wrote: There is a simple example in http://download.syncrontech.com/public/wicketheadproblem.zip Ari S. - Original Message - From: Juergen Donnerstag [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Tuesday, April 04, 2006 3:02 PM Subject: Re: [Wicket-user] update from beta2 to beta3 broke wicket:head in context of wicket:extendNote that wicket:head MUST be before body, /head, wicket:panel, wicket:border and wicket:extend. Unfortunately noerror message is thrown yet. Its currently only my laptop. I need totest it further before committing. If that is not the case in your example, please send me a stripped down version of the page and panels etc preferably as junit test caselike in src/test Juergen On 4/4/06, Ari Suutari [EMAIL PROTECTED] wrote:Hi, We just updates from 1.2 beta2 to beta3 and noticted thatsome our components using wicket:head stuff to add things to page's head no longer work. Closer examination shows that thosecomponents are also using wicket:extend tags. Things work if we put an empty wicket:extend/wicket:extendto base panel's html file - after that stuff from derived panel's wicket:head section
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
I also don't use WebTools (if i use it is is purely for the xml/html editors if i install it)I still think webtools is much to bloated. They should contribute there editors to the core of eclipse so that eclipse has nice editors for the basic types. Then i don't have to install webtools at all.For starting tomcat and debugging webapps i use the Sysdeo plugin. Which is easy to use (in my eyes) and does it 'right' (compared to the jetty plugin ;) )johan On 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote: Hmm...not familiar but it sounds like a beginner might struggle w/ something like that? I could be wrong. The webtools platform was brutally poor until recently when they managed to stabilize it...I was actually impressed the last time I test-drove it. I'll have to check out Merve. Is it simply a plugin that deploys to tomcat? I'm using a lot of Wicket + EJB3 on JBoss 4 these days (zen, if you ask me.) I've been using Eclipse 3.1.2 MyEclipse 4.1...couldn't be happier.On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Personally, I prefer vanilla Eclipse 3.2, XMLBuddy and the Merve plugin (very flakey, but it works well once you figure out its idiosyncrasies). DanielOn 4/9/06, Vincent Jenks [EMAIL PROTECTED] wrote: That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.) There's a Wicket book on the way from what I understand but that may not be for a few months or so? The best thing you can do is get a simple Hello World working on your local machine. 1. download and install Tomcat (servlet container, http server)http://tomcat.apache.org/download-55.cgi 2. download and install Eclipse (and Eclipse Webtools) http://www.eclipse.org/downloads/ http://download.eclipse.org/webtools/downloads/3. download wicket, create a User Library in Eclipse and add the Wicket jars http://download.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part5-R3.html - see section on User-defined libraries4. Create a web project in Eclipse, add reference to Wicket User Library from step 3. Also set up Tomcat so you can deploy your test app to it - this should be fairly intuitive while creating your web project. 5. do this tutorialhttp://wicket.sourceforge.net/ExampleHelloWorld.html This should at least give you a few clues on how to get started ASAP on a small scale. The documentation at each of the sites for each of the projects should get you what you need. The best way to get started is to jump in! If you're comfortable w/ Eclipse and want more than Webtools can offer you, MyEclipse is a great plugin for Eclipse...I've been using it for about 4 mo. and I love it. It's not free, however. After all of this, deploying to a linux server or another machine of any platform should be fairly simple. A web project in eclipse webtools can be exported as a .war archive which can be dropped in just about any app server/container. Hope this helps in some way.-v On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: I can't think of many references that give the kind of overview you're looking for. Having just been (arguably still at) the same point you're at in terms of knowledge of web apps, I really can't say that there is a good solution. What I did is blindly followed the install instructions and then poked around with the various options checking consequences. I found as many references as I could find about wicket component details, as many tutorials as I could dig up on using them, and stumbled my way through configuring Tomcat so I could experiment. If anyone does have any references of this type, I'm interested too. :-)Daniel On 4/9/06, Dave Johnson [EMAIL PROTECTED] wrote:I'm an old COBOL guy who has learned enough Java to be useful in a corporate environment where I can see the need for a new class, generatea _javascript_ proxy to call the Java class from the UI, and build a classwith Eclipse to do the job.Now I'd like to begin developing in Wicket for my own purposes under Windows 2000 / XP.However, when it comes to the infrastructure of webapps, I get mired in details much too quickly.What are some good references that clearly explain the various levels ofsoftware I encounter, such as Linux, Tomcat,Jetty, Hibernate, PHP, MySQL and all the rest, and whether they're on the local machine or theremote server?And which are even needed?Most of what I find seems to assume too much familiarity with theseissues.I need a high-level overview that explains all this stuff without dropping down to 300 feet so quickly.Blindly followinginstallation instructions doesn't work well without knowing theconsequences of various choices.Thanks for any help.Dave ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
On 10/04/06, Dave Johnson [EMAIL PROTECTED] wrote: What are some good references that clearly explain the various levels of software I encounter, such as Linux, Tomcat, Jetty, Hibernate, PHP, MySQL and all the rest, and whether they're on the local machine or the remote server? And which are even needed? Most of what I find seems to assume too much familiarity with these issues. I need a high-level overview that explains all this stuff without dropping down to 300 feet so quickly. Blindly following installation instructions doesn't work well without knowing the consequences of various choices. Hi, I'm not aware of any specific starting point, but there are certainly a number of points that will help once you have managed to get a feel for what belongs where - Hopefully the following (very brief) comments will help though... Linux: Operating System (also WinXP, OSX, Solaris) - Shouldn't make any real difference to the applications being developed as the Java apps run in a java virtual machine, which provides a common environment to the application despite the different OS's. Tomcat, Jetty: Java Servlet Engines/Containers (also Resin). - Server-side apps that host web applications consisting of Java Servlets. Client-side web-browsers make requests, which get passed to the servlets by the servlet engines/containers, which respond with HTML pages. Try one or more, just don't try run more than one at a time unless you configure them to listen on different ports (typically they'll all default to listening on port 8080). (Tomcat is the commonest, but not the easiest to configure nor the clearest when things go wrong - I'd recommend evaluating Jetty Resin too, as they're both good often provide better diagnostics.) MySQL: Relational Database (also Oracle, PostgreSQL, HSQLDB) - Server-side apps that the servlets/web-apps will use to store data. Will involve SQL and JDBC drivers. Hibernate: Persistence framework (also IBatis, JDO Spring SQL) - Helps to map between Object-orientated Java code and the Record-orientated world of relational databases. Leave 'till later! PHP: Scripting language that can be embedded into HTML. - Not related to Java or Servlet engines, but rather an alternative. Runs in web servers such as Apache. The goal of the language is to allow web developers to write dynamically generated pages quickly. Can lead to difficult to maintain code! JSP: Java Server Pages : Java-based scripting language that can be embedded into HTML. - Runs in jsp/servlet engines such as Tomcat. The goal of the language is to allow web developers to write dynamically generated pages quickly. Can lead to difficult to maintain code! Sun's Servlet Docs - http://java.sun.com/products/servlet/docs.html Keep asking questions, though. /Gwyn --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
Johan, I agree, the basic types that webtools provides editability for should be built into eclipse...like html, xml, _javascript_, css, etc. However, for a beginner, installing eclipse + webtools gives you everything you need to build a basic Java EE-based web app. It was my experience, when starting out w/ Java about a year ago, that these tools alone got me up and running, building sites very quickly. I was able to work from my Gentoo workstation at home and my Winxp box at work w/ exactly the same tools. As for MyEclipse...that was my only compromise when it came to choosing tools and trying to keep everything open source. After using it, I had to have it! :D I'm glad I did, they have a Matisse editor coming anytime now...should be interesting. On 4/10/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Merve will either deploy to Tomcat or run the webapp in a bundled Tomcat instance. Just to give you a headstart in the flakey-ness, it all has to do with creating the Run Configuration and the webapp context dir. :-) I would use MyEclipse if I was willing to spend the money on it.Daniel On 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:Hmm...not familiar but it sounds like a beginner might struggle w/ something like that? I could be wrong. The webtools platform was brutally poor until recently when they managed to stabilize it...I was actually impressed the last time I test-drove it. I'll have to check out Merve. Is it simply a plugin that deploys to tomcat? I'm using a lot of Wicket + EJB3 on JBoss 4 these days (zen, if you ask me.) I've been using Eclipse 3.1.2 MyEclipse 4.1...couldn't be happier.On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Personally, I prefer vanilla Eclipse 3.2, XMLBuddy and the Merve plugin (very flakey, but it works well once you figure out its idiosyncrasies). DanielOn 4/9/06, Vincent Jenks [EMAIL PROTECTED] wrote: That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.) There's a Wicket book on the way from what I understand but that may not be for a few months or so? The best thing you can do is get a simple Hello World working on your local machine. 1. download and install Tomcat (servlet container, http server)http://tomcat.apache.org/download-55.cgi 2. download and install Eclipse (and Eclipse Webtools) http://www.eclipse.org/downloads/ http://download.eclipse.org/webtools/downloads/3. download wicket, create a User Library in Eclipse and add the Wicket jars http://download.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part5-R3.html - see section on User-defined libraries4. Create a web project in Eclipse, add reference to Wicket User Library from step 3. Also set up Tomcat so you can deploy your test app to it - this should be fairly intuitive while creating your web project. 5. do this tutorialhttp://wicket.sourceforge.net/ExampleHelloWorld.html This should at least give you a few clues on how to get started ASAP on a small scale. The documentation at each of the sites for each of the projects should get you what you need. The best way to get started is to jump in! If you're comfortable w/ Eclipse and want more than Webtools can offer you, MyEclipse is a great plugin for Eclipse...I've been using it for about 4 mo. and I love it. It's not free, however. After all of this, deploying to a linux server or another machine of any platform should be fairly simple. A web project in eclipse webtools can be exported as a .war archive which can be dropped in just about any app server/container. Hope this helps in some way.-v On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: I can't think of many references that give the kind of overview you're looking for. Having just been (arguably still at) the same point you're at in terms of knowledge of web apps, I really can't say that there is a good solution. What I did is blindly followed the install instructions and then poked around with the various options checking consequences. I found as many references as I could find about wicket component details, as many tutorials as I could dig up on using them, and stumbled my way through configuring Tomcat so I could experiment. If anyone does have any references of this type, I'm interested too. :-)Daniel On 4/9/06, Dave Johnson [EMAIL PROTECTED] wrote:I'm an old COBOL guy who has learned enough Java to be useful in a corporate environment where I can see the need for a new class, generatea _javascript_ proxy to call the Java class from the UI, and build a classwith Eclipse to do the job.Now I'd like to begin developing in Wicket for my own purposes under Windows 2000 / XP.However, when it comes to the infrastructure of webapps, I get mired in details much too quickly.What are some good references that clearly explain the various levels ofsoftware I encounter, such as Linux, Tomcat,Jetty, Hibernate, PHP, MySQL and all the rest, and whether they're on the local machine or theremote server?And which are even
[Wicket-user] Any Wicket presentation material ?
Hi, all Our team decides to start to adopt Wicket next month. And I am reponsible for introducing and training. Are there any exist materials or slices for reference ? There is a pdf in JavaPolis but unfortunately it is broken... I highly appreciate any help, thanks.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
See, I look at it the other way around...they release a very stable, feature-rich plugin for the current release and support it well w/ regular upgrades, fixes, etc. I'm sure 5.0 will support Eclipse 3.2 but I'm not entirely sure. I'd rather not be upgrading Eclipse at every milestone and work in a reassuringly stable environment.Personally, I probably won't switch to eclipse 3.2 until it's either a) a final release or b) JDK 1.6 final is released - whichever comes first. I couldn't see anything that compelling about 3.2M6, so far that would make me have to have it just yet...but I haven't looked at it that carefully.On 4/10/06, Johan Compagner [EMAIL PROTECTED] wrote: the problem with myeclipse is that they don't move quickly enough for me.They should be atleast have a version of myeclipse for every milestone build. Else i can't really use there software. Do they have a version for 3.2M6 ?johanOn 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote: Johan, I agree, the basic types that webtools provides editability for should be built into eclipse...like html, xml, _javascript_, css, etc. However, for a beginner, installing eclipse + webtools gives you everything you need to build a basic Java EE-based web app. It was my experience, when starting out w/ Java about a year ago, that these tools alone got me up and running, building sites very quickly. I was able to work from my Gentoo workstation at home and my Winxp box at work w/ exactly the same tools. As for MyEclipse...that was my only compromise when it came to choosing tools and trying to keep everything open source. After using it, I had to have it! :D I'm glad I did, they have a Matisse editor coming anytime now...should be interesting. On 4/10/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Merve will either deploy to Tomcat or run the webapp in a bundled Tomcat instance. Just to give you a headstart in the flakey-ness, it all has to do with creating the Run Configuration and the webapp context dir. :-) I would use MyEclipse if I was willing to spend the money on it.Daniel On 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:Hmm...not familiar but it sounds like a beginner might struggle w/ something like that? I could be wrong. The webtools platform was brutally poor until recently when they managed to stabilize it...I was actually impressed the last time I test-drove it. I'll have to check out Merve. Is it simply a plugin that deploys to tomcat? I'm using a lot of Wicket + EJB3 on JBoss 4 these days (zen, if you ask me.) I've been using Eclipse 3.1.2 MyEclipse 4.1...couldn't be happier.On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Personally, I prefer vanilla Eclipse 3.2, XMLBuddy and the Merve plugin (very flakey, but it works well once you figure out its idiosyncrasies). DanielOn 4/9/06, Vincent Jenks [EMAIL PROTECTED] wrote: That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.) There's a Wicket book on the way from what I understand but that may not be for a few months or so? The best thing you can do is get a simple Hello World working on your local machine. 1. download and install Tomcat (servlet container, http server)http://tomcat.apache.org/download-55.cgi 2. download and install Eclipse (and Eclipse Webtools) http://www.eclipse.org/downloads/ http://download.eclipse.org/webtools/downloads/3. download wicket, create a User Library in Eclipse and add the Wicket jars http://download.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part5-R3.html - see section on User-defined libraries4. Create a web project in Eclipse, add reference to Wicket User Library from step 3. Also set up Tomcat so you can deploy your test app to it - this should be fairly intuitive while creating your web project. 5. do this tutorialhttp://wicket.sourceforge.net/ExampleHelloWorld.html This should at least give you a few clues on how to get started ASAP on a small scale. The documentation at each of the sites for each of the projects should get you what you need. The best way to get started is to jump in! If you're comfortable w/ Eclipse and want more than Webtools can offer you, MyEclipse is a great plugin for Eclipse...I've been using it for about 4 mo. and I love it. It's not free, however. After all of this, deploying to a linux server or another machine of any platform should be fairly simple. A web project in eclipse webtools can be exported as a .war archive which can be dropped in just about any app server/container. Hope this helps in some way.-v On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: I can't think of many references that give the kind of overview you're looking for. Having just been (arguably still at) the same point you're at in terms of knowledge of web apps, I really can't say that there is a good solution. What I did is blindly followed the install instructions and then poked around with the various options checking consequences. I found as many
Re: [Wicket-user] Any Wicket presentation material ?
I'm working on materials for a training course, but I don't think they'll be done in time for your needs.On 4/10/06, Ingram Chen [EMAIL PROTECTED] wrote:Hi, all Our team decides to start to adopt Wicket next month. And I am reponsible for introducing and training. Are there any exist materials or slices for reference ? There is a pdf in JavaPolis but unfortunately it is broken... I highly appreciate any help, thanks.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen
[Wicket-user] using superclass converter for subclass instances
Hi, In a previous post I mentioned the problems I had converting simultaneously Date and Float from/to String, the explanation was on other side, since what I thought was a Date instance was a subclass returned by the JDO implementation I use. So, I thought, would not be useful (wise?) to use the same converter for instances that belong to a subclass of a class that already has a converter defined (in this case, the Date class)?. That is, instead of using the DefaultConverter, when a converter is not found, search for a superclass converter, and use the first found or the closer in the class hierarchy.Thanks,Jaime. How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
Re: [Wicket-user] Check disabled
ah, yes. it just hit me. Radio and Check components are not decendants of FormComponent so they lack that behavior. I will add it sometime later today hopefully.-IgorOn 4/10/06, R.A [EMAIL PROTECTED] wrote: Hi Igor.No, I can not see disable=disable in the html.I wrote System.out.println in the poplulateItem method.Check check = new Check(check, item.getModel());item.add(activ); if (...) {check.setEnabled(false);}System.out.println(check.isEnabled());Some check.isEnabled() is false, but all Checks is active in the html.Regars,R.A--View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3836979Sent from the Wicket - User forum at Nabble.com. ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] using superclass converter for subclass instances
please add a RFE for this so that we don't forget it when refactoring the converter in 1.3/2.0johanOn 4/10/06, Jaime De La Jara [EMAIL PROTECTED] wrote:Hi, In a previous post I mentioned the problems I had converting simultaneously Date and Float from/to String, the explanation was on other side, since what I thought was a Date instance was a subclass returned by the JDO implementation I use. So, I thought, would not be useful (wise?) to use the same converter for instances that belong to a subclass of a class that already has a converter defined (in this case, the Date class)?. That is, instead of using the DefaultConverter, when a converter is not found, search for a superclass converter, and use the first found or the closer in the class hierarchy.Thanks,Jaime. How low will we go? Check out Yahoo! Messenger's low PC-to-Phone call rates.
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
i also can't say it why i use for example 3.2M6 UNTIL i help a coworker and i sit behind his eclipse version (still 3.1)Then suddenly it is all clear why i use the latest versions. Shorcuts that i used to for specific features don't work because that feature isn't there specific views not there.. The list goes on.I have to say that the step from 3.0 to 3.1 and the step from 3.1 to 3.2 is not that big. They don't introduce a lot of really neath and nice goodies..But also i want a great 3.2 release so why not help test them? Why do you expect to have a great 3.2 release and never test it and give feedback if needed??I do submit quite some bugs nowadays and the response is mostly great and vast. i can really say that getting integration builds and milestone builds really speeds up my developerment, because the i use the new features very fastand they are mostly very very helpfull.. So saying that it is contra productive is a wrong statement.. I can count the i have to reverse to the previous version on one hand...johanOn 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote: See, I look at it the other way around...they release a very stable, feature-rich plugin for the current release and support it well w/ regular upgrades, fixes, etc. I'm sure 5.0 will support Eclipse 3.2 but I'm not entirely sure. I'd rather not be upgrading Eclipse at every milestone and work in a reassuringly stable environment.Personally, I probably won't switch to eclipse 3.2 until it's either a) a final release or b) JDK 1.6 final is released - whichever comes first. I couldn't see anything that compelling about 3.2M6, so far that would make me have to have it just yet...but I haven't looked at it that carefully. On 4/10/06, Johan Compagner [EMAIL PROTECTED] wrote: the problem with myeclipse is that they don't move quickly enough for me.They should be atleast have a version of myeclipse for every milestone build. Else i can't really use there software. Do they have a version for 3.2M6 ?johanOn 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote: Johan, I agree, the basic types that webtools provides editability for should be built into eclipse...like html, xml, _javascript_, css, etc. However, for a beginner, installing eclipse + webtools gives you everything you need to build a basic Java EE-based web app. It was my experience, when starting out w/ Java about a year ago, that these tools alone got me up and running, building sites very quickly. I was able to work from my Gentoo workstation at home and my Winxp box at work w/ exactly the same tools. As for MyEclipse...that was my only compromise when it came to choosing tools and trying to keep everything open source. After using it, I had to have it! :D I'm glad I did, they have a Matisse editor coming anytime now...should be interesting. On 4/10/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Merve will either deploy to Tomcat or run the webapp in a bundled Tomcat instance. Just to give you a headstart in the flakey-ness, it all has to do with creating the Run Configuration and the webapp context dir. :-) I would use MyEclipse if I was willing to spend the money on it.Daniel On 4/10/06, Vincent Jenks [EMAIL PROTECTED] wrote:Hmm...not familiar but it sounds like a beginner might struggle w/ something like that? I could be wrong. The webtools platform was brutally poor until recently when they managed to stabilize it...I was actually impressed the last time I test-drove it. I'll have to check out Merve. Is it simply a plugin that deploys to tomcat? I'm using a lot of Wicket + EJB3 on JBoss 4 these days (zen, if you ask me.) I've been using Eclipse 3.1.2 MyEclipse 4.1...couldn't be happier.On 4/9/06, Daniel Spiewak [EMAIL PROTECTED] wrote: Personally, I prefer vanilla Eclipse 3.2, XMLBuddy and the Merve plugin (very flakey, but it works well once you figure out its idiosyncrasies). DanielOn 4/9/06, Vincent Jenks [EMAIL PROTECTED] wrote: That's tough since there is no ground-up tutorial like this when it comes to Wicket (that I know of.) There's a Wicket book on the way from what I understand but that may not be for a few months or so? The best thing you can do is get a simple Hello World working on your local machine. 1. download and install Tomcat (servlet container, http server)http://tomcat.apache.org/download-55.cgi 2. download and install Eclipse (and Eclipse Webtools) http://www.eclipse.org/downloads/ http://download.eclipse.org/webtools/downloads/3. download wicket, create a User Library in Eclipse and add the Wicket jars http://download.eclipse.org/eclipse/downloads/drops/R-3.0-200406251208/eclipse-news-part5-R3.html - see section on User-defined libraries4. Create a web project in Eclipse, add reference to Wicket User Library from step 3. Also set up Tomcat so you can deploy your test app to it - this should be fairly intuitive while creating your web project. 5. do this tutorialhttp://wicket.sourceforge.net/ExampleHelloWorld.html This should
[Wicket-user] DefaultDataTable question
I am using DefaultDataTable. The rows in the table get class=even and class=odd tags but I would like to constrain these to a particular class of table body. Thus I need to inject a class=dataview or some such into the tbody element. Can anyone describe how I can do this, please? I probably need to override onComponentTag() or some such but I cant see where. Thank you!
[Wicket-user] a problem with continueToOriginalDestination
Page1 has a Form that has a Button with setDefaultFormProcessing(false) Button.onSubmit(new Page2() ) But since Page2 is marked secure and the user is not logged in, the auth strategy takes me to SignonPage. After i sign in , on SignOnPage.onSubmit( ) i do continueToOriginalDestination( ), But by the time the request goes to Page1.onSubmit( ) , it no longer remembers the fact that it was triggered by Button. It does call Page1.Form.onFormSubmitted. But it no longer remembers that the call was triggered by Page1.Form.Button First of all is this a correct usage of continueToOriginalDestination? thanks -- karthik -- --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DefaultDataTable question
one way to do this is to attach class attr to the table instead, and then have a css style tat is dependent on the table style :table.test { blah; }table.test tbody.other { tbody style }-Igor On 4/10/06, Mark Southern [EMAIL PROTECTED] wrote: I am using DefaultDataTable. The rows in the table get class="even" and class="odd" tags but I would like to constrain these to a particular class of table body. Thus I need to inject a class="dataview" or some such into the tbody element. Can anyone describe how I can do this, please? I probably need to override onComponentTag() or some such but I can't see where. Thank you!
RE: [Wicket-user] DataTable formatting
To draw lines separating every cell in my DataTable I tried: table border=1 wicket:id=datatableas Igor recommended. It worked fine, except for when the IDataProvider provided either a null or an empty string for a particular cell. Then the line separators were missing. Do you think the more complex CSS approach would do better?--or even table border=1 wicket:id=datatable-IgorOn 3/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: style table.datatable td { border:0; border-bottom: 1px solid black; border-right: 1px solid black; } /style table class=datatable wicket:id=datatable . -Igor On 3/31/06, Frank Silbermann [EMAIL PROTECTED] wrote: Is there a way to make the DataTable draw a line between every row and column ? like a grid?
Re: [Wicket-user] DataTable formatting
Have you tried the CSS attribute 'empty-cells: show;' ?On 4/10/06, Frank Silbermann [EMAIL PROTECTED] wrote: To draw lines separating every cell in my DataTable I tried: table border="1" wicket:id="datatable" as Igor recommended. It worked fine, except for when the IDataProvider provided either a null or an empty string for a particular cell. Then the line separators were missing. Do you think the more complex CSS approach would do better? --or even table border=1 wicket:id=datatable -Igor On 3/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: style table.datatable td { border:0; border-bottom: 1px solid black; border-right: 1px solid black; } /style table class=datatable wicket:id=datatable . -Igor On 3/31/06, Frank Silbermann [EMAIL PROTECTED] wrote: Is there a way to make the DataTable draw a line between every row and column ? like a grid?
Re: [Wicket-user] a problem with continueToOriginalDestination
hmm this won't work yesBecause continueToOriginal just remebers the url and not the post data.Can you add a bug/rfe for this? Maybe we can fix this by remembering all input values.johan On 4/10/06, karthik Guru [EMAIL PROTECTED] wrote: Page1 has a Form that has a Button with setDefaultFormProcessing(false)Button.onSubmit(new Page2() )But since Page2 is marked secure and the user is not logged in, theauth strategy takes me to SignonPage. After i sign in , on SignOnPage.onSubmit( ) i do continueToOriginalDestination( ),But by the time the request goes to Page1.onSubmit( ) , it no longerremembers the fact thatit was triggered by Button. It does call Page1.Form.onFormSubmitted .But it no longer remembers that the call was triggered byPage1.Form.ButtonFirst of all is this a correct usage of continueToOriginalDestination?thanks -- karthik - This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] bind Map to DropDownChoice
Is there an example of this somewhere? I'm struggling to get this working where I have a HashMapString, String...the first String is the ID and the second String is the value.I have this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates();} }; add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return object.toString();}public String getIdValue(Object object, int index) { return object.toString();} }));I *just* wanted to see the page render...I know the values aren't right...but anything would have been acceptable. I keep getting a very unhelpful NullPointerException that I'm not even sure has anything to do w/ the dropdowns...but I assume it does since the rest of the form is very straightforward TextField components. I don't see where this is being done in wicket-examplesI'm using 1.1.1Thanks!On 4/1/06, Johan Compagner [EMAIL PROTECTED] wrote:there is no map support for this. What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johan On 3/31/06, Vincent Jenks [EMAIL PROTECTED] wrote: I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown. Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong? Is a Map the best way to go? I was maybe considering using a single List collection and splitting a single string to get the two valuesbut that's pretty fugly too.
RE: [Wicket-user] DataTable formatting
Thank you! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker Sent: Monday, April 10, 2006 4:12 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] DataTable formatting Have you tried the CSS attribute 'empty-cells: show;' ? On 4/10/06, Frank Silbermann [EMAIL PROTECTED] wrote: To draw lines separating every cell in my DataTable I tried: table border=1 wicket:id=datatableas Igor recommended. It worked fine, except for when the IDataProvider provided either a null or an empty string for a particular cell. Then the line separators were missing. Do you think the more complex CSS approach would do better?--or even table border=1 wicket:id=datatable-IgorOn 3/31/06, Igor Vaynberg [EMAIL PROTECTED] wrote: style table.datatable td { border:0; border-bottom: 1px solid black; border-right: 1px solid black; } /style table class=datatable wicket:id=datatable . -Igor On 3/31/06, Frank Silbermann [EMAIL PROTECTED] wrote: Is there a way to make the DataTable draw a line between every row and column ? like a grid?
Re: [Wicket-user] bind Map to DropDownChoice
give the choice renderen the complete hashmapAnd give the dropdown a model with the keys of that hashmap as a list.so if StringValues.getUSAStates(); are th ids in the hashmap then that should go ok. but youre choicerender is wrong: add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return idValueHashmap.get(object);}public String getIdValue(Object object, int index) { return object.toString();} }));On 4/11/06, Vincent Jenks [EMAIL PROTECTED] wrote:Is there an example of this somewhere? I'm struggling to get this working where I have a HashMapString, String...the first String is the ID and the second String is the value. I have this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates();} }; add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return object.toString();}public String getIdValue(Object object, int index) { return object.toString();} }));I *just* wanted to see the page render...I know the values aren't right...but anything would have been acceptable. I keep getting a very unhelpful NullPointerException that I'm not even sure has anything to do w/ the dropdowns...but I assume it does since the rest of the form is very straightforward TextField components. I don't see where this is being done in wicket-examplesI'm using 1.1.1Thanks!On 4/1/06, Johan Compagner [EMAIL PROTECTED] wrote: there is no map support for this. What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johan On 3/31/06, Vincent Jenks [EMAIL PROTECTED] wrote: I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown. Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong? Is a Map the best way to go? I was maybe considering using a single List collection and splitting a single string to get the two valuesbut that's pretty fugly too.
Re: [Wicket-user] bind Map to DropDownChoice
I'm sorry, I don't think I quite understand.I have dropDownModel which looks like this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates(); //via proxy} };StringValues.getUSAStates() looks something like this: public static MapString, String getUSAStates() { MapString, String states = new HashMapString, String(); states.put(AL, Alabama); states.put(AK, Alaska); states.put(AZ, Arizona); states.put(AR, Arkansas); states.put(CA, California);..Where CA is the key and California is the value...which is exactly how I'd like to see it in the select dropdown. Are you saying that I should split the keys and values into two different lists and look them up that way?It would be extremely useful, in my opinion, if Wicket had support for these types of objects internally, given the frequency of which they're used. It would be very intuitive if I could supply key/value Map objects into what is essentially a list of key/value pairs. Thanks again...On 4/10/06, Johan Compagner [EMAIL PROTECTED] wrote: give the choice renderen the complete hashmapAnd give the dropdown a model with the keys of that hashmap as a list.so if StringValues.getUSAStates(); are th ids in the hashmap then that should go ok. but youre choicerender is wrong: add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return idValueHashmap.get(object); }public String getIdValue(Object object, int index) { return object.toString();} })); On 4/11/06, Vincent Jenks [EMAIL PROTECTED] wrote:Is there an example of this somewhere? I'm struggling to get this working where I have a HashMapString, String...the first String is the ID and the second String is the value. I have this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates();} }; add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return object.toString();}public String getIdValue(Object object, int index) { return object.toString();} }));I *just* wanted to see the page render...I know the values aren't right...but anything would have been acceptable. I keep getting a very unhelpful NullPointerException that I'm not even sure has anything to do w/ the dropdowns...but I assume it does since the rest of the form is very straightforward TextField components. I don't see where this is being done in wicket-examplesI'm using 1.1.1Thanks!On 4/1/06, Johan Compagner [EMAIL PROTECTED] wrote: there is no map support for this. What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johan On 3/31/06, Vincent Jenks [EMAIL PROTECTED] wrote: I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown. Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong? Is a Map the best way to go? I was maybe considering using a single List collection and splitting a single string to get the two valuesbut that's pretty fugly too.
Re: [Wicket-user] bind Map to DropDownChoice
ok then youre dropdown is wrong. IModel dropDownModel = new Model() {public Object getObject(final Component component){ return new ArrayList(StringValues.getUSAStates().keySet()); //via proxy} }; add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return StringValues.getUSAStates().get(object); }public String getIdValue(Object object, int index) { return object.toString();} }));I haven't seen many usecases for that because most of the timeYou have a List of States so getUSAStates doesn't return a map but directly a list. With State objects that has properties like: a key AL and as name Alabama.That is the most used usecase i know of. johan On 4/11/06, Vincent Jenks [EMAIL PROTECTED] wrote: I'm sorry, I don't think I quite understand.I have dropDownModel which looks like this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates(); //via proxy} };StringValues.getUSAStates() looks something like this: public static MapString, String getUSAStates() { MapString, String states = new HashMapString, String(); states.put(AL, Alabama); states.put(AK, Alaska); states.put(AZ, Arizona); states.put(AR, Arkansas); states.put(CA, California);..Where CA is the key and California is the value...which is exactly how I'd like to see it in the select dropdown. Are you saying that I should split the keys and values into two different lists and look them up that way?It would be extremely useful, in my opinion, if Wicket had support for these types of objects internally, given the frequency of which they're used. It would be very intuitive if I could supply key/value Map objects into what is essentially a list of key/value pairs. Thanks again...On 4/10/06, Johan Compagner [EMAIL PROTECTED] wrote: give the choice renderen the complete hashmapAnd give the dropdown a model with the keys of that hashmap as a list.so if StringValues.getUSAStates(); are th ids in the hashmap then that should go ok. but youre choicerender is wrong: add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return idValueHashmap.get(object); }public String getIdValue(Object object, int index) { return object.toString();} })); On 4/11/06, Vincent Jenks [EMAIL PROTECTED] wrote:Is there an example of this somewhere? I'm struggling to get this working where I have a HashMapString, String...the first String is the ID and the second String is the value. I have this: IModel dropDownModel = new Model() {protected Object load(){ return StringValues.getUSAStates();} }; add(new DropDownChoice(billingState, dropDownModel, new IChoiceRenderer() {public String getDisplayValue(Object object){ return object.toString();}public String getIdValue(Object object, int index) { return object.toString();} }));I *just* wanted to see the page render...I know the values aren't right...but anything would have been acceptable. I keep getting a very unhelpful NullPointerException that I'm not even sure has anything to do w/ the dropdowns...but I assume it does since the rest of the form is very straightforward TextField components. I don't see where this is being done in wicket-examplesI'm using 1.1.1Thanks!On 4/1/06, Johan Compagner [EMAIL PROTECTED] wrote: there is no map support for this. What you could do is give the map to the ChoiceRenderer impland give the keys of the map as a list to the Choice.johan On 3/31/06, Vincent Jenks [EMAIL PROTECTED] wrote: I'm trying to get a Map of data so I can have the key be the value of the dropdown options and the value of the Map item be the value of the option in the dropdown. Problem is, it doesn't look like DropDownChoice will accept a Map...unless I'm doing it wrong? Is a Map the best way to go? I was maybe considering using a single List collection and splitting a single string to get the two valuesbut that's pretty fugly too.
Re: [Wicket-user] View from 30,000 feet of Wicket infrastructure
Thanks to all who replied to this thread. I'll investigate your helpful ideas. Dave --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Enterprise application using Wicket
Many thanks for all replies. This will help me get the decision makesr to give Wicket a try. Dave -- View this message in context: http://www.nabble.com/Enterprise-application-using-Wicket-t1420394.html#a3852549 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] WicketTester and checkAccess redirections
Hi, I'm using Wicket 1.1.1 and trying to get my first WicketTester to work with the current app. I can't seem to get the redirectToInterceptPage(Page) method to actually redirect to the page. It works fine from Tomcat and Jetty, but the WicketTester seems to ignore the call (though I stepped into it and saw it was actually called). Is this the expected behaviour? If so, how do you test the interceptions? []s Gus --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Check disabled
Hi Igor. I see, and I'm looking forward to your handling. Thank you for your reply. Regars, R.A -- View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3852996 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Check disabled
give it a go.-IgorOn 4/10/06, R.A [EMAIL PROTECTED] wrote: Hi Igor.I see, and I'm looking forward to your handling.Thank you for your reply.Regars,R.A--View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3852996Sent from the Wicket - User forum at Nabble.com.--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to select Time( without date) using DatePicker? and multiple DatePickers error!
Dear all, I find a method : setShowsTime() of DatePickerSettings, that I can now select Time using DatePicker. But there is not a method : setShowsTimeOnly() to hide date . Now I can select java.sql.Date, java.sql.Timestamp, but not java.sql.Time. How can I do that? btw: adding multiple DatePicker s to the same page does not work, but it's said been fixed in 1.1 RC2. I use wicket 1.1.1, and am waiting for 1.2. the html head is: head titleWicket Examples - forminput/title link rel=stylesheet type=text/css href=style.css/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ /head and Firefox shows such error : Error: too much recursion source:http://localhost:8080/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line:1796: Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); d.__msh_oldSetFullYear(y);// Line:1796 if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; Thanks outersky
[Wicket-user] Re: how to select Time( without date) using DatePicker? and multiple DatePickers error!
it's ok in 1.2 beta3. perhaps a new TimePicker should be added, or DatePicker be enhanced. On 4/11/06, lu dongping [EMAIL PROTECTED] wrote: Dear all, I find a method : setShowsTime() of DatePickerSettings, that I can now select Time using DatePicker. But there is not a method : setShowsTimeOnly() to hide date . Now I can select java.sql.Date, java.sql.Timestamp, but not java.sql.Time. How can I do that? btw: adding multiple DatePicker s to the same page does not work, but it's said been fixed in 1.1 RC2. I use wicket 1.1.1, and am waiting for 1.2. the html head is: head titleWicket Examples - forminput/title link rel=stylesheet type=text/css href=style.css/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ script type=text/javascript wicket:id=calendarMain src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js/script script type=text/javascript wicket:id=calendarSetup src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar-setup.js/script script type=text/javascript wicket:id=calendarLanguage src=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/lang/calendar-zh-utf8.js/script link href=/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/theme.css type=text/css rel=stylesheet wicket:id=calendarStyle/ /head and Firefox shows such error : Error: too much recursion source:http://localhost:8080/campus/campus/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line:1796: Date.prototype.__msh_oldSetFullYear = Date.prototype.setFullYear; Date.prototype.setFullYear = function(y) { var d = new Date(this); d.__msh_oldSetFullYear(y);// Line:1796 if (d.getMonth() != this.getMonth()) this.setDate(28); this.__msh_oldSetFullYear(y); }; Thanks outersky
[Wicket-user] script element is not a valid html 4 or xhtml
Wicket adds script element which is not a valid html 4 or xhtml because it does not specify the type attribute. I think it's a bug.
[Wicket-user] zero session state/stateless pages
Hi, We have been discussing this quite a bit on IRC, but I want to bring it to the list for more exposure. As far as I understand, wicket currently has a concept of stateless pages, which are pages that are not stored in the session. Unfortunately, there is no way to avoid session creation on the very first hit. This means that any user hitting your application will be assigned a sessionid. This is very bad because for a couple of reasons: 1. Search engines obviously don't like sessions and they don't support cookies. This prevents your site from being crawled and indexed properly. 2. Performance - creating a session means that it must be serialized in a cluster (even if there is no data?). Why do this when there is no technical justification? With the recent changes regarding PageMaps, is it possible to defer session creation until a user hits a stateful page? If not, then wicket cannot be used for public web sites (news, online store, etc) that need to be indexed in today's search engines. Thanks, Michael Day --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] zero session state/stateless pages
Just to clarify... 1) It makes no sense to expect Googlebot to retain a session (contains PageMap, etc) for stateless pages because multiple bots hit the website at the same time in a non-linear order. If we try to force some sort of linear state on Google it might end up with Page is expired where it does not make sense. 2) Page indexability is *very* important to me, even more important than page expiration and back-button support. Not sure about how it affects other users. If one of the developers could post more technical details behind this problem maybe other users on this list will have some ideas on how to solve it. I'm sure Wicket isn't the first framework to run into this sort of problem, how did others solve it? Gili Michael Day wrote: Hi, We have been discussing this quite a bit on IRC, but I want to bring it to the list for more exposure. As far as I understand, wicket currently has a concept of stateless pages, which are pages that are not stored in the session. Unfortunately, there is no way to avoid session creation on the very first hit. This means that any user hitting your application will be assigned a sessionid. This is very bad because for a couple of reasons: 1. Search engines obviously don't like sessions and they don't support cookies. This prevents your site from being crawled and indexed properly. 2. Performance - creating a session means that it must be serialized in a cluster (even if there is no data?). Why do this when there is no technical justification? With the recent changes regarding PageMaps, is it possible to defer session creation until a user hits a stateful page? If not, then wicket cannot be used for public web sites (news, online store, etc) that need to be indexed in today's search engines. Thanks, Michael Day --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user signature.asc Description: OpenPGP digital signature
Re: [Wicket-user] Check disabled
Hi Igor. I checked it. Thanks a lot!! Regars, R.A -- View this message in context: http://www.nabble.com/Check-disabled-t1423057.html#a3855145 Sent from the Wicket - User forum at Nabble.com. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user