Re: [Wicket-user] Wicket Acegi ?
Hi Marice, While here may I ask a quick question? I've quickly glanced through the docs at Wiki and could see some reference to Hivemind. Does this implementation employs Apache HiveMind and if so I assume I have to place yet another jar on my classpath. Right or not? Regards, Francis On 5/29/07, Maurice Marrink [EMAIL PROTECTED] wrote: Johan, has an excellent point, but we too have a pre wicket 1.3 app so i guess i'll have to make a branche for that app anyhow if i want to replace or old security mechanisme. I don't think it will be much work to backport to 1.2.6. Let me know if you plan on staying with wicket 1.2.x or upgrade to 1.3 Maurice On 5/29/07, Johan Compagner [EMAIL PROTECTED] wrote: you could ofcourse upgrade to 1.3! Now you rewrite from struts to wicket but we are moving alone and then you have to rewrite it again to 1.3. johan On 5/29/07, Thies Edeling [EMAIL PROTECTED] wrote: I'm using 1.2.6 so swarm is not in the picture. Will check out auth-roles as I'm on java 1.5, thx! On Tue, 29 May 2007, Maurice Marrink wrote: If you are using wicket 1.3 you could try the new wicket security framework swarm. unlike acegi it is not url based but component based. It was designed with simplicity in mind so you should be able to get started right away. You can find documentation here http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security The documentation is still work in progress but if you have any question you can always ask them on the mailing list. I am not sure if there is an existing wicket-acegi framework but i believe i have heard of people using them together. Optionally if you are using java 1.5 you could check out the wicket-auth-roles project. Maurice On 5/29/07, Thies Edeling [EMAIL PROTECTED] wrote: Hello all, I'm migrating an existing Struts app to Wicket and have now reached the point where I have to add authentication/authorization to it. In the Struts app I used Acegi to add URL-based security. Ideally I'd re-use my existing Acegi config for Wicket but I can't find any documentation on how to do this. The 'Wicket way' of authentication is mentioned on the Wiki somewhere but details are missing. What's the best way to add simple role-based security to a Wicket app? thanks in advance, Thies -- http://blog.ehour.nl/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth -
Re: [Wicket-user] Wicket Acegi ?
Yes, I thought so too since I couldn't see any package reference to apache hivemind but just the name Hivemind, but to be sure I decided to ask. Thanks for the answer and great work. Francis On 5/29/07, Maurice Marrink [EMAIL PROTECTED] wrote: Francis, Swarm does not use apache hivemind. The hivemind reference you saw in the example code is to an internal class who is coincidentally named like apache hivemind. Swarm only requires the following jars besides wicket: Wasp, commons-logging and Log4j. Maurice On 5/29/07, Francis Amanfo [EMAIL PROTECTED] wrote: Hi Marice, While here may I ask a quick question? I've quickly glanced through the docs at Wiki and could see some reference to Hivemind. Does this implementation employs Apache HiveMind and if so I assume I have to place yet another jar on my classpath. Right or not? Regards, Francis On 5/29/07, Maurice Marrink [EMAIL PROTECTED] wrote: Johan, has an excellent point, but we too have a pre wicket 1.3 app so i guess i'll have to make a branche for that app anyhow if i want to replace or old security mechanisme. I don't think it will be much work to backport to 1.2.6. Let me know if you plan on staying with wicket 1.2.x or upgrade to 1.3 Maurice On 5/29/07, Johan Compagner [EMAIL PROTECTED] wrote: you could ofcourse upgrade to 1.3! Now you rewrite from struts to wicket but we are moving alone and then you have to rewrite it again to 1.3. johan On 5/29/07, Thies Edeling [EMAIL PROTECTED] wrote: I'm using 1.2.6 so swarm is not in the picture. Will check out auth-roles as I'm on java 1.5, thx! On Tue, 29 May 2007, Maurice Marrink wrote: If you are using wicket 1.3 you could try the new wicket security framework swarm. unlike acegi it is not url based but component based. It was designed with simplicity in mind so you should be able to get started right away. You can find documentation here http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security The documentation is still work in progress but if you have any question you can always ask them on the mailing list. I am not sure if there is an existing wicket-acegi framework but i believe i have heard of people using them together. Optionally if you are using java 1.5 you could check out the wicket-auth-roles project. Maurice On 5/29/07, Thies Edeling [EMAIL PROTECTED] wrote: Hello all, I'm migrating an existing Struts app to Wicket and have now reached the point where I have to add authentication/authorization to it. In the Struts app I used Acegi to add URL-based security. Ideally I'd re-use my existing Acegi config for Wicket but I can't find any documentation on how to do this. The 'Wicket way' of authentication is mentioned on the Wiki somewhere but details are missing. What's the best way to add simple role-based security to a Wicket app? thanks in advance, Thies -- http://blog.ehour.nl/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2
Re: [Wicket-user] wicket performance
On 4/18/07, Alexey Maksimov [EMAIL PROTECTED] wrote: Thanks again, Alexey. P.S. Is wicket community is friendly to newbies is a myth, I wonder? No, not a myth- they're a very friendly community. I think the way you formulated your question called for those jokes. You could have posed it a little friendlier and diplomatic. To be honest, when I saw your message I also was tempted to throw a big joke at it but luckily, for the first time, I was successful in holding it back. The Wicket community is a fine one, and as you hang around you'll definitely come to find out. Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] IBM to adopt Wicket as standard web framework
Hi guys, An IBM internal memo, written and signed by product manager, Tim O'Malley, has been leaked. Well, to be more direct, a friend of my working with IBM leaked this to me. In it, IBM praised Wicket as an innovative and state of the art web framework that stands up tall against all its competitors including JSF, Struts 2 and Tapestry. In the memo, IBM mentions some of it's frustrations with JSF and about Sun not listening to them during the creation of the JSF specification. In the memo, IBM also praises the Wicket team as very hardworking and dedicated guys and is in negotiations to employ them into IBM and make them work on Wicket and sell support under the umbrella of IBM. The memo also goes further to announce IBM's plans to integrate Wicket into it's JEE offerings. To be more specific, Wicket would be Integrated into RAD 8 as the default Web framework, which it plans to release in the fourth quater of this year. The memo also states IBM's plans to create widgets, which it plans to market under the label WICKED Widgets, of all the standard Wicket components and enable drag and drop development in RAD 8. It would also make WICKED(c) widgets standalone for separate downloads. The official announcement of this was planned for April 1, 2007, but because this falls on Sunday, the announcement is scheduled for April, 2 2007. There is a link to this memo but is currently available only on IBM's internal network, which of course is closed to the public. I personally think this is a great news. It will grow Wicket's adoption exponentially, which is of course a good thing for the community and give Wicket a high status in the web framework community. In addition, our diligent, humble and hardworking Wicket core developers would be rewarded. So join me rejoice about the greatest news so far for the Wicket community. Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] IBM to adopt Wicket as standard web framework
I'm only a messenger. Don't persecute the messenger! On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote: The official announcement of this was planned for April 1, 2007, but because this falls on Sunday, the announcement is scheduled for April, 2 2007. is this some kind of april the 1st joke or are you serious about it??? -- *Von:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *Im Auftrag von *Francis Amanfo *Gesendet:* Montag, 26. März 2007 16:21 *An:* wicket-user@lists.sourceforge.net *Betreff:* [Wicket-user] IBM to adopt Wicket as standard web framework Hi guys, An IBM internal memo, written and signed by product manager, Tim O'Malley, has been leaked. Well, to be more direct, a friend of my working with IBM leaked this to me. In it, IBM praised Wicket as an innovative and state of the art web framework that stands up tall against all its competitors including JSF, Struts 2 and Tapestry. In the memo, IBM mentions some of it's frustrations with JSF and about Sun not listening to them during the creation of the JSF specification. In the memo, IBM also praises the Wicket team as very hardworking and dedicated guys and is in negotiations to employ them into IBM and make them work on Wicket and sell support under the umbrella of IBM. The memo also goes further to announce IBM's plans to integrate Wicket into it's JEE offerings. To be more specific, Wicket would be Integrated into RAD 8 as the default Web framework, which it plans to release in the fourth quater of this year. The memo also states IBM's plans to create widgets, which it plans to market under the label WICKED Widgets, of all the standard Wicket components and enable drag and drop development in RAD 8. It would also make WICKED(c) widgets standalone for separate downloads. The official announcement of this was planned for April 1, 2007, but because this falls on Sunday, the announcement is scheduled for April, 2 2007. There is a link to this memo but is currently available only on IBM's internal network, which of course is closed to the public. I personally think this is a great news. It will grow Wicket's adoption exponentially, which is of course a good thing for the community and give Wicket a high status in the web framework community. In addition, our diligent, humble and hardworking Wicket core developers would be rewarded. So join me rejoice about the greatest news so far for the Wicket community. Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] IBM to adopt Wicket as standard web framework
And I learnt before they came to the conclusion to adopt Wicket some few IBM'ers proposed to grab the current Tapestry 5 en rename it to Wicketstry because they looked so alike. But the panel voted unanimously for Wicket because they wanted the real and original meat. On 3/26/07, remco bos [EMAIL PROTECTED] wrote: I saw it coming.. http://wicket.sourceforge.net/ExampleStockQuote.html *Igor Vaynberg [EMAIL PROTECTED]* wrote: were you gonna get paid one miio dollars? -igor On 3/26/07, Eelco Hillenius [EMAIL PROTECTED] wrote: They spoiled my negotiation position! ;) Eelco On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote: seems as they (the jokers) have no longer the patience to wait for april 1st :P -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] Im Auftrag von Matej Knopp Gesendet: Montag, 26. März 2007 17:03 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] IBM to adopt Wicket as standard web framework http://mail-archives.apache.org/mod_mbox/tapestry-users/200504 .mbox/%3cPine.LNX.4.60.0504011327210.18753@ localhost.localdomain% 3e On 3/26/07, Alexandre Bairos [EMAIL PROTECTED] wrote: It´d be fantastic. But it's a bit suspicious, considering the magic date. :) On 3/26/07, Francis Amanfo [EMAIL PROTECTED] wrote: I'm only a messenger. Don't persecute the messenger! On 3/26/07, Korbinian Bachl [EMAIL PROTECTED] wrote: The official announcement of this was planned for April 1, 2007, but because this falls on Sunday, the announcement is scheduled for April, 2 2007. is this some kind of april the 1st joke or are you serious about it??? Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Francis Amanfo Gesendet: Montag, 26. März 2007 16:21 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] IBM to adopt Wicket as standard web framework Hi guys, An IBM internal memo, written and signed by product manager, Tim O'Malley, has been leaked. Well, to be more direct, a friend of my working with IBM leaked this to me. In it, IBM praised Wicket as an innovative and state of the art web framework that stands up tall against all its competitors including JSF, Struts 2 and Tapestry. In the memo, IBM mentions some of it's frustrations with JSF and about Sun not listening to them during the creation of the JSF specification. In the memo, IBM also praises the Wicket team as very hardworking and dedicated guys and is in negotiations to employ them into IBM and make them work on Wicket and sell support under the umbrella of IBM. The memo also goes further to announce IBM's plans to integrate Wicket into it's JEE offerings. To be more specific, Wicket would be Integrated into RAD 8 as the default Web framework, which it plans to release in the fourth quater of this year. The memo also states IBM's plans to create widgets, which it plans to market under the label WICKED Widgets, of all the standard Wicket components and enable drag and drop development in RAD 8. It would also make WICKED(c) widgets standalone for separate downloads. The official announcement of this was planned for April 1, 2007, but because this falls on Sunday, the announcement is scheduled for April, 2 2007. There is a link to this memo but is currently available only on IBM's internal network, which of course is closed to the public. I personally think this is a great news. It will grow Wicket's adoption exponentially, which is of course a good thing for the community and give Wicket a high status in the web framework community. In addition, our diligent, humble and hardworking Wicket core developers would be rewarded. So join me rejoice about the greatest news so far for the Wicket community. Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth -- --- 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=DEV DEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Table with TextFields example (Dissapointed in Wicket)
Hi Udora, I disagree with these comments, especially with the arrogance label you're putting on the Wicket developers. On the contrary, IMHO, they're one of the most humble in the open source space. As an example go to theserverside archives and go read some of the comments by them in some of the webframework wars threads. In those threads you'll find the right people who really deserve that arrogance label. Even in times when guys throw horrible denigrating shots at them, they stay their cool. And I want to also go with what the most have already said based on my own experience. They're fast with their responses, at least they're the fastest I've yet seen. Igor's comment may come over as harsh, but the reality is that we're all once in a while in a bad mood and say certain things. I haven't met him yet, but I believe he is a humorous hard working guy. He doesn't deserve those negatives attacks from you. Let's keep the peace here. Regards, Francis On 3/19/07, Udora [EMAIL PROTECTED] wrote: Hi Igor, First of all, I would want to say that I've solved the problem myself and having now a great table component with all what I needed. And I also want to say that I don't think I owe you as a developer anything for using Wicket. Of course being an open source developer, you have the luxury to tell your clients that. In my world, I try to be helpful to my clients even with the insults that occasionally come with their being in bad mood. In all those circumstances I strife to be client friendly, even when I've had the worst sleep ever, or my girlfriend denied me sex the previous night. Because of the my impression so far, I've decided to download the Wicket source and look for answers to my future questions there. Probably I'd be less productive that way but unfortunately I don't clearly see any other alternative. Have a nice day, even when you couldn't get sufficient caffeine dose for the day. On 3/18/07, Igor Vaynberg [EMAIL PROTECTED] wrote: so not having the _personal_ time to answer every single question that is on this list makes us arrogant? that is great! do you think i would rather spend my time pumping you for information or spend that time in a park playing with my daughter? maybe if you wouldve spent more then two minutes of your time writing up an appropriate question with code examples or a quickstart project instead of something so vague it is useless someone wouldve bothered to reply. remember: just because you are using wicket it doesnt mean the developers owe you anything. look at the threads on this list, quiet a lot of them are answered by other users. why do you think none of them answered yours? and unlike eelco i do hope this comes across as arrogant because your email was very disrespectful. -igor On 3/18/07, Udora [EMAIL PROTECTED] wrote: Hi all, I was attracted to Wicket because of its finesse and all the stories around praising how helpful their developers and user community are and the quick response one receives when you post a question. I must say, my experience has been bad so far. I posed the question below 2 days ago and still no response. I've known frameworks whose developers were also initially very helpful but became arrogant when they got the popularity and success. I hope Wicket is not getting on that slippery road. On 3/16/07, Udora [EMAIL PROTECTED] wrote: Hi, I'm implementing a form with a table component as one of its component. The table has some textfields columns. The problem is that upon submit my model is not updated to reflect the values filled in the textfields. Can someone point me to an example where this sort of thing is implemented? I've already looked in Wicket examples but couldn't find anything. Thanks, -- Wicket is Wicked -- Wicket is Wicked - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Wicket is Wicked
Re: [Wicket-user] SURVEY: Are you using Page.before/afterCallComponent
It's been lying in coma for too long a time so it's time you pull the plug on him. :-) Frn6 On 1/22/07, Igor Vaynberg [EMAIL PROTECTED] wrote: are you using Page.before/afterCallComponent? and if so what is the usecase? -igor - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] Why I recommended Wicket...
Thanks Johan, this explanation is crystal clear! Very interesting stuff indeed. Regards, Francis On 12/16/06, Johan Compagner [EMAIL PROTECTED] wrote: You can do what every you want. in Wicket1.3/2.0 you don't have only the choice of what we have now (SecondLevelCache or the 1.2.x way of doing things) No you can be in control what to do with the pages that are falling out of the pagemap. The pagemap only hold 1 page anymore, so session are very light weight. But the second level cache has this constructor: public SecondLevelCacheSessionStore(final IPageStore pageStore) This is the default IPageStore we use: WebApplication.newSessionStore() { return new SecondLevelCacheSessionStore(new FilePageStore()); } And that FilePageStore is the one that saves all pages to the javax.servlet.context.tempdir per sessionid. And deletes all of them when a session gets unbound. So if you only want X pages stored to disk. Implement your own IPageStore or extend FilePageStore and re implement the storePage(String sessionId, Page page) method. If you want real replication then make a DatabasePageStore that is storing pages to a shared database I am thinking about adding this one to core that can be configured by giving it a JDNI context or something like that. When you have this then pages are being able to get from any app server (even after one dies) i would always use a sticky session clustering solution with a buddy system for app server clustering But if one fails then in the current situations if you don't share the disk then yes the back button doesn't work So if you have a web app and one server dies. and a session goes to the other one. If at that time so the next request the user does use the back button then there will be an expired page exception. But if he doesn't use the back button and just goes on he won't notice anything. So in my eyes this is a solution that covers it all pretty much. It is not 100% when the back button is used on a crash but for the rest everything works. So how much do you want exactly? More? Implement your own IPageStore or use a shared disk. johan On 12/15/06, Francis Amanfo [EMAIL PROTECTED] wrote: On 12/15/06, Igor Vaynberg [EMAIL PROTECTED] wrote: I this is of course only the default behavior and the whole thing is still easily configurable. Ok, thats clear but want to know to what extent this would be configurable. By that do you mean we can only configure two situations, one that we choose to go with the new default behavior and the other being the current situation where everything is stored in session? It'll be nice and useful if we could also say only after N pages of history should Wicket serialize to disk or database. What about that? Regards, Francis -igor On 12/14/06, Nathan Hamblen [EMAIL PROTECTED] wrote: Ryan wrote: [...] 1. Session support. Many other web frameworks do not use sessions out of the box. Wicket uses the session extensively to store the render state of most renders. This leads to a large session and if you are not careful a VERY large session. I understand Wicket 1.3 will address this however for the time being this is an important issue to be aware of when evaluating Wicket ( for instance the simple act of using Link to create a link that executes java code when clicked causes the entire page and children to be stored in the session). I don't think that will be any different in 1.3, for a standard Link. You want the magic, you gotta pay for it. The good thing is that landing pages and major entry points (that are bounce-heavy anyway) can soon be done in Wicket without opening unused sessions. You can make as many pages/links bookmarkable and stateless as you need to. So using Wicket site-wide will be a lot easier argument to make, and we'll never have to write JSPs again! Yay! (An entirely stateless Wicket app would be, in my mind, throwing out the baby...) Nathan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
[Wicket-user] New year's present
Hi Wicket devs, I'm expecting great presents for the New year but the present I'll consider the topper would be a usable Wicket 2.0 release, be it beta or RC :-). Do you think I'm asking too much? Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] New year's present
Maybe enough caffeine to keep you guys awake for the most part of the year and do even more magic with Wicket:-). I don't care if in result someone somewhere currently developing Wicketry(I won't mention names) would become so scared because he would loose some ego, which currently has been magnified so much that it's near explosion. Regards, Francis On 12/14/06, Igor Vaynberg [EMAIL PROTECTED] wrote: depends on what you are getting us :) -igor On 12/14/06, Francis Amanfo [EMAIL PROTECTED] wrote: Hi Wicket devs, I'm expecting great presents for the New year but the present I'll consider the topper would be a usable Wicket 2.0 release, be it beta or RC :-). Do you think I'm asking too much? Regards, Francis -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth I don't make predictions. I never have, and I never will. -Tony Blair - 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
Re: [Wicket-user] funny?[OT}
So far the liveliest thread I've seen on this mailing list, especially when combined with the comments at https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024 I've been laughing my head off since yesterday each time I read a new post from here and the blog site of Howard. It's rather unfortunate some somewhere have made this stricken their nerves too deep and hence have gotten too emotional :-). I hope in the future such a thing pops up again. Because then I could take a break from my caffeine consumption, detach myself from the glue that binds me to coding and just sit back and throw big, big laughs. All work and no laughs makes Jack a dull boy. No more war. Viva Wicket, Viva Tapestry! Francis On 12/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Johan is our nbr one joker! :) Eelco On 12/12/06, Matt Welch [EMAIL PROTECTED] wrote: Perhaps you misread. I suggested that it ISN'T Wicket dev team's responsibility Or were you just being funny? On 12/12/06, Johan Compagner [EMAIL PROTECTED] wrote: however, it isn't the Wicket dev team's responsibility to reign in the comments of their users regardless of how poorly such comments reflect on the Wicket community itself. Maybe i can build a page in the core of wicket that will come up everytime, no matter what the request is, if wicket detects that the developer of the app was a rude tapestry basher. johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth I don't make predictions. I never have, and I never will. -Tony Blair - 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
Re: [Wicket-user] funny?[OT}
No, I'm sorry you're wrong. I didn't cause it. With regards to my archives on Tapestry, right, I've used Tapestry in the past. And I know that holds also for many other Wicket users. In other words, I'm a Tapestry defector :-). I've used Wicket for a medium sized site about a year ago. It was a successful project and I'm going to use it for an upcoming project. So don't kick my tit- In fact, I wish I had one:-). Francis On 12/12/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 12/12/06, Francis Amanfo [EMAIL PROTECTED] wrote: So far the liveliest thread I've seen on this mailing list, especially when combined with the comments at https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024 I've been laughing my head off since yesterday each time I read a new post from here and the blog site of Howard. It's rather unfortunate some somewhere have made this stricken their nerves too deep and hence have gotten too emotional :-). I hope in the future such a thing pops up again. Because then I could take a break from my caffeine consumption, detach myself from the glue that binds me to coding and just sit back and throw big, big laughs. All work and no laughs makes Jack a dull boy. No more war. Viva Wicket, Viva Tapestry! Now we have proof you caused this on purpose! I just found out that you have more mails archived on your name to the Tapestry lists then to the Wicket lists, so you are a Tapestry dude looking for trouble at the usually nice-and-peaceful Wicket lists. /me kicks Francis' tit ;0 Eelco - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth I don't make predictions. I never have, and I never will. -Tony Blair - 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] funny?[OT}
Hi guys, A blog comment poster asked Howard if the upcoming Tapestry 5 is a refactor of Wicket. https://beta.blogger.com/comment.g?blogID=4110180postID=266226734789322024 I think it wasn't a nice thing to say but hope the poster was trying to be funny. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] Forum congratulations...
And do we interpret this as good news or bad news. To play the devils advocate here, this might also be interpreted as a framework with bad documentation and hard to use. So people often have o consult the mailing list to pose questions. What do you think? On 11/30/06, Erik van Oosten [EMAIL PROTECTED] wrote: Congratulations, this mailing list is the most active java web framework forum on Nabble! http://day-to-day-stuff.blogspot.com/2006/11/wicket-most-active-java-web-framework.html - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] Job in USA
Hey, Was just curious and checked your site. One of the job requirements is: *Be able to repeatedly lift 5-20 pound boxes. *Note that people in this group can't lift hardware. We lift heavy duty software so we don't need muscles, just a reminder :-) On 11/28/06, Rhonda [EMAIL PROTECTED] wrote: Good day Sir/Madam, We inform you about new vacancies in eCommerce Internet Company. If you are interested in our offer, please, write an e-mail to our manager Eric Delisle and visit our website http://www.e-c0mmerce.us/jobs.html to receive a Representative Contract and detailed information about this job. Best Regards, eCommerce Internet Company - 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 -- Beware of bugs in the above code; I have only proved it correct, not tried it. -Donald Knuth - 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
Re: [Wicket-user] A wicket book in chinese is available free
Whao, it's about time we all go for some chinese language course. Afterall it's the most spoken language in the whole world.Regards,FrancisOn 11/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I Just finished a book about wicket. But it's a pity that it is written in chinese. Maybe most of the users in the mail list can't read. But i still hope it can help the wicket users in china. You can read this book on the following url. http://gocom.primeton.com/ The pdf version is also available.__赶快注册雅虎超大容量免费邮箱? http://cn.mail.yahoo.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.nethttps://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] Howard is bluffing here ...
Hi all, I found this current post on Howard's blog. I quote it here: Wicket has a nice community and a few nice ideas, but it does not compare to what I have planned for Tapestry 5. I believe Java is going to thrive at the high end and performance is going to be one of the differentiators from Ruby on Rails. In addition, the Wicket model can't address the kind of short-cycle development issues that will be part of Tapestry 5. I think Wicket is fairly broken in that it stores the component model inside the HttpSession. This has been a critical flaw for JSF as well, where they've realized that they don't have a proper approach to handling true scalability. Wicket is a neater, cleaner version of Tapestry 1.0 or maybe 2.0. I've said in the past that I found it quite unambitious for starting from scratch. I'm now working on Tapestry 5 which is quite ambitious. Either this man is jealous of the success and popularity of Wicket or he might have forgotten to take his pills before hitting his fingers on his keyboard. Go remind him to do so the next time at: http://www.blogger.com/comment.g?blogID=4110180postID=115393199327621322 Regards - 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] anyone built a large app with wicket?
Hi, I'm probably late with this one- just returned from vacation :-) Check this out: http://www.ibfd.org/portal/app?bookmarkablePage=home FrancisOn 11/18/05, Sam Gendler [EMAIL PROTECTED] wrote: Can someone out there who has used wicket to build a fairly fullfeatured application provide a URL for me to check it out?I am goingto be building an app that will need _javascript_ drop down menus(created programmatically), forms with optional fields depending upon authentication role, _javascript_ based tooltips (or at least aclickable help icon next to form fields), and wizard-like multi-pageforms.I'd love to see examples of all or most of those thingsimplemented in wicket, in order to ensure that such things are possible within wicket as it currently stands.I am particularlyconcerned about being able to prgrammatically include componentsconditionally, since both my menus and my forms will vary dependingupon a User's role. Thanks.---This SF.Net email is sponsored by the JBoss Inc.Get Certified TodayRegister 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___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] PageExpiredErrorPage
Hi, I know with getPages().setPageExpiredErrorPage(Class) I can redirect users to a customized page when a page is expired. But I want to do more when this event occurs. Like logging and some bit of business logic before sending the user to the page expired page. I have looked at ApplicationPages class but see no possibility of overiding a method to achieve this functionality. Any ideas? Francis
[Wicket-user] Re: PageExpiredErrorPage
I've solved the problem! FrancisOn 11/3/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi, I know with getPages().setPageExpiredErrorPage(Class) I can redirect users to a customized page when a page is expired. But I want to do more when this event occurs. Like logging and some bit of business logic before sending the user to the page expired page. I have looked at ApplicationPages class but see no possibility of overiding a method to achieve this functionality. Any ideas? Francis
[Wicket-user] (off topic?)- Where is Jonathan Locke?
Haven't heared from him here since a long time. Just out of curiosity! :-) Francis
Re: [Wicket-user] (off topic?)- Where is Jonathan Locke?
Good to know he hasn't backslided but still believes in Wicket! By the way, I could see from the onestat statistics that since yesterday you've been hitting the 1000+ visitors. Has that mostly go to do with the web frameworks poll hosted at about.com being discussed at theserverside.com? Great publicity for Wicket there. FrancisOn 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: Kidding of course. He's doing fine. He's working on Wicket in thebackground now and then, but is mostly focussing the zillion otherthings he's doing with his life.EelcoOn 11/2/05, Eelco Hillenius [EMAIL PROTECTED] wrote: He abducted him and threw him into a river. That bastard just got too vocal! On 11/2/05, Francis Amanfo [EMAIL PROTECTED] wrote: Haven't heared from him here since a long time. Just out of curiosity! :-) Francis --- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42 plasma tv or your very ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup not found
This Markup not found exception thing is extremely misleading and think needs addressing if Wicket is seriously aiming at going mainstream. In my early days of Wicket I struggled so much with it. It can happen because the markup really doesn't exist but also sometimes when there is an error in your markup that wicket can't really point to, in others words can't parse the xhtml. Only when Wicket can point to the error wil it tell you there is an error in your html by pointing directly to where the error is. I think the exceptions catching in wicket core could do better. If this is not considered to be addressed at the framework core, then I think we should start compiling scenarios from our own experiences when this exception was thrown. This could save newbies to Wicket a lot of frustrations and time. FrancisOn 10/25/05, Nick Heudecker [EMAIL PROTECTED] wrote: I've been staring at this for hours, but can't figure out what would cause a Markup not found error when the markup does in fact exist at the correct location. What other error conditions could cause this problem? Thanks.
[Wicket-user] WebRequestWithCryptedUrl.java bug?
Hi, There seems to be a bug in src/java/wicket/protocol/http/WebRequestWithCryptedUrl.java thats throwing an ArrayIndexOutOfBoundsException. The culprit is likely in the following snippet cut from the class. if (pos 0) { String[] prevValue = (String[])params.get(pair); if(prevValue != null) { String[] newValue = new String[prevValue.length]; System.arraycopy(prevValue, 0, newValue, 0, prevValue.length); newValue[prevValue.length] = ; params.put(pair,newValue); } else { // Parameter without value params.put(pair, new String[] {}); } } else { final String key = pair.substring(0, pos); final String value = pair.substring(pos + 1); String[] prevValue = (String[])params.get(key); if(prevValue != null) { String[] newValue = new String[prevValue.length]; System.arraycopy(prevValue, 0, newValue, 0, prevValue.length); newValue[prevValue.length] = value; params.put(key,newValue); } else { // Parameter without value params.put(key, new String[] {value}); } } } Check especially the code: String[] newValue = new String[prevValue.length]; System.arraycopy(prevValue, 0, newValue, 0, prevValue.length); newValue[prevValue.length] = ; params.put(pair,newValue); Array length+1 is being set which is out of the bounds of the length of the array defined. Francis
Re: [Wicket-user] Markup and matching Java class
Juergen, It seems the howto is talking about locating markups in different places other than the default class package where the markup's class is defined. That I know is possible. But let me be more specific with my question. Say I have a html Foo-Bar.html. Wicket requires me to have a class Foo-Bar.java, right? But as you know Foo-Bar is an illegal name for a Java class because of the character '-'. How do you create the class for Foo-Bar.html? FrancisOn 10/19/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Please see http://www.wicket-wiki.org.uk/wiki/index.php/Howto and thetwo entries in the Configuration section.JuergenOn 10/19/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi all,This requirement of Wicket that a markup and its corresponding Java class must have the same name is violating a usecase that I have. The generated markup from sources I have no control on have sometimes filenames containing identifiers like the hyphen which is not legal to appear in Java class names. So my question is does anyone has a trick I can use to overcome this shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java. How can this be solved in Wicket without renaming the markup file?Francis--- 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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup and matching Java class
For Foo_Bar.java wouldn't Wicket be expecting Foo_Bar.html and not Foo-Bar.html? Unless there is a way I can do some mapping (which I currently don't know how) telling Wicket that during rendering of Foo-Bar.html it should use Foo_Bar.java. Or am I missing something here? FrancisOn 10/20/05, Dipu [EMAIL PROTECTED] wrote: If there is any specific pattern in which your HTML files will be named then you can add logic topick up the correspoding HTML file looking at the java class name. for example when you are trying to loadpage withthe nameFoo_Bar.java you canmap Foo-Bar.HTML as the mark up. hope this helps regards Dipu - Original Message - From: Francis Amanfo To: wicket-user@lists.sourceforge.net Sent: Thursday, October 20, 2005 7:56 AM Subject: Re: [Wicket-user] Markup and matching Java class Juergen,It seems the howto is talking about locating markups in different places other than the default class package where the markup's class is defined. That I know is possible.But let me be more specific with my question.Say I have a html Foo-Bar.html. Wicket requires me to have a class Foo-Bar.java, right? But as you know Foo-Bar is an illegal name for a Java class because of the character '-'. How do you create the class for Foo-Bar.html?Francis On 10/19/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Please see http://www.wicket-wiki.org.uk/wiki/index.php/Howto and thetwo entries in the Configuration section.JuergenOn 10/19/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi all,This requirement of Wicket that a markup and its corresponding Java class must have the same name is violating a usecase that I have. The generated markup from sources I have no control on have sometimes filenames containing identifiers like the hyphen which is not legal to appear in Java class names. So my question is does anyone has a trick I can use to overcome this shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java. How can this be solved in Wicket without renaming the markup file?Francis--- 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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Markup and matching Java class
Seems like a nice hack. Will try that. Thanks.On 10/20/05, Dipu [EMAIL PROTECTED] wrote: check this out, add the following method to your WebApplication implementation class. public ResourceStreamLocator getResourceStreamLocator() { final ResourceStreamLocator defaultLocator = super.getResourceStreamLocator(); return new ResourceStreamLocator(new AbstractResourceStreamLocator() {public IResourceStream locate(ClassLoader loader,final String path, final String style, final java.util.Locale locale,final String extension) { IResourceStream stream = super.locate(loader, path, style, locale, extension); if (stream == null) { return defaultLocator.locate(loader,path, style, locale, extension); } return stream; } protected IResourceStream locate(ClassLoader classLoader, String path) { String skin = null; String skinPath = null; skin = path.substring(path.lastIndexOf('/'), path.length());/*if the page is Foo_Bar.javaskin will be Foo_Bar.htmladd logic to rename it to Foo-Bar.html or to what ever based on ur requrementset the value of skin to your new html file nameskin = new value*/path = path.substring(0,path.lastIndexOf('/'));skinPath = path.substring(path.lastIndexOf('/'), path.length())+skin; try { final URL url = ""> .getResource(skinPath); if (url != null) { return new UrlResourceStream(url); } } catch(MalformedURLException e) { } return null; } }); } - Original Message - From: Francis Amanfo To: wicket-user@lists.sourceforge.net Sent: Thursday, October 20, 2005 12:57 PM Subject: Re: [Wicket-user] Markup and matching Java class For Foo_Bar.java wouldn't Wicket be expecting Foo_Bar.html and not Foo-Bar.html? Unless there is a way I can do some mapping (which I currently don't know how) telling Wicket that during rendering of Foo-Bar.html it should use Foo_Bar.java. Or am I missing something here?Francis On 10/20/05, Dipu [EMAIL PROTECTED] wrote: If there is any specific pattern in which your HTML files will be named then you can add logic topick up the correspoding HTML file looking at the java class name. for example when you are trying to loadpage withthe nameFoo_Bar.java you canmap Foo-Bar.HTML as the mark up. hope this helps regards Dipu - Original Message - From: Francis Amanfo To: wicket-user@lists.sourceforge.net Sent: Thursday, October 20, 2005 7:56 AM Subject: Re: [Wicket-user] Markup and matching Java class Juergen,It seems the howto is talking about locating markups in different places other than the default class package where the markup's class is defined. That I know is possible.But let me be more specific with my question.Say I have a html Foo-Bar.html. Wicket requires me to have a class Foo-Bar.java, right? But as you know Foo-Bar is an illegal name for a Java class because of the character '-'. How do you create the class for Foo-Bar.html?Francis On 10/19/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Please see http://www.wicket-wiki.org.uk/wiki/index.php/Howto and thetwo entries in the Configuration section.JuergenOn 10/19/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi all,This requirement of Wicket that a markup and its corresponding Java class must have the same name is violating a usecase that I have. The generated markup from sources I have no control on have sometimes filenames containing identifiers like the hyphen which is not legal to appear in Java class names. So my question is does anyone has a trick I can use to overcome this shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java. How can this be solved in Wicket without renaming the markup file?Francis--- 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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Markup and matching Java class
Hi all, This requirement of Wicket that a markup and its corresponding Java class must have the same name is violating a usecase that I have. The generated markup from sources I have no control on have sometimes filenames containing identifiers like the hyphen which is not legal to appear in Java class names. So my question is does anyone has a trick I can use to overcome this shortcoming? For example, Foo-Bar.html can't have a class Foo-Bar.java. How can this be solved in Wicket without renaming the markup file? Francis
Re: [Wicket-user] can I display unescaped HTML text in wicket ?
To be more precise for a label for example: new Label(yourcomponent, something).setEscapeModelStrings(false) FrancisOn 10/12/05, Dorel Vaida [EMAIL PROTECTED] wrote: 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 Labelcomponents.After a closer look, there is a public final Component cid:[EMAIL PROTECTED] *setEscapeModelStrings*(boolean escapeMarkup) in Component which does this,sorry for posting the question w/o taking a closer look first. thanksJuergenOn 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 itcannot be avoided. so the question is can I tell wicket NOT to escapeHTML characters thatI 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.nethttps://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.nethttps://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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Image is not displayed
Thanks Martijn, I'll try that. FrancisOn 10/11/05, Martijn Dashorst [EMAIL PROTECTED] wrote: Use a wicket:remove around an image tag that does link to the resource in either the original directory using a relative path (../../../../../../etc) or the package. I use that all the time :-) MartijnOn 10/11/05, Johan Compagner [EMAIL PROTECTED] wrote: please upgrade to the latest RC version of 1.1 You can only preview the page when you have the image in the org/foo/presentation/images dir yes? Because if you don't have it there it is not previeable .. can you use the constructor Image(String , ResourceReference)? And then first make a PackageResourceReference to youre image that is in the above dir? Because it seems that something goes wrong in this code: LocalizedImageResource: private void loadStaticImage(final String path) { MarkupContainer parent = component.findParentWithAssociatedMarkup(); if (parent instanceof Border) { parent = parent.getParent(); } final Class scope = parent.getClass(); this.resourceReference = new ResourceReference(scope, path) { private static final long serialVersionUID = 1L; /** * @see wicket.ResourceReference#newResource() */ protected Resource newResource() { PackageResource pr = PackageResource.get(getScope(), getName(), LocalizedImageResource.this.locale, style); locale = pr.getLocale(); return pr; } }; resourceReference.setLocale(locale); resourceReference.setStyle(style); bind(); } I think the scope or something is not calculated right (can you debug through that method)? or course if you want to have the image in webapps/portal/images then please remove the Image: add(new Image(deleteImage, images/delete.gif)) completely from youre code and set that images/delete.gif directly as the src attribute of youre img. On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote: Right, I'm having the image in the webapps/portal/images directory where portal is my application's context. And also having it in org/foo/presentation/images but both don't work. The strange part is that previewing the panel in my development environment displays the image fine but only after wicket renders does it disappear. I also tried to move the panel markup to my application root but still no image was displayed. I could however preview with the image before wicket renders. I'm using wicket 1.1b. Francis On 10/10/05, Johan Compagner [EMAIL PROTECTED] wrote: first which version of wicket are you using? And where is the image images/delete.gif exactly? is in in the webapp root? so yes then you don't need a wicket tag for that and it should work out of the box Looking at youre tag: /portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gifi expect to have the image in the package:org.foo.presentation.images ( org/foo/presentation/images) so what is the case? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Images in Wicket are bit tricky. If you didn't want to use ResourceReferences, you could do something like this: AttributeModifier src = "" AttributeModifier(src, true, new Model() { @Overridepublic Object getObject(Component component) { // Do some logic and return a string...} } add(new WebMarkupContainer(image).add(src)); Otherwise, I usually just put the dynamic images in the package, then create static resource references to them: public static final ResourceReference ERROR_IMG = new PackageResourceReference(MyClass.class, error.gif); and use those in the image: add(new Image(image) { @Override public ResourceReference getImageResourceReference() { if (anyMessage(FeedbackMessage.ERROR)) { return ERROR_IMG; } return INFORMATION_IMG; } }); On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote: I'm adding the image dynamically based on a condition. I can't see why this shouldn't work. The images directory are located in the application root. Tried also to put it in the presentation package but didn't work. Whats the solution then? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved: img src="" type=image width=12 height=12 alt=[Delete] border=0 valign=middle / On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi, I have a Panel whose markup contains: img src="" type=image wicket:id=deleteImage width=12 height=12 alt=[Delete] border=0 valign=middle / The markup is located in package org.foo.presentation In my panel class located in the same package as the markup I do: add(new Image(deleteImage, images/delete.gif)) The problem is the image doesn't get dsiplayed. Viewing the source html inmy browser I see: img width=12 height= 12 type=image wicket:id=deleteImagevalign=middle border=0 src="" al
Re: [Wicket-user] Image is not displayed
I'm adding the image dynamically based on a condition. I can't see why this shouldn't work. The images directory are located in the application root. Tried also to put it in the presentation package but didn't work. Whats the solution then? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved:img src="" type=image width=12 height=12alt=[Delete] border=0 valign=middle / On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi,I have a Panel whose markup contains:img src="" type=image wicket:id=deleteImage width=12 height=12 alt=[Delete] border=0 valign=middle /The markup is located in package org.foo.presentationIn my panel class located in the same package as the markup I do: add(new Image(deleteImage, images/delete.gif))The problem is the image doesn't get dsiplayed. Viewing the source html in my browser I see:img width=12 height= 12 type=image wicket:id=deleteImage valign=middle border=0 src="" alt=[Delete] /I don't get it. Any help?Francis---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 listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Image is not displayed
Right, I'm having the image in the webapps/portal/images directory where portal is my application's context. And also having it in org/foo/presentation/images but both don't work. The strange part is that previewing the panel in my development environment displays the image fine but only after wicket renders does it disappear. I also tried to move the panel markup to my application root but still no image was displayed. I could however preview with the image before wicket renders. I'm using wicket 1.1b. Francis On 10/10/05, Johan Compagner [EMAIL PROTECTED] wrote: first which version of wicket are you using? And where is the image images/delete.gif exactly? is in in the webapp root? so yes then you don't need a wicket tag for that and it should work out of the box Looking at youre tag: /portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gifi expect to have the image in the package:org.foo.presentation.images ( org/foo/presentation/images) so what is the case? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Images in Wicket are bit tricky. If you didn't want to use ResourceReferences, you could do something like this: AttributeModifier src = "" AttributeModifier(src, true, new Model() { @Overridepublic Object getObject(Component component) { // Do some logic and return a string...} } add(new WebMarkupContainer(image).add(src)); Otherwise, I usually just put the dynamic images in the package, then create static resource references to them: public static final ResourceReference ERROR_IMG = new PackageResourceReference(MyClass.class, error.gif); and use those in the image: add(new Image(image) { @Override public ResourceReference getImageResourceReference() { if (anyMessage(FeedbackMessage.ERROR)) { return ERROR_IMG; } return INFORMATION_IMG; } }); On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote: I'm adding the image dynamically based on a condition. I can't see why this shouldn't work. The images directory are located in the application root. Tried also to put it in the presentation package but didn't work. Whats the solution then? On 10/10/05, Phil Kulak [EMAIL PROTECTED] wrote: Do you have a resource reference named images/delete.gif? Because if you're just trying to make a static link to a static image, there's no need to get Wicket involved: img src="" type=image width=12 height=12 alt=[Delete] border=0 valign=middle / On 10/10/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi, I have a Panel whose markup contains: img src="" type=image wicket:id=deleteImage width=12 height=12 alt=[Delete] border=0 valign=middle / The markup is located in package org.foo.presentation In my panel class located in the same package as the markup I do: add(new Image(deleteImage, images/delete.gif)) The problem is the image doesn't get dsiplayed. Viewing the source html inmy browser I see: img width=12 height= 12 type=image wicket:id=deleteImagevalign=middle border=0 src="" alt=[Delete]/ I don't get it. Any help? Francis --- 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 listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Static html pages
Hi, How do I configure Wicket to not only serve markups with corresponding Java classes, but also static pages as well. The static pages contain wicket ids that link to other pages which may be markups with corresponding Java classes. Thanks
Re: [Wicket-user] Static html pages- how can this be solved?
Ok, question. How do I solve this problem: Example: Index.html: html body a href=""> /body /html Index.html has a Java class Index.java. help.html: html body a href="" wicket:id=testLinkTest/a /body /html testLink links to an existing dynamic template with its Java class. Help.html hasn't got a Java class. The likes of help.html are generated and can be hundreds so creating a class per markup isn't going to be a feasible task. Above all the file names are not known in advance. Is there a known pattern in wicket to solve this problem? Francis On 9/23/05, Johan Compagner [EMAIL PROTECTED] wrote: where are those static pages? If you store them in the normal web dir then you can point to them in youre a href linksOn 9/23/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi, How do I configure Wicket to not only serve markups with corresponding Java classes, but also static pages as well. The static pages contain wicket ids that link to other pages which may be markups with corresponding Java classes. Thanks
Re: [Wicket-user] Static html pages
Yes, that's true. But doing this ALWAYS returns to my Index.html which is the Home of the application containing the href to the static page. Any ideas? Francis On 9/23/05, Johan Compagner [EMAIL PROTECTED] wrote: where are those static pages? If you store them in the normal web dir then you can point to them in youre a href linksOn 9/23/05, Francis Amanfo [EMAIL PROTECTED] wrote:Hi, How do I configure Wicket to not only serve markups with corresponding Java classes, but also static pages as well. The static pages contain wicket ids that link to other pages which may be markups with corresponding Java classes. Thanks
[Wicket-user] Re: Runtime Exceptions
I want to mention that the exception message in the first case was: Markup of type 'html' for component 'MyForm' not found. In other words, the word invalid is not added to the message. This is very misleading. Francis On 9/16/05, Francis Amanfo [EMAIL PROTECTED] wrote: Hi, Wicket is a great framework but IMO one place I think its currently not doing a very good job is Runtime exception reporting. Coming from Tapestry, I can say that it is one place Tapestry does quite well and hope Wicket can catch up on that front. Now I'll go into details of where my frustration lies. I had a markup (MyForm.html) which by accident and erroneously contained two id names'. Example form id=myform id=myform. Note that I'm not talking about wicket:id but just plain html id. Wicket generated the following runtime exception: Markup of type 'html' for component 'MyForm' not found or invalid Enable debug messages for wicket.util.resource.Resource to get a list of all filenames tried: Ok, I agree it was an invalid markup.But can't wicket catch and throw this specific error (like currently what gets reported when a markup is not XHTML compatible) instead of the more generic markup not found or invalid message? Another issue I have is runtime exception messages reported when the component class is trying to render a component that has not been declared in the corresponding markup. That error is often: wicket.WicketRuntimeException: The component(s) below failed to render: I think the life of Wicket newbies could be made a bit easier if for instance a message like Possible cause: Component class is trying to render a component that has not been declared in the markup is added. IMHO, this is more straight forward and could save a lot of debugging time. What do you guys think about these? Regards, Francis
Re: [Wicket-user] Why is FileResourceStream final?
And in a more terse biblical wording: Ask and ye shall be given. :) FrancisOn 9/14/05, Scott Sauyet [EMAIL PROTECTED] wrote: = Scott Sauyet [EMAIL PROTECTED] wrote: = Eelco Hillenius Is there a good reason to have FileResourceStream final?[ ... ] I made it non-final. Ask and you shall receive.Thanks. -- Scott---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 ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Markups edited by a CMS
Hi, Some of my Page markup are occasionally being edited by a CMS. Sometimes they add hrefs linking to external sites outside my application. The problem is that these links don't work when when the pages are accessed via my application. How can I solve this problem in Wicket? Francis
[Wicket-user] displaying a block of html
Hi, I have a label component id in my markup that is linked to a model that contains a string like ihello world/i. Currently Wicket displays the string as is on the label,which doesn't surprise me. But I don't want that. I want the tags to be transformed as well. I know this can be achieved by wraping the i/i around my span or id declaring the component. But I want to know if there is a way to force Wicket to transform html tags in the output. Francis
Re: [Wicket-user] NestedLint example
Hi, I'm pasting the current code here. The Nested.html markup: html xmlns:wicket wicket:panel ul span wicket:id=rows li wicket:id=row a wicket:id=myLink span wicket:id=labelthe label/span /a /li span wicket:id=nested/ /span /ul /wicket:panel /html I've modified the populatItem(..) to the following: protected void populateItem(ListItem listItem) { Object modelObject = listItem.getModelObject(); WebMarkupContainer row = new WebMarkupContainer(row); if(modelObject instanceof List) { // create a panel that renders the sub lis NestedList nested = new NestedList(nested, (List)modelObject); listItem.add(nested); // if the current element is a list, we create a dummy row/ label element // as we have to confirm to our HTML definition, and set it's visibility // property to false as we do not want LI tags to be rendered. //WebMarkupContainer row = new WebMarkupContainer(row); row.setVisible(false); row.add(new WebMarkupContainer(label)); listItem.add(row); } else { // if the current element is not a list, we create a dummy panel element // to confirm to our HTML definition, and set this panel's visibility // property to false to avoid having the UL tag rendered NestedList nested = new NestedList(nested, null); nested.setVisible(false); listItem.add(nested); ExternalLink el = new ExternalLink(myLink, http://www.google.com;); el.add(new Label(label, modelObject.toString())); row.add(el); listItem.add(row); } } But I get the error: wicket.markup.MarkupException: Unable to find component with id 'myLink' in [MarkupContainer [Component id = row, page ... Any ideas as to what I might be doing wrong? - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, July 27, 2005 19:22 Subject: Re: [Wicket-user] NestedLint example I modified NestedList.html by adding: a wicked:id=myLink li wicket:id=row span wicket:id=labelthe label/span /li /a in the span wicket:id=rows.../span And referenced the myLink component in NestedList.java in the void pupulateItem(...) by adding: add(new ExternalLink(myLink, http://www.google.com;, Click this link to go to Google)); in populateItem you have to add components to the List item argument: item.add(new ExternalLink(myLink, http://www.google.com;, Click this link to go to Google)); Furthermore, in the example you give above, the first li is not closed, so: li wicket:id=row should be: li wicket:id=row could that be what is wrong? Eelco --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] NestedLint example
Hi, I'm trying to modify the NestedList in Wicket examples to make the li link to an external URL. So instead of the currently generated ul and li items I want: UL lia href=""Click here/a/li ... UL I modified NestedList.html by adding: a wicked:id="myLink" li wicket:id="row" span wicket:id="label"the label/span /li /a in the span wicket:id="rows".../span And referenced the "myLink" component in NestedList.java in the void pupulateItem(...) by adding: add(new ExternalLink("myLink", "http://www.google.com", "Click this link to go to Google")); But I get the error "Component myLink not found ..." What am I doing wrong? Or is there a better way of doing this? Thanks, F
Re: [Wicket-user] NestedLint example
Hi, Still struggling to get this work. I'm pasting part of the source in here. Nested.html == html xmlns:wicket wicket:panel ul span wicket:id=rows li wicket:id=row a wicked:id=myLink span wicket:id=labelthe label/span /a /li span wicket:id=nested/ /span /ul /wicket:panel /html The populateItem method in NestedList.java === protected void populateItem(ListItem listItem) { Object modelObject = listItem.getModelObject(); if(modelObject instanceof List) { // create a panel that renders the sub lis NestedList nested = new NestedList(nested, (List)modelObject); listItem.add(nested); // if the current element is a list, we create a dummy row/ label element // as we have to confirm to our HTML definition, and set it's visibility // property to false as we do not want LI tags to be rendered. WebMarkupContainer row = new WebMarkupContainer(row); row.setVisible(false); row.add(new WebMarkupContainer(label)); listItem.add(row); } else { // if the current element is not a list, we create a dummy panel element // to confirm to our HTML definition, and set this panel's visibility // property to false to avoid having the UL tag rendered NestedList nested = new NestedList(nested, null); nested.setVisible(false); listItem.add(nested); // add the row (with the LI element attached, and the label with the // row's actual value to display WebMarkupContainer row = new WebMarkupContainer(row); ExternalLink el = new ExternalLink(myLink, http://www.google.com;, Click this link to go to Google); el.add(new Label(label, modelObject.toString())); row.add(el); listItem.add(row); } } I get the error: wicket.markup.MarkupException: Unable to find component with id 'label' in [MarkupContainer ... Any suggestion as to what I'm doing wrong? Thanks. F - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, July 27, 2005 19:29 Subject: RE: [Wicket-user] NestedLint example UL lia href=www.javalobby.orgClick here/a/li ... UL Also looks like a wicked:id=myLink li wicket:id=row span wicket:id=labelthe label/span /li /a Needs to be li wicket:id=row a wicked:id=myLink span wicket:id=labelthe label/span /a /li This also means the label component label needs to be added to the link component instead of listview item Igor --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] NestedLint example
Hi Jonathan, Thanks for the suggestions. I've corrected my typo and added the label to myLink as you suggested but got this time the error: java.lang.IllegalArgumentException: A child with id 'row' already exists: ... Could you please demonstrate your suggestions with code? Thanks in advance. F. - Original Message - From: Jonathan Locke [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, July 28, 2005 01:02 Subject: Re: [Wicket-user] NestedLint example nesting of tags is strict. you must add label to myLink, not row. also, you typoed wicket as wicket. Francis Amanfo wrote: Hi, Still struggling to get this work. I'm pasting part of the source in here. Nested.html == html xmlns:wicket wicket:panel ul span wicket:id=rows li wicket:id=row a wicked:id=myLink span wicket:id=labelthe label/span /a /li span wicket:id=nested/ /span /ul /wicket:panel /html The populateItem method in NestedList.java === protected void populateItem(ListItem listItem) { Object modelObject = listItem.getModelObject(); if(modelObject instanceof List) { // create a panel that renders the sub lis NestedList nested = new NestedList(nested, (List)modelObject); listItem.add(nested); // if the current element is a list, we create a dummy row/ label element // as we have to confirm to our HTML definition, and set it's visibility // property to false as we do not want LI tags to be rendered. WebMarkupContainer row = new WebMarkupContainer(row); row.setVisible(false); row.add(new WebMarkupContainer(label)); listItem.add(row); } else { // if the current element is not a list, we create a dummy panel element // to confirm to our HTML definition, and set this panel's visibility // property to false to avoid having the UL tag rendered NestedList nested = new NestedList(nested, null); nested.setVisible(false); listItem.add(nested); // add the row (with the LI element attached, and the label with the // row's actual value to display WebMarkupContainer row = new WebMarkupContainer(row); ExternalLink el = new ExternalLink(myLink, http://www.google.com;, Click this link to go to Google); el.add(new Label(label, modelObject.toString())); row.add(el); listItem.add(row); } } I get the error: wicket.markup.MarkupException: Unable to find component with id 'label' in [MarkupContainer ... Any suggestion as to what I'm doing wrong? Thanks. F - Original Message - From: Igor Vaynberg [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Wednesday, July 27, 2005 19:29 Subject: RE: [Wicket-user] NestedLint example UL lia href=www.javalobby.orgClick here/a/li ... UL Also looks like a wicked:id=myLink li wicket:id=row span wicket:id=labelthe label/span /li /a Needs to be li wicket:id=row a wicked:id=myLink span wicket:id=labelthe label/span /a /li This also means the label component label needs to be added to the link component instead of listview item Igor --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https
Re: [Wicket-user] Wicket 1.1-b1 released
Great news and congratulations for this new release and thanks for the hardwork. A little thing though. On the main Wicket page the month July is spelled as Juli. Some mix of dutch and english here on the page :) F - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net; wicket-develop@lists.sourceforge.net Sent: Sunday, July 24, 2005 14:57 Subject: [Wicket-user] Wicket 1.1-b1 released Please download and test this release. We appreciate any feedback you can provide! Examples and extensions will follow later. The wicket team is pleased to announce the Wicket 1.1.0-b1 release! http://wicket.sourceforge.net Wicket is a Java web application framework that takes simplicity, separation of concerns and ease of development to a whole new level. Wicket pages can be mocked up, previewed and later revised using standard WYSIWYG HTML design tools. Dynamic content processing and form handling is all handled in Java code using a first-class component model backed by POJO data beans that can easily be persisted using your favourite technology. Changes in this version include: New Features: o Added support for JavaScript and CSS. Please see the Wiki for more details. o Added component wicket.markup.html.include.Include for including content from non-Wicket resources. Fixed bugs: o Component.setShouldEscapeModelStrings renamed to setEscapeModelStrings o Only validate components that are visible o setStripWicketTags now takes Wicket namespaces (setWicketNamespace) into account. Issue: 1216017. Thanks to Janne Hietamäki. Changes: o removed wicketNamspace property from ApplicationSettings, instead clients should use the xmlns attribute in the markup file (amp;lt;html xmlns:namespaceamp;gt;) Issue: 1223348. o Buttons now have an 'immediate' property. If true, this button behaves much like a normal link; no validation nor updating of the nested form components is done automatically in that case. This property is false by default. Have fun! -The wicket team --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opÌk ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.1-b1 released
The 1.1 home till contains Juli. :) F. - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Sunday, July 24, 2005 22:51 Subject: Re: [Wicket-user] Wicket 1.1-b1 released Francis Amanfo wrote: Great news and congratulations for this new release and thanks for the hardwork. A little thing though. On the main Wicket page the month July is spelled as Juli. Some mix of dutch and english here on the page :) Fixed. You're the first one to notice ;-) When anyone finds other spelling mistakes, don't be afraid to post them. We will only learn from that experience. Martijn F - Original Message - From: Martijn Dashorst [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net; wicket-develop@lists.sourceforge.net Sent: Sunday, July 24, 2005 14:57 Subject: [Wicket-user] Wicket 1.1-b1 released Please download and test this release. We appreciate any feedback you can provide! Examples and extensions will follow later. The wicket team is pleased to announce the Wicket 1.1.0-b1 release! http://wicket.sourceforge.net Wicket is a Java web application framework that takes simplicity, separation of concerns and ease of development to a whole new level. Wicket pages can be mocked up, previewed and later revised using standard WYSIWYG HTML design tools. Dynamic content processing and form handling is all handled in Java code using a first-class component model backed by POJO data beans that can easily be persisted using your favourite technology. Changes in this version include: New Features: o Added support for JavaScript and CSS. Please see the Wiki for more details. o Added component wicket.markup.html.include.Include for including content from non-Wicket resources. Fixed bugs: o Component.setShouldEscapeModelStrings renamed to setEscapeModelStrings o Only validate components that are visible o setStripWicketTags now takes Wicket namespaces (setWicketNamespace) into account. Issue: 1216017. Thanks to Janne Hietamäki. Changes: o removed wicketNamspace property from ApplicationSettings, instead clients should use the xmlns attribute in the markup file (amp;lt;html xmlns:namespaceamp;gt;) Issue: 1223348. o Buttons now have an 'immediate' property. If true, this button behaves much like a normal link; no validation nor updating of the nested form components is done automatically in that case. This property is false by default. Have fun! -The wicket team --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opÌk ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492opÌk ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77alloc_id492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Setting and reading cookies
Hi all, In my application I want to set a custom generated id as cookie with a certain age.I'm trying to do this in either the class that implements my form(ie extends the Form) component or my session class which subclasses WebSession. How do I access the HttpRequest and HttpResponse objects to be able to set and read cookies? Any help? Francis
Re: [Wicket-user] Wicket 1.1
+1 for 1.1 - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: Wicket User List wicket-user@lists.sourceforge.net Sent: Wednesday, July 20, 2005 22:55 Subject: [Wicket-user] Wicket 1.1 Lots of fixes and improvements this week. That's good. It getting harder to maintain the 1.0 branch though. The plan was not to do any API breaking fixes in that, but with the validator changes of today that gets impossible. Who /needs/ the 1.0 to be supported? My hope is that as you'll have some API breaks anyway, you might as well do the full upgrade to 1.1. Saves us a lot of work (that we can better spend at fixing issues and honouring requests), and gives you JavaScript/CSS functionality! And it doesn't break much more. So, if you absolutely need the 1.0 branch to be supported, please speak up now :) Otherwise, we'll be focussing on 1.1. instead. Eelco --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user