Re: [Wicket-user] Components Entirely In Java?
I wanted to ask, just for curiosity, in case that somebody wants to develop components/pages in wicket, BUT place the HTMLs outside the package where their corresponding java classes are (avoid the folder hierarchy due to java packages, e.g. have the HTML pages in a web/pages folder and have wicket know where to get those pages from) ? Thanks, Dorel Igor Vaynberg wrote: you can encapsulate a great deal of markup and css into the components, however unless you go to extremes some basic knowledge of html is still needed. wicket doesnt use layout managers so you have to provide some basic html - at least span tags to position the components. in some cases if the components being added are just stacked you can use a repeater like RepeatingView to take care of that so end users can go MyPage() { getNavContainer().add(new MyNewComponnet1()); getNavContainer().add(new MyNewComponent2()); getBodyContainer().add(new MyNewCompoenent3()); } etc -Igor On 10/18/06, *Jonathan Sharp * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm a UI developer on a team of about 10 and are in the evaulation process of wicket. Pardon my ignorance if this is obvious or misses the boat... How complex would it be to provide a jar of components to our developers that they can use to build their interfaces without having to touch HTML? The goal would be that they would build the application without having to write any HTML but simply append components to each other similar to how you can with the DOM browser side. Our AppBasePage would then have a wicket:child/ tag which is where it would render these components. Does this make sense? Example Components: - Form - FieldSet - FieldPair - SaveButton Developers would then: class MyPage extends AppBaseBase { public MyPage() { Form f = new Form(myForm); f.add(new SaveButton(id, Label)); add(f); } } Cheers, -js - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 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 __ NOD32 1.1758 (20060915) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com ___ 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] A thought on Links Bookmarkable links
Johan Compagner wrote: There is no way to use state when you use bookmarkable/stateless pages Sorry, where can I read more on stateless pages ? Thanks for your link clicks or other things. Because there is no page at the server where that state is... johan On 8/5/06, *Gwyn Evans* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 05/08/06, Eelco Hillenius [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The key thing about bookmarkable pages is that they can be constructed directly/ without the need to have a session upfront/ without having to rely on other pages. This means that the URL is the only thing that is available for a bookmarkable page. Yes, I've got that, thanks, it's just that there are two way I might arrive there, one being the normal case, arriving 'cold'. The other, though, where I just happened to have the information it would need 'to hand', lead me to wonder if there was a way to pass it while keeping the bookmarkable feature... Think whether you need that detail page to be bookmarkable... do you expect users to actually bookmark it or have some reason to directly want to access that page/ In this case, yes, I probably would, or at least the convienience of doing so is worth the extra DB call in this case! It's not going to be a high-volume app! /Gwyn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] form's onsubmit handler
I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the onsubmit to the form with a SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this isn't the way a form is supposed to be used, can anybody point to how can I do such a thing ? (Ask a user, 'do you really want to submit that form' when he presses submit) Thanks, Dorel - 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] form's onsubmit handler
Eelco Hillenius wrote: Yeah do it like that. The form is submitted no matter what I return in submit button's onclick. Eventually the solution would be to add a simple button and NOT a submit button and force submiting the form through javascript when pressing the button. (Which I do not like). I wouldn't know why attaching attribute modifiers to your form didn't work though... Me neither, that's why I asked. I thought that in some way onsubmit attribute is blocked by wicket being reserved for it's own use, otherwise I do not see any reason why wicket wouldn't render a 'onsubmit' attribute as it renders the others that fortunately do work :-(. From what I know returning false in the form's onsubmit is the standard way of elegantly preventing the form from being submitted. Eelco On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote: I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup input type=submit wicket:id=submit onlick=return confirm('...');/ ) -Matej Dorel Vaida wrote: I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the onsubmit to the form with a SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this isn't the way a form is supposed to be used, can anybody point to how can I do such a thing ? (Ask a user, 'do you really want to submit that form' when he presses submit) Thanks, Dorel - 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?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com - 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] form's onsubmit handler
It works, sorry, I was not paying enough attention. In the first phase I wasn't looking to the right form, the the second phase I forgot to add the 'return' in the 'onsubmit' form handler Correct is *add(new SimpleAttributeModifier(onsubmit, return confirmSubmission()));* and it works with wicket 1.2 final. Sorry for the trouble. Dorel Vaida wrote: Eelco Hillenius wrote: Yeah do it like that. The form is submitted no matter what I return in submit button's onclick. Eventually the solution would be to add a simple button and NOT a submit button and force submiting the form through javascript when pressing the button. (Which I do not like). I wouldn't know why attaching attribute modifiers to your form didn't work though... Me neither, that's why I asked. I thought that in some way onsubmit attribute is blocked by wicket being reserved for it's own use, otherwise I do not see any reason why wicket wouldn't render a 'onsubmit' attribute as it renders the others that fortunately do work :-(. From what I know returning false in the form's onsubmit is the standard way of elegantly preventing the form from being submitted. Eelco On 7/17/06, Matej Knopp [EMAIL PROTECTED] wrote: I think you should add Button(s) to the form and add onclick attribute modifier on them (or right on to the markup input type=submit wicket:id=submit onlick=return confirm('...');/ ) -Matej Dorel Vaida wrote: I'm using wicket 1.2 final and trying to use the form's 'onsubmit' handler to prompt the user to confirm a message or not. I've tried to solve this by adding the onsubmit to the form with a SimpleAttributeModifier but it doesn't work, the onsubmit attribute is simply not rendered ?! If this isn't the way a form is supposed to be used, can anybody point to how can I do such a thing ? (Ask a user, 'do you really want to submit that form' when he presses submit) Thanks, Dorel - 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?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com - 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 __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com - 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
[Wicket-user] Stream Excel to the client
Is there an easy way, (or an example :-)), of how to stream an Excel (application/vnd.ms-excel) to the client ? With the beta4 version it was working to write the bytes to wicket response's output stream and set the content disposition etc on the http servet response, but that seem not to work anymore. Thanks, Dorel - 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] Stream Excel to the client
Igor, you rock ! :-D . Igor Vaynberg wrote: sure it does :) private class DownloadEulaPdfLink extends Link { public DownloadEulaPdfLink(String id) { super(id); } @Override public void onClick() { RequestCycle.get().setRequestTarget(new IRequestTarget() { public void detach(RequestCycle requestCycle) { } public Object getLock(RequestCycle requestCycle) { return null; } public void respond(RequestCycle requestCycle) { final String pdfPath=/WEB-INF/eula/+props.getProperty(PROP_PDF); InputStream pdfStream=getResourceAsStream(pdfPath); if (pdfStream==null) { throw new RuntimeException(Could not find PDF file, tried [[+pdfPath+]]); } WebResponse r=(WebResponse) requestCycle.getResponse(); r.setAttachmentHeader(eula.pdf); r.setContentType(application/pdf); try { Streams.copy(pdfStream, r.getOutputStream()); } catch (IOException e) { throw new RuntimeException(e); } } }); } } On 7/17/06, *Dorel Vaida* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Is there an easy way, (or an example :-)), of how to stream an Excel (application/vnd.ms-excel) to the client ? With the beta4 version it was working to write the bytes to wicket response's output stream and set the content disposition etc on the http servet response, but that seem not to work anymore. Thanks, Dorel - 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 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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 __ NOD32 1.1523 (20060505) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] combo box displaying choose one
When I reach with the selection in a combo box, to the first item in the list, wicket places a Choose one option as the first item in the combo. Am I doing something wrong or ... does anybody know how to avoid this ? --- 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] ENABLING WAR: Celebrity Christians and the real Da vinci Code
this is too long to read. they should split it. [EMAIL PROTECTED] wrote: Reply-To: cecarl http://straitgateministry.net/ 345-page ONE NATION UNDER ISRAEL Almost FREE (see end) Published by Truths Press ENABLING WAR: HOW A BIBLE PUBLISHER CORRUPTED CHRIST'S WORDS Why Celebrity leaders accept a form of Judaism and call it Christianity By Charles E. Carlson (Director of We Hold These Truths) This study is not written to convince anyone of what Jesus said; it quotes a small but important part of the Christian New Testament of Jesus, explaining how these words have been reinterpreted to justify serial wars. This analysis is important to persons of all beliefs, faiths, and races who are trying to understand why wars dominate our world, and why many of those who call themselves by Jesus Christ's name find themselves pitted in support of wars against other races. It is undeniable that our current wars are directed at Islamic populations. We focus on one bible that is used every day as a war enabler. This is a re-written and abbreviated version of our more far reaching 2006 series, The Sheep and the Goats Parts 1 2, which are drawn from a study of book of Matthew, chapter 25. Your author is responding to requests that we more clearly prove and document the essence of popular biblical distortion about Heaven and Hell in the book of Matthew. Chapters 24-25, which evangelical believe to contain Jesus' words, are intentionally distorted by these same persons, both in the text and footnotes to the text in most popular bible study versions. Self professed CHRISTIAN-ZIONISTS at the pulpit of mega-churches are left with an untenable problem. It is impossible for them to tell the truth about what certain New Testament Bible passages say, or even to read them, without contradicting their own support for wars and for the constantly warring state of Israel. Evangelical teaching and preaching often directly contradict that which Jesus taught about love and peace, and more surprisingly, celebrity Christian statements often directly conflict with Jesus' statements about Heaven and Hell. Church economics may be a factor in scriptural compromise. Opposition to war is less popular than ignoring or accepting it. Celebrity Christian leaders may feel financial pressure to warp the New Testament into a wide and easy path interpretation, which they say points, not to Heaven and Hell, but to a second coming. Simply stated, pastors have learned they can't fill 10,000 seat arenas by leaning too heavily on sin, repentance and judgment as Jesus portrayed it in this carefully worded chapter. It is just not good for mega-church business. Nor do they want to refute what is public policy at the highest levels. Some pastors no doubt justify compromise to choose the wide path to build their own empires in contrast to what Christ called the narrow path or Strait gate. Our government's public policy includes war, which has also become many churches' policy. Evangelical celebrities generally believe in politically activism, and every politician knows it pays to be born again. Thus an unspoken, unholy alliance has been created between financially successful biblical teachers on one hand, and politically successful politicians and businessmen who thrive on serial wars, on the other. The cost has been untold lives in several unholy wars in the 20 years. But where to the war-accepting pastors find their scriptural support for war? We will examine only once example in a corrupted version of the book of Matthew, in one corrupted bible the Scofield Reference Bible 1967 version. Oh that my adversary would write a book The famous Scofield Reference Bible, perhaps the most powerfully promoted Bible ever written, is the godfather of modern bible distortion, which is now emulating and even exceeding in radicalism by other popular study bibles including the NIV Study Bible and the MacArthur Study Bible. Matthew 25 contains one of the most directly written and clearly self-explained passages on Heaven and Hell, which was once taken at face value in most churches. But the explanation of Matthew 25 we find so simple and straight forward is now rejected in almost every evangelical (Christian Zionist) church. And the Oxford/Scofield re-write is increasingly influential in a growing number of mainline churches where are members attend dispensational bible studies, and while there hours before celebrity-Christian media. Members of most Catholic or mainline protestant church are also deeply influenced by the “end times controversy. Matthew, the first book in the New Testament, contains the most outrageous example of added words that directly contradicts Jesus words. A quote from the Scofield Reference Bible footnotes directly contradicts what Jesus Christ is quoted to have said, His simple words, taken from the King James Edition, describing the basis upon which Jesus told his followers He himself will
Re: [Wicket-user] What happend to beanedit ? Wasn't it supposed to be into the wicket extensions package ?
Eelco Hillenius wrote: It was, but I could never find enough time to finish it, and the longer it was in there, the less happy I was with the result. Were you using it? Sorry if removing it caused inconvenience, but it just wasn't finished. I used it once, but planning to use it more. Can we find a way to get it back into the repo somewhere, or is it already there ? , and share some thoughts of what were you planning to do with it or what you didn't like, cause I'm darn busy (to contribute quality code), but also I am darn lazy :-D so I'd like sometimes not to have to resort to add(new TextField(fistName)) and lazyness always comes first, so what I'm trying to say is that I could contribute some code if you share what you think we would need to do so it looks nice and be usable. I have some ideas myself of what we could do to make it better e.g. I modified the source code some time ago, somewhere at beta 4 maybe to be able to configure in a props file what properties of the model bean should be visible and also in what order(this could be abstracted so props file would be a choice, and be able to config it directly in code for example or whatever). Combined with the ability to define an editor for each displayed property (you were already doing that I suppose ?) I think we can make the beanedit extra package something usable in a certain range of situations. 50 milis of adrenaline, 5, 4, 3, 2, 1 - Step aside - trtrrtrtrtrtrt - Pulse to 50, Pulse to 60 - Beanedit is back again with us, good job :-)) Thanks. Eelco On 5/20/06, Dorel Vaida [EMAIL PROTECTED] wrote: --- 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=kkid0709bid3057dat1642 ___ 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
[Wicket-user] What happend to beanedit ? Wasn't it supposed to be into the wicket extensions package ?
--- 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] Google Web Toolkit integration ?
Igor Vaynberg wrote: imho, html is the best layout manager out there for browser apps. add css to the mix and you have a great skin manager as well. the one thing you always hear swing developers bitching about is how they have to fight the layout managers to get the results they want. gridbaglayout is poweful but its a huge pain to work with. matisse+grouplayout are the holy grail for swing devels, its nice and easy to create layouts. but it still requires a gui to do this, while i can do html easily by hand. Well, next time also look into the FormLayout of the JGoodies (Forms) fame. It's easy to do by hand, even easier if you use the factories and builders it provides. Excellent library JGoodies, it's my choice as a layout manager for the desktop. also browser screen space doesnt translate easily to the desktop space. in desktop space you are pixel aware, you are also pixel aware of your fonts and the south east corner of the window. in html you have none of these things. look at wingS framework examples, they use layout managers. look how rectangular their examples look. -Igor On 5/17/06, *Frank Silbermann * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I, personally, don't care for HTML, and perhaps I might enjoy programming in Echo2 better. But suppose an employer maintained an HTML fragment with links to their entire portfolio of web applications, and wanted this fragment to appear on every page of each web application. Since someone else is maintaining that scrap and keeping it up-to-date, I would not want to translate it into Echo 2 and maintain my own copy. Would it not likely be easier to incorporate such an HTML scrap into a Wicket application, versus one written in a framework such as Echo 2 that abstracted away the HTML completely? -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Eelco Hillenius Sent: Wednesday, May 17, 2006 10:58 AM To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Google Web Toolkit integration ? It's certainly an intriguing idea (have a look at haxe.org http://haxe.org if you find it interesting), ... ... Yeah. I see some advantages of using layout managers - basically the same promise as Swing has - but currently I would still prefer using HTML for layout. If I would like the GWT way of developing applications, I would have choosen Echo 2 a long time ago. GWT looks like a next gen Echo to me, though with a very big name behind it, and some cool innovations. ... Eelco --- 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 http://sel.as-us.falkag.net/sel?cmdlnkkid%120709bid3057dat%121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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
[Wicket-user] Google Java - Ajax Toolkit
Hi again guys :-) .I'll surely look into how and if it can be integrated (or even if it's worth) with Wicket but I can bet that there are here on the list people that can emit much better opinions than mine. So ... please take a look and share your opinions: http://code.google.com/webtoolkit/ Dorel --- 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] passing IModel around
I'm not really up to date with wicket but in old versions you would have done, I suppose it hasn't changed anyway. blogModel.getModelObject(). Vincent Jenks wrote: That won't work, since getObject takes a parameter of Componentwhat would I pass in? On 4/2/06, *karthik Guru* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The model isn't of type Blog. The object stored within LoadableDetachableModel is of type Blog. Blog blog = (Blog)blogModel.getObject( ) should hopefully work.? On 4/2/06, Vincent Jenks [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm just testing something out. Since I use EJB3 and need lazy initialization I'm making an attempt to see if passing an object with a collection of lazily-loaded elements in an IModel, from page-to-page, will prevent a LazyInitializationException (Hibernate). I start here in the first page: public class ViewBlog extends WebPage { public ViewBlog() { //get Blog in detached model IModel blogModel = new LoadableDetachableModel() { protected Object load() { return BlogProxy.getDefault(); //via proxy } }; //add panel components add(new HeaderPanel(headerPanel, blogModel)); ...and then in the HeaderPanel I do this: public class HeaderPanel extends Panel { public HeaderPanel(String id, IModel blogModel) { super(id); Blog blog = (Blog)blogModel; //EXCEPTION HERE! .. I get this exception: java.lang.ClassCastException: com.myapp.ui.ViewBlog$1 at com.myapp.ui.panel.HeaderPanel.init(HeaderPanel.java :34) at com.myapp.ui.ViewBlog.init(ViewBlog.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java :39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance (Constructor.java:494) at java.lang.Class.newInstance0 (Class.java:350) at java.lang.Class.newInstance(Class.java:303) How do I down-cast to Blog (entity bean) from the IModel param? -- -- karthik -- --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 http://sel.as-us.falkag.net/sel?cmdlnkkid%110944bid$1720dat%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] possible bug - wicket 1.2 beta2
Can anyone check if this is a bug the following: label.add(new AttributeModifier(class, true, new Model(newClass))); will not add the class attribute to the label's span, but it will replace it if it's there. --- 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] getMarkupSettings().setStripWicketTags(true);
this doesn't have any effect in version 1.2 beta1 getMarkupSettings().setStripWicketTags(true); Can someone chech that out please. Maybe I'm doing something wrong. Thanks --- 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 news for 2006-03-02
... but we are looking at hosting options to have more cpu available for ourselves. http://www.contegix.com/index.action Take a look here, I've heard some good things about them, worths a check. --- 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] Post 1.2 roadmap
After reading everybody's posts and thinking what I myself would want to have in future wicket releases: JDK 1.5 support is here for too long not to have it in. I know it's tough for the people who need to deploy on 1.4 in the future but Os is supposed to drive innovation. How to do it if wicket doesn't get all the marvels as generics and annotations in 1.5 while JDK 1.6 is almost beta ? It's gone too far :-), it's just my oppinion, please don't take it as a critique, it's not. I just believe that in the end 1.5 will bring a lot more good than bad to wicket users. And I suggest for us/others who will need 1.4 to use a retrotranslated (http://retrotranslator.sourceforge.net/ is alive and kicking, is actively developed in contrast to retroweaver, and people report good experiences with it) version of a Wicket for JDK 1.5. Martijn Dashorst wrote: All, We are of course very busy finalizing Wicket 1.2, and we /really/ hope to get it done soon. This will benefit everyone. So I want to take a look beyond 1.2 and try to get some opinions on our roadmap, and adjust where appropiate. There are two very big things ahead of us: - constructor refactor we have reached a limit to the support we want to provide for Ajax and javascript. In order to provide the best support we need to know the markup id before it is available. Many have been bitten by trying to retrieve an attribute from a component tag in the page constructor. We want to remedie this by removing the add() method, and replacing it with an extra parameter in the component constructor, which sets the parent of the component. public MyPage() { WebMarkupContainer c = new WebMarkupContainer(foo); c.add(new TextField(bar1)); c.add(new Label(bar2)); c.add(new Label(bar3)); add(c); } will become: public MyPage() { WebMarkupContainer c = new WebMarkupContainer(this, foo); new TextField(c, bar1); new Label(c, bar2); new Label(c, bar3); } This opens up a lot of better markup parsing strategies for the core. We know this is a major API break, but we feel it is necessary to implement it in order to move Wicket forward. - java 5 support This is something a lot of people are waiting for. I understand that many people want, Igor states /need/, Java 5 support in Wicket. There is also a negative side to this. Some, or even many of you, can't move to java 1.5 as a server platform. We don't know how many users this affects. Please give a response when you can't move to 1.5. As Wicket is a volunteer effort, we can only support so many projects. Supporting both a 1.4 and 1.5 project will drain our resources too far, and won't be possible. So we have to make a choice. The questions I'm seeking answers to are the following: - should the post 1.2 version of Wicket involve both changes? preferable not - should we make different releases for either change, and thus postponing 1.5 to Wicket 3? - how many of you still require for current or future projects to run on JDK 1.4? I'm the fortunate one, I can choose the paltform in the majority of my company's projects. so go jdk1.5. I'm running 1.4 code on it anyway. - how many would object to having a retroweaver build of a JDK 5 Wicket, which enables you to run 1.5 code on a 1.4 JRE? If it passes all the tests I believe it's acceptable. Thanks for your answers, Thanks a lot wicket team for your efforts. It feels bad not having the time and skills to get involved in development. Martijn -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2 ?
Johan Compagner wrote: the planning is that 1.2 will be released within 2 months (i hope within 1 but that is maybe a bit to much) We have now a Security framework (better said security interfaces) inside wicket. Where a implementation can be attached to (like jaas or acegi i guess) There is currently not a real implementation build on acegi as far as i know. But i guess it just have to be build as an implementation of the current security interafaces. Why do you require to use Acegi? Because it has been designed for Spring (and I use Spring on almost all the projects ) and it allows you to design these incredible powerfull security schemes going down to method level etc. Because it's an incredible powerful security package and I trust it. And finally because it's a requirement that would make a particular customer happy :-) johan On 2/8/06, *Dorel Vaida* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, without any intention to create presure, I would want to ask if the version 1.2 of Wicket provides integration with the Acegi security framework (as stated in the roadmap for Wicket 1.2). Also I'd like to ask if the 1.2 final release will be delayed more than 2, or 3 months from now. I'm asking this because my next project requirements include the use of Acegi as the security framework for the web tier and I estimate the development to last at least 3 months and I'd like to go into production with a stable version of Wicket. It'll influence my decision of working with Wicket 1.2, 1.1 or if I will even choose Wicket for the project. Thanks alot. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket 1.2 ?
Hi there, without any intention to create presure, I would want to ask if the version 1.2 of Wicket provides integration with the Acegi security framework (as stated in the roadmap for Wicket 1.2). Also I'd like to ask if the 1.2 final release will be delayed more than 2, or 3 months from now. I'm asking this because my next project requirements include the use of Acegi as the security framework for the web tier and I estimate the development to last at least 3 months and I'd like to go into production with a stable version of Wicket. It'll influence my decision of working with Wicket 1.2, 1.1 or if I will even choose Wicket for the project. Thanks alot. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Thanks for the support for Wicket
Martijn Dashorst wrote: All, I've been reading up on various forums (JavaLobby, TSS, etc) and I want to thank our community for bringing Wicket into the spotlight. Two nice quotes on JavaLobby, taken from a Ruby on Rails thread: Wicket + hibernate is the ultimate Web Solution. I enjoy them, enjoy coding with java, its inspiring seeing them bring out yur ideas and sincerely I and my customers are not complaining - Dabar Aladejebi http://www.javalobby.org/forums/profile.jspa?userID=139543 No XMLs don't make me happy. Yes I could play with RoR and I will sometime. But for all other guys who like to build in Java, and they like what Spring, Hibernate, OSCache, AspectJ, Quartz and MANY MORE bring to the table, WILL YOU PLEASE USE WICKET STARTING FROM TOMORROW MORNING ?! It's no XML, it's plain Java and HTML (even RoR can't get rid of HTML, ack! ) AND MOST OF ALL IT BRINGS BACK OOP into WEB Programming. - Dorel Vaida http://www.javalobby.org/forums/profile.jspa?userID=99560 Well, here is where I am nice. You should hear me screaming and moaning at whoever brought action based frameworks into the world. Well, WebWork and few others are exceptions but there are some which I will not mention here and of which the Java community as a whole should be ashamed. Spring + Hibernate provided an excellent alternative to the complexity, quircks and shortcommings of EJBs. I expect (and I am asisting to it already) Wicket to do the same for the web tier. Keep up the good work and thanks for the fact that not only RoR guys can have web fun these days. Wicket users can do that too :-D. Thanks for the evangelism, and keep it nice! I will. Martijn -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tomcat 5.5 - cannot find wicket class files
I don't know but Context path= sounds wrong. I didn't check but can you try Context path=/ instead ? Just a thought. Also specifying appBase and than giving a full path to the docBase doesn't seem right. It's a configuration issue I suppose. Keep trying. Also it would be usefull if you can provide some stacktrace, anything. halo 0309 wrote: Hi all, this is a beginners question ... I am trying to deploy an application using wicket in the form of a WAR file and have it as the root of Tomcat. E.g. when opening http://localhost http://localhost I want my application to be deployed to the Tomcat root - I do not want to use an offset (like http://localhost/myapplication) The thing is that when deploying to an offset like 'myapplication' above everything works just fine. When trying to deploy the same application (war file) to the tomcat root it does not seem that the Tomcat container finds the classes or jar files in the WEB-INF/lib directory; e.g. the Wicket class files are not found. From the Tomcat log file: java.lang.ClassNotFoundException: wicket.protocol.http.WicketServlet When deploying the war file to an offset it works like a charm ... This is ofcourse driving me nuts From the server.xml config file (this does not work): Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= debug=0 privileged=true docBase=C:\Java\apache-tomcat-5.5.13\anders\myhub.war/ /Host If I change the above to: Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=myapplication debug=0 privileged=true docBase=C:\Java\apache-tomcat-5.5.13\anders\myhub.war/ /Host My application is available at http://localhost/myapplication Any input greatly appreciated. Thank you, /Anders --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wingS 2.0 v. wicket 1.1
Christopher Gardner wrote: I posted this to the ServerSide in the recent article on wingS. How would you sell wicket, which requires a physical HTML page, over wingS, which I think does not? Well, I'm not quite familiar with wingS, it looks pretty interesting, but I really enjoy handing over the functional web application pages to the web designer so he gives his best to make it look pretty. That almost includes elements that I don't know about in Java code, and I don't want to know about :-). So if wingS allows the same, I might give it a try sometime, for the moment I am busy fighting customers that still require Struts, how could I mention wingS to them when all they know is Struts is so good that it has got 50% of the Java web application market ? :-D Back to your question, if you let aside the technical issues I think you could sell wicket exactly by mentioning (this is just from the point of view you asked, I don't know how wingS and Wicket compare from the technical point of view) that some web designer will be able to change/beautify, to control how the web page looks after you're done with the functionality (well, this is partially limmited due to the strict component hierarchy Wicket has, but still...) --- While I've looked at wicket 1.1 very closely, I've only read the documentation for wingS 2.0. Both intrigue me, and I'm trying to make up my mind which product I might pursue. With wicket you have to create a web page. It appears with wingS, however, the web page is generated by the servlet. If that is true, it seems wingS honors the DRY principle (i.e., the page object and its components are the only thing needed to represent the page). Why would one choose one product over the other? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wingS 2.0 v. wicket 1.1
Michael Jouravlev wrote: On 12/11/05, Andrew Lombardi [EMAIL PROTECTED] wrote: Programmers work in Java, Designers work in HTML, wicket follows the separation of concerns fairly eloquently. This is a wrong principle. Modern-day web programming is not a CGI script + HTML 2.0. Web browsers are capable of Javascript, DOM, CSS, XML parsing, XSLT and other stuff. Designers cannot do that. This is programmers' job. Let's say that designers and programmers must work as a team to fullfill all those tasks you've mentioned. As I said in a previous email I don't think that a programmer/developer should have anything to do with at least HTML, css etc. That's the ideal case, the real one is when your Java fellow knows as much HTML as he can tell you, the web designer, what the markup he needs should look like so everything works as expected. HTML + css makes things much easier in this respect. No matter how much they try, a programmer/developer with no, or few knowledges of graphic/creative design will not be able to produce a decent looking web application. And because people do not know about, or tend to mix, or even ignore these different skillsets, most of the web applications ( written in java or whatever) you'll see, look like s**t :-). Never before web dev was so fun (and gore) as it in last two-three years. Well, if fun means complex, well, yes, you're right. I think, that's why simple, well designed, specialized frameworks have so much success lately and that's why almost nobody uses XML parsing + XSLT in the browser :-P. And it will get better. That is why I think that JSF and such are very unflexible, they spit out predefined HTML, sometimes not really pretty one, and they do not allow to use the full power of modern client web development. Michael. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JavaOne 2006 - Wicket presentation?
Honestly I think the wicket presentation could be better when it comes about 1.) true OOP, and 2.) when it comes about tools integration support. 1.) Wicket brings back into it's right the true OOP approaches in the serverside java programming. I think this is almost all the time overlooked even by wicket users.( I am working at this time in three projects now: one wicket, one struts, one Spring MVC. After developing with wicket where all looks so natural plain java programming, I have difficulties even to ADAPT my thinking back to the request/response paradigm you find in action frameworks, being given that I've developed MVC for the last 3 years :-)) ). No jsp tags for components, no jsp fragments or includes, no decorators etc. That is all your code is in the same place, all your code is in java and you can design/componentize AS YOU WANT. Only your skills, not the technology you use, will limit the quality of your code and your software product. 2.) On top of this comes the tools support needed. You need a good java IDE and a good web development IDE (html/js/css) both of which are already a commonality in all java IDEs. Back to *Simple* is a Good THING TM. With Wicket, what I see as big (well ... ) problems are: 1.) The session use, not from the size perspective but from the clustering perspective (I think some users will be really reluctant to the ideea that the session is overused in their opppinion. The truth is that *stateless* really helps with scalability BUT is all the time scalability a requirement ? It may be having in mind we're talking about web apps ) 2.) I think some AOP kind of approach could be really usefull, for example to enable a complex authentication/authorization implementation, maybe something similar to what servlet filters are to the servlet environment (this MVC thing really goes into your blood ultimately as you can see :-)) ) Martijn Dashorst wrote: If you were able to go to JavaOne, and was deciding which framework to use, and one of the presentations is about Wicket, what kind of information do you want to hear so you would give it a try? Or even better, what kind of info are you looking for in the program so you attend such a session? I'm in the process to submit a proposal to the JavaOne committee, and I could use this information to streamline the proposal... Deadline is today. Thanks, Martijn -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Repeating items without using a ListView?
Johannes Fahrenkrug wrote: Hi, I had a conversation yesterday with some webdesigners that looked at the html code that my wicket application produces. They said that a lot would have to be changed in order for it to be XHTML compliant. One thing they said was that you should only use tables when it really is a table that you want to display. I use ListViews in a couple of cases to repeat items. For example overviews of customers' bookings: I have a Listview that looks something like this: tabletr wicket:id=customerBookingtd table trtdName:/tdtdspan wicked:id=custNameJohnny Cash/span/td/tr trtdAirport:/tdtdspan wicked:id=custAirportSFO/span/td/tr trtdInsurance:/tdtdspan wicked:id=custInsurancesomething/span/td/tr trtdPrice:/tdtdspan wicked:id=custPrice999/span/td/tr /table /td/tr/table That enables me to repeat the inner table for each customer. Is there a way to do this without using a ListView? What does ListView have to do with your HTML output ? From what I know, I've repeated divs, spans, not only TRs with ListView so I suppose it applies virtually to any HTMl tag so it depends on you to make it XHTML compatible. I suppose :-) Cheers, Johannes. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I18n
Dzenan Ridjanovic wrote: Juergen, For me it looks like your editor is not saving the html document in UTF-8 format but your computers default locale. Which editor are you using? I use Eclipse. And I see French accents in Eclipse. With or without meta tag I have the same problem. In one of previous versions of Wicket I did not have this problem. It may be a web app server thing. Configure Jetty or Tomcat or even the jvm they're running on to use UTF-8 as char encoding. I remember solving a similar problem on Tomcat by setting up the -Dfile.encoding=UTF-8 switch in CATALINA_OPTS env variable. Google for -Dfile.encoding for a while, you'll see you're not alone :-) Dzenan --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing Path Info
Igor Vaynberg wrote: or use a url rewriting filter to change the url to a bookmarkable page ie rewrite all www.example.com/shortcut/(expr) http://www.example.com/shortcut/%28expr%29 to www.example.com/app?bookmarkablePage=Shortcutparam=expr http://www.example.com/app?bookmarkablePage=Shortcutparam=expr -Igor I wonder if we could make wicket urls to look completely REST-full :-D except that we'd still use the session cookie in the headers (which is not REST) On 11/22/05, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think you can do stuff like that now, at least partially. I'm just now starting to work on further improving this (or at least exploring some ideas). Eelco On 11/22/05, Nick Heudecker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I would like to create a URL that looks like: http://www.example.com/app/1F83C6D3A or even: http://www.example.com/app/annual_shareholder_meeting Is there a way to easily access the /1F83C6D3A portion of that URL within Wicket and use it as a page parameter? I suppose the other option could be to do: http://www.example.com/app/?1F83C6D3A Wait. None of these will work because I still need the page that I'm submitting to. I think I've asked this question before, but I need to revisit it because I need a short, yet non-scary URL for public consumption. What I'd like is: http://www.example.com/register/[some http://www.example.com/register/%5Bsome event-specific token]/[some user-specific token] If Wicket can't support this directly, I can map a servlet to /register and have it forward to the Wicket page. Any thoughts on how to do this more elegantly? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick http://ads.osdn.com/?ad_idv28alloc_id%16845opclick ___ 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 the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_idv28alloc_id845opclick http://ads.osdn.com/?ad_idv28alloc_id%16845opclick ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] I18n
Johan Compagner wrote: Tested it and the problem is that you are lying ;) you say: ?xml version=1.0 encoding=UTF-8? in the top of youre file. But youre file is not in UTF-8 but in cp1252 (or something like that) when i made it: (i think that cp1252 is something windows? don't know if you can say that as the encoding) That's Eclipse's default file encoding ?xml version=1.0 encoding=ISO-8859-1? It worked. On 11/22/05, *Dzenan Ridjanovic* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Johan, what does you browser reports in what kind of content type is does get it back? UTF-8. Please go to my web site to see for yourself: http://drdb.fsa.ulaval.ca/urls/ At the end of the page click on Spiral09 to execute the application. Then click on the French flag. The code is in Urls09.zip (after unzip, import the Eclipse project). Dzenan --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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 the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket i18n at the page level
David Leangen wrote: Hello, I did some searching, but could only find info about i18n at the message level. I am interested in i18n at the page level. In other words, I have a site that needs to support more than one locale. The user should be able to switch between them from any point in the site. This is how I am thinking of proceeding, but I would really appreciate comments from anybody who has done extensive i18n before. Using this approach: http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_markups_per_page Each page will (perhaps) have one variant for each locale. I say perhaps because in most cases, there should be a version of the page for each locale. However, this is not always the case. So, the page should provide an alternate target for any page that is missing. Well, no critique intended but I wouldn't (and didn't) choose the 'one HTML page for each supported language' because it is hard to maintain. When you introduce/change the content of one page, you'll have to change it in such many pages as laguages you have. I prefer to keep all the localization info in the Java code and have one HTML page to maintain for all supported languages. I don't know why (except for demo) one would choose another aproach, except the case that the page arrangement differs so greatly from one language to another that you would need to have a different HTML page for each language. So what I did is I used all over the place where I needed localized content class an I18nLabel (well, missname, but you get the point:-) see code below) which extends Label and has a 2 args constructor (can be further evolved for more complex cases, but in my case it was enough) one is the component id and the second is the locale key for the localized message: add(new I18nLabel(helloLabel, hello.message)); package components; import java.io.Serializable; import wicket.markup.html.basic.Label; import wicket.model.Model; import wicket.model.StringResourceModel; public final class I18nLabel extends Label { private static final long serialVersionUID = 1L; /** * will display the content of a simple message like: hello.message=Welcome ! * * @param id * @param key */ public I18nLabel(String id, String key) { super(id); setModel(new StringResourceModel(key, this, null)); } /** * will display the content of a message like: hello.message=Welcome * ${displayName} ! * where the passed in modelObject has the corresponding * getter method: getDisplayName(). See StringResourceModel class for * variations on this. * * @param id * @param key * @param modelObject */ public I18nLabel(String id, String key, Serializable modelObject) { super(id); setModel(new StringResourceModel(key, this, new Model(modelObject))); } } I won't insult anybody by saying that you can copy/paste the code since I am positive that 100% of the list can reproduce it w/o reading it :-D. I could provide more sample code, if needed (but I think the above is pretty clarifying), also I can provide an url to see it working, but I don't want to polute the list with URLs that could be interpreted as advertising so please ask for the link in particular, I will send it to you. All this should be strictly type-checked (if possible at compile time) to avoid as many errors as possible. Pages that use components (such as forms) should be able to pass in the locale as a parameter and the component should support l10n. I don't see why you would want to pass a locale as a param since the locale that is used to display messages from resource bundles is stored in the session, so you just have to set the locale on the session and your messages will be picked up automatically from the coresponding localized file. Thoughts? Advice? If somebody from Wicket elders thinks that the approach I've took isn't allright, or isn't the wicket way, please say so, I will correct my code also, if needed. I don't want to proliferate bad practices unless it is really needed :-D. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info
[Wicket-user] localization problem
I'm developing a localized web application, where the use can change the language he wants the content to be displayed. However, if the localized message doesn't exist in the currently locale file (e.g. file.ro_RO.properties) wicket will not fall back to the default localized message which is in a 'file.properties' file. Is this the desired behavior or I may be missing something ? --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] performance problem - urgent
Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] performance problem - urgent
Dorel Vaida wrote: Matej Knopp wrote: Hi. Wicket is hardly responsible for the headers, that come with your (static) images. I thought a little and maybe, but just maybe, the images are not cached because of the way wicket forms the urls and everything ... I'm sorry, I can't help you here, I've very little experience configuring apache, nor the connector - mod_jk2. I understood that, thanks alot, I'll investigate, still, you've mentioned to try to Adding LastModified header to images should help. and I was asking where to do that, is that a server config ? Good luck. -Matej Dorel Vaida wrote: Matej Knopp wrote: Hi. What does wicket have with the image? It isn't served by wicket, is it? Agree, unfortunately the only thing that changed from the other web applications deliverred by the same server and this one is ... the web framework used. It is wicket, instead of struts or anything else. So I thought I should ask to this list, maybe someone has an ideea. Check your app server settings, it just seems that it's not sending right http headers with the image. Hmm.. Now I see that the server is Apache with mod_jk2. So check apache configuration. Adding LastModified header to images should help. Where to do that ? -Matej Dorel Vaida wrote: Hi all, I've deployed my first application with wicket. However, I have a BIG annoying performance problem with it, and it is visible just in production. We have a pretty big picture on the top of the page, a 200k gif, which is LOADED again and again on every page, it's not cached. On every other sites we've developed, even the big pictures after they were loaded and cached first, they work fine, they are not downloaded every time. In this case, it seems that all the pictures are downloaded every time. The site in case is: http://www.ceramicamaria.ro/ just in case you want to check it live. As you will see, the experience is lousy as you need to wait tons of time for each page loading Anybody has a clue why this is happening ? Any suggestions are greatly appreciated, I assure you. Thanks. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1100 (20050518) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All
Re: [Wicket-user] i18n messages in HTML
Laurent PETIT wrote: Hello, On 11/9/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: You mean for tag text, correct? span wicket:message=hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, This sounds quite similar as what I posted 5 hours ago : (extract) wicket:label key=my.msg.keyA text to render/wicket:label I personally think this need is so widespread that creating a wicket:message as you suggest could be justified. So +1 for this one, But, as for Dorel, I'm also maybe too Struts oriented since it was my previous Web framework of choice ... ;-) Hey, nobody's perfect, you know :-)) -- Laurent --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] i18n messages in HTML
Juergen Donnerstag wrote: I've implemented it last night. Was fairly easy. I'll commt it tonight. wicket:message key=my-keyDefault value/wicket:message input wicket:message=attrName=my-key type=.../ Heh, excellent, I think the above two will cover pretty much the cases where it doesn't fit do develop a new component just to change a message based on the locale. Thanks As wicket core is very much pluggable, it can easily be added / removed. Juergen On 11/9/05, Igor Vaynberg [EMAIL PROTECTED] wrote: +1 -Igor On 11/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I think wicket:message key=../ would fit well with our other wicket tags, e.g wicket:panel. IMHO such an addition would be very useful. Sven You mean for tag text, correct? span wicket:message= hello.message / What do you think about wicket:message key=../. Than it is clear that the whole label is wicket specific, span wicket:message=key is a bit dangerous because how would we handle span wicket:id=myLabel wicket:message=key? Juergen On 11/9/05, Dorel Vaida [EMAIL PROTECTED] wrote: Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message= hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages. I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages. In Tapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message: label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play
Re: [Wicket-user] i18n messages in HTML
Juergen Donnerstag wrote: I'm all for making things easier for the user. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span I'm not sure this makes sense. wicket:id is not a text to be displayed anywhere. It is a name which identifies a component. It definitely won't work. Actually, maybe this is not the solution but a way to specify i18n message keys directly in the html through a wicket tag would be VERY handy. Now, in a project I'm working on, for a i18n input form, half of the form elements are i18n labels that I add to the form in java code. Instead of add(new I18nLabel(lbl, hello.mesage)) and span wicket:id=lbl / it would be more handy to have 'something like' span wicket:message=hello.message /span or wicket:message key=hello.message /, w/o poluting java code with i18n keys if it's not necessary (like when you need to compose complex i18n messages which would be done from the code). Just a thought :-) (or maybe I am too intoxicated with Struts/Webwork/SpringMVC :-D. I am trying to get rid of it you know.) Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message:label.submit / That I think is possible. Acutally you can do it today already without any changes to the core. You need to develop a IMarkupFilter and append it to the list of existing ones invoked by MarkupFilter. However you won't be able to handle message: within a tag body; only tag attributes. How does Tapestry do it for body text? An other option would be to run a kind of text based (not xml based) pre-processor (like we do merging of inherited markup) prior to adding the markup to the cache. How likely is it that you'll find message: and it is not intended to be a i18n text? How to escape it? Lets say your message must contain a reference some other data, e.g. ...${price} That won't be possible either. Only simple text. As AttributeModifier is already able to handle it, message:.. would be for easy and straight forward replacements only, and AttributeModifer to cover everything else. Ah, and of course you loose preview capabilities, as the designer won't the real message, he'd see message:... only. And it might not the perfekt solution for high-speed up, because of the (little) performance penalties involved. For high-speed up you can still have myPage_en.html; myPage_nl.html etc may which as well cover minor changes in the layout due to labels being of differents length; right-to-left languages etc. Juergen On 11/8/05, Andrew Berman [EMAIL PROTECTED] wrote: In my app I never hard-code text so I'm constantly adding Labels to my pages. I was wondering if it would make sense to have a shortcut, similar to how Tapestry does it, for dsplaying localization messages. In Tapestry, you can do this: title=message:page-title, where page-title is the lookup into the property file. Perhaps Wicket could have something like this: span wicket:id=message:myLabelHere/span Even better would be that it would recognize the message:label anywhere in the HTML. So for example, you could have: input type=submit value=message:label.submit / Thoughts? --Andrew --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strange wicket.markup.MarkupException: Tag expected exception
I've got that exception in cases where the generated HTML is not valid XML. I didn't have time to dig into this but closing the tag with valid xml, like / or /close solved the problem. Ralf Ebert wrote: Hi, I'm seeing this exception when leaving a page via setResponsePage (concreteOtherPage) from a link component... The markup is alright and the error is missing something from the markup of the page which is left at that very moment (I don't even know why wicket looks at the markup of that site again...). I couldn't boil this in a little example so probably I'm doing something wrong. I just have no idea what, I'm really sure that the markup is valid... Any ideas? wicket.markup.MarkupException: Tag expected [markup = file:/Users/ralf/Jobs/.../somemarkupfile.html, index = 120, current = [Raw markup]] at wicket.markup.MarkupStream.throwMarkupException (MarkupStream.java:277) at wicket.markup.MarkupStream.getTag(MarkupStream.java:169) at wicket.Component.renderComponent(Component.java:1863) at wicket.markup.html.WebMarkupContainer.onRender (WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.markup.html.HtmlHeaderContainer.resolve (HtmlHeaderContainer.java:196) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1159) at wicket.MarkupContainer.renderComponentTagBody (MarkupContainer.java:811) at wicket.MarkupContainer.onComponentTagBody (MarkupContainer.java:753) at wicket.markup.html.HtmlHeaderContainer.onComponentTagBody (HtmlHeaderContainer.java:110) at wicket.Component.renderComponent(Component.java:1888) at wicket.markup.html.WebMarkupContainer.onRender (WebMarkupContainer.java:77) at wicket.Component.render(Component.java:1163) at wicket.MarkupContainer.autoAdd(MarkupContainer.java:170) at wicket.markup.html.HtmlHeaderResolver.resolve (HtmlHeaderResolver.java:73) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1146) at wicket.MarkupContainer.renderAll(MarkupContainer.java:779) at wicket.Page.onRender(Page.java:788) at wicket.Component.render(Component.java:1163) at wicket.Page.doRender(Page.java:251) at wicket.protocol.http.WebRequestCycle.redirectTo (WebRequestCycle.java:276) at wicket.RequestCycle.respond(RequestCycle.java:934) at wicket.RequestCycle.request(RequestCycle.java:411) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173) [...] Regards, Ralf --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] refreshing page content
Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint. thanks --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user __ NOD32 1.1187 (20050805) Information __ This message was checked by NOD32 Antivirus System. http://www.nod32.com --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] refreshing page content
Igor Vaynberg wrote: I think logic like this should be in the onsubmit handler because that what should logically trigger it: the form submit in the signin panel. Having this in your onbeginrequest causes this logic to execute everytime the page is access which is not necessarily what you want. Furthermore you dont need to create any interdependencies, you can navigate the structure in the onsubmit handler using ids: ie public final void onSubmit() { Panel signin=getPage().get(path).get(to).get(signin); Panel info=getPage().get(path).get(to).get(info); } Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. -Igor On 10/31/05, *Dipu* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: cool , thats lot better, thanks you for the tip. Dipu - Original Message - From: pepone pepone [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 12:38 PM Subject: Re: [Wicket-user] refreshing page content I think that my aproach is cleaner because you don't need to create a dependecie between InfoPanel and LoginPanel in your Page or Component add(loginPanel=new LoginPanel(loginPanel)); add(infoPanel=new InfoPanel(InfoPanel)); overload this method to do the job onBeginRequest() { if(getSession.isSignedIn ()) { infoPanel.setVisible(true); loginPanel.setVisible(false); } else { infoPanel.setVisible(false); loginPanel.setVisible(true); } } On 10/31/05, Dipu [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Can't you send the reference of the respective panels to the form and switch visibility so i will have the following panels like given below WelcomePanel welcomePanel = new WelcomePanel(welcomePanel); add(welcomePanel); welcomePanel.setVisible(false); LoginPanel loginPanel = new LoginPanel(loginPanel,properties); LoginForm loginForm =new LoginForm(LoginForm,welcomePanel,loginPanel ) add(loginForm ); and do the following in the forms on submit public final void onSubmit() { if (authenticateUser(uname,password)) { this.loginPanel.setVisible(false); this.welcomePanel.setVisible(true); } else { // do something here } } I am not sure if this is the best way Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 11:57 AM Subject: Re: [Wicket-user] refreshing page content Dipu wrote: you can do this by simply switching the visibility of the panels on and off in the onSubmit of your form. I tried it out and its working for me without any problems. Hmm, the thing is that in my case they are not on the same form, they are on different panels. So there is a panel containing my form, and below it, there is a panel containing the label. I can't put them in the same form because they really belong to different components (in my case). Dipu - Original Message - From: Dorel Vaida [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net mailto:wicket-user@lists.sourceforge.net Sent: Monday, October 31, 2005 9:43 AM Subject: [Wicket-user] refreshing page content Hi guys, I have a small problem with refreshing the page content and I don't know which is the best way to handle it. In short, I have a sign in panel to the left and after the user signs in I'd like to set it to invisible and display a Welcome label in another panel. The code is trivial, I just add to the page both the sign in panel and the panel containing the label and I set their visibility to true and false respectively based on session user is/is not null. What happens is that the signin panel/ welcome label remain the same after signing in, until I reenter the page by the way of clicking on the menu link which displays the page, but I'd like the refresh to be performed right after submission. It's like the setVisible(true/false) for both panels is not called until the next page rendering. Now I know I am missing something related to how components are rendered inside the page or something, but maybe someone can give me a hint
Re: [Wicket-user] refreshing page content
Igor Vaynberg wrote: Well, it's true, but the problem I was heaving wasn't related to coupling between panels or anything, but it was the fact that somehow, though I set the panels to invisible in the submit handler, the page seem to ignore this fact until I reopen it. What do you mean by reopen it? I mean, access the page through the menu link which opens it. In contrast with the page being delivered as a result of the form submission. The following works for me, it toggles between panels when the button is pressed: public Index(final PageParameters parameters) { add(new TestPanel(a)); add(new TestPanelB(b).setVisible(false)); add(new Form(form) { protected void onSubmit() { Component a=getPage().get(a); a.setVisible(!a.isVisible()); Component b=getPage().get(b); b.setVisible(!b.isVisible()); } }); } Well, the difference here is that the form is actually on one of the panels. What I'm trying to achieve is loose coupling between the panels, I want them to be set visible/invisible based on session stored information (session user is null or not). Thanks anyway, I'll try harder :-) -Igor --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] SiteMesh and Wicket are compatible?
Scott T weaver wrote: Hmm, I don’t think I can agree with that. SiteMesh, AFAIK, can aggregate from whole host of markup sources to produce a “finished product”. I don’t see how that can be accomplished in the example you presented or with Wicket in general, not with out a lot of work that is. This is the main reason I stopped trying to use Wicket to produce portal layouts. Well, you didn't try hard enough :-). So what happens is that the only thing that would be hard to accomplish with Wicket (I'm not the wicket expert either) would be to aggregate different sources into the same page, like put to the right bar the html source generated by a php application etc. For creating portal like interfaces, if you don't want to use another markup sources like other php/html etc sites to aggregate markup, I think java/markup inheritance in wicket is enough. I asked the exact same question when I first heard about wicket but I admit now that, except for the case you want to aggregate into your page markup generated by other server/context/webapp, there is no need for sitemesh. And you have to agree that aggregating different web applications (written even in other languages) in a single interface is a pretty exotic use case. I think sitemesh does an excellent job for action oriented java web frameworks , but, as a sitemesh user (I still use it in the projects where I don't have the luck to be able to choose wicket or tapestry) I didn't feel the need of it in wicket applications. To add a portlet like component e.g. a login portlet to the left you just add a sign in panel to the parent of all the pages that need the signing panel and do the same for all. There could be still possible a limited use of sitemesh, if you would want to decorate wicket pages, I think it is possible but with some exceptions. You're limited if you want to decorate based on url, except the situation when you want to decorate ALL the pages from th wicket application, case in which you'll map the decorator to the same url the wicket application is mapped, e.g. /wicket-examples*. Decoration based on meta tags ( meta decorator=mydecorator placed in each page) should also work. With some exceptions I think this should work since sitemesh is basically a servlet filter. I have to say that these are just it may work opinions based on my previous Sitemesh and recent Wicket experience, and I didn't actually used/implemented anything from the use case above since I really didn't need to. If you fell like you need to use Sitemesh with Wicket and you don't use/need anything from outside sources like other web applications/sites, I think that you probably have to take a closer look at Wicket component approach, markup inheritance, and get rid of request/response way of thinking in action frameworks and start to think (statefull) OOP and components again :-D. It is more effort than it is worth to try and get a single component/page merge arbitrary markup. The whole “one markup source per component” tends to break down very quickly in this type of setting and is, IMOHO, a short-coming of most of component-based web frameworks that are popping up. That last thing I want to do is require my layout and decoration designers to create new component classes for each layout they come up with. Don’t get me wrong; Wicket is wonderful for straight-forward application development. However I feel it lacks the flexibility to work well as a generalized, light-weight layout engine. Well, I don't know. I think I could be able to say something in a more specific use case. Just maybe :-) Not everything is a nail ya’ know ;-) If any of the Wicket gurus out there feel I have misspoken, please let me know as I would still love to replace Jetspeed 2’s existing layout/decoration mechanism with Wicket. I'm none of those gurus but ... I think Wicket is best suited for web application development. It's not (yet) suited for portlet development (I head something a while ago, about some portlet development support in wicket but nothing ever since) but even if it would be, I think you would write *individual* portlets with it. And they would be still layouted by a portal/portlet engine. I don't think Wicket is/will be a replacement for a portal. But maybe I'm wrong. I let it to the gurus you've mentioned above :-) Argh ! long reply. too long. Regards, Scott T. Weaver *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Andrew Berman *Sent:* Wednesday, October 26, 2005 3:57 PM *To:* wicket-user@lists.sourceforge.net *Subject:* Re: [Wicket-user] SiteMesh and Wicket are compatible? There is no need to use SiteMesh if you are using Wicket. Wicket has mechanisms which accomplish the same thing but even better. Take a look at Borders, Panels, and markup inheritance
Re: [Wicket-user] Wicket, Hibernate and StaleObjectStateException
If you don't want to go Spring or you're not allowed to (some middle management still doesn't get it :-)) ) you do what they do :-D w/o using the whole Spring framework. To extract the transaction and exception logic from the code you might want to use callbacks. What I mean by that: define a TransactionCallback interface with one method: public interface TransactionCallback { public Object transactionalOperation(Session session) throws HibernateException; } Than you build a template for running transcations, template that will handle transaction demarcation and exception handling: public class Template { public Object execute(TransactionalCallback callback){ try { //open session if necessary, use the threadLocal pattern //begin tx callback.transactionalOperation(openedSession) //end tx // close session if necessary } catch (Hib exception) { // handle hibernate exception } } } Than in the application code you go: Template template = new Template(); // get an object Serializable id ... ; User user = (User) template.execute(new TranssactionalCallback(){ public Object transactionalOperation(Session session) throws HibernateException { return session.get(User.class, id); } }); } Please note that this is not complete code, you have to work more on it to make it production ready, I was just ilustrating the ideea. Spring support doesn't resume to this, they offer a lot more but if you just want to get TX/exception out of your business code you might consider the example above. To get the complete picture please take a look into the Spring code, or read Rod Jonhson's J2EE w/o EJBs to see a better description of this aproach. Also if you use Spring with Hibernate take a look at Hibernate3 and spring 1.2.X because some things are pretty different, I hear. Good luck :-D Igor Vaynberg wrote: We already discussed that. If you want to separate transaction management from wicket use a dao/service layer that lives inside spring and lets spring handle transaction management. That way you have declarative transaction management with retries and all that good stuff. Check out wicket-phonebook from wicket-stuff for a good starting point. If you are using jdk5 there are features that significantly shorten and simplify the spring configuration file. -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Thursday, October 20, 2005 9:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Wicket, Hibernate and StaleObjectStateException Fair enough, I have something similar going right now. But this still leaves one problem: If StaleObjectStateException is thrown inside Form.onSubmit() I am forced to handle it (and retry) inside onSubmit() as opposed to (ideally) handling it outside Wicket and retrying the entire HTTP request. Right now I have a whole bunch of transaction blocks defined *inside* my application code which is a disaster. It kills readability as well as making my application aware of transactions when ideally it shouldn't have to care about it. In http://www.hibernate.org/42.html they write: Our goal really is to remove any transaction demarcation code from the data access code which is exactly what I'm trying to accomplish... Gili Igor Vaynberg wrote: Instead of doing this: Onbeginrequest() { mysession=factory.opensession(); mysession.begintransaction(); } Session getSession() { return mysession; } Do this: Onbeginrequest() { mysession=null; } Session getSession() { if (mysession==null) { mysession=factory.opensession(); mysession.begintransaction(); } return mysession; } Then when an error occurs just reset mysession back to null and next time you need one you will get a fresh one -Igor -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gili Sent: Wednesday, October 19, 2005 11:44 PM To: [EMAIL PROTECTED] Subject: [Wicket-user] Wicket, Hibernate and StaleObjectStateException Hi, I'm trying to figure out how to handle StaleObjectStateException in the context of Wicket. Using the current-state pattern as reference (http://www.hibernate.org/42.html) if a StaleObjectStateException is thrown, I'd like to rollback the transaction, close the session, open a new session and transaction and retry the operation. Ideally I want to keep this logic completely out of the Wicket code. I simply don't see how this can be done. For example, say I have a page containing a Form and Form.onSubmit() is invoked and in its body StaleObjectStateException is thrown. Following the Session per HTTP request pattern, we're in a new HTTP request (I think) but I don't think Wicket
[Wicket-user] can I display unescaped HTML text in wicket ?
What I would like to do is to include in a page HTML text stored in a database. Yes I know it's not exactly the best solution but sometimes it cannot be avoided. so the question is can I tell wicket NOT to escape HTML characters that I display in a label for example ? thanks --- 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] can I display unescaped HTML text in wicket ?
Juergen Donnerstag wrote: yes you can. I think (have no chance to look into the code currently) it is called escapeMarkup and is available at least to Label components. After a closer look, there is a public final Component cid:part1.01010306.02000305@adaptiv.ro *setEscapeModelStrings*(boolean escapeMarkup) in Component which does this, sorry for posting the question w/o taking a closer look first. thanks Juergen On 10/12/05, Dorel Vaida [EMAIL PROTECTED] wrote: What I would like to do is to include in a page HTML text stored in a database. Yes I know it's not exactly the best solution but sometimes it cannot be avoided. so the question is can I tell wicket NOT to escape HTML characters that I display in a label for example ? thanks --- 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 --- 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 --- 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] Code generator / Prototype generator
David Liebeherr wrote: Hi Elco, Eelco Hillenius wrote: I like the idea. Me too :-) But i am very very disapointed bc of the very little feedback to my mail. Actually your mail is the only feedback :-( Hmm, I was busy :-). So, I've built some (few) plugins for middlegen (I don't like xdoclet's templates, I prefer velocity) so I might be of a little help in this discussion. So my experience with code generation is that once you get the taste (and productivity) of it you become somehow dependant on it :-).Haveing an entire suite of plugins writen for middlegen(that would generate an entire functional web application representing the administration interface for a given database) here are my thoughts: First you have to consider where do you want to start: a.) From some already written code (anotate some classes that you write in the first place and somehow define your data model, e.g. hibernate POJOs) b.) From an existing database schema (the approach took by middlegen) c.) From some (XML anyone :-D) definition files that have nothing to do with code, they'll just generate it. I took the second approach for several reasons: a.) I just needed something generated fast, nothing complex, nothing tricky, just the basis from where to develop the rest of the application b.) I worked mainly (well, more or less, any app that I've developed so far needed a database and some persistence) on data centered web applications c.) I liked how Hibernate (well, ORM in general, I suppose) forces you to think of the domain model, so I've decided that an administration interface centered on the persistent entities of the system would be enough for the starters. How I designed the plugin suite: I've took the layered approach, so I had one plugin for each of the: a.) web layer (Struts, WW, whatever MVC actions + of course the JSP views for it) b.) service layer, would generate primarily service interfaces + implementations c.) persistence layer, would generate DAOs, interface + implementation d.) domain model, I didn't wite it, I was dependant on the hibernate middlegen plugin What happened: productivity boost and an incredible jumpstart for each project. Drawbacks: Because I'm lazy I didn't want to deal with the complexities of regeneration (regenerate all the thing in the middle of the development phase) It is HARD to get everyone to agree on the coding standards and styles so be prepared TO PUT THE TEMPLATES WHERE EVERYBODY CAN MODIFY THEM to fit their needs/style. What I would suggest if we're going to develop a wicket plugin (yes I'm in if we decide to write it :-D ) 0.) See if somehow somebody doesn't already do or planning to do this (well, OS effort) 1.) Decide from what we're going to start our generation process (annotations, db schema, whatever) 2.) Consider writing a plugin for at least the most four or five popular products on the market: XDoclet, Middlegen, AndroMDA, there is another one with a nice GUI, Appgen or somethingh like that I can't remember right now, there is another one not so popular but that I liked it when I looked at it, I don't know the status or the name, It's written by Cedric Beust. 3.) Write a simple plugin first and get everyone's feedback/ideeas and rewrite it until it works fine :-D 4.) Allways keep flexibility in mind and remember that you're writing a code generation product that will need to adapt changes in software (Wicket), even the other technologies around it (you'll never write an application using just Wicket isn't it ? you'll write it using Spring for business or Spring + hibernate or whatever ORM). As a conclusion, I think a code generator for a wicket GUI would be nice, after all :-) Getting in ideas from Ruby on Rails would be nice also, since everybody says it is an excellent approach (I've never had the time to give it a check, unfortunatelly). So it seems that noone is realy interested in code generation / prototyping tools!? This is very sad. I realy expected more feedback on this topic. And i'm not going to waste my time on a tool which obviously noone need/want. So please ppl, if you want to have such a tool give me some feedback! I have been working on a bean panel where I had some - unimplemented - idea's for detail editing as well. Haven't found the time yet to finish it though. Code generation is the other way around though. That can be very powerful too, and is usually easier to customize later on. I think the ideal toolkit would be a combination of both: something that generates code for you (in such a way that you can customize extension code, but that you can regenerate whenever you want), but that produces code that is smarter than just static binding everything too. You don't like Ruby? It's on my list to learn. From what I've read, I like it, though when I played around with it a bit, I immediately missed code completion and documentation
[Wicket-user] markup inheritance
Where can I read more about markup inheritance in Wicket ? I looked into the wiki and documentation but it doesn't seem to exist too much info on this. Did I miss some document maybe ? thanks --- 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] Typical use case problem
Eelco Hillenius wrote: Now, that would be a great feature of our Ajax support. DWR is a framework that is complete in the sense that it provides a framework for server and client side. Libs like Dojo and Scriptaculous are client side only. But maybe they have some error reporting capabilities too. Otherwise we should implement something ourselves. Couldn't we add into the wicket-stuff or extensions some kind of DWR integration ? I mean components that would render DWR enabled client side markup ? I'm too new to wicket to see if such thing is possible but I'll investigate further if you point me to some directions. Anyways, I'll think about it. I've used DWR in the past and I liked it. Eelco On 9/30/05, Dorel Vaida [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Martijn is working on an app that has similar requirements. Maybe he'll want to comment on this too. What I do for an app I'm working on now, is to use ajax components for the fields that allways need to be current. In my case these usually are checkboxes. I committed an 'ImmediateCheckbox' in the Dojo subproject (wicket-stuff) that updates the server side model every time it is clicked. A textfield like that would be very similar, though you need to think what you want to do with possible validation/ conversion errors. I don't know about dojo but some java ajax implementations (DWR) propagate the exceptions back to the client. Wouldn't be that acceptable for a validation error for example ? Eelco On 9/29/05, Denzel, Jürgen [EMAIL PROTECTED] wrote: Hi, I was wondering if Wicket provides any build in support for the following problem. The user edits data in a tabbed pane component, the data is kept in a model bean and will be stored in the database when the user presses the save button. In this context he can switch back and forth between tabs without losing any data because each switch causes a server roundtrip to update the model. Now, to complete the whole process lets say the user has to leave the tab context to select arbitrary data needed from a different page and comes back to the tab context. How can I make sure that the data he entered immediately before changing the context will not be lost. Keep in mind the user did not switch the tabs to trigger a server roundtrip to update the model just before he left the tab context. We have this scenario very often in our application. Greets, jd --- 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 --- 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 --- 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 --- 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 --- 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] Typical use case problem
Eelco Hillenius wrote: Martijn is working on an app that has similar requirements. Maybe he'll want to comment on this too. What I do for an app I'm working on now, is to use ajax components for the fields that allways need to be current. In my case these usually are checkboxes. I committed an 'ImmediateCheckbox' in the Dojo subproject (wicket-stuff) that updates the server side model every time it is clicked. A textfield like that would be very similar, though you need to think what you want to do with possible validation/ conversion errors. I don't know about dojo but some java ajax implementations (DWR) propagate the exceptions back to the client. Wouldn't be that acceptable for a validation error for example ? Eelco On 9/29/05, Denzel, Jürgen [EMAIL PROTECTED] wrote: Hi, I was wondering if Wicket provides any build in support for the following problem. The user edits data in a tabbed pane component, the data is kept in a model bean and will be stored in the database when the user presses the save button. In this context he can switch back and forth between tabs without losing any data because each switch causes a server roundtrip to update the model. Now, to complete the whole process lets say the user has to leave the tab context to select arbitrary data needed from a different page and comes back to the tab context. How can I make sure that the data he entered immediately before changing the context will not be lost. Keep in mind the user did not switch the tabs to trigger a server roundtrip to update the model just before he left the tab context. We have this scenario very often in our application. Greets, jd --- 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 --- 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 --- 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
[Wicket-user] hi and ... question :-)
Hi, there This is my first post to the list so I'd like to say hello to everybody :-) I have 1 question regarding wicket, though: I'm generating my menu links from the database. The problem I face is that the generated (by wicket) link is different every time so the styles for anchors (a href= /) are pretty messed up at each display, they do not reflect the actual link status (visited etc.). What can I do about this ? Thanks --- 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