Re: [Wicket-user] About to use Wicket. ORM?
Choosing something more lightweight can be (in my opinion often is) good for productivity and maintainability. One of the main things I look for when choosing libraries/frameworks is what dependencies they have - how many other frameworks do they force me to use (at specific versions). Another thing is how many minutes it takes me to get a basic understanding of the API. ORM alternatives: I've used PriDE and recently found jLynx. Both are thin layers over jdbc with no dependencies (jLynx uses slf4j). 15min with either of these is all you need. http://pride.sourceforge.net/ http://code.google.com/p/jlynx-persistence-framework/ /Anders Evan Chooly wrote: Except the question wasn't about learning. It's about being productive. And too often NIH is the anti-productivity pill. Don't want a feature? Don't use it. Wicket offers a lot that I don't use but I'd have to crazy not to use it because of that. On 7/24/07, davor-x [EMAIL PROTECTED] wrote: I'm making software for 10 years now. And I dont use / like orm. But that's me. I hate everything that's bloated with features. I hope wicket will not add new features in it's core. For my use, I've build a kind of my inhouse orm, I want to view the same data in, say a browsable and selectable list and then in a crud form - synchonized. The best and only way of learning - for me - is: DIY. -- View this message in context: http://www.nabble.com/About-to-use-Wicket.-ORM--tf4131916.html#a11764361 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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
What does it take to become the victim of a joke like this? Can this be counted as an accomplishment? /Anders Korbinian Bachl 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/[EMAIL PROTECTED] 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 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=DEV DEV ___ 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
Re: [Wicket-user] Reverting the constructor change of 2.0
How did this end - what's the plan? /Anders Eelco Hillenius wrote: I didn't mean that bad. I would just prefer someone else to do the next vote. Eelco On 3/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess sacrasm and frustration dont transfer well over email :| -igor On 3/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 3/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: well obviously we cannot poll for that until we have decided what 1.3 will be. so first you need a poll on that, then you need a poll that depends on that poll so we can decide when to drop support for 1.5. and then another poll on the what to do next, but that poll has to depend on the previous two polls. and while all these polls are going on no one is doing anything because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. but wait i dont know if i can put this into 1.3 because a poll on that is still going on. blah blah blah blah. We are looking for consensus, and as we're doing that on the mailing list, yes there will be a couple of bounces back and forth. But I think we pretty much know all the options now. I've been sticking my neck out with polls and proposals a couple of times now, so Igor, why don't you write that next ultimate all-compassing vote where we can decide on ditching the constructor refactor and when and how? 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 - 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 - 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] Reverting the constructor change of 2.0
Sounds very good! Generally I try to stay away from beta versions, but in the case of Wicket 1.4/2.0 I think I'll make an exception. /Anders Eelco Hillenius wrote: Hi, It ended in us agreeing we should get rid of the constructor change. We currently working on backporting all the 2.0 features to 1.3, except for the constructor change and the JDK 5 features. You can track the progress of that here: http://cwiki.apache.org/confluence/display/WICKET/Backporting+features+from+trunk. As you can see, we're progressing pretty quickly. After that is done, we'll move the current trunk somewhere and replace it with the code of 1.3 and add the JDK 5 features (basically generified models and components). We're probably gonna call that release 2.0, though 1.4 is still an option. So in a couple of weeks, the net result is that we'll have a Wicket version that is everything Wicket 2.0 is now bar the constructor change. 1.3 and that version will be very close to each other (so much easier to maintain), and it'll be easier for people comming from 1.2 or 1.3 to move to that version. Regards, Eelco On 3/27/07, Anders Peterson [EMAIL PROTECTED] wrote: How did this end - what's the plan? /Anders Eelco Hillenius wrote: I didn't mean that bad. I would just prefer someone else to do the next vote. Eelco On 3/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i guess sacrasm and frustration dont transfer well over email :| -igor On 3/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 3/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: well obviously we cannot poll for that until we have decided what 1.3 will be. so first you need a poll on that, then you need a poll that depends on that poll so we can decide when to drop support for 1.5. and then another poll on the what to do next, but that poll has to depend on the previous two polls. and while all these polls are going on no one is doing anything because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. but wait i dont know if i can put this into 1.3 because a poll on that is still going on. blah blah blah blah. We are looking for consensus, and as we're doing that on the mailing list, yes there will be a couple of bounces back and forth. But I think we pretty much know all the options now. I've been sticking my neck out with polls and proposals a couple of times now, so Igor, why don't you write that next ultimate all-compassing vote where we can decide on ditching the constructor refactor and when and how? 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 - 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 - 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 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel
Re: [Wicket-user] Converters
When I read some old posts discussing changes to the converts I thought you where trying to re-invent Format. All that would be required is a factory/cache that finds/builds the correct instance and perhaps some new Format subclasses. If you can code MyOwnBigDecimal, then my would it be impossible to code a MyOwnFormat and register it with the factory/cache? I don't know how the new converters work - I'm sure they're great. I look forward to the next new release! /Anders Igor Vaynberg wrote: do i control the factory? what if i have MyOwnBigDecimal class and i want to write a formatter to go between that and a string automatically. how do i integrate that into the jdk api so it works transparently like it would if i used wicket's converters? -igor On 3/14/07, *Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Not sure what you mean, but if you control the factory you control the formatters. /Anders Igor Vaynberg wrote: and does that api support registering your own converters? -igor On 3/14/07, *Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No. You create them specifying which Locale to use. Look at the static factory methods in NumbverFormat. http://java.sun.com/j2se/1.5.0/docs/api/java/text/NumberFormat.html All Wicket would needs is a FormatFactory that reads the Locale from the request/session/user and instantiates correct Format instances. /Anders Martijn Dashorst wrote: On 3/14/07, Anders Peterson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One of my questions remain: Why does Wicket need converters at all? Java already has java.text.Format with two-way conversion between String and some other class. But they assume the VM's locale, not the locale of the request/session/user. Martijn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn
[Wicket-user] Converters
Hi, I use Wicket 1.2.5 and have been looking at Converters (IConverter ITypeConverter). The problem I want to solve is formatting my BigDecimals correctly. Can't understand why this should be so complicated. Why have converters at all? Java already has java.text.Format with the methods: Object parseObject(String source) String format (Object obj) What more do we need? (Maybe generics...) How do I get rid of 0E-9 when using Wicket 1.2.5 and Java 1.5? Why isn't this - whatever the solution is - the default behavior of Wicket? /Anders - 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] Reverting the constructor change of 2.0
Can anyone vote? I vote for alternative D. You asked about reverting the constructor change or not. My interpretation of the answers you got is: Yes, fine, what ever, but give us generics (for models at least). Alternative D is: Revert to working on 1 branch (doesn't matter if it's called 1.3 or 2.0) and make moving to Java5 (adding Generics) top priority. /Anders Eelco Hillenius wrote: Hi, It looks like the discussion around reverting the constructor change that we did for 2.0 has cooled down. This email is not a vote yet, but a summary of opinions so far[1]. Those of you Wicket committers who didn't have your say yet (Juergen, Frank, Gwyn, Janne, Jan, Ate), I consider that an OK for reverting. If not, please reply to the thread. Juergen, you have been working on 2.0 quite a bit. Can you please state your opinion, and can you tell us whether there are more functional differences between 1.3 and 2.0 other than the constructor change, Java 5 features, the attach/ detach change and improved models and validators?[2] I think so far we can safely say reverting is supported broadly. At least, of the people who reacted, most stated they actually preferred add over the new constructor, and those who were either neutral or had a slight preference for the new constructor would still support reverting as that would keep the momentum for the project going. So, it looks like this may happen. But we'll vote about that in a few days. Before we do that, we have to reach consensus on the package we'll vote on. We have some different - and strong - opinions[3] so we need to find a way to bridge that. Here are what I think the different opinions: a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0 (though only for bugfixes). 1.4 will be the release with backports of the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5 features (including generics). b) as a) but rather than developing 1.3 up to a final release, freeze asap (only fix bugs) and start on 1.4 c) put all backports except for the Java 5 features in 1.3 after the beta1 release (which we agreed upon doing this weekend). 1.4 will be for the Java 5 features, and the branch should be started as soon as 1.3 is feature complete. Maybe the most constructive way to gather opinions here is to first let people plainly state what they prefer before we enter discussion mode. So, please state what package you think is the best idea (or introduce d if you want), and why. Cheers, Eelco [1] http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9350505 http://www.nabble.com/Re%3A-IMPORTANT%3A-your-opinion-on-the-constructor-tf3359229.html#a9344068 [2] http://www.nabble.com/State-1.3--features-tf3376983.html [3] http://www.nabble.com/VOTE%3A-backporting-wicket-2.0-model-change-to-1.3-tf3364601.html http://www.nabble.com/roadmap-tf3366743.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 - 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] Reverting the constructor change of 2.0
Is the feature set for 1.3 set? I vote to remove everything that may delay the release of that version. With alternative C; when would you estimate 1.4 (Java5) could be released? /Anders Johan Compagner wrote: 1.4 will be java5 (when C is done first) That we can do pretty quickly. (not direclty releasing it but usable for people who want 1.3 + java5) johan On 3/14/07, * Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Can anyone vote? I vote for alternative D. You asked about reverting the constructor change or not. My interpretation of the answers you got is: Yes, fine, what ever, but give us generics (for models at least). Alternative D is: Revert to working on 1 branch (doesn't matter if it's called 1.3 or 2.0) and make moving to Java5 (adding Generics) top priority. /Anders Eelco Hillenius wrote: Hi, It looks like the discussion around reverting the constructor change that we did for 2.0 has cooled down. This email is not a vote yet, but a summary of opinions so far[1]. Those of you Wicket committers who didn't have your say yet (Juergen, Frank, Gwyn, Janne, Jan, Ate), I consider that an OK for reverting. If not, please reply to the thread. Juergen, you have been working on 2.0 quite a bit. Can you please state your opinion, and can you tell us whether there are more functional differences between 1.3 and 2.0 other than the constructor change, Java 5 features, the attach/ detach change and improved models and validators?[2] I think so far we can safely say reverting is supported broadly. At least, of the people who reacted, most stated they actually preferred add over the new constructor, and those who were either neutral or had a slight preference for the new constructor would still support reverting as that would keep the momentum for the project going. So, it looks like this may happen. But we'll vote about that in a few days. Before we do that, we have to reach consensus on the package we'll vote on. We have some different - and strong - opinions[3] so we need to find a way to bridge that. Here are what I think the different opinions: a) focus on stabilizing 1.3 first, meanwhile keep supporting 2.0 (though only for bugfixes). 1.4 will be the release with backports of the currently missing 2.0 features, and 1.5 will be 1.4 + the Java 5 features (including generics). b) as a) but rather than developing 1.3 up to a final release, freeze asap (only fix bugs) and start on 1.4 c) put all backports except for the Java 5 features in 1.3 after the beta1 release (which we agreed upon doing this weekend). 1.4 will be for the Java 5 features, and the branch should be started as soon as 1.3 is feature complete. Maybe the most constructive way to gather opinions here is to first let people plainly state what they prefer before we enter discussion mode. So, please state what package you think is the best idea (or introduce d if you want), and why. Cheers, Eelco [1] http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9350505 http://www.nabble.com/IMPORTANT%3A-your-opinion-on-the-constructor-change-in-2.0-tf3358738.html#a9350505 http://www.nabble.com/Re%3A-IMPORTANT%3A-your-opinion-on-the-constructor-tf3359229.html#a9344068 [2] http://www.nabble.com/State-1.3--features-tf3376983.html [3] http://www.nabble.com/VOTE%3A-backporting-wicket-2.0-model-change-to-1.3-tf3364601.html http://www.nabble.com/roadmap-tf3366743.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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user
Re: [Wicket-user] Converters
From reading old posts I know that the converters have been improved for 1.3/2.0 but I'm doing my best to stay away from beta versions. I have built two new ITypeConverters, a new IConverter and a new IConverterFactory and ... it kind of works. Strangely I don't see the correct format everywhere. One of my questions remain: Why does Wicket need converters at all? Java already has java.text.Format with two-way conversion between String and some other class. /Anders Johan Compagner wrote: please look at the converters that are now in 1.3. those are much simpler and you should be able to do what you want pretty quickly in 1.2.x it is also possible. But it is a bit harder Because if you want BigDecimals support for both ways you have to make 2 and then register one for String-BigDecimals (in the StringConverter i believe) and BigDecimals-String johan On 3/14/07, *Anders Peterson * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, I use Wicket 1.2.5 and have been looking at Converters (IConverter ITypeConverter). The problem I want to solve is formatting my BigDecimals correctly. Can't understand why this should be so complicated. Why have converters at all? Java already has java.text.Format with the methods: Object parseObject(String source) String format (Object obj) What more do we need? (Maybe generics...) How do I get rid of 0E-9 when using Wicket 1.2.5 and Java 1.5? Why isn't this - whatever the solution is - the default behavior of Wicket? /Anders - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - 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] Reverting the constructor change of 2.0
Do you plan to still release new features for old Java after you've released a Java5 version? That seems crazy. Make one last release for JDK 1.4 and after that it's bug fixing only. All new development should target Java5. Wicket should have moved to Java5 at least one year ago! /Anders Eelco Hillenius wrote: 1.3 feature set would be a merge between 2.0 and 1.3 when we drop 2.0 And no releasing it quickly will not mean that we will release a java5 version quickly because that will mean we will again have multiply branches to support. It would be my idea to follow up with a Java 5 version asap though. Which is the reason why I'm arguing for folding in the 'missing' ports in 1.3 soon, so that we would at least have that out of the way and only have two branches which are pretty close to each other. But as long as we plan to support JDK 1.4, we have to have two branches I'm afraid. 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 - 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] Converters
No. You create them specifying which Locale to use. Look at the static factory methods in NumbverFormat. http://java.sun.com/j2se/1.5.0/docs/api/java/text/NumberFormat.html All Wicket would needs is a FormatFactory that reads the Locale from the request/session/user and instantiates correct Format instances. /Anders Martijn Dashorst wrote: On 3/14/07, Anders Peterson [EMAIL PROTECTED] wrote: One of my questions remain: Why does Wicket need converters at all? Java already has java.text.Format with two-way conversion between String and some other class. But they assume the VM's locale, not the locale of the request/session/user. Martijn - 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] Reverting the constructor change of 2.0
1) I think you're overestimating the trouble that would cause. The only thing they're not getting is new features after the next release. In terms of new (major) releases no one has gotten anything for almost a year. 2) You also lose something by not moving to Java5... Wicket can be better with Java5. The fact that Wicket has not yet adopted Java5 means it is not as good as it could be. Java5 is not just a minor upgrade. If anything ever should have been called Java2 it's Java 1.5/5.0 ;-) /Anders Eelco Hillenius wrote: On 3/14/07, Anders Peterson [EMAIL PROTECTED] wrote: Do you plan to still release new features for old Java after you've released a Java5 version? That seems crazy. Make one last release for JDK 1.4 and after that it's bug fixing only. All new development should target Java5. Wicket should have moved to Java5 at least one year ago! We did actually with Wicket 2.0 which started over a year ago. But we haven't gotten around to releasing for many reasons. As for dropping JDK 1.5 support: I think the committers would love that, but it would bring a bunch of users in trouble I'm afraid. Maybe we should have a poll about that. 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 - 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] Converters
Not sure what you mean, but if you control the factory you control the formatters. /Anders Igor Vaynberg wrote: and does that api support registering your own converters? -igor On 3/14/07, *Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: No. You create them specifying which Locale to use. Look at the static factory methods in NumbverFormat. http://java.sun.com/j2se/1.5.0/docs/api/java/text/NumberFormat.html All Wicket would needs is a FormatFactory that reads the Locale from the request/session/user and instantiates correct Format instances. /Anders Martijn Dashorst wrote: On 3/14/07, Anders Peterson [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One of my questions remain: Why does Wicket need converters at all? Java already has java.text.Format with two-way conversion between String and some other class. But they assume the VM's locale, not the locale of the request/session/user. Martijn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - 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] Reverting the constructor change of 2.0
Don't poll too much - just decide on something. The core development team is relatively small isn't it... /Anders Igor Vaynberg wrote: well obviously we cannot poll for that until we have decided what 1.3 will be. so first you need a poll on that, then you need a poll that depends on that poll so we can decide when to drop support for 1.5. and then another poll on the what to do next, but that poll has to depend on the previous two polls. and while all these polls are going on no one is doing anything because nothing is certain. do i commit to 2.0? naah, maybe into 1.3. but wait i dont know if i can put this into 1.3 because a poll on that is still going on. blah blah blah blah. create a few variations of the roadmap. put them into a single poll. lets poll, and vote on that and restore some sanity. -igor On 3/14/07, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This thread is about 'Reverting the constructor change of 2.0', not about 'Stop supporting JDK 1.5 after 1.3'. Eelco On 3/14/07, Igor Vaynberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: isnt this thread a poll? how many polls of the same thing do we need? omfg ponies! -igor On 3/14/07, Eelco Hillenius [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Maintaining Wicket 1.3 should be for bug fixes, not new features. But that doesn't prevent new components to be developed, or backported by our community if there is a need for JDK 1.4 components. And if you really have a need, then you can always use retrotranslator/weaver to backport 1.5 for your own pleasure. If that would be the consensus, we could consider skipping backporting those last 2.0 features and just put them in 1.4 together with the JDK 5 features. Who wants to write the poll? 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user 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 http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - 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
Re: [Wicket-user] IMPORTANT: your opinion on the constructor change in2.0
I don't care about (understand) the pros and cons regarding the constructor change. What Wicket needs is parameterized models (generics). I think you should do what ever it takes to support this in a released version as soon as possible. /Anders Gabor Szokoli wrote: On 3/7/07, Korbinian Bachl [EMAIL PROTECTED] wrote: Also please if you decide to not use the new constructor go on a JDK1.5 solo dev path soon +1 for this if I understand it right :-) We are not committed to either version yet, do basic prototypes in 1.2, but untyped getModel() is getting on my nerves already. (How did we ever use java without generics?) I am on principle against severe API changes unless they bring significant benefits, but do not feel myself competent to judge the current situation. Gabor Szokoli - 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 - 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] IMPORTANT: your opinion on the constructor change in2.0
... and having two active development branches seems like a really bad idea. /Anders Anders Peterson wrote: I don't care about (understand) the pros and cons regarding the constructor change. What Wicket needs is parameterized models (generics). I think you should do what ever it takes to support this in a released version as soon as possible. /Anders Gabor Szokoli wrote: On 3/7/07, Korbinian Bachl [EMAIL PROTECTED] wrote: Also please if you decide to not use the new constructor go on a JDK1.5 solo dev path soon +1 for this if I understand it right :-) We are not committed to either version yet, do basic prototypes in 1.2, but untyped getModel() is getting on my nerves already. (How did we ever use java without generics?) I am on principle against severe API changes unless they bring significant benefits, but do not feel myself competent to judge the current situation. Gabor Szokoli - 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 - 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] Wicket starts incubation at Apache
Why? Martijn Dashorst wrote: The Wicket team is proud to announce that we are starting the process of joining the Apache Software Foundation. When projects first move to Apache, they are housed at the Apache Incubator. The Incubator helps incoming projects migrate to the vibrant Apache community. One of the primary goals of the incubator is to ensure that the joining community is open, diverse and effective meritocracy. During Wicket's incubation we will resolve any issues regarding license (in)compatibilities that might be present in our code. For more information on the incubation process, please read the documents found on the incubator website. To facilitate our transition we have moved parts of our development infrastructure to the Apache Incubator: o the subversion repository is now hosted at https://svn.apache.org/repos/asf/incubator/wicket o the development mailing list is now provided by wicket-dev at incubator.apache.org o the commit mailing list is now wicket-commits at incubator.apache.org o our bug tracking system is now hosted at http://issues.apache.org/jira/browse/WICKET Please join our incubating community at Apache by subscribing to the Wicket development list. Send a message to: wicket-dev-subscribe at incubator.apache.org and follow the instructions. If you want to recieve commit messages from Wicket to track our development, please send a message to wicket-commits-subscribe at incubator.apache.org and follow the instructions. When you need to file a bug report, a patch or a request for enhancement (RFE), then please do so at our Apache JIRA installation: http://issues.apache.org/jira/browse/WICKET We are in the process of importing the contents of the sourceforge trackers into our JIRA project space. This will loose some information in the process, however we strive to keep as much information as possible. As always, have fun and thanks for your support using Wicket! - the Wicket team ps. apologies for the cross posting -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - 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] Database Integration With Wicket
JPA, Hibernate and other tools like that seem to (desperately) try to hide the fact that there is an rdbms underneath. Did anyone here try not having one... http://www.db4o.com/about/news/release/2006_09_28.aspx /Anders Korbinian Bachl wrote: Hi All, since im working now several days with NB and JPA1.0 i think i can give some hints.: First: DONT USE NB 5.5 BETA 1 or 2, use the DEV daily build instead ! - best the one from 29 09 2006 or 30 09 2006, as the Beta's have problems in creating entitys from DB in case of Many to Many relation and additional paramters within as well as some other flaws... if you use the dev daily build... you will just want to forget eclipse and dali ! - its so smooth, fast.. in fact, the time you need to download and install the 200 MB + eclipse and plugins, youre already running in NB (small 42 MB) and also have your first JPA already running.. however, NB 5.5 has 1 big flaw: the java editor... compared to eclipse its abaout 1 year behind, very sad IMHO. some things you also might want to remind when working with JPA: - currently prefer Toplink Essentials over Hibernate, as Hibernate is only RC and is very unstable - NB55: when entitys are created, the EJB QL will take the parameters from the Java environment, not the DB, as well as vars are written in lowercase even if they are uppercase in DB: e.g: @Entity public class Foo { private xxx Bar; -- even this is treated as lowercase !!! setBar( Bar) {} getBar () {} } - query might be: delete c from Foo c where c.bar = 'something' and also dont forget to use ..executeQuery() in case of bulk operations :) - currently PostgreSQL's serials are a problem, as they arent used by NB entity creation... means much handwork. - NB 5.5 dev has also still not the ability to autoamticall do more than 1 persistence Unit, if you need more (like me) you have to edit the persistence.xml by yourself - right click on project and Add Persistence will give you a very fast start - not elegant, but hey, you see how it works - same is with EJB3 code for obtaining JNDI :) - ok, this is not hard, but hey, most programmers are lazy... Regards, Korbinian *Von:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *Im Auftrag von *Ayodeji Aladejebi *Gesendet:* Mittwoch, 27. September 2006 13:01 *An:* wicket-user@lists.sourceforge.net *Betreff:* Re: [Wicket-user] Database Integration With Wicket Why should anybody be using eclipse for JPA rather than NB5.5. Oh my God you cant have an idea of how much fun you are missing. With NB5.5 i configured and setup Persistence within my wicket application in minutes and my persistence is working to fine. Not even with the annotation support in my entity beans. i enjoyed the look on my teams faces. Once again thank you Gustavo for hinting this. and like igor said, i just subclassed the WebRequestCycle to initialize my EntityManagers and boom everything works Please if you are doing persistence in your wicket applications, give NB5.5 a try, (i am not referring to guys that can handcode the entire thing in emacs oh) but its just too lovely infact am stuck to it like ants on sugar now :) Infact nobody can preach eclipse to me on this...yu see in my country, internet access is not yet so fast so i dont have all the bandwidth and project time to be looking for plugin left, right and center...whatever works out of the box is just fine On 9/25/06, *Gustavo Santucho* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Then if you use eclipse you look at Dali I strongly recommend Netbeans for JPA development. For a comparison, check out http://blogs.sun.com/klingo/entry/jpa_netbeans_5_5_vs http://blogs.sun.com/klingo/entry/jpa_netbeans_5_5_vs I use JPA and both Eclipse and Netbeans on a daily basis. - Gustavo. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji
Re: [Wicket-user] Database Integration With Wicket
Ok, I wasn't suggesting that db40 actually is 55 times faster than Hibernate (should have linked to a different page). When you have to connect to a legacy rdbms then using db4o is obviously not an option. Say you are a Java developer working on a new application, and you don't know much about databases, you just need persistence. It seems JPA is, partly, designed for this scenario. And in this case wouldn't using, something like, db40 be a better alternative? /Anders Korbinian Bachl wrote: dont believe a benchmark that you haven't faked yourself but serious: 99% of all time you have no choice. The DB isnt part of your app, you are forced to connect to a legacy one and personally I havent heard of DB4O beeing as mighty as a clustered oracle wich can get up to thousands of tables holding terabyte of data... Also, the fact they arent showing any details of the implementantion doenst make me believe this is to be looked at serious. Wich version of Hibernate? How did they Batch-Queries ? What caching provider and strategy? etc, etc, etc. I'm currently working on a data-transfer app - transferring from a very old legacy DB into a new one where nothing stays same and i use JPA 1.0 with ToplinkEssentials. By just changing some things the time needed to convert 1750 things went from 7:10 min to 3:50 min. Also the getting of these 1750 entities and 3 corresponding entities each (3 x 1750) and transforming them into a single string to print out just takes 830 ms (including the transaction around all that) on my dev laptopt from a plain MySQL 5.0 (plain means untweaked) DB. (the laptop is a 1,8 GHZ centrino, 1 GB RAM, running at that time NB5.5. Dev, Some instances of firefox, DB2 v 9.1, PostgreSQL 8.0, MySQL4.1, MySQL5.0 as well as 30 other things like outlook...) And i also dont believe that we can get rid of RDBMs in any companie as they have proved to be good at their work, so we will have to use ORM, no matter if we like it or not. JPA 1.0 however is a great step towards, unifieing (hows that written correct??) access and introducing solo-query batch updates and deletes as well as the possibilitie to switch the implementation from one framework (e.g.: hibernate) to another (e.g: kodo) by just changing 2 lines in persistence.xml... as well as afterward tweaking if you need so. Regards Korbinian -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anders Peterson Gesendet: Dienstag, 3. Oktober 2006 09:51 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Database Integration With Wicket JPA, Hibernate and other tools like that seem to (desperately) try to hide the fact that there is an rdbms underneath. Did anyone here try not having one... http://www.db4o.com/about/news/release/2006_09_28.aspx /Anders Korbinian Bachl wrote: Hi All, since im working now several days with NB and JPA1.0 i think i can give some hints.: First: DONT USE NB 5.5 BETA 1 or 2, use the DEV daily build instead ! - best the one from 29 09 2006 or 30 09 2006, as the Beta's have problems in creating entitys from DB in case of Many to Many relation and additional paramters within as well as some other flaws... if you use the dev daily build... you will just want to forget eclipse and dali ! - its so smooth, fast.. in fact, the time you need to download and install the 200 MB + eclipse and plugins, youre already running in NB (small 42 MB) and also have your first JPA already running.. however, NB 5.5 has 1 big flaw: the java editor... compared to eclipse its abaout 1 year behind, very sad IMHO. some things you also might want to remind when working with JPA: - currently prefer Toplink Essentials over Hibernate, as Hibernate is only RC and is very unstable - NB55: when entitys are created, the EJB QL will take the parameters from the Java environment, not the DB, as well as vars are written in lowercase even if they are uppercase in DB: e.g: @Entity public class Foo { private xxx Bar; -- even this is treated as lowercase !!! setBar( Bar) {} getBar () {} } - query might be: delete c from Foo c where c.bar = 'something' and also dont forget to use ..executeQuery() in case of bulk operations :) - currently PostgreSQL's serials are a problem, as they arent used by NB entity creation... means much handwork. - NB 5.5 dev has also still not the ability to autoamticall do more than 1 persistence Unit, if you need more (like me) you have to edit the persistence.xml by yourself - right click on project and Add Persistence will give you a very fast start - not elegant, but hey, you see how it works - same is with EJB3 code for obtaining JNDI :) - ok, this is not hard, but hey, most programmers are lazy... Regards, Korbinian
Re: [Wicket-user] Database Integration With Wicket
I looked at JPA this weekend - I'm positively surprised! At first I was confused about how everything fit together; JPA, GlassFish, Sun, Java, Oracle, TopLink... What you should know is: 1) GlassFish is the name for the open source development project for building a Java EE 5 application server. It is based on the source code for Sun Java System Application Server PE 9 donated by Sun Microsystems and TopLink persistence code donated by Oracle. 2) TopLink Essentials is the open-source community edition of Oracle's TopLink product. It provides the JPA functionality for the EJB 3.0 Reference Implementation. 3) There is no problem to use JPA (TopLink Essentials) without having to go Java EE 5 completely. In fact it seems to be a clean and compact API. Look here: https://maven-repository.dev.java.net/nonav/repository/javax.persistence/ persistence-api-1.0.jar contains the JPA specifications only. toplink-essentials-1.0.jar contains the JPA specifications and reference implementation. Then if you use eclipse you look at Dali: http://www.eclipse.org/dali/ Looks good to me! I feel these are the tools I'll be using in the future, but I'll miss PriDE. I really think there is much to like about a framework like that. http://pride.sourceforge.net/PriDE-Inside.html PriDE's main disadvantage is that it's not buzz word compliant. /Anders Gustavo Santucho wrote: any wicket example that uses EJB3 and Java Persistence 1.0 Nathan's Databinder will give you ideas and simplicity here ( if you ignore the Maven thing, of course ;-) ) Note that the Hibernate Session and the JPA EntityManager are almost indentical concepts. In fact, if you use Hibernate as the JPA implementation, they are the same thing. JPA makes accessing databases *really* simple. And you don't need EJB: I'm using JPA (TopLink) in a JSE project. - Gustavo. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - 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] Database Integration With Wicket
I use PriDE. It's extremely small and easy to learn - basically it generates SQL for you. http://pride.sourceforge.net/ I've designed a number of supporting classes and coding conventions that give me some more advanced features (still light weight). I've been meaning to look at what exists in terms of Wicket database/persistence code to see if what I've done could be integrated/merged with that. At the moment my code only depends on PriDE. What kind of integration are you talking about? Isn't it a good idea to keep database/persistence code and application/gui code independent? /Anders Eelco Hillenius wrote: If someone would provide a JDBC version of wicket-phonebook, that would be welcome! We talked about wanting this, but haven't found any time to do this ourselves yet. Eelco On 9/21/06, Igor Vaynberg [EMAIL PROTECTED] wrote: look at wicket-phonebook, it uses wicket and spring. there are dao implementations for hibernate and ibatis, but it would be trivial to write one for jdbc. spring takes care of all the connection/transaction management for you. if you dont want spring and want to write something for pure jdbc i would store a datasource in application, and subclass request cycle to open/close/rollback/commit the transaction assuming you want a single-transaction-per-request pattern. -Igor On 9/21/06, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: Okay I know of all the contrib projects, databinder, hibernate stuffs etc, I have used databinder and its lovely but I think for some reason, database in wicket needs to be sort of easier to put up to encourage faster adaptation. Come to think about it, presently most of the present solutions around database in Wicket wraps around Hibernate and a beginner who is not familair with hibernate may get stuck. Some developers still tend to love thier SQL thing compared to ORM and in some cases, you want to do direct SQL cuz hibernate3.jar is some size you may not need to include in your portable web application. And believe me, i believe more ppl learn SQL more than they learn ORM in Schools Yesterday, I was tryin to use Dababinder or wicket-contrib-dababase but at the same time i was using the wicket-auth framework and all these contibs enforce that you extend XXXApplication in your Application Class which means you cannot directly use Contrib projects e.g wicket-contrib-database and also Wicket-auth. There should be a more elegant way to use multiple contrib projects without this Inheritance lock jam. Now most web applications need authentication and also need database which is why i believe wicket shoud somehow integrate some DAO scheme into wicket where all we do is set connection properties and from Components, you can fly CRUD. Well i know there must be some good reasons to exclude this from wicket but what will be the most elegant way to do CRUD in wicket? where should I store my Connection? Session or Application Class. Should I create a parent WebPage with all the SQL stuffs and then make other CRUD pages extend it. a hundred ways to do this but which way is more elegant? Thanks Wicket dads -- It takes insanity to drive in sanity - Me Aladejebi Ayodeji A., DabarObjects Solutions Email: [EMAIL PROTECTED] Mobile: +234 803 589 1780 Web: www.dabarobjects.com Community: www.cowblock.net - 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Take Surveys. Earn Cash. Influence the Future of IT Join
Re: [Wicket-user] jfreechart and wicket
I'm using jfreechart with both Wicket and WebObjects - there isn't much you have to do. I created a class ChartResource that extends DynamicImageResource. In that class I have this: protected byte[] getImageData() { JFreeChart tmpChart = this.getFactory().getChart(); tmpChart.setBorderVisible(false); tmpChart.setBackgroundPaint(this.getChartBackgroundPaint()); tmpChart.getPlot().setOutlinePaint(this.getPlotOutlinePaint()); tmpChart.getPlot().setBackgroundPaint(this.getPlotBackgroundPaint()); ByteArrayOutputStream tmpStream = new ByteArrayOutputStream(); try { ChartUtilities.writeChartAsPNG(tmpStream, tmpChart, this.getWidth().intValue(), this.getHeight().intValue()); } catch (IOException anException) { // TODO Something!! } return tmpStream.toByteArray(); } Erik Brakkee wrote: Decebal Suiu wrote: Any example about how to display a chart generated with jfreechart in a WebPage? I am going to do the same for my application (trackdetective.com) for displaying height profiles of GPS tracks. Just browsed a little through the APIs. It seems you can use the Image class. The most general constructor is public Image(final String id, final Resource imageResource) In this way you can determine for yourself where it gets the input from. Perhaps BlobImageResource or its super class DynamicImageResource are good resource implementations for this. I found a link about this topic (http://www.nabble.com/JFreeChart-Experiment-tf1824840.html#a4977424) but the link containing the source code is broken. Thanks, Decebal - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java /* * Copyright © 2005 Optimatika (www.optimatika.se) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the Software), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package se.optimatika.wicket.markup.html; import java.awt.Paint; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.Locale; import org.jfree.chart.ChartUtilities; import org.jfree.chart.JFreeChart; import se.optimatika.jfree.chart.AbstractChartFactory; import se.optimatika.jfree.chart.ColourPalette; import wicket.markup.html.image.resource.DynamicImageResource; import wicket.protocol.http.WebResponse; public abstract class ChartResource extends DynamicImageResource { private static final String CONTENT_TYPE = image/png; private Paint myChartBackgroundPaint = ColourPalette.getInstance().getWhite(); // private transient byte[] myData; private Number myHeight = 240; private Paint myPlotBackgroundPaint = ColourPalette.getInstance().getWhite(); private Paint myPlotOutlinePaint = ColourPalette.getInstance().getWhite(); private Number myWidth = 320; public ChartResource() { super(); this.configure(); } public ChartResource(Locale newLocale) { super(newLocale); this.configure(); } public Paint getChartBackgroundPaint() { return myChartBackgroundPaint; } public String getContentType() { return CONTENT_TYPE; } public abstract AbstractChartFactory getFactory(); public Number getHeight() { return myHeight; } public Paint getPlotBackgroundPaint() { return myPlotBackgroundPaint; } public Paint getPlotOutlinePaint() { return myPlotOutlinePaint; } public Number getWidth() { return myWidth; } public void setChartBackgroundPaint(Paint newChartBackgroundPaint) { myChartBackgroundPaint =
Re: [Wicket-user] WebObjects open source?
Igor Vaynberg wrote: but this is for me where the problem is - if your components are delcared declaratively then you cannot have dynamic page structures. eg switching panels around, moving panels. this was one of the reasons i switched away from tapestry. Like this? http://developer.apple.com/documentation/WebObjects/Reference/DynamicElements/WOSwitchComponent/chapter_34_section_1.html - 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] WebObjects open source?
WO is free since about 1 year and may be about to become open source. Try it and learn what some really talented people designed more than 10 years ago. ...and if you want to ask questions about technical details - ask the people who know. WO has a very good on-line community. http://www.omnigroup.com/developer/mailinglists/ http://lists.apple.com/mailman/listinfo/ /Anders Frank Silbermann wrote: Igor has already mentioned one advantage of declaring and configuring components in code -- it is easy to make the presentation very dynamic. For example, when displaying products from a catalog, the page constructor can vary the display-components used depending upon the type of product chosen by the user. (You could have different types of panels for different types of products, any one of which is embedded into the same basic page object.) But I have another consideration in mind. The advocates of Extreme Programming argue that it is naïve to think one can always design first and then implement. They argue that it is more realistic to start coding a few use cases and refine the design along the way, as experience adds insight and as the user's requirements become clearer. To refine the design of existing code they recommend _refactoring_ (see Martin Fowler's book on that topic). Suppose I've built a page and later decide, in view of the DRY (Don't Repeat Yourself) principle that a portion of my page should be refactored into a custom component. With Wicket I can move some of the page's Java code into my new panel class, and move HTML snippets from the page's associated HTML to the panel's HTML file. This process seems not too far removed from Fowler's Extract Class refactoring. To me, the ability to easily refactor is one advantage of having the components added and configured in code. To do such a refactoring in Web Objects, I am guessing that one would have to work with the generated tag files (a mixture of HTML and component configuration tags), which I doubt is practical to do by hand. So unless the tool implements this kind of refactoring directly (which I doubt), you would create the re-usable component _from_scratch_ using the display-painting tool again, throwing away components that were painted earlier. I fear that this wasted effort may be a disincentive against presentation-layer refactoring -- with the result that final designs won't be as tight as they could have been. (On the other hand, if the Web Objects tool makes re-doing the work sufficiently easy, the waste of redoing work may be insignificant.) I can see that some applications might be easier to build with Web Objects, just as for building certain types of fat clients Visual Basic 6 is easier to use than Swing. But for more sophisticated presentation logic, the Wicket approach will facilitate the use of design patterns, refactoring, and other modern OO techniques. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Wednesday, August 30, 2006 3:15 PM To: wicket-user@lists.sourceforge.net - Java code is MUCH cleaner with WO, you keep in code only data pushed in the presentation layer and actions. No need to add components and configure them in java code. - Components are declared in HTML, configured in another file, binding (configuring) the component with the java class. This approach need tools, WO has some nice tools for this. - Both frameworks make creation of custom components easy (unlike JSF!!!) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - 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] WebObjects open source?
I'm waiting for the official WO 5.4 announcement from Apple. /Anders Alexandru Popescu wrote: According to http://www.infoq.com/news/WebObjects-Open-Sourced, the news seems real. ../alex -- ..w( the_mindstorm )p. PS: can you point out what in your opinion is superior to Wicket from WebObjects ? e.g. a small comparision? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anders Peterson Gesendet: Dienstag, 29. August 2006 10:41 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] WebObjects open source? I know WebObjects much better than I know Wicket... The only reason I looked at Wicket is because Apple made some very strange decisions regarding licensing and support for other platforms about a year ago. Should the open source rumors be true (I'm not sure they are) I'll most likely go back to (stay with) WebObjects. This is a good place to start: http://en.wikipedia.org/wiki/WebObjects WebObjects has a very good on-line community, and there is a collection of open source frameworks and development tools that support/extend it. One you should definitely know about is WOLips: http://objectstyle.org/confluence/display/WOL/Home /Anders Martijn Dashorst wrote: Apple will make (most of) WebObjects open source with the new release (http://www.thinksecret.com/news/0608webobjects.html). Has anyone worked with WebObjects and wishes to comment on it compared to Wicket? Martijn -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java -- --- 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=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - 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] WebObjects open source?
Frank Silbermann wrote: Just glancing at your link for a few seconds, and reading the earlier comment that it looks like ASP.NET with VS.NET, I would guess that Web Objects provides a library of components that you can paint onto your pages, automatically generating the custom tags in your HTML file. Yes, but you don't have to do it that way. Suppose you are customizing a component by setting many properties, and using it with those settings on fifty different webpages. In Wicket, I can create a method which instantiates a web display object, sets its properties and returns it. I can then call that method every time I want to instantiate a web object with those settings. You can, of course, do that with WO as well. What facility does Web Objects provide that lets you avoid having to re-set those properties fifty times? ... and however you choose to construct your web display object it is (naturally) also a component that can be used as a building block for other web display objects. (Isn't the inconvenience of adding slightly-customized variations of components to the toolset the reason most Swing GUI programmers end up building their GUI in code instead of using some IDE's graphical GUI-painter?) Most people just don't want to change their way of doing things (and some graphical GUI-painters are not very good). You seem to think there is only a fixed and limited set of components to work with - why assume something like that? /Anders -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Peterson Sent: Tuesday, August 29, 2006 12:51 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] WebObjects open source? Not sure what to say... it makes me productive... It's not really fair to compare Wicket and WebObjects (WO). WO is a whole package of frameworks and tools that function well together (but can be used independently). Wicket needs team mates to replace WO entirely. With Wicket any html and java editors will do just fine. This is generally a good thing (I think) but it's also a restriction. With WebObjects the tools are part of what makes the package great: Start up the WOBuilder tool, create a WODisplayGroup instance and start (visually) combining WOComponents and binding them to data. It's fast and intuitive... /Anders http://developer.apple.com/documentation/WebObjects/Conceptual/WO53_WOBu ilderGuide/ http://developer.apple.com/documentation/webobjects/Reference/API/com/we bobjects/appserver/WODisplayGroup.html http://developer.apple.com/documentation/Webobjects/Reference/API/com/we bobjects/appserver/WOComponent.html Eelco Hillenius wrote: :) It's one of my favorite parts of Wicket, so sure. What about the strong points of WebObjects, what are the things you really like about that? Eelco On 8/29/06, Anders Peterson [EMAIL PROTECTED] wrote: Sure, if it has to be just like Wicket to compete; you win. ;-) - 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] WebObjects open source?
There are other WO developers better suited to answer those question. I'm cross posting to webobjects-talk and hope someone will pick up the thread. /Anders Igor Vaynberg wrote: I guess i would be interested in knowing how web objects stores state and how the back button is handled. is the state stored like tapestry - disjointed from the components? do components have to be beans? does it store undo history to handle the back button somewhere when the state is stored serverside in session and not in urls? what drew me to wicket and away from tapestry were the following things: in wicket i could have very dynamic component hierarchies. i can take any panel and switch it with any other panel, move components around, etc. in tapestry the hierarchy is pretty much fixed from the creation of the page because of how it defines, pools, and handles state. in wicket i can use good citizen pattern with constructors and have private/protected final variables because wicket is unmanaged and so components dont have to be beans. in tapestry components have to be beans so none of these are possible. also to have your state persisted you have to have your getters/setters abstract and declared (at least as of a late 3.x). wicket keeps undo history so it can restore the proper state when the back button is used. when you use tapestry you are pretty much on your own when you use session scope. i tried to look for this stuff in wo docs but couldnt really find anything useful. -Igor - 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] WebObjects open source?
I know WebObjects much better than I know Wicket... The only reason I looked at Wicket is because Apple made some very strange decisions regarding licensing and support for other platforms about a year ago. Should the open source rumors be true (I'm not sure they are) I'll most likely go back to (stay with) WebObjects. This is a good place to start: http://en.wikipedia.org/wiki/WebObjects WebObjects has a very good on-line community, and there is a collection of open source frameworks and development tools that support/extend it. One you should definitely know about is WOLips: http://objectstyle.org/confluence/display/WOL/Home /Anders Martijn Dashorst wrote: Apple will make (most of) WebObjects open source with the new release (http://www.thinksecret.com/news/0608webobjects.html). Has anyone worked with WebObjects and wishes to comment on it compared to Wicket? Martijn -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - 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] WebObjects open source?
Sure, if it has to be just like Wicket to compete; you win. ;-) /Anders Eelco Hillenius wrote: I looked into some demos briefly yesterday, but it looks to me that it's quite different from Wicket. It looks nice when it comes to tool integration etc, but I immediately missed the 'just Java programming'/ OO part of Wicket. Eelco On 8/29/06, Anders Peterson [EMAIL PROTECTED] wrote: Korbinian Bachl wrote: Hi Anders, i heard much about WebObjects, and have a qustion: is it true, that you need apple (OS) in order to run it ? - where here with Windows/ Linux environments Not at all. I use version 5.2.4. It has official support for development tools on Mac and Windows and deployment on Mac, Windows and Solaris. You can run it on any j2se (1.4) platform. Many use Linux. About a year ago Apple released 5.3: 1) Development environment mas made part of Apple's Xcode, and distributed for free. 2) Deployment license is bundled with Mac OS X Server. 3) Officially Apple only supports their own hardware and OS. There are very good open source tools (better than Apple's) that support development on any platform, and you can deploy on any platform, but you have to buy Mac OS X Server to get a deployment license. Recently at WWDC Apple made some new announcement. I don't know exactly what it was. All I know is this: http://lists.apple.com/archives/webobjects-dev/2006/Aug/msg01144.html /Anders Regards, Korbinian PS: can you point out what in your opinion is superior to Wicket from WebObjects ? e.g. a small comparision? -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Anders Peterson Gesendet: Dienstag, 29. August 2006 10:41 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] WebObjects open source? I know WebObjects much better than I know Wicket... The only reason I looked at Wicket is because Apple made some very strange decisions regarding licensing and support for other platforms about a year ago. Should the open source rumors be true (I'm not sure they are) I'll most likely go back to (stay with) WebObjects. This is a good place to start: http://en.wikipedia.org/wiki/WebObjects WebObjects has a very good on-line community, and there is a collection of open source frameworks and development tools that support/extend it. One you should definitely know about is WOLips: http://objectstyle.org/confluence/display/WOL/Home /Anders Martijn Dashorst wrote: Apple will make (most of) WebObjects open source with the new release (http://www.thinksecret.com/news/0608webobjects.html). Has anyone worked with WebObjects and wishes to comment on it compared to Wicket? Martijn - 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] WebObjects open source?
Not sure what to say... it makes me productive... It's not really fair to compare Wicket and WebObjects (WO). WO is a whole package of frameworks and tools that function well together (but can be used independently). Wicket needs team mates to replace WO entirely. With Wicket any html and java editors will do just fine. This is generally a good thing (I think) but it's also a restriction. With WebObjects the tools are part of what makes the package great: Start up the WOBuilder tool, create a WODisplayGroup instance and start (visually) combining WOComponents and binding them to data. It's fast and intuitive... /Anders http://developer.apple.com/documentation/WebObjects/Conceptual/WO53_WOBuilderGuide/ http://developer.apple.com/documentation/webobjects/Reference/API/com/webobjects/appserver/WODisplayGroup.html http://developer.apple.com/documentation/Webobjects/Reference/API/com/webobjects/appserver/WOComponent.html Eelco Hillenius wrote: :) It's one of my favorite parts of Wicket, so sure. What about the strong points of WebObjects, what are the things you really like about that? Eelco On 8/29/06, Anders Peterson [EMAIL PROTECTED] wrote: Sure, if it has to be just like Wicket to compete; you win. ;-) - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 2.0
Can you make daily/weekly builds available? /Anders Jerry Smith wrote: Looks like there are some very nice changes coming to Wicket in 2.0! Is there a timeline on when there might be binary drops to play with and a possible target release date? -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Monday, June 12, 2006 3:03 AM To: Wicket User List Subject: [Wicket-user] Wicket 2.0 Hi all, I think I sent out a similar message like this before, but I couldn't find it, so just to be sure... We've been working for about a month on Wicket 2.0 now. The meat of the changes are in, and for the not-so-faint-hearted: please check out trunk (Wicket 1.2 is maintained in the WICKET_1_2 branch) and play with it. I am doing my best (soon to be we are doing our best) to keep track on changes at our wiki: http://wicket-wiki.org.uk/wiki/index.php/Migrate-2.0 If you play with 2.0 and have any questions on how to achieve things/ possible bugs/ etc, please let us know on the list so that we can help you and/ or we can expand the migration document with some more useful tips. Hope you have fun with it! Eelco ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Indeces based access with PropertyModel
Hi all, With Wicket 1.1 (ognl) I could do this: Loop tmpLoop = new Loop(instruments, Instrument.ALL.size()) { protected void populateItem(LoopItem anItem) { int tmpIter = anItem.getIteration(); anItem.add(new Label(name, Instrument.ALL.get(tmpIter).getName())); anItem.add(new Label(market, new PropertyModel(tmpMod, marketWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(raw, new PropertyModel(tmpMod, modifiedWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(normalised, new PropertyModel(tmpMod, normalisedWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(optimised, new PropertyModel(tmpMod, optimisedWeights.toBigDecimal( + tmpIter + ,0; } }; Wicket 1.2 can't handle this: ...toBigDecimal( + tmpIter + ,0) as a property. Currently thinking about alternative solution. With my limited experience with Wicket I can only come up with rather messy solutions. Any suggestions? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Where is the OGNL replacement code in wicket 1.2?
I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
A different web application framework that I've worked with has ognl available everywhere. It's extremely convenient and powerful! http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html Seems to me it wouldn't be difficult to add... /Anders Anders Peterson wrote: I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
Well... public void performActionNamed(String anExpression) { PropertyResolver.getValue(anExpression, this); } I'm sure it needs to return anything, but maybe it could be passed some sort of context object (if available). /Anders Johan Compagner wrote: Yes it is the wicket.util.lang.PropertyResolver class What would that perform do? How does it look like? PropertyResolver has limited support for executing methods. something like: Object value = PropertyResolver.getValue (getAddressArray(), person); is supported. johan On 5/8/06, *Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
Anders Peterson wrote: I'm sure it needs to return anything, but maybe it could be passed some sort of context object (if available). Should be: I'm NOT sure it needs to return anything, but maybe it could be passed some sort of context object (if available). --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
What I'm asking for is not to be able to use ognl (or similar) on top of wicket, but to have something equivalent inside it. An interface PropertyCoding (NSKeyValueCoding) that is then implemented by *all* wicket classes. /Anders Eelco Hillenius wrote: You can still use OGNL, just not by default for the PropertyModels etc. We removed OGNL as it had seriously bad performance - it showed up as the last hotspot we had when profiling Wicket -, and it doesn't seem to be maintained actively anymore (in fact, I had to wait for a bug fix for almost a year some time ago). Eelco On 5/8/06, Anders Peterson [EMAIL PROTECTED] wrote: A different web application framework that I've worked with has ognl available everywhere. It's extremely convenient and powerful! http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html Seems to me it wouldn't be difficult to add... /Anders Anders Peterson wrote: I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=kkid0709bid3057dat1642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
I assume you mean PropertyResolver.getValue(String expression, Object object); That's not the kind of context I meant. I was thinking there could be an additional context parameter - maybe RequestCycle. Don't know if that is possible or necessary. It was just an idea. I would specifically like to have the performAction method in Page, but why not put it in Component. /Anders Johan Compagner wrote: You also have this now. Just call PropertyResolver.getValue(contextObject, propertyString) where should that performAction method be located? On 5/8/06, * Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: A different web application framework that I've worked with has ognl available everywhere. It's extremely convenient and powerful! http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html Seems to me it wouldn't be difficult to add... /Anders Anders Peterson wrote: I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Where is the OGNL replacement code in wicket 1.2?
Johan Compagner wrote: then we get partial scripting inside java/page. Didn't know that was a bad thing... Why would we have that. What would you call with performAction? We can already do this: PropertyResolver.getValue(expression, this.getPage()); I'd like to just be able to type: this.getValue(expression); or this.getPage().getValue(expression); ...or, something like that. Did you look at the NSKeyValueCoding docs? /Anders On 5/8/06, *Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I assume you mean PropertyResolver.getValue(String expression, Object object); That's not the kind of context I meant. I was thinking there could be an additional context parameter - maybe RequestCycle. Don't know if that is possible or necessary. It was just an idea. I would specifically like to have the performAction method in Page, but why not put it in Component. /Anders Johan Compagner wrote: You also have this now. Just call PropertyResolver.getValue(contextObject, propertyString) where should that performAction method be located? On 5/8/06, * Anders Peterson* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: A different web application framework that I've worked with has ognl available everywhere. It's extremely convenient and powerful! http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html Seems to me it wouldn't be difficult to add... /Anders Anders Peterson wrote: I'm looking for the equivalent of Ognl.setValue(...) and guessing I should use wicket.util.lang.PropertyResolver.setvalue(...); The wicket.util.object package (referred to in the wiki migrate instructions) does not exist. Would it be possible to add a method performActionNamed(String expression) to wicket.Component? That's what I'm aiming for... /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: More on refreshing page contents
I'm using a Loop now (on a different page). Then I get a WicketRuntimeException: The component(s) below failed to render: 1. [Component id = name, page = se.optimatika.blapp.gui.PgEvaluate, path = 3:instruments:0:name.Label, isVisible = true, isVersioned = true] .. I can't see what's wrong. The component tree (on the error page) looks ok. The toString method on ALL model objects seems to have worked. What is usually the cause of not being able to render a component? /Anders Eelco Hillenius wrote: Anything would have worked as long as the list that you return is fresh by either using a detachable model, or one of the models that re-evaluate on every call, like PropertyModels or e.g. a model like: IModel listViewModel = new Model() { Object getObject(Component c) { return tmpInstrument.getCorrelations(); } } There is no specific advantage of Loops over ListViews in this case. Loops are simply designed to be a simpler but more limited version. of ListView. Eelco --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: More on refreshing page contents
this is the page. Can't I add to the LoopItem? Loop tmpLoop = new Loop(instruments, Instrument.ALL.size()) { protected void populateItem(LoopItem anItem) { int tmpIter = anItem.getIteration(); anItem.add(new Label(name, Instrument.ALL.get(tmpIter).getName())); anItem.add(new Label(market, new PropertyModel(tmpMod, marketWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(raw, new PropertyModel(tmpMod, modifiedWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(normalised, new PropertyModel(tmpMod, normalisedWeights.toBigDecimal( + tmpIter + ,0; anItem.add(new Label(optimised, new PropertyModel(tmpMod, optimisedWeights.toBigDecimal( + tmpIter + ,0; } }; this.add(tmpLoop); Igor Vaynberg wrote: this usually means you added a component to the component tree, but it was never referenced in the markup so it was not rendered - nor will it ever be.. If you show us more code we might be able to help you more. -Igor On 4/6/06, Anders Peterson [EMAIL PROTECTED] wrote: I'm using a Loop now (on a different page). Then I get a WicketRuntimeException: The component(s) below failed to render: 1. [Component id = name, page = se.optimatika.blapp.gui.PgEvaluate, path = 3:instruments:0:name.Label, isVisible = true, isVersioned = true] .. I can't see what's wrong. The component tree (on the error page) looks ok. The toString method on ALL model objects seems to have worked. What is usually the cause of not being able to render a component? /Anders Eelco Hillenius wrote: Anything would have worked as long as the list that you return is fresh by either using a detachable model, or one of the models that re-evaluate on every call, like PropertyModels or e.g. a model like: IModel listViewModel = new Model() { Object getObject(Component c) { return tmpInstrument.getCorrelations(); } } There is no specific advantage of Loops over ListViews in this case. Loops are simply designed to be a simpler but more limited version. of ListView. Eelco --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] More on refreshing page contents
Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a ListView creating more columns to the right. That final ListView is implemented with the code you can see below. How was I supposed to have done this to have updating/refreshing happen as automagically as possible? (I'm using Wicket 1.1.1) /Anders ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) { BigDecimal tmpCoefficient; public void populateItem(final ListItem anItem) { tmpCoefficient = (BigDecimal) anItem.getModelObject(); anItem.add(new Label(ID_COEFFICIENT, tmpCoefficient.toString())); } --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: More on refreshing page contents
Igor Vaynberg wrote: On 4/4/06, Anders Peterson [EMAIL PROTECTED] wrote: That worked! I also had to move the declaration of tmpInstrument to inside the populateItem method (otherwise all rows were the same). not really sure what you mean here I have two ListViews - one for the rows and one for the columns. The tmpInstrument variable was declared as a member of the first ListView. I only assigned new values to it in the populateItem method. That resulted in all rows being equal. If I moved the declaration to inside the populateItem method everything works as it should. (All code we've discussed has been inside the populateItem method of the first ListView). Object load() { return tmpInstrument.getCorrelations(); } I created several rows each with its own LoadableDetachableModel, but all of them referenced the same tmpInstrument. /Anders Thanks! (I feel this was a bit more complicated than it should be.) Could this have been done with a CompoundPropertyModel and Loop:s instead of ListView:s - using ognl like instrument[i].correlation[j] ? the problem is that if you give listview a list it will store that list in session. what you need is a way to tell it to pull the list every time it renders, thats what detachable models are for. -Igor --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: More on refreshing page contents
That worked! I also had to move the declaration of tmpInstrument to inside the populateItem method (otherwise all rows were the same). Thanks! (I feel this was a bit more complicated than it should be.) Could this have been done with a CompoundPropertyModel and Loop:s instead of ListView:s - using ognl like instrument[i].correlation[j] ? /Anders Igor Vaynberg wrote: actually, the string in the label is fine because the listview rebuilds its items on every request so new labels will be created. the problem is here: ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) this is making listview use the same list w/out updating it on every request, this should be a detachable model so that a fresh list is used on every request: IModel listViewModel=new LoadableDetachableModel() { Object load() { return tmpInstrument.getCorrelations(); }} ListView tmpCorrList = new ListView(ID_CORRELATIONS, listViewModel) { ... }; hope this helps, -Igor On 4/4/06, Maurice Marrink [EMAIL PROTECTED] wrote: Hi, I am also wrestling with the matrix beast and am still exploring my options. However i might be able to help you out. In your code the label is given a string as diplay value. This string is not updated when the item model is. So you should give the label the model of the item. If you want some fancy numberformatting to take place you can always overwrite the getConverter() method of your label to convert the bigdecimal to a string there. Hope this helps. Maurice On 4/4/06, Anders Peterson wrote: Hi All, With one page I'm displaying a matrix of numbers and I have a problem updating/refreshing it. I roughly understand why it doesn't work, but I don't know what the best/correct way to make it work is. Basically I have a ListView of rows and the last column in each row is in turn a ListView creating more columns to the right. That final ListView is implemented with the code you can see below. How was I supposed to have done this to have updating/refreshing happen as automagically as possible? (I'm using Wicket 1.1.1) /Anders ListView tmpCorrList = new ListView(ID_CORRELATIONS, tmpInstrument.getCorrelations()) { BigDecimal tmpCoefficient; public void populateItem(final ListItem anItem) { tmpCoefficient = (BigDecimal) anItem.getModelObject(); anItem.add(new Label(ID_COEFFICIENT, tmpCoefficient.toString())); } --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Refreshing page contents
Hi, I have a problem refreshing page contents. This did work as intended before I updated the database model. The page's code has not been changed other than in one case I had to change what objects I loop through. The page functions exactly as before except for one thing: When submitting the form the read/display only components (Labels inside the Form) are not updated. I've tried calling modelChanged() and setVisible(boolean) but it doesn't change anything (and I did not have to do this before). The get methods that produce the values are never accessed after the page is first built. The application menu is a collection of BookmarkablePageLink:s. Even when I return to this page after visiting other pages those get methods are not called. I suspect this is the key to the solution - but I don't get it! Can you help? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Refreshing page contents
Thanks for trying to help, I haven't solved the problem yet, but I think I know what it is - and it has nothing to do with Wicket. Since I did change the database model I introduced cover methods similar to this: getMarketWeight() { return ModelUtils.getMarketWeight(this.getUser(), this); } ... so that I wouldn't have to alter my Wicket pages. Unfortunately I ended up with different instances of business objects (representing the same database row) in different parts of the same page, and... The exact details are too complicated too explain here, and they have nothing to do with Wicket. /Anders Juergen Donnerstag wrote: Sounds like your browser is using its local cache. Try meta http-equiv=Expires content=-1 / meta http-equiv=Pragma content=no-cache / meta http-equiv=Cache-Control content=no-cache / Juergen On 3/30/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi, I have a problem refreshing page contents. This did work as intended before I updated the database model. The page's code has not been changed other than in one case I had to change what objects I loop through. The page functions exactly as before except for one thing: When submitting the form the read/display only components (Labels inside the Form) are not updated. I've tried calling modelChanged() and setVisible(boolean) but it doesn't change anything (and I did not have to do this before). The get methods that produce the values are never accessed after the page is first built. The application menu is a collection of BookmarkablePageLink:s. Even when I return to this page after visiting other pages those get methods are not called. I suspect this is the key to the solution - but I don't get it! Can you help? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Refreshing dynamic images
1) setCacheable: Done! With dynamic images it seems like a good idea to have this set to false by default. 2) random number as a query parameter: I had thought about giving the images different names with each request, but I didn't know (still don't) how to do that. The generated html looks like this: trtd scope=colimg width=600 height=300 wicket:id=image2 src=/BLApp/app?path=3:image2amp;interface=IResourceListener//td/tr I'll look for documentation on how to do this... 3) Set the headers on the response: You mean some header that tells the browser(s) not to cache the page - is there a standard for that? I have no idea which browsers will be used, and I want the app to work with any browser. Thanks, /Anders Anders Peterson wrote: Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Refreshing dynamic images
On a BookmarkablePageLink I can call setParameter(...) which has this effect. How do I, with each request/response cycle, add or change a page parameter - I can't figure this out? /Anders Igor Vaynberg wrote: the trick is to append a random number as a query parameter. that way the browser has to fetch it again because it thinks its a different document. -Igor On 2/28/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Set the headers on the response. The browser support is a bit flaky as I understand it, from the numerous caching problems with pages across browsers (safari, IE and FF work differently). Martijn On 2/28/06, Anders Peterson [EMAIL PROTECTED] wrote: Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Living a wicket life... Martijn Dashorst - http://www.jroller.com/page/dashorst Wicket 1.1.1 is out: http://wicket.sourceforge.net/wicket-1.1 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Refreshing dynamic images
I was just about to suggest that some of Gwyn Evans' headers were set by wicket. I found the setHeaders(...) method in WebResource that sets a couple of headers when/if it is not cacheable. Which headers are set if it is cacheable, and where is that done? (I don't find my way around the wicket framework.) /Anders Johan Compagner wrote: if you set cacheable to false then it should work for you out of the box because then no caching is set and the lastmodified time is set to -1 The most browsers shouldn't cache it at all. The problem you had is that when it is enabled then we are setting some default caching headers and we set the last modified time. for our DynamicByteArrayResource i have made it non cacheable by default now. I guess this is a better default. johan On 3/1/06, Anders Peterson [EMAIL PROTECTED] wrote: 1) setCacheable: Done! With dynamic images it seems like a good idea to have this set to false by default. 2) random number as a query parameter: I had thought about giving the images different names with each request, but I didn't know (still don't) how to do that. The generated html looks like this: trtd scope=colimg width=600 height=300 wicket:id=image2 src=/BLApp/app?path=3:image2amp;interface=IResourceListener//td/tr I'll look for documentation on how to do this... 3) Set the headers on the response: You mean some header that tells the browser(s) not to cache the page - is there a standard for that? I have no idea which browsers will be used, and I want the app to work with any browser. Thanks, /Anders Anders Peterson wrote: Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Refreshing dynamic images
Hi, On one page I'm displaying dynamic charts (JFreeChart) as images. The charts, the data they're based on, are constantly changed by the users. The problem (as I understand it): The web browser doesn't know that the image has changed and therefore (sometimes) uses a cached image. Which means incorrect data is displayed. How can I make sure the browser always asks for a fresh image? /Anders Image tmpImage2 = new Image(image2, new SpclChartResource() { public AbstractChartFactory getFactory() { this.setHeight(300); this.setWidth(600); DefaultCategoryDatasetFactory retVal = new DefaultCategoryDatasetFactory(); retVal.setLegend(true); retVal.setType(AbstractChartFactory.TYPE_BarChart); ... -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: VOTE
Eelco Hillenius wrote: 1. Give me the constructor change and the Java 5 functionality in one pass (Wicket 2.0) Note sure what the constructor change is. I vote for getting Java5 functionality as soon as possible. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Updating a model using DropDownChoice
This bug is easy to work around, but it affects how you code at a very low/basic level. When is the next maintenace release scheduled? /Anders Johan Compagner wrote: ok i think i have fixed it. Must check it out but now you can do setModelObject on youre root component: if (!getComparator().compareValue(this, object)) { modelChanging(); if (getFlag(FLAG_HAS_ROOT_MODEL)) { getRootModel(model).setObject(null, object); } else { model.setObject(this, object); } modelChanged(); } return this; johan On 11/23/05, Johan Compagner [EMAIL PROTECTED] wrote: That is a bug. for example Component.getModelObject() does this: // If this component has the root model for a compound model if (getFlag(FLAG_HAS_ROOT_MODEL)) { // we need to return the root model and not a property of the // model Object result = getRootModel(model); if ((result instanceof IModel)) { result = ((IModel)result).getObject(null); } return result; } // Get model value for this component return model.getObject(this); and setModelObject() modelChanging(); model.setObject(this, object); modelChanged(); Thats wrong. It should be the same kind of check for that setObject() And call it will null if it is the root model of itself instead of giving this with the call. johan On 11/22/05, Christian Essl [EMAIL PROTECTED] wrote: On Tue, 22 Nov 2005 16:10:23 +0100, Anders Peterson [EMAIL PROTECTED] wrote: Hi, There are a couple of things I don't understand. 1) I have a form using a CompoundPropertyModel with a HashMap as the initial model object. When I later (after having made a choice in a DropDownChoice) call this.getForm().setModelObject(aNewModelObject); nothing in the gui is updated. Typically I have components declared like tmpForm.add(new TextField(ID_SPAN)); that I'd like to have updated. Component.setModelObject (Object obj) does call IModel.setObject (this,obj). The CompountPropertyModel than takes the id of the component and interprets it as a bean expression into the underlying Object (or in case the the CoumpoundPropertyModel wraps another model the Object from the wrapped model). So in your case: ==form.setModelObject(aNew)==CompoundPropModel.setObject(form,aNew)== map.put(form.getId(),aNew); There are a few solutions (and others): 1.) keep the underlying map in an instance variable und access it (in case you do not use detachable things). 2.) use form.getModel().setObject(null,new Map()) -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Formatting numbers in Labels
Using BigDecimal instead of Double solved my current problem. Later I'll have to make something like a PercentageConverter. Actually that could be a generic conveter that multiplies/divides by a factor and applies a unit. Thanks... /Anders Christian Essl wrote: If you use BigDecimals this should work out of the box. To provide your own format you can override getConverter() on the Label or for the whole application Application.getConverterFactory(). For details see the wicket page on custom converters: http://www.wicket-wiki.org.uk/wiki/index.php/Using_custom_converters Christian On Sun, 20 Nov 2005 13:20:02 +0100, Anders Peterson [EMAIL PROTECTED] wrote: With code like this anItem.add(new Label(return, new PropertyModel(tmpInstrument, diffusionProcess.localDrift))); I'm trying to display small numbers. 1.1465448173051241E-12 1.2381223801081599E-6 In the generated page this just appears as 0 or -0. I want it to be 0.012381223801081599 How can I create Labels that know how to format these small numbers? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Updating a model using DropDownChoice
Hi, There are a couple of things I don't understand. 1) I have a form using a CompoundPropertyModel with a HashMap as the initial model object. When I later (after having made a choice in a DropDownChoice) call this.getForm().setModelObject(aNewModelObject); nothing in the gui is updated. Typically I have components declared like tmpForm.add(new TextField(ID_SPAN)); that I'd like to have updated. 2) In the same page I (sometimes) get an exception like the one below. What requires the DiffusionProcess class to be serializable? DiffusionProcess is used to do some calculations, and instances are cached in objects used as model objects. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java Caused by: java.io.NotSerializableException: org.ojalgo.random.process.DiffusionProcess at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.ArrayList.writeObject(ArrayList.java:531) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:980) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at wicket.util.lang.Objects.clone(Objects.java:83) ... 33 more --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Updating a model using DropDownChoice
The serializeable/transient explained the exceptions. That was easy to fix. I have read the wiki entry on models (several times) but there is obviously something I don't get. I don't think that the difference between this.getForm().get(ID_SPAN).setModelObject(mySelectedView); and this.getForm().get(ID_SPAN).setModel(new PropertyModel(mySelectedView, ID_SPAN)); is well explaind. Thanks for your time - Johan and Christian - it's working now. /Anders Johan Compagner wrote: everything that is inside a Model as its model object That is not detached (so not converted to a serializeable id or something like that) must be serializeable of its own. so youre DiffusionProcess must implement Serializeable Or must be transient (then you must be able to recreate it from null) Or must be converted to an id or something so that you can recreate it with that information. johan On 11/22/05, Anders Peterson [EMAIL PROTECTED] wrote: Hi, There are a couple of things I don't understand. 1) I have a form using a CompoundPropertyModel with a HashMap as the initial model object. When I later (after having made a choice in a DropDownChoice) call this.getForm().setModelObject(aNewModelObject); nothing in the gui is updated. Typically I have components declared like tmpForm.add(new TextField(ID_SPAN)); that I'd like to have updated. 2) In the same page I (sometimes) get an exception like the one below. What requires the DiffusionProcess class to be serializable? DiffusionProcess is used to do some calculations, and instances are cached in objects used as model objects. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java Caused by: java.io.NotSerializableException: org.ojalgo.random.process.DiffusionProcess at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.ArrayList.writeObject(ArrayList.java:531) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at java.util.HashMap.writeObject(HashMap.java:980) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java :39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1296) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java :1332) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java :1304) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java :1247) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278) at wicket.util.lang.Objects.clone(Objects.java:83) ... 33 more --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click
[Wicket-user] Formatting numbers in Labels
With code like this anItem.add(new Label(return, new PropertyModel(tmpInstrument, diffusionProcess.localDrift))); I'm trying to display small numbers. 1.1465448173051241E-12 1.2381223801081599E-6 In the generated page this just appears as 0 or -0. I want it to be 0.012381223801081599 How can I create Labels that know how to format these small numbers? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Image is not displayed
I'm trying to do precisely this, and I can't get it to work. I've tried all possible ways to do this - except one. ;-) Using wicket 1.1rc2 I use Dreamweaver to do the html work, and eclipse for the Java part. The Dreamweaver site root is set to be the same as the java source folder root. In the /se/optimatika/blapp/gui/PgCompare.html page there is a tag img src=../../../../images/tmp_pie_1.gif width=300 height=300 / All iamges are in /images/* When I run the app I don't see the images. I've tried using both absolute and relative paths, and I've tried having the images in a lot of different places. When you follow a static relative path from a run-time wicket page; where do you end up? /Anders Phil Kulak 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=images/delete.gif 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=images/delete.gif 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 in my browser I see: img width=12 height= 12 type=image wicket:id=deleteImage valign=middle border=0 src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Image is not displayed
Johan Compagner wrote: is that img tag without any wicket:id? so there is no wicket component attached to it? Correct. There is no wicket:id. The source code looks like this: tr td scope=colimg src=../../../../images/tmp_pie_1.gif width=300 height=300 //td td scope=colimg src=../../../../images/tmp_pie_2.gif width=300 height=300 //td /tr The html sent to the browser is exactly the same. The url is exactly what it is there at runtime? That is ofcourse not right. At runtime it should be: /images/tmp_pie_1.gif Are you saying that the designer needs to have a duplicate images folder in every java package? I looked at the wicket-examples, that's how it seems to be done there. /Anders johan On 10/19/05, Anders Peterson [EMAIL PROTECTED] wrote: I'm trying to do precisely this, and I can't get it to work. I've tried all possible ways to do this - except one. ;-) Using wicket 1.1rc2 I use Dreamweaver to do the html work, and eclipse for the Java part. The Dreamweaver site root is set to be the same as the java source folder root. In the /se/optimatika/blapp/gui/PgCompare.html page there is a tag img src=../../../../images/tmp_pie_1.gif width=300 height=300 / All iamges are in /images/* When I run the app I don't see the images. I've tried using both absolute and relative paths, and I've tried having the images in a lot of different places. When you follow a static relative path from a run-time wicket page; where do you end up? /Anders Phil Kulak 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=images/delete.gif 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=images/delete.gif 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 in my browser I see: img width=12 height= 12 type=image wicket:id=deleteImage valign=middle border=0 src=/portal/app/resources/org.foo.presentation.PSBreadCrumbsPanel/images/delete_en_US.gif 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Which application in SessionFactory?
Doesn't the newSession method in the ISessionFactory interface need to take an (the) application as an argument? As it is now you can ONLY create ISessionFactory instances as an anonymous class. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: KeyValueCoding and ProperyModel
Martijn Dashorst wrote: Anders, Don't get me wrong, I don't mean to be harsh, but I think you don't 'grok' the Wicket way, given your comments below. I try to give the 'wicket mindset', and it is only my opinion, perhaps other community members feel differently. And I'm handicapted: I'm dutch ;-) I really want to like Wicket - honestly - but I'm struggling. Also; I fully realize that some (most) of my problems are because I'm a beginner - not necessarily because there is something wrong with Wicket. Anders Peterson wrote: I don't know too much about the internals of Wicket, but I have opinions on how things should work. ;-) 1) Fail gracefully: I had problems with a Panel/Form today. I got a (Runtime) Exception as soon as it was rendered (which I couldn't prevent). I actually wanted to show an empty form - it would illustrate to the user that soon he/she would be able to modify some data. Sure, I could get this working almost the way I wanted, but not without some coding. That brings me to my second point. Failing gracefully is against the principles of framework building: if something isn't right, then you have to let the framework user know that it is so. Wicket can't decide (randomly) that something is good or isn't. How could Wicket handle a textfield attached to a span tag? We should detect that and not let the application go gracefully into oblivion. Well... sometimes you have to, and definitely should, fail. Having components (a form) bound to a model that is not yet initialized is not one of those cases. Empty form: supply an emty business object. Not to hard IMO? If it is null, what should Wicket do? How can we even begin to validate the request? How should we allocate memory? If you submit a form with an uninitialized model THEN you should fail. 2) Supply default implementations that work: Wicket developers need to do far too much subclassing. We shouldn't have to subclass Form, Button... simply to get something working! Because when you build an application you need to provide wicket with what you want it to do? How else should we know what to perform in an submit? Have forms/buttons call a method like performActionNamed(...) in the form's parent. Actually; why do we have to explicitly instantiate anything? Why not do this in the html file: form wicket:id=form01 wicket:typeForm wicket:action=doSomething ... I agree (change my mind about). Having as much as possible done in the Java code is a good thing. With Wicket I feel I'm building the GUI twice - I have to create a hierarchy of componenets that exactly matches the (structure of the) corresponding html file. Wicket can't know what you want, Wicket is not psychic. Creating the hierarchy of components and attaching them to the markup is the least of my worries when building a Wicket application. Creating the business logic usually is. As a beginner I find it time consuming to assure that the component hierarchy matches the html structure. I don't see why the WepPage can't have a flat view of the html page. Components are bound by name anyway. The markup can be created by someone else. At least in our company, someone makes the markup, and we (the developers) attach components to it in the Java. The designer doesn't need to know Java, JSP or any scripting language (perhaps JavaScript) to be useful in our applications. It is a clear separation of concerns which makes Wicket stand out in the framework arena. That sounds like an argument for not having to match java-hierarchy with html-structure! And even if you feel you have to build the GUI twice, this is still far less than with JSF or Tapestry ;-) (I hear a boxing bell *DING*). I just feel that you want a framework where you say: new MyBusinessApplication().do(); and have a complete application working with 1 line of code. That is not going to happen with any framework any time soon, even though we have great plans with Wicket. :-D I have 5 years experience building complex web based applications using WebObjects. http://www.apple.com/webobjects/ Have a look at it - it's free - you may learn something. ;-) Why am I using Wicket: I'm unhappy with how Apple manages/markets/licenses WebObjects, and after 5 years I thought I'd try something new. /Anders --- 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] Re: visible == redered
Isn't that strict checking something that should be done when compiling (someone has the time to code a wicket builder for eclipse) and not at runtime? At runtime I'd like the ability to disable components that are not in a working state because they are currently not used/displayed. As Gili said: Wicket is wasting resources rendering stuff that will not be displayed. /Anders Juergen Donnerstag wrote: we could do, it seems not to be a large change, but ... Currently users (designers and developers) can be sure that wicket throws an exception if there not a 1:1 mapping between all wicket tag (wicket:id and wicket:) defined and components added. No suprises at runtime at all. This check can be disabled by appSettings.setXX, but than it is the users choice. If we decide to change it, there no such guarantee anymore, as it depends on the components visibility as well. E.g. provided your test users or automated tests don't cover a specific use case where a component's visibility is enabled, than all by a sudden, end user will get an exception. I personally like the strictness as it avoid errors, but I understand your use case. Any suggestion on how we can achieve both? Shall we introduce a new booelan value for apps setting? How shall we name it? Juergen On 8/23/05, Johan Compagner [EMAIL PROTECTED] wrote: ehmm it does get renderd.. Only the output doesn't get streamed (all rendering goes to a null output) I think we do that so that the markup advances correctly (the current pointer) We should be able to skip a markup and set the markup stream correctly after the component that was not visible But that is more a juergen kind of thing... johan Eelco Hillenius wrote: Yep. Also, I should do any model updates when it is part of a form, and it should not be reachable as a listener too, though I think that still is an open issue. Eelco On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Hi, If I set a component to not visible setVisible(false) then that component and any/all children should not get rendered - right? Just like confirmation before I submit a bug report. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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://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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: visible == redered
Juergen Donnerstag wrote: I did the changes necessary to not render invisible component and it passes all existing unit tests. Any more suggestions (votes) on this topic? Juergen I'm happy! /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Pattern to update reusable panels
Thanks for answering! This is the route I've taken, but when/where/how do I create the models? Should I create the model in the initModel method - I trust it is not called as long as the component is invisible. Is replacing a model's object a normal thing to do? /Anders Juergen Donnerstag wrote: You could use setVisible(true/false). Create your markup and panel class with all the different data, assign a wicket:id to all tags to be either visible or not and control visibility by your java code. Juergen On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Here's a more specific case... A page conatins a panel. That panel should display different data depending on what the user does/selects in the main page, and initially there is nothing to display. How is something like this intended to be done? Is there an example of this? /Anders Anders Peterson wrote: Hi, How do I update reusable panels that make up part of a page? Do I get a hold on the appropriate models and call setObject? Ideally (sub) components should know how to update themselves, but then it needs a binding/reference to some external (parent) object. How is this supposed to be done, or what's a good pattern to follow? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Pattern to update reusable panels
I think it should be possible to create *PropertyModels with a null model argument - it would make things a lot easier. Getting the various properties should return null if the model is null, and corresponding labels, textfields or whatever are left empty. /Anders Anders Peterson wrote: Thanks for answering! This is the route I've taken, but when/where/how do I create the models? Should I create the model in the initModel method - I trust it is not called as long as the component is invisible. Is replacing a model's object a normal thing to do? /Anders Juergen Donnerstag wrote: You could use setVisible(true/false). Create your markup and panel class with all the different data, assign a wicket:id to all tags to be either visible or not and control visibility by your java code. Juergen On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Here's a more specific case... A page conatins a panel. That panel should display different data depending on what the user does/selects in the main page, and initially there is nothing to display. How is something like this intended to be done? Is there an example of this? /Anders Anders Peterson wrote: Hi, How do I update reusable panels that make up part of a page? Do I get a hold on the appropriate models and call setObject? Ideally (sub) components should know how to update themselves, but then it needs a binding/reference to some external (parent) object. How is this supposed to be done, or what's a good pattern to follow? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Pattern to update reusable panels
Juergen Donnerstag wrote: I'm not very fond of replacing the model object, but I guess sometimes it is the only or the better choice. What do you normally do? Having a panel that, in the same page, should display different things depending on what the user does must be a common design pattern. I do not know your application, but I guess I would go for a single model which contains all form component, whether set visible or not. And on submit propagate the information into proper businsess object if applicable. But of course that is only a suggestion and there are possible more approaches to it. Why not have the business object itself in the CompoundPropertyModel? /Anders On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Thanks for answering! This is the route I've taken, but when/where/how do I create the models? Should I create the model in the initModel method - I trust it is not called as long as the component is invisible. Is replacing a model's object a normal thing to do? /Anders Juergen Donnerstag wrote: You could use setVisible(true/false). Create your markup and panel class with all the different data, assign a wicket:id to all tags to be either visible or not and control visibility by your java code. Juergen On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Here's a more specific case... A page conatins a panel. That panel should display different data depending on what the user does/selects in the main page, and initially there is nothing to display. How is something like this intended to be done? Is there an example of this? /Anders Anders Peterson wrote: Hi, How do I update reusable panels that make up part of a page? Do I get a hold on the appropriate models and call setObject? Ideally (sub) components should know how to update themselves, but then it needs a binding/reference to some external (parent) object. How is this supposed to be done, or what's a good pattern to follow? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Pattern to update reusable panels
Juergen Donnerstag wrote: What do you normally do? Having a panel that, in the same page, should display different things depending on what the user does must be a common design pattern. create different panels and enable/disable them. Say you have a list of Client objects displayed in one part of your page. Beside that list there is an Edit Client panel (preferably always visible). When the user selects a client from the list the edit panel should get populated with the corresponding details. The user can then edit the client data, save the changes and select a different client. Surely you would do this with one panel? Currently I have the Form inside the Edit Client panel set to not visible until have set the model object (and actually created the correct model) but I still get this error: The form is still being rendered! wicket.WicketRuntimeException: OGNL Exception: expression='code'; path='1:edit:form:code' at wicket.model.AbstractPropertyModel.onGetObject(AbstractPropertyModel.java:150) at wicket.model.AbstractDetachableModel.getObject(AbstractDetachableModel.java:100) at wicket.Component.getModelObjectAsString(Component.java:666) at wicket.markup.html.form.FormComponent.getModelValue(FormComponent.java:317) at wicket.markup.html.form.FormComponent.getValue(FormComponent.java:202) at wicket.markup.html.form.TextField.onComponentTag(TextField.java:94) at wicket.Component.renderComponent(Component.java:1782) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:78) at wicket.Component.render(Component.java:1119) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1106) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:781) at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:723) at wicket.Component.renderComponent(Component.java:1805) at wicket.markup.html.WebMarkupContainer.onRender(WebMarkupContainer.java:78) at wicket.markup.html.form.Form.onRender(Form.java:482) at wicket.Component.render(Component.java:1119) I do not know your application, but I guess I would go for a single model which contains all form component, whether set visible or not. And on submit propagate the information into proper businsess object if applicable. But of course that is only a suggestion and there are possible more approaches to it. Why not have the business object itself in the CompoundPropertyModel? CompoundPropertyModel is fine and meets many requirements, but sometimes one of the other model is the better choice. There no single this cover 100% of all requirements. Juergen --- 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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] visible == redered
Hi, If I set a component to not visible setVisible(false) then that component and any/all children should not get rendered - right? Just like confirmation before I submit a bug report. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] KeyValueCoding and ProperyModel
Hi, I have a background doing WebObjects (WO) programming. http://developer.apple.com/webobjects/ WO contains an interface NSKeyValueCoding and a class NSDictionary that is essentially a Map that implements NSKeyValueCoding. http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/foundation/NSKeyValueCoding.html http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/foundation/NSDictionary.html This is EXTREMELY USEFUL! You use it for any kind of custom data collection. I think something like this should work fine in conjunction with *ProperyModel. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: KeyValueCoding and ProperyModel
In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java Anders Peterson wrote: Hi, I have a background doing WebObjects (WO) programming. http://developer.apple.com/webobjects/ WO contains an interface NSKeyValueCoding and a class NSDictionary that is essentially a Map that implements NSKeyValueCoding. http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/foundation/NSKeyValueCoding.html http://developer.apple.com/documentation/WebObjects/Reference/API/com/webobjects/foundation/NSDictionary.html This is EXTREMELY USEFUL! You use it for any kind of custom data collection. I think something like this should work fine in conjunction with *ProperyModel. /Anders --- 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] Re: KeyValueCoding and ProperyModel
Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue(testValue, tmpMap, new Integer(1)); Then couldn't CompoundProtertyModel have a Map as a default object (if allowing null objects is a problem)? /Anders Anders Peterson wrote: In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: visible == redered
In my case rendering fails - throwing an excpetion - and does not allow me to continue. It seems now that the only way I can get this to work is to insert some sort of dummy object. This is really not what I was hoping for. Why can't wicket allow models with null objects? /Anders Johan Compagner wrote: ehmm it does get renderd.. Only the output doesn't get streamed (all rendering goes to a null output) I think we do that so that the markup advances correctly (the current pointer) We should be able to skip a markup and set the markup stream correctly after the component that was not visible But that is more a juergen kind of thing... johan Eelco Hillenius wrote: Yep. Also, I should do any model updates when it is part of a form, and it should not be reachable as a listener too, though I think that still is an open issue. Eelco On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Hi, If I set a component to not visible setVisible(false) then that component and any/all children should not get rendered - right? Just like confirmation before I submit a bug report. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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://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 -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: KeyValueCoding and ProperyModel
Igor Vaynberg wrote: Cant you just do new CompoundPropertyModel(new HashMap()) ? Yes Also check out the wicket.util.value.ValueMap helper class. StringValue seems useful! /Anders -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Peterson Sent: Tuesday, August 23, 2005 10:48 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue(testValue, tmpMap, new Integer(1)); Then couldn't CompoundProtertyModel have a Map as a default object (if allowing null objects is a problem)? /Anders Anders Peterson wrote: In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 --- 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] Re: KeyValueCoding and ProperyModel
I don't know too much about the internals of Wicket, but I have opinions on how things should work. ;-) 1) Fail gracefully: I had problems with a Panel/Form today. I got a (Runtime) Exception as soon as it was rendered (which I couldn't prevent). I actually wanted to show an empty form - it would illustrate to the user that soon he/she would be able to modify some data. Sure, I could get this working almost the way I wanted, but not without some coding. That brings me to my second point. 2) Supply default implementations that work: Wicket developers need to do far too much subclassing. We shouldn't have to subclass Form, Button... simply to get something working! Actually; why do we have to explicitly instantiate anything? Why not do this in the html file: form wicket:id=form01 wicket:typeForm wicket:action=doSomething ... With Wicket I feel I'm building the GUI twice - I have to create a hierarchy of componenets that exactly matches the (structure of the) corresponding html file. /Anders Eelco Hillenius wrote: I actually agree we should allow nulls. We have had discussions about this in the past, but I'm definitively in the camp that wants to either fail right away if a value (null) is not allowed, or be flexible about what we support. Eelco On 8/23/05, Anders Peterson [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: Cant you just do new CompoundPropertyModel(new HashMap()) ? Yes Also check out the wicket.util.value.ValueMap helper class. StringValue seems useful! /Anders -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Peterson Sent: Tuesday, August 23, 2005 10:48 AM To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Re: KeyValueCoding and ProperyModel Hi, it's me agian... I just discovered that this works perfectly fine: Map tmpMap = new HashMap(); Ognl.setValue(testValue, tmpMap, new Integer(1)); Then couldn't CompoundProtertyModel have a Map as a default object (if allowing null objects is a problem)? /Anders Anders Peterson wrote: In case it wasn't clear... An NSDictionary instance will accept *any* ognl expression. /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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 --- 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 --- 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] Pattern to update reusable panels
Hi, How do I update reusable panels that make up part of a page? Do I get a hold on the appropriate models and call setObject? Ideally (sub) components should know how to update themselves, but then it needs a binding/reference to some external (parent) object. How is this supposed to be done, or what's a good pattern to follow? /Anders -- http://ojalgo.org/ Mathematics, Linear Algebra and Optimisation with Java --- 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] Re: Updating multiple database records with one form submit
Thanks very much for trying to help, I have it working now, but I'm not happy with the code - it's not correct. It's the small, obvious, things that are difficult for beginners. I had this: new Model(tmpBrand.getName(), name) which of course did not work. Changing to this: new PropertyModel(tmpBrand, name) made things work a lot better. ;-) Now to the part I still don't understand. The only models I explicitly create are the ones I need to populate the rows in the ListView. The Form itself does not have a Model (that I created) and I feel it should. How would you use a CompoundPropertyModel (with the form) when it contains a ListView? /Anders -- http://ojalgo.org/ Java Algorithms for Mathematics, Linear Algebra and Optimisation Phil Kulak wrote: If you used a PropertyModel or CompoundPropertyModel, then that's all you have to do. When the form is submitted, the properties will be updated if the form passes validation. On 8/16/05, Anders Peterson [EMAIL PROTECTED] wrote: Beginner here! Stuck on a problem: 1) I get all (4) records from a table in the database. 2) Using a Form and a ListView I display all records simultaneously each with its own TextField 3) I press the submit button after having changed any or all of the items in the form/list. How do I get these objects to be updated correctly? What kind of model should I feed the form, and what object should I feed that model? --- 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: [Pride-users] Re: [Wicket-user] Re: Tools and frameworks
Eelco Hillenius wrote: You can't specify VM arguments in your web.xml file. You can use web.xml parameters in your Wicket application object (override method init). You should note however that VM arguments are in the scope of the whole VM that can have mutliple (conflicting?) webapplications. So, you probably want to avoid depending on VM in production systems unless you are really sure you 'own' the server. Ok. The class/method that reads the properties doesn't access System.getProperty(aProp) directly. Instead it takes an argument of type Properties. So, there is no problem. Having multiple databases, for one app, is not a problem either. http://pride.sourceforge.net/PriDE-Introduction.html#AccessingMultipleDatabases /Anders -- http://ojalgo.org/ Java Algorithms for Mathematics, Linear Algebra and Optimisation --- 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] Re: Tools and frameworks
I had a look a WTP and learned that WTP = WST + JST, and that WST was the interesting part. I've noticed that several other, to me, interesting projects are building their plug-ins on WST. ... but I couldn't get it working - couldn't use any editors. So I dumped it. Instead I'm using EclipseHTMLEditor. It works well, and it has no dependencies on other plug-ins. WST had a lot of dependencies. Too many for my taste. (Didn't take me very long to decide I wanted to get rid of it.) Tomcat/Jetty: I tried Tomcat and the Sysdeo plug-in first. Eventually I got everything to work, but wasn't happy about Sysdeo's handling of classpaths. Tried Jetty and Jetty Launcher as well. It works much better!!! ...and yes, Jetty starts significantly faster that Tomcat. I've decided to use PriDE instead of Hibernate (with annotations). They're very different. ;-) http://pride.sourceforge.net/ There's also an eclipse plug-in for working with PriDE. I have little experience with PriDE, but so far I'm very happy with it. It has no (as in zero) dependencies. /Anders Anders Peterson wrote: Thanks for answering, I'm assuming you mean The Eclipse Web Tools Platform (WTP) project. I'll have a look at that! Why Jetty over Tomcat? I've never used either, but have the feeling more people use Tomcat and saw a performance comparison recently where Tomcat did very well. Spring: Everyone does seem to love it, but I don't know what problem I have that it'll solve. /Anders Martijn Dashorst wrote: Most usefull in the specific webapp department: - jetty launcher - jetty - webtools (webstandard tools - xml/html editor, I don't use the appserver integration stuff) usefull without webapp development: - spring (I'm still not convinced, but the rest of the world is ;-) - hibernate - maven - ant - junit But those are basically a need for all projects, not specific for wicket development. Martijn Anders Peterson wrote: Hi all, I’m just about to start work on my first Wicket application. What other tools and frameworks do you use with Wicket? I use eclipse so I’d be particularly interested in recommendations on eclipse plug-ins. As far as I know there is no Wicket-specific plug-in, but I’m sure there are others that could be useful with a Wicket project Thanks, /Anders --- 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 --- 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 --- 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] Re: Quickstart Examples
Must have been imagining... One of the factors that made me give Wicket a try was the fact that I could download a quickstart project, and it just worked. I think it would be great to have a guide that would show potential users how they can, with a few simple modifications, add to or change the apps behaviour and presentation. /Anders Anders Peterson wrote: Hi, I have the quickstart and examples projects up and running. When I downloaded them (a few days ago) I believe I saw some instructions on how to start modifying the apps to learn wicket features. Now I can't find these instructions, and begin to doubt I really did see them. Do they exist? /Anders --- 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 --- 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] Quickstart Examples
Hi, I have the quickstart and examples projects up and running. When I downloaded them (a few days ago) I believe I saw some instructions on how to start modifying the apps to learn wicket features. Now I can't find these instructions, and begin to doubt I really did see them. Do they exist? /Anders --- 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] Tolls and frameworks
Hi all, I’m just about to start work on my first Wicket application. What other tools and frameworks do you use with Wicket? I use eclipse so I’d be particularly interested in recommendations on eclipse plug-ins. As far as I know there is no Wicket-specific plug-in, but I’m sure there are others that could be useful with a Wicket project Thanks, /Anders --- 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] Re: Tools and frameworks
Thanks for answering, I'm assuming you mean The Eclipse Web Tools Platform (WTP) project. I'll have a look at that! Why Jetty over Tomcat? I've never used either, but have the feeling more people use Tomcat and saw a performance comparison recently where Tomcat did very well. Spring: Everyone does seem to love it, but I don't know what problem I have that it'll solve. /Anders Martijn Dashorst wrote: Most usefull in the specific webapp department: - jetty launcher - jetty - webtools (webstandard tools - xml/html editor, I don't use the appserver integration stuff) usefull without webapp development: - spring (I'm still not convinced, but the rest of the world is ;-) - hibernate - maven - ant - junit But those are basically a need for all projects, not specific for wicket development. Martijn Anders Peterson wrote: Hi all, I’m just about to start work on my first Wicket application. What other tools and frameworks do you use with Wicket? I use eclipse so I’d be particularly interested in recommendations on eclipse plug-ins. As far as I know there is no Wicket-specific plug-in, but I’m sure there are others that could be useful with a Wicket project Thanks, /Anders --- 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 --- 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] Re: Using JDK 1.5
I think it’s strange that a small/young project like Wicket has to wait for IBM before it can make use of Java 5. BTW, Hi! I'm considering using Wicket for my next project. The main alternative is Tapestry. In conjunction with Wicket or Tapestry I’ll most likely use Hibernate, but there is also PriDE. The last 5 years I’ve been using WebObjects. /Anders Johan Compagner wrote: i don't think ibm can wait long before releasing a J2EE 5 websphere. Because of the big hype thats surronds j2ee5 now. So then they will have also a jdk 1.5 ready by that time (somewhere next year) Or else ibm will linger behind all other major App servers vendors. Jesse Sightler wrote: I haven't followed Websphere that closely either lately, but I do think they still do this. I'd be very surprised to see a JDK 1.5 Websphere before the runtime is available for 1.5. Having said that, I would not expect it to take anywhere near 5 years. :) On 8/1/05, *Gili* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: huh?? Do you really think that ibm waits for there own jre (if they are building it) when they want to support J2EE 5 in websphere?? J2EE 5 will heavily build in jre 5 features and j2ee will be out early next year. So that will be the big push for all Application Server vendors to fully support the 1.5 vm. We just have to wait a bit more. johan Actually, yes this is what I was implying. I haven't followed Websphere in a while, but last time I looked IBM absolutely *did* wait for their own JDK before supporting newer features. In fact, this is part of their marketing strategy as they would always bundle Websphere with their JREs in order to get more people to use it. Has this changed over the past few years? Gili --- 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 http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: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 --- 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