Problems RestartResponseAtInterceptPageException and Apache ProxyPass
Hi Folks, iam actually using a simple login strategy: getSecuritySettings().setAuthorizationStrategy(new IAuthorizationStrategy() { @Override public T extends Component boolean isInstantiationAuthorized( ClassT componentClass) { if (IAuthenticatedWebPage.class.isAssignableFrom(componentClass)) { // Is user signed in? if (MySession.get().isLoggedin()) { // okay to proceed return true; } // Force sign in throw new RestartResponseAtInterceptPageException(Login.class); } return true; } @Override public boolean isActionAuthorized(Component component, Action action) { // TODO Auto-generated method stub return true; } }); The Tomcat-Webserver is placed behind an Apache with IfModule mod_rewrite.c RewriteEngine On location /customer-A/matty-GUI ProxyPass http://matty.domain.de:8088/gui /location /IfModule So if i browse to https://213.95.x.x:8100/customer-A/matty-GUI/ i will be forwarded to http://matty.domain.de:8088/gui , the AuthorizationStrategy checks if iam logged in, and if not the Login-Page will be shown. But than my URL in the browser adresse bar has been changed to http://matty.domain.de:8088/gui/login ... so the real URL is not more hidden by the ProxyPass... if i deactivate the AuthorizationStrategy in my Application anything works fine ... than the url i see is https://213.95.x.x:8100/customer-A/matty-GUI/... I think, in RestartResponseAtInterceptPageException anywhere happens a full redirect by path .. not only with / ... Any hints for fixing this? thanks a log! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314607.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems RestartResponseAtInterceptPageException and Apache ProxyPass
Iam sorry, after posting i found https://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-Whythisdoesn%2527talwayswork so i added ProxyPassReverse http://matty.domain.de:8088/gui ProxyPassReverseCookiePath /customer-A/matty-GUI / to apache-config and it works :) But now i have the Problem/issue that the jsessionid is allways appended to the url... https://213.95.x.x:8100/customer-A/matty-gui/config/packages;jsessionid=9690AA2D86E57B2033B640F3855E73CE Iam using the wicketstuff-annotation plugin. Any hints? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-RestartResponseAtInterceptPageException-and-Apache-ProxyPass-tp2314607p2314617.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with AjaxFallbackDefaultDataTable in an AjaxLazyLoadPanel
Try to move your table to separate Panel. This will work public Component getLazyLoadComponent(String id) { return new YourPanel(id); } public YourPanel(String id) { super(id); ListIColumnUser columns = new ArrayListIColumnUser(); columns.add(new PropertyColumnUser(new ModelString(First Name), firstName, firstName)); columns.add(new PropertyColumnUser(new ModelString(Last Name), lastName, lastName)); AjaxFallbackDefaultDataTableUser result = new AjaxFallbackDefaultDataTableUser(table, columns, new SortableUserDataProvider(), 25) { }; result.setOutputMarkupId(true); result.setOutputMarkupPlaceholderTag(true); add(result); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Problems-with-AjaxFallbackDefaultDataTable-in-an-AjaxLazyLoadPanel-tp2314284p2314618.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: .properties in conjunction with ListView
Yes. I'd like to replace the default validator messages (such as sdf is not a valid Double) with my own messages, but only in this specific application, so changing the defaults is not an option. Furthermore, I'd like to change the names of the textfields once to be able to use il8n, since the names of the fields in each column are always identical. A little example for explanation: Name Age abc 123 def 456 ... ... Would it be possible to take the column name (in this example, Name and Age respectively for the english version) as output value once a validation fails? Let's say Name is required, and changing abc to will throw an error - is there a way to put Name has to be filled out as the message? Best Michael -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/properties-in-conjunction-with-ListView-tp2313164p2314709.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
A beginner's tutorial
Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar u...@itu.edu.tr [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
any good ideas about how to add a confirm check before leaving a page?
Hi, I'm wondering if anyone has had to tackle this before and might have any advice. I'm working on an application that needs to do a confirm before leaving a page if the use clicked on another link in the application. Does anyone have any ideas about how this could be done? Thank you very much. Joe
Re: any good ideas about how to add a confirm check before leaving a page?
Hi, Do not forget to use google before posting the question :) http://wicketbyexample.com/wicket-ajax-confirmation-modal-window/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/any-good-ideas-about-how-to-add-a-confirm-check-before-leaving-a-page-tp2314872p2314880.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: any good ideas about how to add a confirm check before leaving a page?
Hi Joe, take a look at the ModalWindow component, it require the described confirmation to exit the current page. As I remember, this is implemented with javascript on the modal.js On Thu, Aug 5, 2010 at 10:36 AM, Joe Hudson joe.hud...@clear2pay.comwrote: Hi, I'm wondering if anyone has had to tackle this before and might have any advice. I'm working on an application that needs to do a confirm before leaving a page if the use clicked on another link in the application. Does anyone have any ideas about how this could be done? Thank you very much. Joe -- Pedro Henrique Oliveira dos Santos
Re: Model Is Not being Refreshed
Hi Thanks for the time guys. I built a toy app to simulate the issue. I found that, I was using two CMP's. One at the top level ie the search form. THen at the detail level I had another CMP wit the identical model. So when I cancel out of details and clicked new, I said...this.setModelObject(new Instance) this only affected the Search or the top level model and not the details and hencethe details rendered with the old data. Thank you all for the time Reg Niv On Wed, Aug 4, 2010 at 6:01 PM, Nivedan Nadaraj shravann...@gmail.comwrote: Hi, Re-attached the file as a .txt file. My apologies. I will read up again on the link for Models and re-visit it. . Thanks for the time Niv On Wed, Aug 4, 2010 at 5:43 PM, Nivedan Nadaraj shravann...@gmail.comwrote: Hi I did read the link and from which i went about modifying the Model. I have limited usage of generics in the code. Would be great to utilise it the way it is supposed to be. I am using 1.4.x version of wicket. Did u want me to send you the code to your email id if the attachment are not good? Thanks Niv On Wed, Aug 4, 2010 at 5:21 PM, avrahamr avrah...@gmail.com wrote: I think attachments are not good in the list, so we didn't get your code. I'm not following the way you are mixing Model with the Object and I recommend reading: https://cwiki.apache.org/WICKET/working-with-wicket-models.html The StudyModel should be something like this: public class StudyModel implements IModel { private Study study; public Object getObject() { return study; } public void setObject(Object object) { this.study = (Study)study; } ... But if that's the case, I don't see a reason not to use the concrete Model class: new Model(study) Also, I see from your examples you are using Wicket 1.3.x, is that right? With Wicket 1.4.x and generics it all becomes much more clear. On Wed, Aug 4, 2010 at 11:38 AM, nivs [via Apache Wicket] ml-node+2313107-368287748-293...@n4.nabble.comml-node%2b2313107-368287748-293...@n4.nabble.com ml-node%2b2313107-368287748-293...@n4.nabble.comml-node%252b2313107-368287748-293...@n4.nabble.com wrote: After a long battle..i have progressed an inch forward! The StudyModel that implements IModel seemed to have the problem. I did not set the object in setObject...after modifying it in the following way..the Refresh button works. public Object getObject() { return this; } public void setObject(Object object) { StudyModel model = (StudyModel)object; this.studyVO = model.getStudyVO(); } But I am not there as yet...now when I lookup and then click on an item from the list, the form again is empty..meaning the model is not being updated. So basically. 1.Search Panel - Search items 2.SearchResults - onClick 3.Details- displayed correctly..., now I click cancel, tht hides the details panel 4. I click on New/Refresh button on Search Panel 5. A new details page is loaded - the effect of modifying setObject() in the Model 6.I click on cancel on details panel 7. And perform steps 1 to 2 8. An empty details panel is displayed... If i can get a single thread of clue..will fix this and cement it Obviously I dont have a grip over Models.. Cheers niv On Wed, Aug 4, 2010 at 11:12 AM, Nivedan Nadaraj [hidden email] http://user/SendEmail.jtp?type=nodenode=2313107i=0wrote: Hi After I added setOutputMarkupPlaceHolderTag(true) to the details panel, the Ajax function works and I can see the details panel. (Which I could not earlier) However, the problem still remains as in the model has not been updated and still refers to the stale/old one. @avrahmr I used the setModel but I get a wicket runtime exception. Thanks for your thoughts. Niv On Wed, Aug 4, 2010 at 10:25 AM, Nivedan Nadaraj [hidden email] http://user/SendEmail.jtp?type=nodenode=2313107i=1wrote: Hi, I have attached the code as a text file. I have removed lines that don't really make any contribution to the problem at hand after carefully examining it. Appreciate your time if you could see any issues please let me know. Basically the code has the Form objects I used, and the different panels involved with it. Many thanks Niv On Tue, Aug 3, 2010 at 10:30 PM, Nivedan Nadaraj [hidden email] http://user/SendEmail.jtp?type=nodenode=2313107i=2wrote: Avraham and Matt, Thanks for the points. I will have a look at it tomorrow and post the code if I still haven't resolved. I don't have the code on me at the moment. Reg Niv On Tue, Aug 3, 2010 at 9:41 PM, mwilber [hidden email] http://user/SendEmail.jtp?type=nodenode=2313107i=3 wrote: Again without seeing more of the code some of this is guessing. If the component that you are trying to
Re: A beginner's tutorial
Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314919.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: A beginner's tutorial
Hi! Also use of compoundpropertymodel is confusing and misleading in a professional sense. In my opinnion it adds too much dependencies and it is not so transparent. Instead you should promote usage of bindgens, for example. http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ ** Martin my-2-cents 2010/8/5 jcgarciam jcgarc...@gmail.com: Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314919.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
I would not promote this in any introductory material. Sometimes you have to walk before you can run. On Thu, Aug 5, 2010 at 10:27 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Also use of compoundpropertymodel is confusing and misleading in a professional sense. In my opinnion it adds too much dependencies and it is not so transparent. Instead you should promote usage of bindgens, for example. http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ ** Martin my-2-cents 2010/8/5 jcgarciam jcgarc...@gmail.com: Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com ml-node%2b2314844-1121304651-229...@n4.nabble.comml-node%252b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ= . -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314919.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
On 08/05/2010 05:13 PM, jcgarciam wrote: Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. Thank you very much. I know the discussion is very shallow at places. Models is an obvious example of this. On the other hand, my aim was to focus on the code and explain only the basic issues. Maybe I can give pointers to the reference guide on the Wicket web page for a more detailed explanation. -- htu On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=. -- H. Turgut Uyar u...@itu.edu.tr [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
I agree the 'model' is a very powerful concept that needs to be explained properly... However drawing on my own early experiences with with java frameworks I can say that the reasoning for why model's are valuable is difficult to understand until the principals of request lifecycle have been fully explained. The point of a model is to express a dynamic value that is is dependent on the current state of several variables than can change during the course of a single or multiple requests. In the early stages of learning any web front end technology the 'lifecycle' concept is a new one. jcgarciam wrote: Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ=.
Re: A beginner's tutorial
On 08/05/2010 05:41 PM, James Carman wrote: I would not promote this in any introductory material. Sometimes you have to walk before you can run. On Thu, Aug 5, 2010 at 10:27 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! Also use of compoundpropertymodel is confusing and misleading in a professional sense. In my opinnion it adds too much dependencies and it is not so transparent. Instead you should promote usage of bindgens, for example. http://wicketinaction.com/2009/11/removing-fragile-string-expressions-from-wicket-code/ It seems to me that I have to explain a lot of complicated things to explain this to the students. They are 3rd year students who have taken only one OO course, and that's in C++. Thank you both for your concern and help -- htu ** Martin my-2-cents 2010/8/5 jcgarciam jcgarc...@gmail.com: Hi, i did a quick walk thru the tutorial and something i think is missing and could help is to explain the concepts of Model and the difference between Static Model and Dynamic Model. I know it may complicate things for students and new comers to wicket programming but i think it worth, (using Page 6 (adding the Datetime to the homepage) as example its good enought to understand it. Hope it helps. On Thu, Aug 5, 2010 at 10:15 AM, H. Turgut Uyar [via Apache Wicket] ml-node+2314844-1121304651-229...@n4.nabble.comml-node%2b2314844-1121304651-229...@n4.nabble.com ml-node%2b2314844-1121304651-229...@n4.nabble.comml-node%252b2314844-1121304651-229...@n4.nabble.com wrote: Hi, I am a lecturer at the Istanbul Technical University, Computer Engineering Department. One of the courses I teach is Database Management Systems where the students develop a web application using databases as their term project. Until a few years ago we used PHP but then switched to Java in order to be consistent with the course material. Last year we have gone with Wicket as our framework but the students had trouble with finding their way in the documentation. Considering that this is the first course they take after an introductory object-oriented programming course, this year I've decided to prepare a simple tutorial that would teach them how to get started on such a project. The result is on the address: http://www3.itu.edu.tr/~uyar/wicket-tutorial/ There is also a PDF version: http://www3.itu.edu.tr/~uyar/wicket-tutorial/wicket-tutorial.pdf The problem is, I'm a novice Wicket programmer. I would really appreciate all kinds of feedback, especially about the mistakes I might have made in the text or the code. Thanks -- H. Turgut Uyar [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=0 [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=1 For additional commands, e-mail: [hidden email] http://user/SendEmail.jtp?type=nodenode=2314844i=2 -- View message @ http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314844.html To unsubscribe from Apache Wicket, click here http://apache-wicket.1842946.n4.nabble.com/subscriptions/Unsubscribe.jtp?code=amNnYXJjaWFtQGdtYWlsLmNvbXwxODQyOTQ2fDExOTE5MDc4OTQ= . -- Sincerely, JC Work smarter, not harder!. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/A-beginner-s-tutorial-tp2314844p2314919.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- H. Turgut Uyar u...@itu.edu.tr [GPG KeyID: 0xEAF45FB8] http://www3.itu.edu.tr/~uyar/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
On Thu, Aug 5, 2010 at 10:54 AM, H. Turgut Uyar u...@itu.edu.tr wrote: It seems to me that I have to explain a lot of complicated things to explain this to the students. They are 3rd year students who have taken only one OO course, and that's in C++. Thank you both for your concern and help Definitely! I would not try explaining all of that stuff to 3rd year students. You can get a good understanding of Wicket without it. Now, don't get me wrong, I think it's a cool idea, but I think it might be a bit much to throw at a beginner. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: .properties in conjunction with ListView
you can override the validator message in the page's property files. validator messages are usually named after the class of the validator, so to override the required message you would put RequiredValidator=${label} is broken in your mypage.properties. for the column headings, the columns take an imodel for the label, give it a resourcemodel. -igor On Thu, Aug 5, 2010 at 4:11 AM, Michael Strecker michael.strec...@travelviva.de wrote: Yes. I'd like to replace the default validator messages (such as sdf is not a valid Double) with my own messages, but only in this specific application, so changing the defaults is not an option. Furthermore, I'd like to change the names of the textfields once to be able to use il8n, since the names of the fields in each column are always identical. A little example for explanation: Name Age abc 123 def 456 ... ... Would it be possible to take the column name (in this example, Name and Age respectively for the english version) as output value once a validation fails? Let's say Name is required, and changing abc to will throw an error - is there a way to put Name has to be filled out as the message? Best Michael -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/properties-in-conjunction-with-ListView-tp2313164p2314709.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
As a beginer myself...I feel the language like java plays a lot. Learning the generics would be one aspect and a must. Next to understand a simple request response usecase. Usage of each, if not all controls. How to use them and get it working as is. How would i be able to generalise usage of such controls, can we build a library of such reusable components that this project can use. By now, I would have had a good understanding of the inner workings if not too deep but to the extent one needs to appreciate it and then build custom components. Next I feel I would use those components where necesary to build the project. What patterns can be used? These are questions I still ask... If it helps..my 1 cent:) Niv On Thu, Aug 5, 2010 at 11:06 PM, James Carman ja...@carmanconsulting.comwrote: On Thu, Aug 5, 2010 at 10:54 AM, H. Turgut Uyar u...@itu.edu.tr wrote: It seems to me that I have to explain a lot of complicated things to explain this to the students. They are 3rd year students who have taken only one OO course, and that's in C++. Thank you both for your concern and help Definitely! I would not try explaining all of that stuff to 3rd year students. You can get a good understanding of Wicket without it. Now, don't get me wrong, I think it's a cool idea, but I think it might be a bit much to throw at a beginner. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
On 08/05/2010 06:18 PM, Nivedan Nadaraj wrote: As a beginer myself...I feel the language like java plays a lot. Learning the generics would be one aspect and a must. Next to understand a simple request response usecase. Usage of each, if not all controls. How to use them and get it working as is. I'm planning to include a few more topics like some basic components (selection boxes, radio boxes etc.) and sessions. Other than that, I would like students to figure out some of the stuff themselves. Of course, depending on our experience next semester, I might reconsider this. Since it's a database course I'm also planning to show examples of using other backends like Berkeley DB, db4o, and Netmind Persistence. How would i be able to generalise usage of such controls, can we build a library of such reusable components that this project can use. By now, I would have had a good understanding of the inner workings if not too deep but to the extent one needs to appreciate it and then build custom components. Next I feel I would use those components where necesary to build the project. What patterns can be used? These are questions I still ask... If it helps..my 1 cent:) Niv Thank you very much -- htu On Thu, Aug 5, 2010 at 11:06 PM, James Carman ja...@carmanconsulting.comwrote: On Thu, Aug 5, 2010 at 10:54 AM, H. Turgut Uyar u...@itu.edu.tr wrote: It seems to me that I have to explain a lot of complicated things to explain this to the students. They are 3rd year students who have taken only one OO course, and that's in C++. Thank you both for your concern and help Definitely! I would not try explaining all of that stuff to 3rd year students. You can get a good understanding of Wicket without it. Now, don't get me wrong, I think it's a cool idea, but I think it might be a bit much to throw at a beginner. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
On 08/05/10 17:36, H. Turgut Uyar wrote: Since it's a database course I'm also planning to show examples of using other backends like Berkeley DB, db4o, and Netmind Persistence. It would be very interesting if you make some of the documentation and code for this public. There are not many examples of backing Wicket with a non-relational data store, and even if it's principally straightforward, examples are always nice. Otherwise, thanks for publishing this tutorial, I like it and I think it's useful. Thomas -- --- Thomas Kapplerthomas.kapp...@isb-sib.ch Swiss Institute of Bioinformatics Tel: +41 22 379 51 89 CMU, rue Michel Servet 1 1211 Geneve 4 Switzerland http://www.uniprot.org --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: A beginner's tutorial
On 08/05/2010 06:52 PM, Thomas Kappler wrote: On 08/05/10 17:36, H. Turgut Uyar wrote: Since it's a database course I'm also planning to show examples of using other backends like Berkeley DB, db4o, and Netmind Persistence. It would be very interesting if you make some of the documentation and code for this public. There are not many examples of backing Wicket with a non-relational data store, and even if it's principally straightforward, examples are always nice. The code was already at a public repository: http://mercurial.intuxication.org/hg/wicket-tutorial Now I've also added the DocBook files there. Otherwise, thanks for publishing this tutorial, I like it and I think it's useful. Thanks -- htu Thomas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
BIRT Wicket Integration
I have a wicket web app that displays a BIRT report based mostly on the information found here: http://java.dzone.com/articles/integrating-birt-your-wicket http://java.dzone.com/articles/integrating-birt-your-wicket This works OK, but it sends the report to the OutputStream and takes the user away from the web app. I would prefer to have the BIRT report display in a div or an iframe, but I am having trouble making it happen in wicket. Has anyone here done something like this? Essentially I have a page with a number of report parameters on a wicket page and would like the report to display below these parameters. Then the user would be able to just modify the parameters that are still visible and re-run the report. Any help would be appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p2315184.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BIRT Wicket Integration
Sylvia, Maybe this link might be of some help: just combine what you have with the approach described here... https://cwiki.apache.org/confluence/display/WICKET/Displaying+content++(e.g.+PDF,+Excel,+Word)+in+an+IFRAME Best, Ernesto On Thu, Aug 5, 2010 at 7:25 PM, sylvia sylvia.fronc...@gmail.com wrote: I have a wicket web app that displays a BIRT report based mostly on the information found here: http://java.dzone.com/articles/integrating-birt-your-wicket http://java.dzone.com/articles/integrating-birt-your-wicket This works OK, but it sends the report to the OutputStream and takes the user away from the web app. I would prefer to have the BIRT report display in a div or an iframe, but I am having trouble making it happen in wicket. Has anyone here done something like this? Essentially I have a page with a number of report parameters on a wicket page and would like the report to display below these parameters. Then the user would be able to just modify the parameters that are still visible and re-run the report. Any help would be appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p2315184.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: refreshing fragment
I have the same problem with refreshing fragments via ajax. The problem does not exist in 1.4.0 and earlier. It started in 1.4.1+, I believe. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/refreshing-fragment-tp2286189p2315381.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BIRT Wicket Integration
Thanks Ernesto, I did see your article. I was unable to figure out how to get the two options to work together. In the solution I currently have, it seems to hijack the outputstream and doesn't give you a way to re-direct it to your DisplayResource. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p2315410.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: KonaKart shopping cart integration
Another good options is http://www.broadleafcommerce.org. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Proposal-HierarchicConverterLocator-an-IConverterLocator-that-adheres-to-the-class-hierarchy-tp2311126p2315426.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BIRT Wicket Integration
Sylvia, Isn't it enough to return PDF bytes on getData bellow? return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { // return PDF bytes here... e.g generate the PDF into an output ByteArrayOutputStream and the call // return out.toByteArray(); } }; Best, Ernesto On Thu, Aug 5, 2010 at 8:19 PM, sylvia sylvia.fronc...@gmail.com wrote: Thanks Ernesto, I did see your article. I was unable to figure out how to get the two options to work together. In the solution I currently have, it seems to hijack the outputstream and doesn't give you a way to re-direct it to your DisplayResource. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p2315410.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: refreshing fragment
jsinai wrote: I have the same problem with refreshing fragments via ajax. The problem does not exist in 1.4.0 and earlier. It started in 1.4.1+, I believe. I have downloaded the source for 1.4.9 and made the change below in AjaxRequestTarget.java, which fixed the problem for me. The change is commenting out the check if (!containsAncestorFor(component)). I verified that this change was made between 1.4.0 and 1.4.1, although the release notes make no mention of it. We make heavy use of fragments, so this is a big problem for us. private void respondComponents(WebResponse response) { // TODO: We might need to call prepareRender on all components upfront // process component markup IteratorMap.EntryString, Component it = markupIdToComponent.entrySet().iterator(); while (it.hasNext()) { final Map.EntryString, Component entry = it.next(); final Component component = entry.getValue(); final String markupId = entry.getKey(); // if (!containsAncestorFor(component)) // { respondComponent(response, markupId, component); // } } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/refreshing-fragment-tp2286189p2315451.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: BIRT Wicket Integration
I can't get the outputstream from the BIRT code to give to the getBytes method. Thanks though. I will see if I can render the BIRT report a different way. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/BIRT-Wicket-Integration-tp2315184p2315458.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: refreshing fragment
I have filed https://issues.apache.org/jira/browse/WICKET-2973 with a patch, which fixes the issue for me. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/refreshing-fragment-tp2286189p2315477.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Add/Remove Dynamic FormComponent In RepeatingView
Hi all, For the moment I can add/remove a form component in RepeatingView on the fly, but every time I add or remove a form component, the model values of previous form component are lost. How can I keep them in RepeatingView? Thanks, Duy
Re: Add/Remove Dynamic FormComponent In RepeatingView
Use a reusemanager that manages the rawinput values. public class FormComponentReuseManager implements Serializable { private final MapObject, MapString, Component idMapRow = new HashMapObject, MapString, Component(); /** * @param S * @param T * @param rowId * @param componentId * @param newComponent * @return FormComponent */ @SuppressWarnings(unchecked) public S, T extends FormComponentS T rememberOrReuse(Object rowId, String componentId, T newComponent) { return (T) rememberOrReuse(rowId, componentId, (Component) newComponent); } /** * @param T * @param rowId * @param newComponent * @return FormComponent */ public T extends Component T rememberOrReuse(Object rowId, T newComponent) { return rememberOrReuse(rowId, newComponent.getId(), newComponent); } /** * @param T * @param rowId * @param componentId * @param newComponent * @return FormComponent */ public T extends Component T rememberOrReuse(Object rowId, String componentId, T newComponent) { MapString, Component rowMap = createOrReuse(rowId); @SuppressWarnings(unchecked) T existingComponent = (T) rowMap.get(componentId); if (newComponent instanceof FormComponent) { // Never reuse the component itself, just reuse the rowMap.put(componentId, newComponent); if (existingComponent != null) { WicketUtils.fakeRawInput((FormComponent?)newComponent, (FormComponent?)existingComponent); // Transfer also the error messages for (FeedbackMessage feedbackMessage : Session.get().getFeedbackMessages().messages(new ComponentFeedbackMessageFilter(existingComponent))) { WicketUtils.replaceReporter(feedbackMessage, (FormComponent?) newComponent); } } return newComponent; } // else if (existingComponent == null) { rowMap.put(componentId, newComponent); return newComponent; } // else return existingComponent; } /** * @param rowId * @return MapString, FormComponent */ private MapString, Component createOrReuse(Object rowId) { MapString, Component rowMap = idMapRow.get(rowId); if ((rowMap == null) (rowId instanceof AbstractDTO) (((AbstractDTO) rowId).getId() != null)) { rowId = ((AbstractDTO) rowId).getId(); rowMap = idMapRow.get(rowId); } if (rowMap == null) { rowMap = new HashMapString, Component(); idMapRow.put(rowId, rowMap); } return rowMap; } /** * */ public void clear() { idMapRow.clear(); } /** * @param S * @param T * @param key * @param formComponent * @param behaviors * @return T */ public S, T extends FormComponentS T rememberOrReuseAndProvideFeedback( Object key, T formComponent, IBehavior... behaviors) { return rememberOrReuseAndProvideFeedback(key, formComponent.getId(), formComponent, behaviors); } /** * @param S * @param T * @param key * @param id * @param formComponent * @param behaviors * @return T */ public S, T extends FormComponentS T rememberOrReuseAndProvideFeedback( Object key, String id, T formComponent, IBehavior... behaviors) { formComponent.add(behaviors); formComponent.setOutputMarkupId(true); return rememberOrReuse(key, id, FeedbackStyler.add(formComponent)); } } ** Martin 2010/8/6 Duy Do doquoc...@gmail.com: Hi all, For the moment I can add/remove a form component in RepeatingView on the fly, but every time I add or remove a form component, the model values of previous form component are lost. How can I keep them in RepeatingView? Thanks, Duy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org