[Wicket-user] Prettier page for new Wicket-related open source project
Hi all, Take a look: https://nbwicketsupport.dev.java.net/ Gj --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prettier page for new Wicket-related open source project
cowwoc wrote: Very cool! I especially like the refactoring support and detection of mismatches between HTML and Java code. Keep up the good work! :) Gili Thanks for the support Gili! Gj Geertjan Wielenga wrote: Hi all, Take a look: https://nbwicketsupport.dev.java.net/ Gj --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prettier page for new Wicket-related open source project
blackboy zabaha wrote: So cool!, This is what I waiting for, I'm using netbeans for my favorite IDE, this will help my work with wicket very easy. thumbs up ^_^ b but, hehe, I'm so new stupid -_-'. I try checkout project but I build it fail (It complain about some j2ee dependency ?!?!), I don't know anythink at all about how to build netbeans module, would you mind tell me where can I download the finished .nbm file? or it is my task to try to build it myself? please suggest me. Well, right now, a lot of development work needs to be done still. If you want to contribute, look at the Next Steps section: https://nbwicketsupport.dev.java.net/ If you want to use it --i..e, not contribute but just use the resulting module-- the steps in the Next Steps provides a link to the document that also applies to you if you want to use the module. In effect, you're then doing the same as a contributer who is testing the module. Thanks very much for these encouraging words. What kind of support would you be interested in specifically? Feel free to join a mailing list or join the project, as described at the nbwicketsupport page above. Geertjan Blackzabaha, cowwoc wrote: Very cool! I especially like the refactoring support and detection of mismatches between HTML and Java code. Keep up the good work! :) Gili Geertjan Wielenga wrote: Hi all, Take a look: https://nbwicketsupport.dev.java.net/ Gj --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Powerful wicket sample
What about accessing a web service? (I've blogged about this, i.e., a spell checker web service made available to a Wicket panel, so that it can be reproduced on multiple web pages.) Is this sufficiently "Wow" for the average Wicket person? -- Gj Gwyn Evans wrote: Or one of the Databinder examples? /Gwyn On 22/04/06, Johan Compagner [EMAIL PROTECTED] wrote: hmm but you do need 1.2 for that On 4/22/06, Johan Compagner [EMAIL PROTECTED] wrote: just build the petstore application ;) i think the most WOW factor has some pages with pure ajax components.. johan On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Geertjan Wielenga wrote: Hi all, For the 'birds of a feather' session I'll be doing at JavaOne, I'd like to run through the Wicket support (that is continually being built as we speak) in NetBeans IDE :-) and in the process build a powerful Wicket application. I have a few ideas of my own but I'm not a Wicket expert. Can someone give me ideas for a (1) simplish, time wise, yet (2) effective (very high "wow" impact desirable) scenario that I could use? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] migrating to 1.1
I migrated to Wicket 1.1 and found a problem with this method in Guest Book (the arrow point to the problematic line): public CommentForm(final String id) { // Construct form with no validation listener -- super(id, new CompoundPropertyModel(new Comment()), null); // Add text entry widget add(new TextArea(text)); } Does 1.1 come with updated samples? Or can I change the above somehow? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] migrating to 1.1
Yes, I had 1.0.3 samples and now, for the NetBeans support, I'd like to use the latest stable major version, which is 1.1. So I don't know what the difference was exactly, but I got the 1.1 samples and everything seems to be ok now. Gj Johan Compagner wrote: migrating to 1.1? from where 1.0? For every release we have a 1-1 relation shipt with our examples or extentions (and most wicket-stuff things also) johan On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: I migrated to Wicket 1.1 and found a problem with this method in Guest Book (the arrow point to the problematic line): public CommentForm(final String id) { // Construct form with no validation listener -- super(id, new CompoundPropertyModel(new Comment()), null); // Add text entry widget add(new TextArea("text")); } Does 1.1 come with updated samples? Or can I change the above somehow? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Powerful wicket sample
Hi all, For the 'birds of a feather' session I'll be doing at JavaOne, I'd like to run through the Wicket support (that is continually being built as we speak) and in the process build a powerful Wicket application. I have a few ideas of my own but I'm not a Wicket expert. Can someone give me ideas for a (1) simplish, time wise, yet (2) effective (very high wow impact desirable) scenario that I could use? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Powerful wicket sample
Geertjan Wielenga wrote: Hi all, For the 'birds of a feather' session I'll be doing at JavaOne, I'd like to run through the Wicket support (that is continually being built as we speak) in NetBeans IDE :-) and in the process build a powerful Wicket application. I have a few ideas of my own but I'm not a Wicket expert. Can someone give me ideas for a (1) simplish, time wise, yet (2) effective (very high wow impact desirable) scenario that I could use? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] migrating to 1.1
Well, I'm a bit fearful of doing that. I'm building all samples against 1.1 and integrating them into NetBeans at that level. After JavaOne, I'll come back to this and upgrade them to 1.2. -- Gj Vincent Jenks wrote: I'd almost say that you might want to consider just using 1.2 since it is now in RC mode and will be production-grade soon? Correct me if I'm wrong, but 1.1.1 will be obsolete soon. I'm using 1.2RC2 on a project that will go into productin in less than a month and so far I'm very happy w/ it. I just upgraded from 1.1.1 and so far, it's solid. On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Yes, I had 1.0.3 samples and now, for the NetBeans support, I'd like to use the latest stable major version, which is 1.1. So I don't know what the difference was exactly, but I got the 1.1 samples and everything seems to be ok now. Gj Johan Compagner wrote: migrating to 1.1? from where 1.0? For every release we have a 1-1 relation shipt with our examples or extentions (and most wicket-stuff things also) johan On 4/21/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: I migrated to Wicket 1.1 and found a problem with this method in Guest Book (the arrow point to the problematic line): public CommentForm(final String id) { // Construct form with no validation listener -- super(id, new CompoundPropertyModel(new Comment()), null); // Add text entry widget add(new TextArea("text")); } Does 1.1 come with updated samples? Or can I change the above somehow? Gj --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Licensing issues for including Wicket JARs
If we were to include the Wicket JARs (wicket-1.1.jar, commons-logging-1.0.4, log4j-1.2.11.jar, ognl-2.6.7.jar) in a NetBeans module (possibly to de distributed/packaged with NetBeans at some future date) would we have licensing issues to deal with in relation to Wicket? (I suspect that the latter 3 are not needed, but I'm not sure.) What procedures would we need to go through? Geertjan --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and textareas
Thanks. I'll look into this, looks interesting. -- Geertjan Igor Vaynberg wrote: no, html textarea doesnt support rich text formatting. if you want that look at wicket-contrib-tinymce, tinymce is a _javascript_ based rich text editor. google tinymce for more details. -Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Well, if I have text in the textarea tag, can I do something with it via the TextArea component? Can I somehow parse the content of the textarea and give every other word a different color, for example? -- Geertjan Igor Vaynberg wrote: what do you mean? wicket's TextArea component is attached to html textarea tag, everything else is up to the browser. -Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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] Wicket and textareas
Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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] Wicket and textareas
Well, if I have text in the textarea tag, can I do something with it via the TextArea component? Can I somehow parse the content of the textarea and give every other word a different color, for example? -- Geertjan Igor Vaynberg wrote: what do you mean? wicket's TextArea component is attached to html textarea tag, everything else is up to the browser. -Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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] Iterating a for loop and rendering the results
Johan, Thanks a lot for the help. Here is the result: http://blogs.sun.com/roller/page/geertjan?entry=czech_beeer_roks Gj you look at it wrong See it just as 2 independen lists.. the outer listview must have the rows you want to have And the second listview must have the words you want in columns (youre suggestions) this: for (int k = 0; k allsuggestions.size(); k++) { shouldn't be in the code anywhere. That is something the listview should do for you. johan On 4/5/06, *Geertjan Wielenga * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks. This helps. Must I do anything special to move to the next value in the list? Currently, I'm rendering the correct number of values, but in each case only the first value. So, if my list consists of a, b, c, what is being rendered is a, a, a (which is the correct number -- 3 -- but in each case only the first value). Here's the relevant snippet: List allsuggestions = ((Words)allwrongwords.get(i)).getSuggestions(); for (int k = 0; k allsuggestions.size(); k++) { final String onesuggestion = (String)allsuggestions.get(k); listItem.add(new ListView(innerTable2, allsuggestions) { protected void populateItem(ListItem listItem) { MultiLineLabel listItemLabel = new MultiLineLabel(one_suggestion, onesuggestion); listItem.add(listItemLabel); } }); } -- Geertjan Johan Compagner wrote: you have to use another listview inside a listitem Because that is what you seem to do. so something like tr wicket:id=outertable td wicket:id=innertablespan wicket:id=one_suggestion/span/td /tr and then the current listItem must add another ListView instance (called innertable) johan On 4/5/06, *Geertjan Wielenga* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, Part of my code goes like this: for (int k = 0; k allsuggestions.size(); k++) { String onesuggestion = (String)allsuggestions.get(k); listItem.add(new MultiLineLabel(one_suggestion, onesuggestion)); } So, how do I render a new listitem for each iteration of this for loop? Currently only the first item in the iteration is rendered. Geertjan --- 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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] Iterating a for loop and rendering the results
Hi all, Part of my code goes like this: for (int k = 0; k allsuggestions.size(); k++) { String onesuggestion = (String)allsuggestions.get(k); listItem.add(new MultiLineLabel(one_suggestion, onesuggestion)); } So, how do I render a new listitem for each iteration of this for loop? Currently only the first item in the iteration is rendered. Geertjan --- 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] Multilinelabel with markup?
I now understand how a markup label works and how a multiline label works. But how would I put markup in a multiline label? -- Geertjan --- 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] Understanding multiline labels and markup labels
Hi all, One thing I don't understand -- what's the scenario when you're using multiline labels and markup labels? Why can't you just do markup in the HTML file? What's the point in doing it on the Java side? -- Geertjan --- 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] JavaOne, Wicket, NetBeans
Igor Vaynberg wrote: looks really neat. here are some of the features that i can no longer live without offered by the eclipse plugin: renaming support. when i rename a class that is a panel/page/border all assocaited files (html/properties) get renamed also. wicket tabbed editor. when i open a java file that is panel/page/border i get small tabs on the bottom of the editor that quickly allow me to switch between editors for all associated resources. i dont know about all that drag and drop stuff. great for simple components, but will it scale? wicket is code centric, for that stuff to work well you need a configuration centric framework. for example i quiet often use datatables with dataprovider implementations that are anonymous. or if i create a subclass with a different constructor how is that then going to work? having a palette of default components is great, but wicket is all about creating custom components. keep up the great work, -Igor Thanks Igor. A lot. Both those ideas are great. Your concern about drag and drop makes sense and is something I need to work out as I go along. Here's the current status: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further2 -- Gj On 3/14/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Riyad, This is fantastic headway, keep it up guys. IDE support for Wicket is in high demand and I'm sure most people on this list appreciate the exposure and time you are putting towards this. Thanks a lot for the encouragement! I've just finished blogging about some refinemenets to the initial support that I'm working on: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further1 Feedback needed! Gj Best, Riyad Geertjan Wielenga wrote: Hi all, OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for details) and I have made some progress on our Wicket plugin. Here it is described: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further So, now you can select the Wicket libraries while creating the app (or afterwards) and you can drag an icon representing a Label component and generate code in Java and HTMLsimultaneously when you drop the component. (Screenshots are at the link above.) There are some questions at the end of that blog -- any comments to them would be highly appreciated! -- Geertjan Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit ( http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called "Developing an Editor for your Favorite Web Framework". Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: "Wicket IDE", what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 scripting language that extends applications into web and mobile media. Atte
Re: [Wicket-user] JavaOne, Wicket, NetBeans
Riyad, This is fantastic headway, keep it up guys. IDE support for Wicket is in high demand and I'm sure most people on this list appreciate the exposure and time you are putting towards this. Thanks a lot for the encouragement! I've just finished blogging about some refinemenets to the initial support that I'm working on: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further1 Feedback needed! Gj Best, Riyad Geertjan Wielenga wrote: Hi all, OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for details) and I have made some progress on our Wicket plugin. Here it is described: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further So, now you can select the Wicket libraries while creating the app (or afterwards) and you can drag an icon representing a Label component and generate code in Java and HTML simultaneously when you drop the component. (Screenshots are at the link above.) There are some questions at the end of that blog -- any comments to them would be highly appreciated! -- Geertjan Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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 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 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] JavaOne, Wicket, NetBeans
Hi all, OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for details) and I have made some progress on our Wicket plugin. Here it is described: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further So, now you can select the Wicket libraries while creating the app (or afterwards) and you can drag an icon representing a Label component and generate code in Java and HTML simultaneously when you drop the component. (Screenshots are at the link above.) There are some questions at the end of that blog -- any comments to them would be highly appreciated! -- Geertjan Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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] JavaOne, Wicket, NetBeans
Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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] JavaOne, Wicket, NetBeans
Riyad Kalla wrote: Geertjan, What would be incredibly cool is to CTRL-Click on wicket:id values from the HTML page, and have it jump you to the line of code in the associated Java file that uses that same id. You might be able to do this 80% right by simply looking for the exact String in the Java page and jumping the cursor to that first line, or looking for that string on a line with the method call add as well. Yes, that's one of the features I'm planning. In addition to using Ctrl-Click for this purpose, you'll be able to hold down the mouse and then move the mouse towards the wicket:id value, when the mouse reaches the value, the value will trun into a hyperlink and the cursor will change into a hand. Then you'll be able to click the hyperlink and jump to the associated Java code. Does that make sense? And is this what you mean and is it useful? -- Gj -Riyad Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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 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] JavaOne, Wicket, NetBeans
Gili, Sounds like a great idea! One of the issues I opened up a while back is that you currently can't create an HTML file into Source Packages. So you end up having to a file into Web Pages then moving it into the appropriate folder in Source Packages. Fixing that would be nice ;) Sorry I didn't tell you, but it's been fixed all along. If you go to the Other category, you'll find an HTML file there. (I.e., do not use the HTML fin the Web category, but in the Other category.) Then you can select where to put it -- including in a source package! It would also go hand-in-hand with a single file template that creates two files. Yup. Other feature I would love to see is code-completion for wicket:* tags in the HTML editor. I believe we'll get this for free once we have a Wicket 1.2 DTD (I'm not sure whether this exists yet or not). Cool idea. Definitely doable. I'll look into it. Thanks for the ideas, Gj Gili Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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] JavaOne, Wicket, NetBeans
Ayodeji Aladejebi wrote: Well working on HTML directly might be tedious for large HTML designs. So how about a Clean Component Tree window generated from all wicket:ids found in the HTML. Then each node can have some context menus asking what what type of component you wish to add: a Label, A Panel, A ListView etc Not 100_ sure that I know what "Clean Component Tree window" should do. But I was thinking of creating a paletter where you can drag and drop components (label, panel, listview) into the HTML file (plus generating code in the related Java file). Doesn't that do the same thing as what you're suggesting? -- Gj On 3/6/06, Riyad Kalla [EMAIL PROTECTED] wrote: Yes exactly, that sounds great. Geertjan Wielenga wrote: Riyad Kalla wrote: Geertjan, What would be incredibly cool is to CTRL-Click on wicket:id values from the HTML page, and have it jump you to the line of code in the associated Java file that uses that same "id". You might be able to do this 80% right by simply looking for the exact String in the Java page and jumping the cursor to that first line, or looking for that string on a line with the method call "add" as well. Yes, that's one of the features I'm planning. In addition to using Ctrl-Click for this purpose, you'll be able to hold down the mouse and then move the mouse towards the wicket:id value, when the mouse reaches the value, the value will trun into a hyperlink and the cursor will change into a hand. Then you'll be able to click the hyperlink and jump to the associated Java code. Does that make sense? And is this what you mean and is it useful? -- Gj -Riyad Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit ( http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called "Developing an Editor for your Favorite Web Framework". Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: "Wicket IDE", what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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 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-use
Re: [Wicket-user] JavaOne, Wicket, NetBeans
Gili wrote: Is there any reason we can't have the default HTML template have this functionality? I think the reason is that the IDE attempts to guide you in making the right decision. Normally, except in web frameworks such as Wicket, the HTML file finds itself outside the source packages. So, the IDE prevents the developer making a mistake by not letting him/her create the HTML file in a source package. I think this makes sense. The fact that the Other category contains an HTML file that circumvents this, means that you have a choice to put it somewhere else, but only if you consciously choose that alternative HTML template. -- Gj Gili Geertjan Wielenga wrote: Gili, Sounds like a great idea! One of the issues I opened up a while back is that you currently can't create an HTML file into Source Packages. So you end up having to a file into Web Pages then moving it into the appropriate folder in Source Packages. Fixing that would be nice ;) Sorry I didn't tell you, but it's been fixed all along. If you go to the Other category, you'll find an HTML file there. (I.e., do not use the HTML fin the Web category, but in the Other category.) Then you can select where to put it -- including in a source package! It would also go hand-in-hand with a single file template that creates two files. Yup. Other feature I would love to see is code-completion for wicket:* tags in the HTML editor. I believe we'll get this for free once we have a Wicket 1.2 DTD (I'm not sure whether this exists yet or not). Cool idea. Definitely doable. I'll look into it. Thanks for the ideas, Gj Gili Geertjan Wielenga wrote: Hi all, Firstly, I want to apologize for not being a regular contributor to these Wicket lists (at all). Some time ago I blogged about Wicket quite a bit (http://blogs.sun.com/geertjan), but since then other work activities have taken up my time. I work as a technical writer for NetBeans in Prague, Czech Republic. I'm going to be at JavaOne, where I will do a presentation called Developing an Editor for your Favorite Web Framework. Basically, I'll show how you can strip the NetBeans IDE to its bare essentials, and then add plug-ins for the editor functionality specific to whatever web framework you want to use, and then finish off with some branding -- adding a splash screen, creating an executable, and then running the resulting executable with just the NetBeans core plus your plug-ins. So, that's where Wicket comes in! I'm going to use Wicket as my example web framework for purposes of this presentation at JavaOne. For this reason, I'd really appreciate your help. When you think of: Wicket IDE, what would be some of the features that you'd like to be there? I'm thinking of: -- project templates -- project samples -- a single file template that creates two source files: HTML file and Java source file -- a palette that lets you drag components into the HML file, while simultaneously generating the associated Java code in the Java source file -- being able to jump for the HTML code to the related Java code, using a shortcut key or menu item in the editor Do the above make sense to you? Are there other things you can think of? Any help would be appreciated. Thanks, Geertjan --- 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 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 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] NetBeans/Wicket integration tutorial
Hi all, For the NetBeans IDE 5.0 release, there's a tutorial that describes how to create a plug-in for Wicket: http://platform.netbeans.org/tutorials/nbm-projecttemplates.html Feedback would be appreciated. -- Gj --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket Tools
Nick Heudecker wrote: Is anybody working on IDE tools or plugins for Wicket? If so, I'd like to get involved with that. I am. One thing I'm trying to work out is what exactly tools support would consist of. Anything other than templates? -- Gj --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket Samples as NetBeans Projects
If you have any comments -- please leave them in my blog, at the end of the blog entry, so that everything's collected in the same place: http://blogs.sun.com/roller/page/geertjan/20050705 -- Gj --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Comments on the Wicket examples
Hi all, I'm starting a new thread in response to Johan's response yesterday in the import wicket.examples.WicketExamplePage? thread: Please give us pointers in how we should fix that example! So that others don't step into the same kind of thing.. Having very good examples is a good thing (the thing people are first looking at...) I agree completely, Johan. Here are my comments, after having worked through Hello World!, NavoMatic, and GuestBook: General comment: Unless you're assuming all your users are advanced web/java developers who will either pick things up very quickly or who won't mind struggling through on their own, I think you should explain every step in great detail. These three are the very first encounters anyone has with Wicket, hence they should rather provide too much than too little information. For example: (a) Don't assume that people will work through the three examples sequentially. For example, the content of web.xml is only shown in the first example, but not in the other two. NavomaticApplication.java is shown in the second example, but GuestBookApplication.java is not shown in the third example. (b) Provide steps. And describe EACH step. Don't assume anything. (c) Provide a link with downloadable code at the top of each example. (d) Make sure that the content of the example code matches the code in the descriptions. For example, GuestBook.html in http://wicket.sourceforge.net/ExampleGuestBook.html is very different to GuestBook.html in the wicket-examples directory. At the very least, STATE that there are differences between the two. If I think of other comments, I'll let you know. -- Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Letters for hangman?
Is it just me or are the letters for the Hangman sample not included? I can't find this, for example: /HangMan/hangman/resources/wicket.examples.hangman.Letter/b_enabled -- Gj --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Letters for hangman?
Thanks. Is the same true for save and reset in the FormInput sample? I'm not sure why, but in this sample as well as in HangMan, the dynamically generated images aren't displaying. -- Gj Eelco Hillenius wrote: The letters are actually rendered on the fly. In Guess.java: link.add(new Image(enabled, letter.getSharedImageResource(true))); In Letter.java: public ResourceReference getSharedImageResource(final boolean enabled) { return new ResourceReference(Letter.class, asString() + (enabled ? _enabled : _disabled)) { protected Resource newResource() { // Lazy loading of shared resource final DefaultButtonImageResource buttonResource = new DefaultButtonImageResource(30, 30, asString()); if (!enabled) { buttonResource.setColor(Color.GRAY); } return buttonResource; } }; } DefaultButtonResource creates the image based on the String it is fed (asString()) which is the letter in this case. The ResourceReference is implemented as a anonymous class as: - the resource is static/ global and the image is meant to be reused throughout the whole application with a stable url like /HangMan/hangman/resources/wicket.examples.hangman.Letter/b_enabled (which we call a 'stable' url and that is a url that can be cached by your browser) - in a clustered environment, when the resource is sent to another server, the resource has to be recreated on that server in case it didn't exist yet. Hope this helps, Eelco Geertjan Wielenga wrote: Is it just me or are the letters for the Hangman sample not included? I can't find this, for example: /HangMan/hangman/resources/wicket.examples.hangman.Letter/b_enabled -- Gj --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Letters for hangman?
Hi Eelco, Yep. That works with an image factory (I think using DefaultButtonImageResourceFactory). It is a bit magical, but Jonathan liked this one as you hardly need any code for it. Personally, I'm more in favor of more explicit programming, but that is just me I guess. Are images not displaying at all? Attached is a screenshot. The one for FormInput is similar. That's weird! Could you provide us with some details of the environment you are using (OS, JDK version, etc)? Maybe it's JDK dependent (I'm on 1.4.2_07) but why would this be the only thing that's impacted by the JDK version? everything else works like a charm. (My OS is Windows XP.) I'm sorry you're having a hard time getting things running. I'm having a pretty good time with it, actually. I've learnt a lot of related things too, through learning about Wicket. For example, have a look at my blog entry for today: http://blogs.sun.com/roller/page/geertjan/?anchor=effective_monitoring_of_deployed_wicket The last few days I've blogged about nothing but Wicket, which rarely happens -- I tend to jump around from topic to topic. ;-) -- Gj Eelco Geertjan Wielenga wrote: Thanks. Is the same true for save and reset in the FormInput sample? I'm not sure why, but in this sample as well as in HangMan, the dynamically generated images aren't displaying. -- Gj Eelco Hillenius wrote: --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user attachment: hangman-no-images.jpg
Re: [Wicket-user] Letters for hangman?
Matej Knopp wrote: I don't understand, what's the point of converting wicket-example into series of independent netbeans projects. Wouldn't it be simpler to create one netbeans web project, copy the source code from wicket examples into new project's src folder and also copy the contents of the web folder (including the web.xml file)? This way you can have wicket examples running in netbeans in minutes. Sure, you could do that. Personally, I just like dealing with smaller projects. While learning about Wicket, it would be pretty hard to make head or tail of everything if you have a massive amount of files and packages and what not, all within the same project. On top of that, there are a few additional files (in the wicket-examples webapp folder), which need to be in specific places within certain projects. To me, it seems like creating a lot of trouble for yourself -- especially when in the learning stages, when coming to terms with the newness of various Wicket structures -- to have everything lumped into a single project. And bear in mind that by default Wicket doesn't support a split between src and web sources -- you need to add new lookup code to XXXApplication files. All this makes life quite tricky when everything's stuffed into a single project. Still, I'd be interested to know what your experiences are in trying this -- so please do go ahead. :-) -- Gj Geertjan Wielenga wrote: That's it! Now it all works. Stupid me. I was a little bit afraid that the cause of the problem might have something to do with me changing the lookup so that I can include HTML files in a separate web directory. But all I had done was exclude the asterisk in the url-pattern, thus excluding the images. Now I have all the samples converted to NetBeans projects (except for the displaytag sample, which I am working on now). Do I need to ask your permission to post a ZIP containing these samples in my blog? If so, I hereby ask your permission. :-) Either way, you're welcome to have a look at the ZIP file (once I have it, which should be soonish) and do with it whatever you want. -- Geertjan Eelco Hillenius wrote: What does your web.xml look like? Did you map to include all (*) urls of the webapp? Like: servlet-mapping servlet-nameHangmanApplication/servlet-name url-pattern/hangman/*/url-pattern /servlet-mapping ? Eelco --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] database connections, connection pools, and wicket
Does anyone have any experience with making database connections -- especially via connection pools -- with Wicket applications? Is there some special support for that? -- Gj --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Setting placement of HTML files
Eelco Hillenius wrote: I'm a bit behind on the discussion, but if you want to set (actually add) another resource lookup path, that is easy. E.g. when I want to load the HelloWorld example from WEB-INF of the web application, I do: protected void init() { getSettings().addResourceFolder(WEB-INF); } in HelloWorldApplication, and put the templates (in this case just HelloWorld.html) in WEB-INF + full path as packages (in this case 'WEB-INF/wicket/examples/helloworld). Aaah. Now it works... :-) I didn't realize that the FULL PATH AS PACKAGES was needed. So I had this: protected void init() { String root = getWicketServlet().getServletContext().getRealPath(); getSettings().addResourceFolder(root); } But I hadn't put the HTML files in the same package structure as used by the Java files. This is slightly inconvenient (I prefer having all my HTML pages in the web folder -- on the same level as WEB-INF), but not too bad. Thanks a lot for all your help and patience! Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Setting placement of HTML files
Eelco, Yeah, I can see that can be inconvenient. Actually, it's a pretty good thing, on second thoughts. This way, you'll always know where to find your HTML file -- just look where its Java-equivalent is in the source package structure and that's where the HTML will be in the web structure... :-) -- Gj You must realize that, alltough Wicket gives you this possibility, the default packaged one is the default and thus is the easiest to use. If you want it totally your way, it should be possible to provide your own lookup mechanisms. I haven't actually checked this, and do not know how difficult that is. Just know that Juergen and Chris said something about that option a long time ago. Eelco Geertjan Wielenga wrote: Eelco Hillenius wrote: I'm a bit behind on the discussion, but if you want to set (actually add) another resource lookup path, that is easy. E.g. when I want to load the HelloWorld example from WEB-INF of the web application, I do: protected void init() { getSettings().addResourceFolder(WEB-INF); } in HelloWorldApplication, and put the templates (in this case just HelloWorld.html) in WEB-INF + full path as packages (in this case 'WEB-INF/wicket/examples/helloworld). Aaah. Now it works... :-) I didn't realize that the FULL PATH AS PACKAGES was needed. So I had this: protected void init() { String root = getWicketServlet().getServletContext().getRealPath(); getSettings().addResourceFolder(root); } But I hadn't put the HTML files in the same package structure as used by the Java files. This is slightly inconvenient (I prefer having all my HTML pages in the web folder -- on the same level as WEB-INF), but not too bad. Thanks a lot for all your help and patience! Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] import wicket.examples.WicketExamplePage?
The GuestBook sample subclasses wicket.examples.WicketExamplePage. But where can I find that in the Java packages? I also downloaded the examples, but couldn't find it there either. -- Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] import wicket.examples.WicketExamplePage?
Eelco Hillenius wrote: I guess you mean WicketExamplePage.html? I don't think so -- in the GuestBook example (http://wicket.sourceforge.net/ExampleGuestBook.html), GuestBook.java has this import statement: import wicket.examples.WicketExamplePage; And this is the class declaration: public final class GuestBook extends WicketExamplePage I don't understand where that is coming from. It is not defined in the sample and hence causes errors during compilation. -- Gj You can consider WicketExamplePage as an abstract page (maybe we should actually put in the abstract keyword here) in the sense that it is not meant to be used directly. Wicket allways tries to match the concrete type first before falling back on the super type. An example: page C extends page B extends page A. If you call page C, and C.html exists in the same package as where C is, that markup file is used. If C.html does not exists, B.html is tried in the same package as B. If B.html is found, it will be used for both B and C. In all cases, even if A had A.html it wouldn't have been used. /Unless/ you use markup inheritance, in which case the parent's markup /is/ actually used. Same story goes for any component that has markup associated, like Panels and Borders. Eelco Geertjan Wielenga wrote: The GuestBook sample subclasses wicket.examples.WicketExamplePage. But where can I find that in the Java packages? I also downloaded the examples, but couldn't find it there either. -- Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] import wicket.examples.WicketExamplePage?
Got it! And I also got it to work. I do think, though, that the explanation for GuestBook (http://wicket.sourceforge.net/ExampleGuestBook.html) is quite misleading. There are several files that are not mentioned there at all -- and, since I tried to build the application from scratch based on those instructions, I had a pretty hard time. But now it's all good! :-) -- Gj Juergen Donnerstag wrote: project wicket-examples directory src/java/wicket/examples contains WicketExampleApplication.java, WicketExamplePage and 2 more files. It is definitely there. Juergen On 7/3/05, Geertjan Wielenga [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: I guess you mean WicketExamplePage.html? I don't think so -- in the GuestBook example (http://wicket.sourceforge.net/ExampleGuestBook.html), GuestBook.java has this import statement: import wicket.examples.WicketExamplePage; And this is the class declaration: public final class GuestBook extends WicketExamplePage I don't understand where that is coming from. It is not defined in the sample and hence causes errors during compilation. -- Gj You can consider WicketExamplePage as an abstract page (maybe we should actually put in the abstract keyword here) in the sense that it is not meant to be used directly. Wicket allways tries to match the concrete type first before falling back on the super type. An example: page C extends page B extends page A. If you call page C, and C.html exists in the same package as where C is, that markup file is used. If C.html does not exists, B.html is tried in the same package as B. If B.html is found, it will be used for both B and C. In all cases, even if A had A.html it wouldn't have been used. /Unless/ you use markup inheritance, in which case the parent's markup /is/ actually used. Same story goes for any component that has markup associated, like Panels and Borders. Eelco Geertjan Wielenga wrote: The GuestBook sample subclasses wicket.examples.WicketExamplePage. But where can I find that in the Java packages? I also downloaded the examples, but couldn't find it there either. -- Geertjan --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Setting placement of HTML files
Hmmm. Wicket is still not finding the HTML files. But the error message includes this line: Enable debug messages for wicket.util.resource.Resource to get a list of all filenames tried. I'd like to try that. Does anyone know how to set that up? -- Gj Eelco Hillenius wrote: But you don't need to set this explicitly right? getSettings().addResourcePath(...) should suffice, as the webapplication context will be tried anyway. protected void init() { String root = getWicketServlet().getServletContext().getRealPath(/WEB-INF); getSettings().addResourceFolder(root); } is the same as protected void init() { getSettings().addResourceFolder(WEB-INF); } as the relative path (note the ommission of the first slash) is tried when the given string doesn't resolve to a normal file. The inconsistency here is that addResourceFolder() /WILL NOT/ reference you webapplication path, as it is tried like this: final Folder f = new Folder(folder); if (f.exists()) { where f.exists() will most certainly resolve to true, as it points to your current application path (e.g. $TOMCAT_HOME$). I guess we can't fix this though. Any ideas? Eelco Johan Compagner wrote: if you do / then it is the root of youre webapplication. (just print out a log line of that root it should show you that) johan Geertjan Wielenga wrote: So is this supposed to work in order to customize the lookup paths in 1.0: protected void init() { String root = getWicketServlet().getServletContext().getRealPath(/); getSettings().addResourceFolder(root); } It doesn't work for me. What does / refer to? The web folder? Or web-inf? Or something else? -- Geertjan Eelco Hillenius wrote: Vince Marco wrote: I never used that option myself before, but I tried it out and it worked like a baby. I wrote it down as a how-to in our Wiki. Please see: http://wicket.sourceforge.net/wiki/index.php/Custom_resource_paths Thank you very much. Hadn't thought to move the setting to init(). One note is that your example sets up a variable called webinf, but you are actually referring to the web root. It is a bit misleading as WEB-INF is not the web root. Oops. Sorry about that. Fixed now. Also, this example produces an exception when deployed as a .war (didn't check a folder) into JBoss 4.0.1. The exception I get is: 2005-05-30 15:49:22,920 ERROR [org.jboss.web.localhost.Engine] - Root Cause - java.lang.IllegalArgumentException: URI scheme is not file at java.io.File.init(File.java:324) at wicket.util.file.File.init(File.java:83) at wicket.util.file.Folder.init(Folder.java:75) at reverect.web.ReverectWebapp.init(ReverectWebapp.java:33) Any suggestions? *Big oops*. That's nasty. Seems that Wicket depends on java.io.File while it should use java.net.URL instead (that's also according to the Servlet specs). I am quite suprised this didn't show up any earlier. I opened an issue for it with the highest priority (for 1.0) at http://sourceforge.net/tracker/index.php?func=detailaid=1211638group_id=119783atid=684975. I'm not sure how difficult it will be, but we'll try to fix this shortly. Regards, Eelco --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need
Re: [Wicket-user] Re: Setting placement of HTML files
Juergen, Unfortunately you can not explicitly set webappaths. Does this mean that I currently can't put the HTML files in a different directory? That's all that I'm trying to do. addResourceFolder() first tests the path provided / for existence. If it exists, it'll be added to folders, else to webapppaths. IMO this implementation needs some improvement as you can not add / to webappaths. May I suggest you open an RFE for that. OK, I will. -- Geertjan The solution obviously is use servletContext().getAbsolutePath(/). Juergen On 7/2/05, Geertjan Wielenga [EMAIL PROTECTED] wrote: Thanks a lot. I think I'm a step further now. In the NavoMatic example, I put Page1.html in my web folder (the web root of the application). And this is my init() method in NavomaticApplication.java: protected void init() { getSettings().addResourceFolder(/); } And this is the debug message that results: 2005-07-02 20:41:25,140 [http-8084-Processor23] DEBUG wicket.util.resource.locator.ResourceStreamLocator - Attempting to locate resource 'wicket/examples/navomatic/Page1_en_US.html' on path [folders = [\], webapppaths: []] It seems to me that I need to set webapppaths and nor folders, as I am currently doing. If webapppaths were set to /, instead of folders, I think the problem would be resolved. Or else the probelm lies elsewhere. Can anyone shed light? -- Gj Juergen Donnerstag wrote: copied from one of the previous mails (the mailings are available at gmane which provides a search facilitiy): The error message is telling you that wicket cannot find the markup file for the WicketExampleHeader component in the gov.irs.cts package, the file should be named WicketExampleHeader.html. In order to enable the debug messages you need to edit your log4j.properties file and add the following line: log4j.logger.wicket.util.resource=DEBUG this will turn on debug msgs only for the resource package, if you want to turn on debug messages for the entire wicket change log4j.logger.wicket=INFO to log4j.logger.wicket=DEBUG see http://logging.apache.org/log4j/docs/ for docs on how to configure log4j Igor --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Re: Setting placement of HTML files
So is this supposed to work in order to customize the lookup paths in 1.0: protected void init() { String root = getWicketServlet().getServletContext().getRealPath(/); getSettings().addResourceFolder(root); } It doesn't work for me. What does / refer to? The web folder? Or web-inf? Or something else? -- Geertjan Eelco Hillenius wrote: Vince Marco wrote: I never used that option myself before, but I tried it out and it worked like a baby. I wrote it down as a how-to in our Wiki. Please see: http://wicket.sourceforge.net/wiki/index.php/Custom_resource_paths Thank you very much. Hadn't thought to move the setting to init(). One note is that your example sets up a variable called webinf, but you are actually referring to the web root. It is a bit misleading as WEB-INF is not the web root. Oops. Sorry about that. Fixed now. Also, this example produces an exception when deployed as a .war (didn't check a folder) into JBoss 4.0.1. The exception I get is: 2005-05-30 15:49:22,920 ERROR [org.jboss.web.localhost.Engine] - Root Cause - java.lang.IllegalArgumentException: URI scheme is not file at java.io.File.init(File.java:324) at wicket.util.file.File.init(File.java:83) at wicket.util.file.Folder.init(Folder.java:75) at reverect.web.ReverectWebapp.init(ReverectWebapp.java:33) Any suggestions? *Big oops*. That's nasty. Seems that Wicket depends on java.io.File while it should use java.net.URL instead (that's also according to the Servlet specs). I am quite suprised this didn't show up any earlier. I opened an issue for it with the highest priority (for 1.0) at http://sourceforge.net/tracker/index.php?func=detailaid=1211638group_id=119783atid=684975. I'm not sure how difficult it will be, but we'll try to fix this shortly. Regards, Eelco --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Kick Start your Wicket Development!
Hi Eelco, Download NetBeans IDE 4.1 from here: http://www.netbeans.info/downloads/download.php?type=4.1beta That's all you should need. Once it's installed, do this: 1. File New Project. 2. Web Web Application With Existing Sources 3. Browse to the Wicket Kickstart folder. (And name your project, specify where to put it, etc.) 4. Click Finish. That's it. If anything's unclear, please let me know. Thanks, Geertjan PS: Whose name is Dutcher: yours or mine? :-) Eelco Hillenius wrote: It would be great if you could send a 'get started in NetBeans' for dummies description. We'll put that on the site/ in our docs (and I'll give it a try as well :)). I had some problems getting the projects from sourceforge using SSH. I found this: http://www.netbeans.org/kb/articles/cvs-ssh.html page, but I was wondering whether support for SSH is not out-of-the-box with NetBeans... Anyway, you're help is appreciated! Eelco I'd be more than happy to help. I've been playing around with Wicket for a while, but didn't manage to get anything up and working. (And it's going to take me a while to get used to having my web files in a Java package) I've just downloaded the application into NetBeans IDE 4.1 (which is still in development). And it works great. You need to use a project template called Web Application with Existing Sources. It's pretty cool to use with Wicket, because this NetBeans IDE template generates an Ant file for free. -- Geertjan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Kick Start your Wicket Development!
Martijn Dashorst wrote: April 17, 2005 - Kick Start Your Wicket Development! The Kick Start http://wicket-stuff.sourceforge.net/wicket-kickstart/index.html project gives you a head start when you want to begin your own Wicket http://wicket.sourceforge.net web application. We currently only kick start you in Eclipse, but NetBeans and IntelliJ support will arrive in the near future. If you have experience using NetBeans and creating a project descriptor for that project, please contact me in order to help set up the NetBeans support. If you have experience using IntelliJ and creating a project descriptor for that project, please contact me in order to help set up the IntelliJ support. Martijn Dashorst I'd be more than happy to help. I've been playing around with Wicket for a while, but didn't manage to get anything up and working. (And it's going to take me a while to get used to having my web files in a Java package) I've just downloaded the application into NetBeans IDE 4.1 (which is still in development). And it works great. You need to use a project template called Web Application with Existing Sources. It's pretty cool to use with Wicket, because this NetBeans IDE template generates an Ant file for free. -- Geertjan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user