[Wicket-user] custom PageMap
Hi, I have a stateful page that should be kind of bookmarkable. I'd like to make this page have certain name in PageMap and never expire. Is it a good idea? -- View this message in context: http://www.nabble.com/custom-PageMap-tf3557564.html#a9933914 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Multi page inheritance
Hi Igor, yes it states that, and to a very large degree (more then any other framework) IIRC, Reasonable Server Faces can do that. They only have the one attribute to mark tags. So your statement in braces is false from my point of view. But you might be right for other frameworks which introduce a lot of additional tags in the templates. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. What exactly is unrealistic and not practical with pure wicket:id attributes? these tags act as barriers/markers, they are not components that you attach to a page. They might act as barriers for not being able to use a GUI html editor... -- Tom Igor Vaynberg schrieb: yes it states that, and to a very large degree (more then any other framework) we follow it. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. we are not purists. the most practical solution for us is to have these special tags for markup that is very wicket-specific. these tags act as barriers/markers, they are not components that you attach to a page. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] treetable with table markup
Is there an easy way to change wicket treetable markup to table instead of spans? I need this because html tables can adopt columns widths according to values and newlines in some columns of our table is prohibited. Should I write my own component derived from DefaultAbstractTree, or extend TreeTable and change its markup or smth else? And the second question - is it possible to insert rows in a ListView via ajax? Thnks -- Andrew Klochkov - 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] custom PageMap
what do you mean never expire? the page itself? (with 1.3 pages do never expire in the default setting) but if the http session expires then the page will go with it. For this you can use stateless components (like a stateless link or form) johan On 4/11/07, Dmitry Kandalov [EMAIL PROTECTED] wrote: Hi, I have a stateful page that should be kind of bookmarkable. I'd like to make this page have certain name in PageMap and never expire. Is it a good idea? -- View this message in context: http://www.nabble.com/custom-PageMap-tf3557564.html#a9933914 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Multi page inheritance
Is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? Tom On Tue, 10 Apr 2007 23:00:48 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: yes it states that, and to a very large degree (more then any other framework) we follow it. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. we are not purists. the most practical solution for us is to have these special tags for markup that is very wicket-specific. these tags act as barriers/markers, they are not components that you attach to a page. -igor On 4/10/07, Thomas Singer [EMAIL PROTECTED] wrote: The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. BTW, is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? -- Tom On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - 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] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Hi again I've done a demo application for the issue (bug ?). I've spotted its appear when I add my template page (otherwise it's working). The demo app does 5Mo, so it won't go through the mailing list. So I send it directly to you Igor, I hope you won't mind. If anyone else would like it, just let me know. ZedroS On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] JavaScript Hijacking
Hi! snip If you have e.g. blog application that allows users to enter comment that other users can see, always escape the script tags, so that user can't post script tag in a comment, as this can be used to steal other user's confidential informations. /snip That's a very good point. Basically transforming all html control chars into html entities is a good idea. You can also execute javascript like this: body onload=alert('xss')/body or even like this, without and : (if this value is put into a textfield's value attribute): onchange=alert('xss') - Johannes -Matej On 4/6/07, Niels Bo [EMAIL PROTECTED] wrote: Hi! How protected is Wicket against JavaScript Hijacking, as described in this paper? http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf http://www.fortifysoftware.com/servlet/downloads/public/JavaScript_Hijacking.pdf Best Regards Niels Bo -- View this message in context: http://www.nabble.com/JavaScript-Hijacking-tf3536320.html#a9870835 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- Johannes Fahrenkrug Tel:+49 (0)431 5446 246 Fax:+49 (0)431 5446 248 E-Mail: [EMAIL PROTECTED] Gebeco GmbH Co KG Holzkoppelweg 19 D-24118 Kiel Handelsregister Kiel Nr. A 3964 Steuernummer: 19 285 65407 Geschäftsführung: Ury Steinweg, Vorsitzender der Geschäftsführung Thomas Bohlander Besuchen Sie uns auch unter / we are also available at: www.gebeco.de oder www.drtigges.de - 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] custom PageMap
Johan Compagner wrote: what do you mean never expire? the page itself? (with 1.3 pages do never expire in the default setting) but if the http session expires then the page will go with it. For this you can use stateless components (like a stateless link or form) johan Yes, I meant the page (didn't know that about 1.3). What I want is to have one instance of page per http session so it seems ok. Could you please point me to how make the page have it's own name in the PageMap? -- View this message in context: http://www.nabble.com/custom-PageMap-tf3557564.html#a9935631 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] mount page url
Hi, I need to mount a page url because we need to use a static url to hook it up with google analytics. I tried adding the following code in the applications init() method. mountBookmarkablePage(/home, SignUp.class); Now I can access the page directly using the static url but once users navigate to the page through wicket it creates a dynamic url such as http://localhost:8080/aloha?wicket:interface=:8:: can this url be made to appear as 'http://localhost:8080/aloha/signup' when navigating through wicket. -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] mount page url
getRequestCycle().setResponsePage(SignUp.class); -Matej On 4/11/07, tbt [EMAIL PROTECTED] wrote: Hi, I need to mount a page url because we need to use a static url to hook it up with google analytics. I tried adding the following code in the applications init() method. mountBookmarkablePage(/home, SignUp.class); Now I can access the page directly using the static url but once users navigate to the page through wicket it creates a dynamic url such as http://localhost:8080/aloha?wicket:interface=:8:: can this url be made to appear as 'http://localhost:8080/aloha/signup' when navigating through wicket. -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] treetable with table markup
Hi, I'm not sure it is possible to change the markup of current treetable without actually copying the classes and the markup. However, it is on my todo list to change the markup from spans and divs to table. But it's not a high priority one I'm affraid. So If you want to do it on your own, I suggest you copying TreeTable component and making the appropriate changes, as this seems to be the safest bet. Second question, I assume you want to show inserted rows without refreshing the entire listview? Well, this is possible to certain degree, but requres some javacsript foo. You need to create the DOM element with appropriate id (in javascript) before adding the newly created ListItem to ajaxrequesttarget. TreeTable does it, however, not with ListView. It uses different kind of repeater. -Matej On 4/11/07, Andrew Klochkov [EMAIL PROTECTED] wrote: Is there an easy way to change wicket treetable markup to table instead of spans? I need this because html tables can adopt columns widths according to values and newlines in some columns of our table is prohibited. Should I write my own component derived from DefaultAbstractTree, or extend TreeTable and change its markup or smth else? And the second question - is it possible to insert rows in a ListView via ajax? Thnks -- Andrew Klochkov - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Interesting maven experience...
Just a note. -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558620.html#a9937156 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Interesting maven experience...
Just a note. -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558619.html#a9937155 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Interesting maven experience...
Just a note for your information. I just had an unusual experience with maven when building wicket-1.x. Had done a few updates, and then the install target got in a strange loop. It took forever and then my disk was full! Turned out that the wicket sources has swollen a bit: -rw-r--r--1 ejeklint ejeklint 13756395463 Apr 11 12:47 wicket-1.3.0-incubating-SNAPSHOT-sources.jar Whoah! Didn't seem right. :) Deleting all and getting it fresh from svn fixed it. (Sorry for previous empty post, keyboard slip.) -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558632.html#a9937196 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] mount page url
Thanks. That worked fine. But I want to pass parameters such as setResponsePage(new SignUp(clientModel,clientList) etc. How can I use SignUp.class and pass the parameters at the same time. The SignUp page is not using a default constructor. Matej Knopp-2 wrote: getRequestCycle().setResponsePage(SignUp.class); -Matej On 4/11/07, tbt [EMAIL PROTECTED] wrote: Hi, I need to mount a page url because we need to use a static url to hook it up with google analytics. I tried adding the following code in the applications init() method. mountBookmarkablePage(/home, SignUp.class); Now I can access the page directly using the static url but once users navigate to the page through wicket it creates a dynamic url such as http://localhost:8080/aloha?wicket:interface=:8:: can this url be made to appear as 'http://localhost:8080/aloha/signup' when navigating through wicket. -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9937260 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] treetable with table markup
Matej Knopp wrote: Second question, I assume you want to show inserted rows without refreshing the entire listview? Well, this is possible to certain degree, but requres some javacsript foo. You need to create the DOM element with appropriate id (in javascript) before adding the newly created ListItem to ajaxrequesttarget. TreeTable does it, however, not with ListView. It uses different kind of repeater. Now I think it's impossible to insert rows in a list created with ListView via AJAX because children items id's are just their index in the list. So when I insert something in the list, I have to change id's of all lower items and do the same thing with scripts on the client side. It's getting too complex and slow. So I'm trying to create CustomListView by copying it from ListView and extracting children item id generation strategy. But I have a problem - when I create new list item during ajax request, add it to a CustomListView instance and append to AjaxRequestTarget, I get the following error: ERROR - RequestCycle - Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:110) at wicket.Component.renderComponent(Component.java:1593) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:691) at wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:588) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:476) at wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102) I looked through AbstractTree.updateTree code, but didn't find any special magic to insert new rows.. Please help! -- Andrew Klochkov - 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] custom PageMap
a page doesn't have a name just an id But i guess if you want one page that shouldn't expire (at least as long as the http session doesn't expire) you could try to do that in 1.2 with the Page Eviction Strategy. So you just don't remove that page. johan On 4/11/07, Dmitry Kandalov [EMAIL PROTECTED] wrote: Johan Compagner wrote: what do you mean never expire? the page itself? (with 1.3 pages do never expire in the default setting) but if the http session expires then the page will go with it. For this you can use stateless components (like a stateless link or form) johan Yes, I meant the page (didn't know that about 1.3). What I want is to have one instance of page per http session so it seems ok. Could you please point me to how make the page have it's own name in the PageMap? -- View this message in context: http://www.nabble.com/custom-PageMap-tf3557564.html#a9935631 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] mount page url
you can only pass parameters those parameters can be externalized (strings or ints) setResponsePage(SignUp.class, PageParameters) johan On 4/11/07, tbt [EMAIL PROTECTED] wrote: Thanks. That worked fine. But I want to pass parameters such as setResponsePage(new SignUp(clientModel,clientList) etc. How can I use SignUp.class and pass the parameters at the same time. The SignUp page is not using a default constructor. Matej Knopp-2 wrote: getRequestCycle().setResponsePage(SignUp.class); -Matej On 4/11/07, tbt [EMAIL PROTECTED] wrote: Hi, I need to mount a page url because we need to use a static url to hook it up with google analytics. I tried adding the following code in the applications init() method. mountBookmarkablePage(/home, SignUp.class); Now I can access the page directly using the static url but once users navigate to the page through wicket it creates a dynamic url such as http://localhost:8080/aloha?wicket:interface=:8:: can this url be made to appear as 'http://localhost:8080/aloha/signup' when navigating through wicket. -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9936784 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/mount-page-url-tf3558499.html#a9937260 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] treetable with table markup
Andrew Klochkov wrote: Matej Knopp wrote: Second question, I assume you want to show inserted rows without refreshing the entire listview? Well, this is possible to certain degree, but requres some javacsript foo. You need to create the DOM element with appropriate id (in javascript) before adding the newly created ListItem to ajaxrequesttarget. TreeTable does it, however, not with ListView. It uses different kind of repeater. Now I think it's impossible to insert rows in a list created with ListView via AJAX because children items id's are just their index in the list. So when I insert something in the list, I have to change id's of all lower items and do the same thing with scripts on the client side. It's getting too complex and slow. So I'm trying to create CustomListView by copying it from ListView and extracting children item id generation strategy. But I have a problem - when I create new list item during ajax request, add it to a CustomListView instance and append to AjaxRequestTarget, I get the following error: ERROR - RequestCycle - Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:110) at wicket.Component.renderComponent(Component.java:1593) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:691) at wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:588) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:476) at wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102) I looked through AbstractTree.updateTree code, but didn't find any special magic to insert new rows.. Please help! I found that special magic and there is A LOT of it :-((( First, it's in TreeItem.onRender - old item renders itself and all new items below it. And second, there's a hack in the Markup class: // TODO Post 1.2: A component path e.g. panel:label does not match 1:1 // with the markup in case of ListView, where the path contains a number // for each list item. E.g. list:0:label. What we currently do is simply // remove the number from the path and hope that no user uses an integer // for a component id. This is a hack only. A much better solution would // delegate to the various components recursivly to search within there // realm only for the components markup. ListItems could then simply // do nothing and delegate to their parents. Arrg :((( I'll try to use decimal id's... Wicket is not so perfect as it looks at the first glance :( -- Andrew Klochkov - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] ConversionException refactor
I was working with wicket.datetime.util.DateConverter in an attempt to try and get it to report a parse error instead of silently accepting the bad input, when I nrealized that if it threw a ConversionException, the framework would be able to pick up on that (in my case FormComponent.convert() would catch it) and allow me to register the feedback error message. While following that thread, I noticed that not only was there identical code in FormComponent.convert in the two catch blocks, but a third class TypeValidator was also using the same block of code: Map args = new HashMap(); final Locale locale = e.getLocale(); if (locale != null) { args.put(locale, locale); } args.put(exception, e); Format format = e.getFormat(); if (format instanceof SimpleDateFormat) { args.put(format, ((SimpleDateFormat)format).toLocalizedPattern()); } All this block is really doing is analyzing the ConversionException to build the args HashMap for the error reporting facilities. I was thinking that if this code block was refactored INTO the ConversionException then the code duplication could be removed (as the first benefit), but then Converters would be able to inject their own variables into the Map to allow for even better message definitions. While I was looking at the usage of ConversionException, it also looked like AbstractConverter, AbstractNumberConverter, PropertyResolver$ArrayPropertyGetSet, and PropertyResolver$MethodGetSet might all benefit from the refactor by externalizing their messages and inject the proper variables into the Exception's Map. If I haven't missed the mark too bad, I can write a JIRA for this. Also, I could even try the refactor given my description here and any feedback that you give me. Chuck -- View this message in context: http://www.nabble.com/ConversionException-refactor-tf3559528.html#a9940039 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Multi page inheritance
On Wednesday, 11 April 2007 02:31 am, Thomas Singer escreveu: Is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? I think someone posted one last week, if you search the mailing lists you can find it. Tom On Tue, 10 Apr 2007 23:00:48 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: yes it states that, and to a very large degree (more then any other framework) we follow it. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. we are not purists. the most practical solution for us is to have these special tags for markup that is very wicket-specific. these tags act as barriers/markers, they are not components that you attach to a page. -igor On 4/10/07, Thomas Singer [EMAIL PROTECTED] wrote: The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. BTW, is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? -- Tom On Tue, 10 Apr 2007 18:27:18 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: we like our namespaced tags. they are xhtml compliant and get stripped from final output. so that will stay the default. if you want to hack away the please feel free to do so, but i do not think you will get much in the way of support. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ 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
Re: [Wicket-user] [datetime] DateConverter
Eelco Hillenius wrote: I did, and I agree :). I'll have something new later today or this week. Eelco After this email exchange, I hadn't noticed any work in the datetime project, so I started tweaking it myself. I know that you were concerned with supporting both Date and DateTime, but the tweaks I have been making a geared towards a pure DateTime impl inside the wicket-datetime project. Have you made any progress on the impl that you were working on? Should I prepare a patch of what I have done so far, so that you can see how close it comes to what you want? I'm in the process of trying to get it to report better parse errors (see my other thread on the ConversionException refactor idea...) I also have a DateTimeLabel component that could go with this package designed with the same style as DateTextField. Chuck -- View this message in context: http://www.nabble.com/-datetime--DateConverter-tf3233793.html#a9940669 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] Problem with TinyMCE on a panel
hi, there is an already known issue related to this; tinymce's JS/CSS imports are lost if there is any AJAX request involved. it is on my TODO list but unfortunately i couldnt put my hands on it. i'll try to do it this weekend. /iulian On 4/11/07, Brian Topping [EMAIL PROTECTED] wrote: Hi all, I've been trying to get TinyMCE to display on a panel and haven't been having much luck. I've seen it work if it's not on a panel, but my guess is when the panel is loaded and the contents of the panel are patched up in the DOM, the patches that TinyMCE made are lost. I talked to Igor about this one night on IRC and he suggested using a behavior, overriding iHeaderResponse.renderOnDomReadyJavascript() to call tinyMCE.init. That all seems like it should work, but alas, it does not. If it weren't for plugging at this off and on for two weeks, I'd keep chugging, but I'm afraid I don't know enough to debug this. So if you choose to accept it, the mission is to download http:// tetsuko.autoscraper.com/files/testTCE.tgz and see if anything looks out of place. It's a large file only because it's got TinyMCE preloaded... there's only about 140 lines of code there. Any thoughts, information, RTFM, etc are gratefully accepted. Thanks! Brian - 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
Re: [Wicket-user] Interesting maven experience...
I had the same problem - I was trying to build 1.3 On 4/11/07, Per Ejeklint [EMAIL PROTECTED] wrote: Just a note for your information. I just had an unusual experience with maven when building wicket-1.x. Had done a few updates, and then the install target got in a strange loop. It took forever and then my disk was full! Turned out that the wicket sources has swollen a bit: -rw-r--r--1 ejeklint ejeklint 13756395463 Apr 11 12:47 wicket-1.3.0-incubating-SNAPSHOT-sources.jar Whoah! Didn't seem right. :) Deleting all and getting it fresh from svn fixed it. (Sorry for previous empty post, keyboard slip.) -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558632.html#a9937196 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Interesting maven experience...
Any idea how to reproduce this? Eelco On 4/11/07, Per Ejeklint [EMAIL PROTECTED] wrote: Just a note for your information. I just had an unusual experience with maven when building wicket-1.x. Had done a few updates, and then the install target got in a strange loop. It took forever and then my disk was full! Turned out that the wicket sources has swollen a bit: -rw-r--r--1 ejeklint ejeklint 13756395463 Apr 11 12:47 wicket-1.3.0-incubating-SNAPSHOT-sources.jar Whoah! Didn't seem right. :) Deleting all and getting it fresh from svn fixed it. (Sorry for previous empty post, keyboard slip.) -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558632.html#a9937196 Sent from the Wicket - User mailing list archive at Nabble.com. - 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
Re: [Wicket-user] Multi page inheritance
Unfortunately, searching the user mailing list is broken. When clicking at http://wicket.sourceforge.net/mail-lists.html at the sourceforge.net-link of the Wicket User List, I'm getting the message No Forum Chosen. Tom On Wed, 11 Apr 2007 16:15:40 +0200, Thomas R. Corbin [EMAIL PROTECTED] wrote: On Wednesday, 11 April 2007 02:31 am, Thomas Singer escreveu: Is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? I think someone posted one last week, if you search the mailing lists you can find it. - 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] Multi page inheritance
The wicket website states at the end of the first paragraph ... written with plain Java and HTML. IIRC, the wicket:... tags do not belong to plain HTML. Maybe we should change that section. But it is all valid namespaced XHMTL (which I guess JSF is as well). The main reason for having wicket:... tags is that we felt it was appropriate to mark regions, and in the case of wicket:message things that don't have a direct user-added Java counter part. We felt that if we would use wicket:xx attribute for everything (which we considered two years ago), it would be much harder to read the templates. Stripping of the wicket tags is done when in deployment mode, or you can do getMarkupSettings().setStripWicketTags(true); 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
Re: [Wicket-user] Interesting maven experience...
Sorry, I really don't know. I have erased the entire branch so I can't re-run the sequence. I checked out wicket-1.x about 10 days ago, and I think it was after the second update which I did this Saturday or Sunday, that the problems started. It was definitely before the big renaming change to org.apache.wicket. Maven did spew out a lot of warnings on javadoc generation, a number of @link tags that couldn't be resolved but I don't remember the exact message, and then it hanged on generating the sources.jar. /Per Eelco Hillenius wrote: Any idea how to reproduce this? Eelco On 4/11/07, Per Ejeklint [EMAIL PROTECTED] wrote: Just a note for your information. I just had an unusual experience with maven when building wicket-1.x. Had done a few updates, and then the install target got in a strange loop. It took forever and then my disk was full! Turned out that the wicket sources has swollen a bit: -rw-r--r--1 ejeklint ejeklint 13756395463 Apr 11 12:47 wicket-1.3.0-incubating-SNAPSHOT-sources.jar Whoah! Didn't seem right. :) Deleting all and getting it fresh from svn fixed it. (Sorry for previous empty post, keyboard slip.) -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558632.html#a9937196 Sent from the Wicket - User mailing list archive at Nabble.com. - 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 -- View this message in context: http://www.nabble.com/Interesting-maven-experience...-tf3558632.html#a9943307 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] [datetime] DateConverter
I did, and I agree :). I'll have something new later today or this week. Eelco After this email exchange, I hadn't noticed any work in the datetime project, so I started tweaking it myself. I know that you were concerned with supporting both Date and DateTime, but the tweaks I have been making a geared towards a pure DateTime impl inside the wicket-datetime project. Have you made any progress on the impl that you were working on? Should I prepare a patch of what I have done so far, so that you can see how close it comes to what you want? Patches are always welcome, but no promises they'll be applied to the code :) I also have a DateTimeLabel component that could go with this package designed with the same style as DateTextField. Ok. I added DateLabel last week in case you hadn't noticed. I ran out of time again unfortunately. I was about half-way preparing my changes when I got side tracked by more pressing things. Sorry :) 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
Re: [Wicket-user] Multi page inheritance
On 4/10/07, Thomas Singer [EMAIL PROTECTED] wrote: Hi Igor, yes it states that, and to a very large degree (more then any other framework) IIRC, Reasonable Server Faces can do that. They only have the one attribute to mark tags. So your statement in braces is false from my point of view. But you might be right for other frameworks which introduce a lot of additional tags in the templates. so how does markup inheritance look like in RSF? but what drives this framework are the facts that we set realistic goals and come up with practical solutions. What exactly is unrealistic and not practical with pure wicket:id attributes? wicket:id is used to denote components, wicket:extend and friends are NOT components. these tags act as barriers/markers, they are not components that you attach to a page. They might act as barriers for not being able to use a GUI html editor... my editor handles them just fine, maybe you need a better one. but please do show me what you think it should look like without the special tags? -igor -- Tom Igor Vaynberg schrieb: yes it states that, and to a very large degree (more then any other framework) we follow it. but what drives this framework are the facts that we set realistic goals and come up with practical solutions. we are not purists. the most practical solution for us is to have these special tags for markup that is very wicket-specific. these tags act as barriers/markers, they are not components that you attach to a page. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-example/pub/goChinese is broken - Home_zh_CN.html
The header of Home_zh_CN.html should be: html xmlns:wicket=http://wicket.sourceforge.net/; head titleWicket Examples - pub/title meta http-equiv=Content-Type content=text/html; charset=gb2312/ link rel=stylesheet type=text/css href=style.css/ /head instead of ?xml encoding=GBK? !--It is useful for input the right info when the server run on the linux-- html xmlns:wicket=http://wicket.sourceforge.net/; head titleWicket Examples - pub/title meta http-equiv=Content-Type content=text/html; charset=gb2312/ link rel=stylesheet type=text/css href=style.css/ /head - 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] Multi page inheritance
Sourceforge changed their URLs for the mailing list archives. It has to be: http://sourceforge.net/mailarchive/forum.php?forum_name=wicket-user Note the parameter 'forum_name' instead of 'forum'. Could someone correct the links please? Sven Thomas Singer wrote: Unfortunately, searching the user mailing list is broken. When clicking at http://wicket.sourceforge.net/mail-lists.html at the sourceforge.net-link of the Wicket User List, I'm getting the message No Forum Chosen. Tom On Wed, 11 Apr 2007 16:15:40 +0200, Thomas R. Corbin [EMAIL PROTECTED] wrote: On Wednesday, 11 April 2007 02:31 am, Thomas Singer escreveu: Is there a DTD available for the namespace definitions in the html tag of the XHTML files, so IDEA does not highlight it in red? I think someone posted one last week, if you search the mailing lists you can find it. - 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
Re: [Wicket-user] Multi page inheritance
so how does markup inheritance look like in RSF? Please take a look at http://www2.caret.cam.ac.uk/rsfwiki/Wiki.jsp?page=OuterPageTemplates wicket:id is used to denote components, wicket:extend and friends are NOT components. From my POV, wicket:id is - well, as the name suggests - an ID to mark an HTML-tag. my editor handles them just fine, maybe you need a better one. I don't have influence on what HTML editor a designer uses. but please do show me what you think it should look like without the special tags? I only could provide a Border replacement which only requires wicket:id to work. Tom - 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] [datetime] DateConverter
Eelco Hillenius wrote: After this email exchange, I hadn't noticed any work in the datetime project, so I started tweaking it myself. I know that you were concerned with supporting both Date and DateTime, but the tweaks I have been making a geared towards a pure DateTime impl inside the wicket-datetime project. Have you made any progress on the impl that you were working on? Should I prepare a patch of what I have done so far, so that you can see how close it comes to what you want? Patches are always welcome, but no promises they'll be applied to the code :) Understood, I will create a JIRA with the patch. That is, unless you reply and suggest a specific JIRA to attach it to. If you have questions before applying the patch, I won't take offense if you need me to defend my code. Eelco Hillenius wrote: I also have a DateTimeLabel component that could go with this package designed with the same style as DateTextField. Ok. I added DateLabel last week in case you hadn't noticed. I hadn't noticed... I was keeping up with SVN, but once you guys started to backport the stuff from 2.0, I decided to wait until the dust settled before synching back up again. And according to your wiki page on the backporting, there is still some work to go... Eelco Hillenius wrote: I ran out of time again unfortunately. I was about half-way preparing my changes when I got side tracked by more pressing things. Sorry :) I know about priorities. If I have to, I'll continue maintaining my own copy of the framework with our internal patches that don't make the cut for the framework proper. Chuck -- View this message in context: http://www.nabble.com/-datetime--DateConverter-tf3233793.html#a9945146 Sent from the Wicket - User mailing list archive at Nabble.com. - 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] [datetime] DateConverter
Cheers Chuck. Understood, I will create a JIRA with the patch. That is, unless you reply and suggest a specific JIRA to attach it to. If you have questions before applying the patch, I won't take offense if you need me to defend my code. My ideal situation still is that the converter and components in wicket-datetime would work with both Date and DateTime objects transparently. I don't care about how they work internally, but IMO they should work regardless of whether the model object is a Date or DateTime object. 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
[Wicket-user] Reloading the current page
How do you do this? I have a form with a few fields that onSubmit I want to complete redo the page. I know it's not happening by default because there's a generated string that doesn't change when it's supposed to. Jason - 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] Multi page inheritance
Hi Thomas, Wednesday, April 11, 2007, 5:15:05 PM, you wrote: Unfortunately, searching the user mailing list is broken. When clicking at http://wicket.sourceforge.net/mail-lists.html at the sourceforge.net-link of the Wicket User List, I'm getting the message No Forum Chosen. Use Nabble - http://www.nabble.com/Wicket-f13974.html for all Wicket lists or http://www.nabble.com/Wicket---User-f13976.html for just Wicket-User. /Gwyn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reloading the current page
You can reload the page by e.g. calling setReponsePage(MyPage.class) or setReponsePage(new MyPage(foo, bar)); Eelco On 4/11/07, Jason Roelofs [EMAIL PROTECTED] wrote: How do you do this? I have a form with a few fields that onSubmit I want to complete redo the page. I know it's not happening by default because there's a generated string that doesn't change when it's supposed to. Jason - 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: After 40+ hours of more research, I did indeed find my style of coding - and it clicks. Page-based, ... Another thing I don't agree with is that page-orientation is something to aim for[1]. I believe a mixed model is more powerful[2]. There's a lot more that can be said about the different frameworks, but I think it can be summed up by saying that Click is primarily pragmatic and focussed on simplicity, whereas Wicket is focussed on providing a true OO programming model with clean separation of markup and logic. Imo, there's something to say for both. [1] http://www.nabble.com/Click-Rules%21%21%21-tf3555269.html [2] http://chillenious.wordpress.com/2006/07/16/on-page-navigation/ - 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 I wonder if someone here can answer me this question: Why do more and more Java frameworks try to push users farther away from the tried-and-true web experience of having web pages that submit to servers and create other web pages? Everything I see is trying to redefine how websites are developed and frankly I've yet to see a single framework that does this completely and doesn't get in the developer's way. In the end, it's still a web page, and the expectations are there. For example, I want to submit a form, process the data, and redisplay the same page, though with some changes according to what was inputted. I don't know how to do this and I can't find anything in the docs. Why is something so simple, so trivial anywhere else not also trivial here in Wicket? I've never messed with the likes of Echo or GWT, but I can't think that these are any better as they try to abstract even farther by generating Javascript for super-dynamic (read: one-page browser-breaking) applications. Why is this, and where are the modern Java web frameworks that don't try to reinvent the concept of a website? Jason - 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] Reloading the current page
On 4/11/07, Jason Roelofs [EMAIL PROTECTED] wrote: How do you do this? I have a form with a few fields that onSubmit I want to complete redo the page. I know it's not happening by default because there's a generated string that doesn't change when it's supposed to. You probably show the string as follows? add(new Label(text, My + generated + string)); or add(new Label(text, myGenerator.getGeneratedString()); This creates a static binding between the generated string *at construction time* and the label. What you need to do is to evaluate the string generation 'lazily', or at render time. The constructor is only called once for a page, so the static strings will only be generated once. The solution for your problem can be anything from using PropertyModel to creating an inline, anonymous subclass of AbstractReadOnlyModel like: add(new Label(text, new AbstractReadOnlyModel() { public Object getObject() { return generator.getGeneratedText(); })); Be sure to read up on models at this page [1]. Martijn [1] http://cwiki.apache.org/WICKET/working-with-wicket-models.html -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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] Creating Entire Forms in Java Code Only?
u, this is not trivial? are you kidding? let me write something up from memory public class GuestBookPage extends WebPage { private ListString comments=new ArrayList(); private String latestComment; public GuestBookPage() { add(new ListView(comments, new PropertyModel(this, comments) { protected void populateItem(ListItem item) { add(new Label(comment, item.getModel())); } Form form=new Form(form); add(form); form.add(new TextField(comment, new PropertyModel(this, latestComment))); form.add(new Button(submit) { protected void onClick() { comments.add(latestComment); } } } } htmlbodyulli wicket:id=commentsspan wicket:id=comment/span/li/ul form wicket:id=forminput wicket:id=comment type=text/input wicket:id=submit type=submit value=add comment//form/body/html done what exactly is so difficult about the above? -igor On 4/11/07, Jason Roelofs [EMAIL PROTECTED] wrote: On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: After 40+ hours of more research, I did indeed find my style of coding - and it clicks. Page-based, ... Another thing I don't agree with is that page-orientation is something to aim for[1]. I believe a mixed model is more powerful[2]. There's a lot more that can be said about the different frameworks, but I think it can be summed up by saying that Click is primarily pragmatic and focussed on simplicity, whereas Wicket is focussed on providing a true OO programming model with clean separation of markup and logic. Imo, there's something to say for both. [1] http://www.nabble.com/Click-Rules%21%21%21-tf3555269.html [2] http://chillenious.wordpress.com/2006/07/16/on-page-navigation/ - 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 I wonder if someone here can answer me this question: Why do more and more Java frameworks try to push users farther away from the tried-and-true web experience of having web pages that submit to servers and create other web pages? Everything I see is trying to redefine how websites are developed and frankly I've yet to see a single framework that does this completely and doesn't get in the developer's way. In the end, it's still a web page, and the expectations are there. For example, I want to submit a form, process the data, and redisplay the same page, though with some changes according to what was inputted. I don't know how to do this and I can't find anything in the docs. Why is something so simple, so trivial anywhere else not also trivial here in Wicket? I've never messed with the likes of Echo or GWT, but I can't think that these are any better as they try to abstract even farther by generating Javascript for super-dynamic (read: one-page browser-breaking) applications. Why is this, and where are the modern Java web frameworks that don't try to reinvent the concept of a website? Jason - 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
Why is this, and where are the modern Java web frameworks that don't try to reinvent the concept of a website? What a framework like Wicket tries to do is provide a programming model that mimics programming like you would do for a desktop UI app. Why? Because the model is much better suited for the kind of applications many users are building nowadays. Of course, if you are really just developing a document oriented web site with just a couple of forms and not much else, this may be overkill. Much like JPA/ Hibernate/ JDO are overkil when you have a simple data model. But you'd be a minority, given the attention 'rich' user interfaces over the web get nowadays. 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
Re: [Wicket-user] Multi page inheritance
https://issues.apache.org/jira/browse/WICKET-460 i personally find it much uglier then namespaced tags just because it is much easier to read the markup. but of course if you are using some fancy gui editor the point is moot. -igor On 4/11/07, Thomas Singer [EMAIL PROTECTED] wrote: so how does markup inheritance look like in RSF? Please take a look at http://www2.caret.cam.ac.uk/rsfwiki/Wiki.jsp?page=OuterPageTemplates wicket:id is used to denote components, wicket:extend and friends are NOT components. From my POV, wicket:id is - well, as the name suggests - an ID to mark an HTML-tag. my editor handles them just fine, maybe you need a better one. I don't have influence on what HTML editor a designer uses. but please do show me what you think it should look like without the special tags? I only could provide a Border replacement which only requires wicket:id to work. Tom - 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
On 4/11/07, Jason Roelofs [EMAIL PROTECTED] wrote: I wonder if someone here can answer me this question: Why do more and more Java frameworks try to push users farther away from the tried-and-true web experience of having web pages that submit to servers and create other web pages? I'm not sure what prompted this reaction. I can only point at [1] to give you a baseline as to what the goals of Wicket are regarding the programming model. If you don't like the programming model, then you are welcome to suggest improvements, or if you /really/ don't like it pick one you do like. We won't threaten you, or hate you for the choice you make. Everything I see is trying to redefine how websites are developed and frankly I've yet to see a single framework that does this completely and doesn't get in the developer's way. Again I'm not sure what is bothering you. How, where and why is Wicket getting in your way? In the end, it's still a web page, and the expectations are there. For example, I want to submit a form, process the data, and redisplay the same page, though with some changes according to what was inputted. I don't know how to do this and I can't find anything in the docs. Why is something so simple, so trivial anywhere else not also trivial here in Wicket? I am sorry that you are not able to do and find what you want. But asking the right questions in the right tone will get you ahead much better than complaining that you couldn't perform a task so simple. Some things in Wicket require getting used to. One of those things are the Model concept, which is probably the cause of your frustration. I've never messed with the likes of Echo or GWT, but I can't think that these are any better as they try to abstract even farther by generating Javascript for super-dynamic (read: one-page browser-breaking) applications. Neither have I but I think they are filling a niche that needs to be filled. Apparently Google knows how to build a great application using GWT that scales tremendously (though they have the hardware and the bandwidth to support such scale too). Why is this, and where are the modern Java web frameworks that don't try to reinvent the concept of a website? I'm not sure what you mean by reinventing the concept of a website. If you talk about single page, ajax enabled, back button breaking applications... then wicket should fit your bill, as we support all 3 modes: * the usual multi page applications using traditional links (sprinkled with some ajax where it makes sense) * the less usual single page application using traditional links (using panel replacement, not breaking the back button, possibly sprinkled with some ajax), * the full blown single page, ajax enabled, back button breaking (though I think there are some ideas to enable the back button too, Dojo at least has support for that) interface. Wicket requires a more than basic understanding of object orientation: you need to know about the lifecycle of objects: construction (only once), rendering (multiple times), clean up (garbace collection, depending on the pagemap strategy). Once you grok the idea that construction is only done once, and that anything you push into components, will not update, then you're golden. Martijn [1] http://incubator.apache.org/wicket/vision.html -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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] Multi page inheritance
Igor, you've made my day! I did not expected to convince you. :D Tom On Wed, 11 Apr 2007 21:18:50 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-460 i personally find it much uglier then namespaced tags just because it is much easier to read the markup. but of course if you are using some fancy gui editor the point is moot. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Multi page inheritance
Sorry, I forgot the Thanks. Tom On Wed, 11 Apr 2007 21:39:56 +0200, Thomas Singer [EMAIL PROTECTED] wrote: Igor, you've made my day! I did not expected to convince you. :D Tom On Wed, 11 Apr 2007 21:18:50 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-460 i personally find it much uglier then namespaced tags just because it is much easier to read the markup. but of course if you are using some fancy gui editor the point is moot. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Multi page inheritance
you did not convince me at all. i still think it is very fugly. but unfortunately wicket is about more then just me :) i also just tweaked it a bit so you might want to see comments on the jira. and you are welcome -igor On 4/11/07, Thomas Singer [EMAIL PROTECTED] wrote: Sorry, I forgot the Thanks. Tom On Wed, 11 Apr 2007 21:39:56 +0200, Thomas Singer [EMAIL PROTECTED] wrote: Igor, you've made my day! I did not expected to convince you. :D Tom On Wed, 11 Apr 2007 21:18:50 +0200, Igor Vaynberg [EMAIL PROTECTED] wrote: https://issues.apache.org/jira/browse/WICKET-460 i personally find it much uglier then namespaced tags just because it is much easier to read the markup. but of course if you are using some fancy gui editor the point is moot. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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] Multi page inheritance
On 4/11/07, Thomas Singer [EMAIL PROTECTED] wrote: Igor, you've made my day! I did not expected to convince you. :D Thomas, Can you write a wiki article for this? Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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] treetable with table markup
Arrg :((( I'll try to use decimal id's... Wicket is not so perfect as it looks at the first glance :( Not a perfect world I'm afraid. While we try to expose a simple to use API, some of the internals are hard (and sometimes even hackish). The main reason for this is because we support an unmanaged programming model (you decide how to construct objects etc) rather than sitting on top of everything you do. Anyway, you can help making it perfect by providing kick-ass patches for things you think can be improved :) 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
Re: [Wicket-user] treetable with table markup
that did go away in 2.0 i think when juergen switched to MarkupFragment stuff, it might go away in 1.3 when he backports that -igor On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Arrg :((( I'll try to use decimal id's... Wicket is not so perfect as it looks at the first glance :( Not a perfect world I'm afraid. While we try to expose a simple to use API, some of the internals are hard (and sometimes even hackish). The main reason for this is because we support an unmanaged programming model (you decide how to construct objects etc) rather than sitting on top of everything you do. Anyway, you can help making it perfect by providing kick-ass patches for things you think can be improved :) 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
On 4/11/07, Martijn Dashorst [EMAIL PROTECTED] wrote: On 4/11/07, Jason Roelofs [EMAIL PROTECTED] wrote: I wonder if someone here can answer me this question: Why do more and more Java frameworks try to push users farther away from the tried-and-true web experience of having web pages that submit to servers and create other web pages? I'm not sure what prompted this reaction. I can only point at [1] to give you a baseline as to what the goals of Wicket are regarding the programming model. If you don't like the programming model, then you are welcome to suggest improvements, or if you /really/ don't like it pick one you do like. We won't threaten you, or hate you for the choice you make. Everything I see is trying to redefine how websites are developed and frankly I've yet to see a single framework that does this completely and doesn't get in the developer's way. Again I'm not sure what is bothering you. How, where and why is Wicket getting in your way? In the end, it's still a web page, and the expectations are there. For example, I want to submit a form, process the data, and redisplay the same page, though with some changes according to what was inputted. I don't know how to do this and I can't find anything in the docs. Why is something so simple, so trivial anywhere else not also trivial here in Wicket? I am sorry that you are not able to do and find what you want. But asking the right questions in the right tone will get you ahead much better than complaining that you couldn't perform a task so simple. Some things in Wicket require getting used to. One of those things are the Model concept, which is probably the cause of your frustration. I've never messed with the likes of Echo or GWT, but I can't think that these are any better as they try to abstract even farther by generating Javascript for super-dynamic (read: one-page browser-breaking) applications. Neither have I but I think they are filling a niche that needs to be filled. Apparently Google knows how to build a great application using GWT that scales tremendously (though they have the hardware and the bandwidth to support such scale too). Why is this, and where are the modern Java web frameworks that don't try to reinvent the concept of a website? I'm not sure what you mean by reinventing the concept of a website. If you talk about single page, ajax enabled, back button breaking applications... then wicket should fit your bill, as we support all 3 modes: * the usual multi page applications using traditional links (sprinkled with some ajax where it makes sense) * the less usual single page application using traditional links (using panel replacement, not breaking the back button, possibly sprinkled with some ajax), * the full blown single page, ajax enabled, back button breaking (though I think there are some ideas to enable the back button too, Dojo at least has support for that) interface. Wicket requires a more than basic understanding of object orientation: you need to know about the lifecycle of objects: construction (only once), rendering (multiple times), clean up (garbace collection, depending on the pagemap strategy). Once you grok the idea that construction is only done once, and that anything you push into components, will not update, then you're golden. Martijn [1] http://incubator.apache.org/wicket/vision.html -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.5 will keep your server alive. Download Wicket now! http://wicketframework.org - 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 @Igor: It's not trivial because it requires complete understanding of the whole Model system of Wicket. As per my actual question email, Martijn posted exactly what I'm doing and how to solve it. In one aspect it is a part of learning a library, on the other hand it fits in with what I'm wondering: why the basic assumptions of building a web site keep getting thrown out of the window with every new Java web framework. I realize that people like the Swing framework for application building; I do to, it's quite fun to work with. But this isn't desktop application development, this is web application development. I've yet to see a website built to act like a desktop application that wasn't slow, buggy, broken in many browsers, convoluted and hard to use or any combination of these. This is one of the reasons that Rails is so successful. It doesn't try to redefine how websites
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
@Igor: It's not trivial because it requires complete understanding of the whole Model system of Wicket. As per my actual question email, Martijn posted exactly what I'm doing and how to solve it. model is a core concept of the framework, so you better understand at least that before posting rants. personally i do not understand why it is so difficult. public interface IModel { Object getObject(); void setObject(Object o); } its a small interface with a setter and a getter. there is no system, just a bunch of different implementations of this interface for different usecases. we have a great wiki page that describes the whole thing, dont know why people always complain that our docs are crappy when most people dont read them. In one aspect it is a part of learning a library, on the other hand it fits in with what I'm wondering: why the basic assumptions of building a web site keep getting thrown out of the window with every new Java web framework. because these frameworks are not about building web SITES, they are about building web APPLICATIONS. google.com is a website, salesforce.com is an application. you do not need a framework to build a web site. I realize that people like the Swing framework for application building; I do to, it's quite fun to work with. But this isn't desktop application development, this is web application development. I've yet to see a website built to act like a desktop application that wasn't slow, buggy, broken in many browsers, convoluted and hard to use or any combination of these. this isnt about building web applications that behave like desktop applications. this is about bringing the programming model of desktop applications to the we applications. the programming model offered by servlets/jsp is utter crap. it is so divergent from the programming model offered by swing and friends that there are programmers that code java desktop apps that cant code java web apps, and viceversa. why should that be so? why can i not reuse my java knowledge to build web apps? why can i not use OO which is the central princimple of java to build java webapps? this is what it is all about. This is one of the reasons that Rails is so successful. It doesn't try to redefine how websites are made, it simply makes it easier to follow the paradigms that have been in play for 15+ years. there are plenty of java frameworks that do this. struts, maverick, blah blah, and the lot of the mvc frameworks. even some that are modern and clean like stripes. i would like you to support the statement that rails is successful with some sort of proof/statistics. otherwise its just flame bait and makes you look bad. Now please don't take this as a bash towards Wicket, no one will, you have shown that you do not understand what wicket is all about, so your bashing wouldn't be credible :) I'm just trying to understand why Java web frameworks are what they are and why people aren't creating frameworks that make it easier and simpler to do what people have been doing for years. Is it because of Java itself? the Java community? Sun Microsystems? IBM WebSphere? What do you think? i think you are confused :) -igor Jason - 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
In one aspect it is a part of learning a library, on the other hand it fits in with what I'm wondering: why the basic assumptions of building a web site keep getting thrown out of the window with every new Java web framework. I realize that people like the Swing framework for application building; I do to, it's quite fun to work with. But this isn't desktop application development, this is web application development. I've yet to see a website built to act like a desktop application that wasn't slow, buggy, broken in many browsers, convoluted and hard to use or any combination of these. Blame the millions of users who disagree with you, and who use those buggy broken web apps daily. Also, note that it's about programming just as much. I don't know how happy you were using plain JSP or model 2 frameworks like Struts etc, but I encountered *serious* problems for building anything other than the most trivial app. No reuse, not much options for partitioning work amongst developers (and designers), hacks and code duplication all over the place. Wicket is trying to solve such issues, and in my - biased - experience it does a better job at that than I even expected in the first place. For the first time since I've been developing web apps the prospect of refactoring doesn't panic the entire team. This is one of the reasons that Rails is so successful. Oh, common'. Rails is mostly successful by PHP converts etc. I have heard quite a few stories of people who 'came back' to Java after a one-time experiment. I'm using Ruby regularly for sysadmin/ build scripts kind of stuff, and it's nice for that, but personally, I wouldn't want to use it for anything non-trivial in a million years. Just my opinion though. It doesn't try to redefine how websites are made, it simply makes it easier to follow the paradigms that have been in play for 15+ years. Well, from what I've seen Rails sucks. Really. I find it ugly to look at (JSP 1-ish), hardly has any abstraction and is all focussed on short-term productivity gain. I'm way more interested in long term gain (reuse, refactorability etc) and a good set of abstractions. I've stated this in various TSS threads, but what many people in my humble opinion don't seem to 'get' about OO is that it is as much about the abstractions (like the names, how classses relate to each other etc) than it is about the ability to create flexible software. Now please don't take this as a bash towards Wicket, I'm just trying to understand why Java web frameworks are what they are and why people aren't creating frameworks that make it easier and simpler to do what people have been doing for years. Well, you are mailing to a user list of a Java framework. This kind of discussion would better be had on TSS or similar sites. However, I don't mind discussing stuff like this here (though it gets tiring to have it again and again), just expect very straightforward answers back. 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
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, from what I've seen Rails sucks. Really. I find it ugly to look at (JSP 1-ish), hardly has any abstraction and is all focussed on short-term productivity gain. I'm way more interested in long term gain (reuse, refactorability etc) and a good set of abstractions. I've stated this in various TSS threads, but what many people in my humble opinion don't seem to 'get' about OO is that it is as much about the abstractions (like the names, how classses relate to each other etc) than it is about the ability to create flexible software. i want to see you build a blog using java in 15 minutes! i dare you. no i double dog dare you! you cant, can you? yeah, thats what i thought. java does suck indeed. nevermind that ruby is a write-only language. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] 2 issues with RefreshingView : ERROR - RequestCycle - Index: 0 and submit button present too many times
Alternatively, you can open up an issue in JIRA and attach it there. Eelco On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi again I've done a demo application for the issue (bug ?). I've spotted its appear when I add my template page (otherwise it's working). The demo app does 5Mo, so it won't go through the mailing list. So I send it directly to you Igor, I hope you won't mind. If anyone else would like it, just let me know. ZedroS On 4/11/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Hi Igor I've played with it again regarding the multiple ajax submit buttons and I've noticed the following behavior : - this issue is only happening on Firefox (more precisely : Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3). On Internet Explorer 6 SP2 it's working fine. - this issue only appears when I add the panel to my form. I've emptied my panel and it's still the same issue. BTW, I'm working on Wicket 1.3. If needed, I wouldn't mind sending my code to let you play with it. I've started to do a issue demo app but it takes time. ZedroS On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not really, its a complex hierarchy and if i was going to debug it i would have to recreate it myself. -igor On 4/10/07, ZedroS Schwart [EMAIL PROTECTED] wrote: I agree that the current modelisation is quite complex. Quickly, it's the following : my page has a form, let's call it form Form1. This form in fact inherits an Ajax form. This Ajax form add the Ajax submit button, an AjaxIndicator image and define the feedbackpanel. In Form1, I add two textfields with theirs borders and then a panel. This panel, called Panel1, contains a form and, added to this form, the RefreshingView. On the RefreshingView populateItem(...) I add two Labels and then the ActionPanel containing my 2 links. BTW, when the page renders for the first time, the row containing my ajax submit button is black. That's really weird since nowhere I've asked for it to be black... The added ajax submit buttons are added on a line above, one next to the other(s). Does it help you ? I'm going to dig deeper to see if I can do a quickstart for you to reproduce it (or to narrow my issue my removing non necessary stuff). Thanks again igor ZedroS - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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] treetable with table markup
Well, the thing with tree items can seem hacky, but there are multiple things to consider. While the tree is hierarchical structure, the rendered html must be linear, to be able to construct table-like markup. -Matej On 4/11/07, Andrew Klochkov [EMAIL PROTECTED] wrote: Andrew Klochkov wrote: Matej Knopp wrote: Second question, I assume you want to show inserted rows without refreshing the entire listview? Well, this is possible to certain degree, but requres some javacsript foo. You need to create the DOM element with appropriate id (in javascript) before adding the newly created ListItem to ajaxrequesttarget. TreeTable does it, however, not with ListView. It uses different kind of repeater. Now I think it's impossible to insert rows in a list created with ListView via AJAX because children items id's are just their index in the list. So when I insert something in the list, I have to change id's of all lower items and do the same thing with scripts on the client side. It's getting too complex and slow. So I'm trying to create CustomListView by copying it from ListView and extracting children item id generation strategy. But I have a problem - when I create new list item during ajax request, add it to a CustomListView instance and append to AjaxRequestTarget, I get the following error: ERROR - RequestCycle - Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] wicket.WicketRuntimeException: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver: [MarkupContainer [Component id = ad4, page = listview.ListViewPage, path = 7:list-container:list:ad4.CustomListItem, isVisible = true, isVersioned = false]] at wicket.MarkupFragmentFinder.find(MarkupFragmentFinder.java:110) at wicket.Component.renderComponent(Component.java:1593) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:691) at wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:588) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:476) at wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:102) I looked through AbstractTree.updateTree code, but didn't find any special magic to insert new rows.. Please help! I found that special magic and there is A LOT of it :-((( First, it's in TreeItem.onRender - old item renders itself and all new items below it. And second, there's a hack in the Markup class: // TODO Post 1.2: A component path e.g. panel:label does not match 1:1 // with the markup in case of ListView, where the path contains a number // for each list item. E.g. list:0:label. What we currently do is simply // remove the number from the path and hope that no user uses an integer // for a component id. This is a hack only. A much better solution would // delegate to the various components recursivly to search within there // realm only for the components markup. ListItems could then simply // do nothing and delegate to their parents. Arrg :((( I'll try to use decimal id's... Wicket is not so perfect as it looks at the first glance :( -- Andrew Klochkov - 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
Re: [Wicket-user] wicket-example/pub/goChinese is broken - Home_zh_CN.html
How about: ?xml encoding=UTF-8? html xmlns:wicket=http://wicket.apache.org/; head titleWicket Examples - pub/title meta http-equiv=Content-Type content=text/html; charset=UTF-8/ That way, you can put 您的最佳选择 directly in your template. Java 5 supports xml properties file with different encodings. Unfortunately, we can't support this with this version of Wicket, as that would break backwards compat. However, if someone is willing to deliver a patch to load xml properties files like Java 5 does, we can support that so that you can maintain messages directly rather than having to use escaped code. Eelco On 4/11/07, Tony Fu [EMAIL PROTECTED] wrote: The header of Home_zh_CN.html should be: html xmlns:wicket=http://wicket.sourceforge.net/; head titleWicket Examples - pub/title meta http-equiv=Content-Type content=text/html; charset=gb2312/ link rel=stylesheet type=text/css href=style.css/ /head instead of ?xml encoding=GBK? !--It is useful for input the right info when the server run on the linux-- html xmlns:wicket=http://wicket.sourceforge.net/; head titleWicket Examples - pub/title meta http-equiv=Content-Type content=text/html; charset=gb2312/ link rel=stylesheet type=text/css href=style.css/ /head - 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
Re: [Wicket-user] Form macro-component
I worked out this easier and cleanse way to wrap the model of the outer component: public DateComponent(String id) { this(id, null); } public DateComponent(String id, IModel model) { super(id, model); } public IModel getModel() { return new CompoundPropertyModel(super.getModel()); } protected IModel initModel() { return new PropertyModel(getParent().getModel(), getId()); } Namely, initModel and getModel work in tandem. If model is initialized with null, initModel() will lazy-initialize it as the parent's model evaluated in the DateComponent id. In any case (model null initialized or not) getModel will wrap the resultant model into a CompoundPropertyModel. So inside DateComponent you could create, say, a year field simply as new TextField(year). Cheers, Carlos On 4/10/07, Igor Vaynberg [EMAIL PROTECTED] wrote: looks good without actually running the code :) -igor On 4/9/07, Carlos Pita [EMAIL PROTECTED] wrote: Well, here is what I've done based on your suggestions. Please review this and tell me if it can be improved, if you are so kind: 1) An inherited model that looks into the passed model. If it's not null it returns a propertymodel for the component id a la CompoundPropertyModel. If it's null it returns a propertymodel for the parent's model with the full path of the component. So inside my panel I can add form components as add(new TextField(month, Integer.class)) independently of the model passed (null or a real date) private class MyModel extends Model implements IComponentInheritedModel { public IWrapModel wrapOnInheritance(Component component) { final IModel wrappedModel; if (model == null) { IModel parentModel = DatePanel.this.getParent().getModel(); String path = DatePanel.this.getParent().getId() + . + component.getId(); wrappedModel = new PropertyModel(parentModel, path); } else { wrappedModel = new PropertyModel(model, component.getId()); } return new AbstractWrapModel() { public IModel getWrappedModel() { return wrappedModel; } }; } } 2) To have control on when children are really validated and their models updated: public boolean processChildren() { return false; } 3) A DatePanel validator that first validate its fields (so they are converted too) and finally do global validation (validateDate()). Note that individual validators can do global validation do, depending on whether the validation was ajax-triggered or not, so validateDate() will occur depending on the value of the validateDate flag (true for ajax-validation, false for individual validators during submit validation). Notice that validateOnNullValue() must return true or this validator won't be invoked. add(new AbstractValidator() { protected void onValidate(IValidatable validatable) { validateDate = false; yearField.validate(); monthField.validate (); dayField.validate(); validateDate = true; if (!(yearField.hasErrorMessage() || monthField.hasErrorMessage() || dayField.hasErrorMessage())) { validateDate(); } } public boolean validateOnNullValue() { return true; } }); 4) updateModel. Just delegate to fields. public void updateModel() { dayField.updateModel(); monthField.updateModel(); yearField.updateModel(); } Thank you in advance. Best regards, Carlos - 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
Re: [Wicket-user] Classloader for selectively reload web tier
Up till now my experience with ReloadingWicketServlet has been idyllic. It worked fine for every single change I've done to java sources, property resources and templates, playing at home and working at the office. It's a life-saver (it's giving me at least an extra free hour per day :) ). Thanks Jean Baptiste, great work! Regards, Carlos On 4/8/07, cowwoc [EMAIL PROTECTED] wrote: I'm not sure it's that easy or else they would have done it. In any case you should probably post to their forum instead of here :) Gili Johan Compagner wrote: sun should first improve the method change/delete/rename/add thing that ibm already can do. That shouldn't be to hard because the internal memory of the instance doesn't have to be changed then After that i think what they should try to do is have a depricated class version of something So all instances that are currently in the vm just stay that way and use the old class version only new instances are created with the new class version. This does result in strange problems of course like class cast exceptions and how should an instance of check work then on an old and new instance? johan On 4/6/07, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Seems there might not be a full-proof fix for this problem: http://forum.java.sun.com/thread.jspa?threadID=572396tstart=0 http://forum.java.sun.com/thread.jspa?threadID=572396tstart=0 But at least they're working on it, and any improvement would be welcome imo. 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 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
I started this thread because I wish Wicket would support the following feature. I wish that each form or form element element had a default renderer and would render itself without needing to be embedded in some other html file. If layout is a problem - find a solution. I wish that Wicket had a higher level of componentry which could be directed purely and simply by/in Java code alone. This was a how-to question - but perhaps now it is a feature request. Phil - 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
i thought you were using Click? anyways, what you want is possible, like ive mentioned, but is not the primary focus of wicket. wicket is about separation of concerns. that means letting the designers design the markup with all its pretty css and images, rather then making developers try to reproduce that markup via layout managers ala swing. what you want is not our priority so it will probably never make it into core project unless one of core developers writes it up and maintains it. like i said take a look at bean panels, what you want is pretty simple to achieve with a bit of work. let me give you a short example. class textfieldpanel extends panel { public textfieldpanel(string id, imodel model) { super(id); add(new textfield(tf, model)); } } wicket:panelinput wicket:id=tf type=text//wicket:panel class checkboxpanel extends panel { public checkboxpanel(string id, imodel model) { super(id); add(new checkbox(cb, model)); } } wicket:panelinput wicket:id=cb type=checkbox//wicket:panel now in your page Form form=new Form(form); add(form); RepeatingView items=new RepeatingView(items); form.add(items); items.add(new textfieldpanel(items.newchildid(), ..)); items.add(new checkboxpanel(items.newchildid(), ..)); and in markup form wicket:id=formspan wicket:id=items/span/form that is pretty close to what you want. you can then start adding labels to your checkbox/textfield panels to add labels, etc -igor On 4/11/07, Philip Weaver [EMAIL PROTECTED] wrote: I started this thread because I wish Wicket would support the following feature. I wish that each form or form element element had a default renderer and would render itself without needing to be embedded in some other html file. If layout is a problem - find a solution. I wish that Wicket had a higher level of componentry which could be directed purely and simply by/in Java code alone. This was a how-to question - but perhaps now it is a feature request. Phil - 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
Thanks, Igor, for taking the effort to answer my question. I so understand that one of the core vision statements is separation of concerns. I am evaluating Click but haven't ruled out Wicket - just that some aspects of Click seem less cumbersome because separation of concerns is not a priority there - Click seems to suit what I need better than what Eelco had suggested much earier: Echo. Thanks for your time, Phil On 4/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i thought you were using Click? anyways, what you want is possible, like ive mentioned, but is not the primary focus of wicket. wicket is about separation of concerns. that means letting the designers design the markup with all its pretty css and images, rather then making developers try to reproduce that markup via layout managers ala swing. what you want is not our priority so it will probably never make it into core project unless one of core developers writes it up and maintains it. like i said take a look at bean panels, what you want is pretty simple to achieve with a bit of work. let me give you a short example. class textfieldpanel extends panel { public textfieldpanel(string id, imodel model) { super(id); add(new textfield(tf, model)); } } wicket:panelinput wicket:id=tf type=text//wicket:panel class checkboxpanel extends panel { public checkboxpanel(string id, imodel model) { super(id); add(new checkbox(cb, model)); } } wicket:panelinput wicket:id=cb type=checkbox//wicket:panel now in your page Form form=new Form(form); add(form); RepeatingView items=new RepeatingView(items); form.add(items); items.add(new textfieldpanel(items.newchildid(), ..)); items.add(new checkboxpanel(items.newchildid(), ..)); and in markup form wicket:id=formspan wicket:id=items/span/form that is pretty close to what you want. you can then start adding labels to your checkbox/textfield panels to add labels, etc -igor On 4/11/07, Philip Weaver [EMAIL PROTECTED] wrote: I started this thread because I wish Wicket would support the following feature. I wish that each form or form element element had a default renderer and would render itself without needing to be embedded in some other html file. If layout is a problem - find a solution. I wish that Wicket had a higher level of componentry which could be directed purely and simply by/in Java code alone. This was a how-to question - but perhaps now it is a feature request. Phil - 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
Inlined... On 4/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I wish that each form or form element element had a default renderer and would render itself without needing to be embedded in some other html file. Yep, gotcha. If layout is a problem - find a solution. It isn't a problem. It's a core assumption that Wicket works on markup: 'enabling component-oriented, programmatic manipulation of markup'. I understand. I also understand Wicket's core vision includes separation of concerns. Also, since you think Click answers what you are looking for, I wonder how this is so different? Java: Form form = new Form(); textField = new TextField(search); form.add(textField); Select typeSelect = new Select(type); typeSelect.addAll(new String[] {ID, Name, Age}); typeSelect.setValue(Name); form.add(typeSelect); Html: $form.startTag() bCustomer/b ${form.fields.search}${form.fields.type}${form.fields.go} $form.endTag() I'll assume that the $ signs are Velocity tags and you are refering to Click. Yes, Click does integrate Velocity tags - but for the most part you won't have to use them. If you create a form for example in Click, it renders the entire form and its components for you and layout is customizable via a set of flags and via CSS. Everything is coded in Java, has default renders, and is customizable. Besides whether that's better than how Wicket does it or not, you really are referring to those components in HTML right? To some extent perhaps. But the title of this thread is Creating Entire Forms in Java Code Only? Click does create and render all forms in code (without Velocity) using default rendering which is customizable. Perhaps Click just needs more configurability is its layout component for general use. Click also renders table automatically. Click also supports Panels. I recommended Echo (and GWT if you like) as there you work with layout managers rather than with markup. I thought that's what you wanted being a Swing guy. So I was surpised to learn you thought about Click now (though there's nothing wrong with that of course). I don't mind working with HTML markup. But object-oriented programming languages like Java can allow us to abstract away from the tedium and cumbersomeness of rendering html; e.g. encapsulation. If you mean that you prefer components to directly spit out HTML, that's very easy with Wicket, just like: protected void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { getResponse().write(foobarudududud/bar/foo); } etc. But like we stated before, this wouldn't be the recommended way of working with Wicket. More of a break out option and optimization. I understand. Thanks. One of Rail's mantra is convention over configuration. Being able to render default HTML for common types of controls seems conventional - it seems less cumbersome. I am not disrespecting Wicket - I appreciate Wicket but I wish that it were less cumbersome to use for UI programmers. 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Creating Entire Forms in Java Code Only?
On 4/11/07, Philip Weaver [EMAIL PROTECTED] wrote: I understand. Thanks. One of Rail's mantra is convention over configuration. Being able to render default HTML for common types of controls seems conventional - it seems less cumbersome. I am not disrespecting Wicket - I appreciate Wicket but I wish that it were less cumbersome to use for UI programmers. tbh, i actually tried to do this in an application i was building using wicket2.0. it worked great for prototyping things, but it did produce forms that werent very usable because the layout was too pragmatic. sometimes you want two text components to share a label, sometimes not. sometimes you want two components to be in the same row, sometimes not. in the end i always ended up going through and redoing my bean panel with regular markup and form components because the users complained. it wouldve actually saved me time doing it the way its usually done the first time, but i wanted to experiment with bean panels for myself :) just my experience. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/wicket-user