Re: Tools for Managing a Wicket Project
it's very strange, because if I hit ctrl+shift+f in some html code with WTP, the source code will be completely unwell formatted. I will try amateras plugin, thank you On Mon, May 18, 2009 at 9:15 PM, John Armstrong wrote: > I always have to do a 'Refresh' when changing the HTML. Its quite painful.. > > I tend to author the bulk of my html in an external editor that is > more suitable to the purpose and fast ( the eclipse validators are > painfully slow, particularly in Javascript intensive pages). Then I > tweak it in Eclipse and hit F5. A Lot. > > John- > > On Mon, May 18, 2009 at 5:03 PM, pete swulius wrote: >> It appears that using external html editors causes sync issues. Apparently >> eclipse doesn't monitor changes to the file system, except to warn you that >> it's out of sync. I would love the know the truth of it as I could very >> well be missing something obvious. In fact, I would bet that I am, >> considering that eclispe is so cool. >> >> I am currently using the Amateras plugin: >> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor. >> I have no problems with it, but I use it only for the syntax coloring >> and >> the occasional content assist. >> >> --pete >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Eduardo S. Nunes http://e-nunes.com.br - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tools for Managing a Wicket Project
I have just one problem with eclipse, I can't use the HTML formatter, that's very sucks. I tried tidy but it didn't work too. What do you use guys to format html code? On Mon, May 18, 2009 at 2:06 PM, Dane Laverty wrote: > I just wanted to thank Jeremy, Scott, and Linda for recommending Effective > Java. I read through the book this week. It's wonderful -- accessible and > useful. Now I'm in the process of refactoring my project to start applying > the concepts. > > On Fri, May 1, 2009 at 8:53 AM, Carlo Camerino wrote: > >> we used to be bugzilla, mediawiki, continuum statck.we moved to Trac. It >> was >> simply amazing with all those plugins. >> >> Code Review WIth Trac Is Good. >> Review Board is also good software but it doesn't suit our programming >> needs. >> >> On Fri, May 1, 2009 at 11:38 PM, Matt Welch wrote: >> >> > >> > Tools that our team is using (after some trial and error): >> > >> > IDE - Eclipse/IDEA >> > Source Control - SVN >> > Build - Maven >> > Local Network Maven Repo - Nexus (after a year trying different ones) >> > Build Server - TeamCity, which absolutely rocks (We actually purchased >> and >> > used Bamboo for 9 months. I can't believe it comes from the same company >> as >> > JIRA. Bamboo was terrible.) >> > Story Mgmt/Defects - Rally (hosted commercial app for agile projects; not >> > bad, but not fantastic either) >> > Code Review - Code Collaborator (again not bad and I'd rather have it >> than >> > nothing at all, but could be better) >> > >> > >> > Our QA team has used various testing tools from expensive commercial >> tools >> > like Mercury (now HP) Quality Center to Selenium. They use Rally for >> defect >> > management. >> > >> > My highest recommendations are for TeamCity, Nexus, and SVN. >> > >> > -Matt >> > >> > >> > -- >> > View this message in context: >> > >> http://www.nabble.com/Tools-for-Managing-a-Wicket-Project-tp23299396p23334970.html >> > Sent from the Wicket - User mailing list archive at Nabble.com. >> > >> > -- Eduardo S. Nunes http://e-nunes.com.br - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket-Guice: Inject into Session
I use Guice to control my servlets, so I can just add objects to session scope. http://code.google.com/p/google-guice/wiki/Servlets On Tue, Apr 28, 2009 at 8:46 AM, Jan Torben Heuer wrote: > Hi, > > I'm a Wicket and Guice beginner. I successfully managed Guice to Inject my > dependency into a WebPage. Can Guice also inject the dependency into an > AuthenticatedWebSession? I'd need a reference to my database in the > #authenticate(String, String) method. > > Jan > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Eduardo S. Nunes http://e-nunes.com.br - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Announce: new JavaScript Inheritance Implementation
I don't know if you understood what I said, but take a look on this example: public class Main { public static class A { public void methodA() { System.out.println("A.methodA()"); } public void methodB() { methodA(); System.out.println("A.methodB()"); } } public static class B extends A { public void methodA() { System.out.println("B.methodA()"); } public void methodB() { System.out.println("B.methodB()"); super.methodB(); } } public static void main(String[] args) { B b = new B(); b.methodB(); } } The output will be: B.methodB() B.methodA() A.methodB() The implementation that I did in the javascript library works exactly like this. On Sat, Apr 25, 2009 at 4:58 AM, Johan Compagner wrote: > Java doesnt work like that > If you are in X and you call super.Y() then you will skipp the Y of > that class but really go to a super impl. > > You seem to have implemented it in js with _super exactly like we do > also in our product Servoy, only there the 'classes' are not js > things but Forms (UI elements) that has a set of js functions > > On 25/04/2009, Eduardo Nunes wrote: >> Yes sure, you can call any method with super, but the syntax is >> "this._super().method()". >> >> If you are in the "someFunction()" method and you call >> "this._super().someFunction()" it will call the next "someFunction" >> method up in the class hierarchy, but if you are in the >> "someFunction()" method and call "this._super().anotherFunction()" it >> will call the latest implementation of "anotherFunction" method. It >> works exactly as Java. >> >> On Fri, Apr 24, 2009 at 8:44 PM, Jeremy Thomerson >> wrote: >>> Does it only apply to attributes then? Can you still call the super's >>> functions? How do I do this? >>> >>> function someFunction() { >>> addMoreFunctionality(); >>> super.someFunction(); >>> } >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> >>> On Fri, Apr 24, 2009 at 6:37 PM, Eduardo Nunes wrote: >>>> uhmm, why do you think it is pretty big? I shouldn't use >>>> super.attribute, you can use this.attribute instead. >>>> For example: >>>> >>>> var Shape = Class.extend({ >>>> height: 0, >>>> width: 0, >>>> init: function(height, width) { >>>> this.height = height; >>>> this.width = width; >>>> }, >>>> info: function() { >>>> alert("I have height = " + this.height + >>>> " and width = " + this.width); >>>> } >>>> }); >>>> >>>> var Rectangle = Shape.extend({ >>>> info: function() { >>>> alert("I'm a rectangle and I have height = " + this.height + " and >>>> width = " + this.width); >>>> // you can't do this.super().height, because this makes the method >>>> accessor counter gets lost. >>>> } >>>> }); >>>> >>>> All attributes from the super class are copied to the new class. >>>> >>>> On Fri, Apr 24, 2009 at 8:07 PM, Jeremy Thomerson >>>> wrote: >>>>> Looks nice, but: >>>>> >>>>>> Limitations >>>>>> >>>>>> It's not possible to access an attribute through the super function. >>>>> >>>>> That seems pretty big. Do you plan on adding that? >>>>> >>>>> -- >>>>> Jeremy Thomerson >>>>> http://www.wickettraining.com >>>>> >>>>> >>>>> >>>>> >>>>> On Fri, Apr 24, 2009 at 5:47 PM, Eduardo Nunes >>>>> wrote: >>>>>> Hello guys, >>>>>> >>>>>> I'm not used to develop in Javascript but, as a fan of programming >>>>>> languages and object-oriented paradigm, my friend Otavio Avila and I >>>>>> decided to
Re: Announce: new JavaScript Inheritance Implementation
Yes, thanks for your feedback. I changed the text a little bit: Limitations: It's not possible to access an attribute through the _super function e.g. this._super().attribute, instead you must use this.attribute. This limitation only applies to attributes. Later I will add a list of all features and leave this "Limitations" section below it. Thanks, Eduardo S. Nunes On Fri, Apr 24, 2009 at 8:59 PM, Jeremy Thomerson wrote: > Oh - perfect. I might suggest adding a little clarification to that > line on your homepage. The line is correct, but a little > clarification might help avoid simple misunderstandings such as this. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Apr 24, 2009 at 6:50 PM, Eduardo Nunes wrote: >> Yes sure, you can call any method with super, but the syntax is >> "this._super().method()". >> >> If you are in the "someFunction()" method and you call >> "this._super().someFunction()" it will call the next "someFunction" >> method up in the class hierarchy, but if you are in the >> "someFunction()" method and call "this._super().anotherFunction()" it >> will call the latest implementation of "anotherFunction" method. It >> works exactly as Java. >> >> On Fri, Apr 24, 2009 at 8:44 PM, Jeremy Thomerson >> wrote: >>> Does it only apply to attributes then? Can you still call the super's >>> functions? How do I do this? >>> >>> function someFunction() { >>> addMoreFunctionality(); >>> super.someFunction(); >>> } >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> >>> On Fri, Apr 24, 2009 at 6:37 PM, Eduardo Nunes wrote: >>>> uhmm, why do you think it is pretty big? I shouldn't use >>>> super.attribute, you can use this.attribute instead. >>>> For example: >>>> >>>> var Shape = Class.extend({ >>>> height: 0, >>>> width: 0, >>>> init: function(height, width) { >>>> this.height = height; >>>> this.width = width; >>>> }, >>>> info: function() { >>>> alert("I have height = " + this.height + >>>> " and width = " + this.width); >>>> } >>>> }); >>>> >>>> var Rectangle = Shape.extend({ >>>> info: function() { >>>> alert("I'm a rectangle and I have height = " + this.height + " and >>>> width = " + this.width); >>>> // you can't do this.super().height, because this makes the method >>>> accessor counter gets lost. >>>> } >>>> }); >>>> >>>> All attributes from the super class are copied to the new class. >>>> >>>> On Fri, Apr 24, 2009 at 8:07 PM, Jeremy Thomerson >>>> wrote: >>>>> Looks nice, but: >>>>> >>>>>> Limitations >>>>>> >>>>>> It's not possible to access an attribute through the super function. >>>>> >>>>> That seems pretty big. Do you plan on adding that? >>>>> >>>>> -- >>>>> Jeremy Thomerson >>>>> http://www.wickettraining.com >>>>> >>>>> >>>>> >>>>> >>>>> On Fri, Apr 24, 2009 at 5:47 PM, Eduardo Nunes wrote: >>>>>> Hello guys, >>>>>> >>>>>> I'm not used to develop in Javascript but, as a fan of programming >>>>>> languages and object-oriented paradigm, my friend Otavio Avila and I >>>>>> decided to develop a kind of inheritance in JavaScript. He is a very >>>>>> experienced javascript developer and html coder, with helped me a lot >>>>>> with my lack of knowledge in these areas. You can check more about it >>>>>> in http://jsii.googlecode.com. The project is licensed in LGPL that >>>>>> enables you to use it in your commercial, or not, applications. >>>>>> I think it could help to make more complex things with javascript. >>>>>> >>>>>> Thanks, >>>>>> Eduardo S. Nunes >>>>>> >>>>>> - >>>>>> To unsubscribe, e-m
Re: Announce: new JavaScript Inheritance Implementation
Yes sure, you can call any method with super, but the syntax is "this._super().method()". If you are in the "someFunction()" method and you call "this._super().someFunction()" it will call the next "someFunction" method up in the class hierarchy, but if you are in the "someFunction()" method and call "this._super().anotherFunction()" it will call the latest implementation of "anotherFunction" method. It works exactly as Java. On Fri, Apr 24, 2009 at 8:44 PM, Jeremy Thomerson wrote: > Does it only apply to attributes then? Can you still call the super's > functions? How do I do this? > > function someFunction() { > addMoreFunctionality(); > super.someFunction(); > } > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Apr 24, 2009 at 6:37 PM, Eduardo Nunes wrote: >> uhmm, why do you think it is pretty big? I shouldn't use >> super.attribute, you can use this.attribute instead. >> For example: >> >> var Shape = Class.extend({ >> height: 0, >> width: 0, >> init: function(height, width) { >> this.height = height; >> this.width = width; >> }, >> info: function() { >> alert("I have height = " + this.height + >> " and width = " + this.width); >> } >> }); >> >> var Rectangle = Shape.extend({ >> info: function() { >> alert("I'm a rectangle and I have height = " + this.height + " and >> width = " + this.width); >> // you can't do this.super().height, because this makes the method >> accessor counter gets lost. >> } >> }); >> >> All attributes from the super class are copied to the new class. >> >> On Fri, Apr 24, 2009 at 8:07 PM, Jeremy Thomerson >> wrote: >>> Looks nice, but: >>> >>>> Limitations >>>> >>>> It's not possible to access an attribute through the super function. >>> >>> That seems pretty big. Do you plan on adding that? >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> >>> On Fri, Apr 24, 2009 at 5:47 PM, Eduardo Nunes wrote: >>>> Hello guys, >>>> >>>> I'm not used to develop in Javascript but, as a fan of programming >>>> languages and object-oriented paradigm, my friend Otavio Avila and I >>>> decided to develop a kind of inheritance in JavaScript. He is a very >>>> experienced javascript developer and html coder, with helped me a lot >>>> with my lack of knowledge in these areas. You can check more about it >>>> in http://jsii.googlecode.com. The project is licensed in LGPL that >>>> enables you to use it in your commercial, or not, applications. >>>> I think it could help to make more complex things with javascript. >>>> >>>> Thanks, >>>> Eduardo S. Nunes >>>> >>>> - >>>> 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 >>> >>> >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Announce: new JavaScript Inheritance Implementation
uhmm, why do you think it is pretty big? I shouldn't use super.attribute, you can use this.attribute instead. For example: var Shape = Class.extend({ height: 0, width: 0, init: function(height, width) { this.height = height; this.width = width; }, info: function() { alert("I have height = " + this.height + " and width = " + this.width); } }); var Rectangle = Shape.extend({ info: function() { alert("I'm a rectangle and I have height = " + this.height + " and width = " + this.width); // you can't do this.super().height, because this makes the method accessor counter gets lost. } }); All attributes from the super class are copied to the new class. On Fri, Apr 24, 2009 at 8:07 PM, Jeremy Thomerson wrote: > Looks nice, but: > >> Limitations >> >> It's not possible to access an attribute through the super function. > > That seems pretty big. Do you plan on adding that? > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > > On Fri, Apr 24, 2009 at 5:47 PM, Eduardo Nunes wrote: >> Hello guys, >> >> I'm not used to develop in Javascript but, as a fan of programming >> languages and object-oriented paradigm, my friend Otavio Avila and I >> decided to develop a kind of inheritance in JavaScript. He is a very >> experienced javascript developer and html coder, with helped me a lot >> with my lack of knowledge in these areas. You can check more about it >> in http://jsii.googlecode.com. The project is licensed in LGPL that >> enables you to use it in your commercial, or not, applications. >> I think it could help to make more complex things with javascript. >> >> Thanks, >> Eduardo S. Nunes >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Announce: new JavaScript Inheritance Implementation
Hello guys, I'm not used to develop in Javascript but, as a fan of programming languages and object-oriented paradigm, my friend Otavio Avila and I decided to develop a kind of inheritance in JavaScript. He is a very experienced javascript developer and html coder, with helped me a lot with my lack of knowledge in these areas. You can check more about it in http://jsii.googlecode.com. The project is licensed in LGPL that enables you to use it in your commercial, or not, applications. I think it could help to make more complex things with javascript. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket-guice problem with injection of a final class
Hello, I tried to @Inject a Class in a home page and I got an exception about the lazy proxy. As I could see in the stack trace, wicket-guice is trying to create a proxy to the attribute that I @Inject and the cglib tries to extend Class class without a success. To avoid this problem I @Inject a provider. Who is in charge of the wicket-guice project? Is there a better way to avoid this problem? Below part of the source code: WicketPage.java public class WicketPage extends TypeLiteral> { } cut here MyOwnGuiceModule.java bind(new WicketPage()).annotatedWith( Names.named("SignOutPage.redirectTo").toInstance( SignOutPage.class); cut here SignOutPage.java @Inject @Named("SignOutPage.redirectTo") private Class redirectTo; cut here Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to deal with session in a modular application?
hehe, after think more about it I found a solution. As I'm using Google Guice, I can create objects in Session scope, so instead of have a wicket session I can have a session object per module, something like SecuritySession and inject this object when I need it, I just need to figure out that I have to clean this object when the data inside of it isn't necessary anymore, in this case it wont be necessary because the session will be invalidated when the user logs off. Thanks anyway, Eduardo S. Nunes On Tue, Apr 21, 2009 at 8:26 PM, Eduardo Nunes wrote: > Hello guys, > > I'm developing a framework to build modular applications with > Guice+Wicket+Hibernate. My main problem now is how I must deal with > objects that must be saved in session in a modular environment. I want > some suggestions or tips to do it without dealing directly with the > httpsession. An example is a security module, it will define an > authentication service, authorization service and a security entity to > store user/password/roles in the database. This module must keep the > current user in the session. I don't want to create a wicket session > class that is directly connected to this module. Do you have some > suggestions? > > Thanks, > Eduardo S. Nunes > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to deal with session in a modular application?
Hello guys, I'm developing a framework to build modular applications with Guice+Wicket+Hibernate. My main problem now is how I must deal with objects that must be saved in session in a modular environment. I want some suggestions or tips to do it without dealing directly with the httpsession. An example is a security module, it will define an authentication service, authorization service and a security entity to store user/password/roles in the database. This module must keep the current user in the session. I don't want to create a wicket session class that is directly connected to this module. Do you have some suggestions? Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iLearn Wicket - Please reply with your feedback
someone in another post said that google uses jetty for the google apps java. I don't know the integration of jetty and Eclipse, in Netbeans I use jetty as an embedded server, it works perfect. I can edit my html, source code and just hit F5 to see the results. about the videos, good music ehehe On Mon, Apr 13, 2009 at 3:13 PM, Eduardo Nunes wrote: > it worked for me > > On Mon, Apr 13, 2009 at 1:25 PM, Jeremy Thomerson > wrote: >> I'm not so sure that a 404 page will be very informative :) >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Sat, Apr 11, 2009 at 10:58 AM, Null kühl wrote: >> >>> Dear All, >>> >>> I have been comparing between many component based frameworks around >>> that follows the MVC architecture, >>> as i ended up comparing between JSF and Wicket, however i have seen more >>> advantages in Wicket rather than JSF, however one of the cons on wicket >>> size >>> was its educational resources, as JSF exists since some time now there are >>> quite many tutorials and books for it. >>> So i decided to start up an elearning series that aims to get people to be >>> familiar with wicket, starting at a java programmer level. >>> I understand that there are some good tutorials around but i do believe >>> that >>> video tutorials are quire more explanatory than text tutorials. >>> >>> I have started doing some scratch videos already that will act later on as >>> the back bone of the series,(will probably be redesigned and published in a >>> more professional way) kindly check it out : >>> >>> http://ilearnzone.com/wicket.html >>> >>> Please reply with your feedback, so that i know if i should continue on it, >>> or just throw it away and stop wasting my time. >>> >>> Also if anyone would like to participate, he is more than welcomed. >>> >>> Regards, >>> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iLearn Wicket - Please reply with your feedback
it worked for me On Mon, Apr 13, 2009 at 1:25 PM, Jeremy Thomerson wrote: > I'm not so sure that a 404 page will be very informative :) > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Sat, Apr 11, 2009 at 10:58 AM, Null kühl wrote: > >> Dear All, >> >> I have been comparing between many component based frameworks around >> that follows the MVC architecture, >> as i ended up comparing between JSF and Wicket, however i have seen more >> advantages in Wicket rather than JSF, however one of the cons on wicket >> size >> was its educational resources, as JSF exists since some time now there are >> quite many tutorials and books for it. >> So i decided to start up an elearning series that aims to get people to be >> familiar with wicket, starting at a java programmer level. >> I understand that there are some good tutorials around but i do believe >> that >> video tutorials are quire more explanatory than text tutorials. >> >> I have started doing some scratch videos already that will act later on as >> the back bone of the series,(will probably be redesigned and published in a >> more professional way) kindly check it out : >> >> http://ilearnzone.com/wicket.html >> >> Please reply with your feedback, so that i know if i should continue on it, >> or just throw it away and stop wasting my time. >> >> Also if anyone would like to participate, he is more than welcomed. >> >> Regards, >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: serialVersionUID
serialVersionUID is very important, especially if you deal with serialized data saved to disk, db, javaspace or somewhere else. For example, if you use JavaSpaces, you put objects there and you can disconnect, update your application version, run it again, and your objects will be there. If you don't take care of the serial version uid you could have some serialization problems even if you didn't change anything, just because the runtime generated uid is different from the previous one. So, in doubt I suggest you to inform it, you can put 1L and increase for each modification or use a IDE generated version of it. On Mon, Apr 13, 2009 at 5:30 AM, James Carman wrote: > On Sun, Apr 12, 2009 at 1:46 PM, Ben Tilford wrote: >> I've always seen it done as public. Anyways I checked the javadoc and the >> access modifier does not matter. > > IntelliJ IDEA generates them as private. > > - > 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: BUG: Wrong behavior when calling super(parameters)
No, not yet On Fri, Apr 10, 2009 at 4:45 AM, Johan Compagner wrote: > Did you create a jira issue for this? > > On Fri, Apr 10, 2009 at 00:18, Eduardo Nunes wrote: > >> Hi guys, >> >> Yesterday I sent a mail to this list about a possible bug with >> webpage + panel + form. I made a sample application that reproduce the >> bug. Please, run this application "mvn compile jetty:start" and on the >> main screen click more than one time in the Login button. Each time >> that you click on the Login button wicket add more parameters to the >> URL. After around 12 clicks you got no answer, just a blank screen. >> >> I will try to attach the sample application in this message, if it >> wont work, please tell me what should I do to share this sample >> application. >> >> PS: take a look in the comment in file BasePage.java >> >> Thanks, >> Eduardo S. Nunes >> >> >> - >> 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: Can client cache pages effectively?
Usually IFrame isn't a good idea, I think it's because of the accessibility and search engines. At least that is what the major part of the HTML coders talk about it. But I can't think in another way to do it. just my 5c On Thu, Apr 9, 2009 at 1:29 PM, Jim Pinkham wrote: > A quick follow up in case anyone else was curious about how this is going: > > I ended up using ehcache page cache filter for a simple page that just > displays 'current' items (calendar view of events) based on a db query. No > forms (state) on this page so it works pretty well. In my DAO that does > updates, I clear the cache. Very simple, works great. (Only catch I ran > into is that my menus change when I have a session and I'm logged in as > super-user, so I have to make sure I don't let that version of the page be > cached - I do that by adding 'super' page parameter so URL is different > and filter is set to only cache the 'normal' version. > > So, that still leaves me with my main catalog page, which is primarily a > similar list of items, but it also has some active content (in particular, a > search form). > > So my bright idea (tm) (i.e. I'd love to hear critiques before I get too > far along with it) is the following: > > Make a new page for just the data grid, with page parameters including the > search string and last-modified date (and super-user login because I get > some edit links and such with that). Mount it and ehcache it, and override > setHeader so it becomes client cache-able. Then, my outer catalog page > with the search form on it just uses an IFrame to display the grid data > (easy to keep track of last-modified globally). Same clear method in DAO > dumps the cache whenever a change is made. > > Also, I'd want to make a robot no-follow thing to avoid google trap on that > page. Could this actually be a legitimate use of otherwise dodgy IFRAME ? > > Sound like a good plan? > > Thanks, > -- Jim. > > On Fri, Mar 27, 2009 at 1:56 PM, Jim Pinkham wrote: > >> Jeremy, >> >> Thanks for your thoughtful reply - Scenario is exactly right. >> I played around with page headers to make the whole page cacheable, but ran >> into several problems - I have a search form, and there's an 'admin' login >> that enables edit links. So it's really a stateful page, but I want to >> speed up the most common state. >> >> The bulk of the content is from an AjaxFallbackDefaultDataTable with >> sortable columns. I re-sorted a column with the Ajax Debug window open to >> measure it's data size - about 225000 chars. My database search takes >> 64ms. Overall client repaint time is about 2 sec with browser on >> localhost. I haven't found the right hook to measure total wicket response >> time yet, but it appears pretty quick - so that's why I thougth it made >> sense to focus on client caching. >> >> Before I give up entirely on this idea, I'm wondering if it might make >> sense to make the grid a public Resource, which I'm hoping the browser would >> treat like an image. I can afford a separate db query to just get my >> max(lastModified), which might let me save the time to generate HTML, which >> looks as though it could be my bottleneck. If this way is too hard, I'll >> give up, but it sounds do-able - what do you think? >> Thanks, >> -- Jim. >> >> >> On Thu, Mar 26, 2009 at 6:30 PM, Jeremy Thomerson < >> jer...@wickettraining.com> wrote: >> >>> How is this going to help you? Scenario as I understand it: >>> >>> >>> 1. User requests homepage - pulls from site - with your etag in it >>> 2. User requests homepage again - calls site - your server does all of >>> the loading of data - then you calculate / set etag >>> 3. Browser now knows that it is the same as before and does not have to >>> pull the HTML down >>> >>> The user saves what is likely a very short time in the overall scheme of >>> things - downloading the HTML. >>> The user still has to sit through the process of you loading the data from >>> the search / DB / etc. and generating HTML >>> Your server saves no load - but a little bandwidth. >>> >>> I'd look at caching before it even gets to your server. Otherwise your >>> user >>> will likely not see much benefit unless you are sending multiple MB of >>> data >>> back. Sounds like premature optimization to me. >>> >>> -- >>> Jeremy Thomerson >>> http://www.wickettraining.com >>> >>> >>> >>> On Thu, Mar 26, 2009 at 5:26 PM, Jim Pinkham wrote: >>> >>> > Thanks Jerry; I think that applies only to static pages. >>> > >>> > My next idea is to try overridding WebPage.setHeaders and just set the >>> > >>> > response.setHeader("Cache-Control", "max-age=3600, must-revalidate"); >>> > >>> > response.setHeader("ETag", "1"); // I'll use a checksum on the data >>> coming >>> > back from my search (Even better would be a checksum on the rendered >>> page >>> > data - any idea how to do that?) >>> > Initial test (above) seems promising... >>> > >>> > Thanks, >>> > -- Jim. >>> > >>> > On Thu, Mar 26, 2009 at 3:2
Re: Package all CSS and JS
for the css and for the javascripts On Thu, Apr 9, 2009 at 11:57 AM, Eduardo Nunes wrote: > I think that I didn't explain it right. What I want is that wicket > concatenate all included javascripts into one file. Something like > > > > > > > Generate just one resource with "javacript1.js", "javacript2.js" and > "javacript3.js" concatenated. The reason for that is to reduce the > number of requests. I have a project that includes almost 10 > javascripts files and around 7 css files, it would be faster if the > browser has to download just 2 files, one for all javascript and > another one for css. > > I can do it with a servlet or something like this, but I want a > solution that works inside wicket, that i don't have to change my > source code. > > Probably wicket has a piece of source code responsible for the > tag, If I could intercept it and get all included > javascripts, remove them from the generated html and include my own > resource with all javascripts concatenated, I would be happy hehehe > > Please ask me if you don't understand, I have to improve my english :( > > Thanks, > Eduardo S. Nunes > > On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn wrote: >> On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes wrote: >> >>> Hi, >>> >>> Is there a way to tell wicket to package all referenced javascripts >>> together, the same for the css? If there isn't this solution yet, can >>> anyone tell me where should I look for to implement it? >>> >> >> You can put your resources, like css and javascript, directly in your >> packages either under src/main/java or src/main/resources and include them >> through header inclusions using a ResourceReference >> >> Craig. >> >> >>> Thanks, >>> Eduardo S. Nunes >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Craig Tataryn >> site: http://www.basementcoders.com/ >> podcast:http://feeds.feedburner.com/TheBasementCoders >> irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin >> im: craiger...@hotmail.com, skype: craig.tataryn >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Package all CSS and JS
I think that I didn't explain it right. What I want is that wicket concatenate all included javascripts into one file. Something like Generate just one resource with "javacript1.js", "javacript2.js" and "javacript3.js" concatenated. The reason for that is to reduce the number of requests. I have a project that includes almost 10 javascripts files and around 7 css files, it would be faster if the browser has to download just 2 files, one for all javascript and another one for css. I can do it with a servlet or something like this, but I want a solution that works inside wicket, that i don't have to change my source code. Probably wicket has a piece of source code responsible for the tag, If I could intercept it and get all included javascripts, remove them from the generated html and include my own resource with all javascripts concatenated, I would be happy hehehe Please ask me if you don't understand, I have to improve my english :( Thanks, Eduardo S. Nunes On Thu, Apr 9, 2009 at 11:42 AM, Craig Tataryn wrote: > On Thu, Apr 9, 2009 at 9:06 AM, Eduardo Nunes wrote: > >> Hi, >> >> Is there a way to tell wicket to package all referenced javascripts >> together, the same for the css? If there isn't this solution yet, can >> anyone tell me where should I look for to implement it? >> > > You can put your resources, like css and javascript, directly in your > packages either under src/main/java or src/main/resources and include them > through header inclusions using a ResourceReference > > Craig. > > >> Thanks, >> Eduardo S. Nunes >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Craig Tataryn > site: http://www.basementcoders.com/ > podcast:http://feeds.feedburner.com/TheBasementCoders > irc: ThaDon on freenode #basementcoders, ##wicket, #papernapkin > im: craiger...@hotmail.com, skype: craig.tataryn > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Package all CSS and JS
Hi, Is there a way to tell wicket to package all referenced javascripts together, the same for the css? If there isn't this solution yet, can anyone tell me where should I look for to implement it? Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
super(params) WebPage
Hi, I want to know if I have or not to call super(params) in my constructor Xxx(PageParameters params). I made some tests and I got strange results. I have a form inside a page, on the constructor of this page I call super(params) and setVersioned(false). The form extends StatelessForm. If I call super(params), the page seems not to be stateless. Another problem that happens (this one is more weird), the form is a sign in form with two required fields, email (textfield) and password (passwordtextfield) and each time that I click to submit with these fields without filling, the URL gets bigger and the email field gets a value ";". I think there is a bug, I will try to make a simple example. Is there someone with the same problem? Please ask if you need more information. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Integrating Wicket + Google Guice + Warp-persistence
No comments? On Tue, Apr 7, 2009 at 10:05 AM, Eduardo Nunes wrote: > Hi there, > > After a long period of reading, now I'm starting to code my > application using these frameworks: Wicket, Google Guice and > Warp-persistence. I facet a conceptual problem (IMHO) about how > initialize google guice. I read a lot of source codes on the internet > and most of them, if not all, initialize Google Guice and > Warp-persistence inside the WicketApplication class (extends > WebApplication). I think it isn't a good thing, because in the > conceptual point of view google guice doesn't have direct relation to > wicket. So, I started to find a good solution for this problem. > My solution consists in use Google Guice servlet extension. I think > that sometimes a source code says more than a thousand words ehehe, > below are the pastbin links for all envolved files. What I want from > you is a feedback, suggestions, improvements, critics, etc... > > Files: > - web.xml > http://pastebin.com/f576189de > > - GuiceServletContextListener > http://pastebin.com/f6a42d811 > > - WebModule > http://pastebin.com/f24a797b > > - ServiceModule > http://pastebin.com/f6e9db66f > > - PersistenceServiceInitializer > http://pastebin.com/f6e4425fd > > Maybe, and probably, some parts of the pasted source code are based on > another projects, blogs posts, etc. > > Thanks, > Eduardo S. Nunes > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Integrating Wicket + Google Guice + Warp-persistence
Hi there, After a long period of reading, now I'm starting to code my application using these frameworks: Wicket, Google Guice and Warp-persistence. I facet a conceptual problem (IMHO) about how initialize google guice. I read a lot of source codes on the internet and most of them, if not all, initialize Google Guice and Warp-persistence inside the WicketApplication class (extends WebApplication). I think it isn't a good thing, because in the conceptual point of view google guice doesn't have direct relation to wicket. So, I started to find a good solution for this problem. My solution consists in use Google Guice servlet extension. I think that sometimes a source code says more than a thousand words ehehe, below are the pastbin links for all envolved files. What I want from you is a feedback, suggestions, improvements, critics, etc... Files: - web.xml http://pastebin.com/f576189de - GuiceServletContextListener http://pastebin.com/f6a42d811 - WebModule http://pastebin.com/f24a797b - ServiceModule http://pastebin.com/f6e9db66f - PersistenceServiceInitializer http://pastebin.com/f6e4425fd Maybe, and probably, some parts of the pasted source code are based on another projects, blogs posts, etc. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Security in a Spring & Wicket layered application
Are you using something else together with wicket-jsecurity? I saw the example in the svn and there is no annotation based authorization or something like this. How did you implement the authorization in your (big) application? Thanks, Eduardo S. Nunes On Tue, Mar 10, 2009 at 2:53 PM, Les Hazlewood wrote: > Hi Kent, > > Although it is early, I am using the wicket-jsecurity integration in one of > my (big) projects. It is working pretty well. Feel free to ask questions - > I'm happy to help along the way. > > Cheers, > > Les > (JSecurity founder) > > On Tue, Mar 10, 2009 at 1:42 PM, Kent Larsson wrote: > >> Integrating with jSecurity instead is really a last resort. If it is >> at all possible I wouldn't like to introduce more framework >> dependencies. That integration project seems a bit early to use as >> well, but it might be interesting in the future. Thanks for the link! >> >> Regarding Spring Security (SS). Is anyone integrating Wicket with SS >> on their own? I've read lots about SS now but I still find it hard to >> see what I need for a Wicket application. >> >> I got some tips at: >> http://wiki.apache.org/tapestry/Tapestry5AcegiNoAnnotations >> >> But I still have lots of questions. >> - In the above link they are using a link and passing the information >> by GET. I would like to use POST, and I guess that shouldn't be a >> problem. Tell me if you see some? >> - I have to instruct SS to redirect a user to my own login page if >> (s)he tries to access something which requires authentication. How is >> that done? >> - When a user registers an account I guess I should pass something on >> to a servlet filter, similar to how authentication works? >> - Which servlet filters do you think I'll need? >> >> If I can just get someone to register and authenticate. Then I'll just >> use the instructions in SS documentation to get GrantedAuthority >> objects. I'll use these to show/hide things in Wicket pages as well as >> enable/disable other things. Does that sound like a good approach? >> >> If anyone has *any* tips I would be immensely greatful!! As I think >> this is quite complex and I'm new to Spring Security. >> >> Best regards, >> Kent >> >> >> On Mon, Mar 9, 2009 at 7:16 PM, Ryan McKinley wrote: >> > I have not used it (yet), but check: >> > http://code.google.com/p/wicket-jsecurity/ >> > >> > >> > >> > On Mar 9, 2009, at 1:46 PM, Kent Larsson wrote: >> > >> >> Hm, I had some problems. Are there any examples out there for this? >> >> >> >> On Mon, Mar 9, 2009 at 9:43 AM, Kent Larsson >> >> wrote: >> >>> >> >>> Hi, >> >>> >> >>> Great answer! :-) I'll try to do that today. >> >>> >> >>> Best regards, Kent >> >>> >> >>> >> >>> On Sun, Mar 8, 2009 at 8:38 PM, Erik van Oosten >> >>> wrote: >> >> Hi Kent, >> >> Go with something that enables authorization in the service layer >> (e.g. >> Spring Security, jSecurity, ...). >> >> Next base your custom wicket authorization on the authentication store >> of >> the chosen base technology. Spring Security uses a thread local as >> authentication store and has a servlet filter to copy the >> authenticated >> user >> to/from the session so that the authenticated user is handily >> available >> during a request and properly stored afterwards. >> >> Authentication itself can be implemented from Wicket in a custom way >> (e.g. a >> username/password form). On success you just store the authenticated >> user in >> the authentication store. >> >> Regards, >> Erik. >> >> >> Kent Larsson wrote: >> > >> > Hi, >> > >> > I know there has been some discussion on this. But I've had a hard >> > time deciding how this project should use security anyway. >> > >> > The application in question is layered into three layers for >> > presentation, services and persistence using Wicket, Spring and >> > Hibernate. >> > >> > What we need: >> > - Authentication >> > - Authorization on pages, components >> > - Authorization before being able to run methods in the service layer >> > - Authorization for viewing/editing some domain objects using Access >> > Control List's (ACL's) >> > >> > I have read Wicket in Action and it's custom security solution has >> some >> > pros: >> > - It's quite easy to understand >> > - We have a lot of freedom in how to do authentication and >> > authorization >> > >> > And some cons: >> > - I don't know how to authorize calls of specific methods, and thus >> > - All security will be in the presentation layer >> > - It won't be usable if we want security on web services later (which >> > we do not need now, so maybe this can be disregarded) >> > >> > It would be nice if we could have a common solution to our security >> > needs that integrates well with Wicket and Spring. I know that the >> > Auth Ro
Re: Looking for a book on the jetty server
I think that it isn't a problem to use Jetty in production. In brazil there is a huge forum about java www.guj.com.br and they were using Tomcat, the forum was slow, they changed to Jetty and added some other techniques and now everything goes fine. Sure that if you want to use JEE, IMHO I suggest you to use glassfish. On Wed, Mar 25, 2009 at 11:13 AM, Chenini, Mohamed wrote: > > Are you implying that in a production environment Glassfish, Tomcat, or > JBoss are better to use with Wicket than jetty? I was planning to learn > jetty to use it in development and in production and the 'Pro Wicket' > book states that "it [Wicket] was is a good fit for developing Wicket > applications" > > Please advise. > > Thanks, > Mohamed > > -Original Message- > From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] > Sent: Wednesday, March 25, 2009 9:25 AM > To: users@wicket.apache.org > Subject: Re: Looking for a book on the jetty server > > I'm not sure if most actually *deploy* their production servers on > Jetty (there's nothing holding anyone back), but I think that Tomcat, > Glassfish and JBoss are also very popular. > > Jetty is most commonly used during development because it is so easy to > embed. > > AFAIK no books have been written for Jetty. > > Martijn > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > This email/fax message is for the sole use of the intended > recipient(s) and may contain confidential and privileged information. > Any unauthorized review, use, disclosure or distribution of this > email/fax is prohibited. If you are not the intended recipient, please > destroy all paper and electronic copies of the original message. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OT: How to connect Wicket layer to underlying service layer
Me too, it's not easy to find these books in Brazil, I will try to buy a electronic copy of it. On Tue, Mar 24, 2009 at 2:40 PM, James Carman wrote: > On Tue, Mar 24, 2009 at 12:53 PM, Dave Schoorl wrote: >> >> Maybe Eric Evans Book 'Domain-Driven Design'? > > Yep, that's the one I would suggest. Although, I am going to check > out Fowler's book too. That's one I don't have yet! :) > > - > 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: OT: How to connect Wicket layer to underlying service layer
Ok I got it. One question, consider that you have this model: Person 1xN Address You have a screen that list a detailed view of a person, including a list of addresses. What approach do you use to implement it? - A service method that returns a Person entity with eager load of the list of Addresses? (if you don't need always the addresses this doesn't make sense) - A service method that returns a Person entity with lazy load of the list of Addresses? (it could be a problem in a JEE environment) - Two service methods, one to return the Person entity and another one to return the of addresses? Thanks, Eduardo S. Nunes On Tue, Mar 24, 2009 at 1:11 PM, Jeremy Thomerson wrote: > Agree again. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Mar 24, 2009 at 11:11 AM, James Carman > wrote: > >> On Tue, Mar 24, 2009 at 12:08 PM, Eduardo Nunes wrote: >> > Yes, I understand you too. What do you do when you have to send a set >> > of entities and a calculation for each entity? you encapsulate it >> > inside another class? >> >> A domain-driven design advocate would say that the entity knows how to >> calculate what you need and you can ask it for the calculated value. >> >> - >> 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: OT: How to connect Wicket layer to underlying service layer
Yes, I understand you too. What do you do when you have to send a set of entities and a calculation for each entity? you encapsulate it inside another class? On Tue, Mar 24, 2009 at 1:02 PM, James Carman wrote: > On Tue, Mar 24, 2009 at 11:56 AM, Eduardo Nunes wrote: >> >> I always use DTO in service methods. My point of view is that if you >> have a method named "getSimpleUserList" and your User entity has 10 >> attributes and for this simple list you just need 3 of them, doesn't >> make sense to me return a Set of User objects, for that I would create >> a SimpleUserDto and return a Set of it. > > I'm not a big fan of DTOs. I understand why folks use them, but until > I figure out that I actually need them (for performance reasons), I > actually stick with just sending back my entities from the database. > For the most part, it works for me and I find it convenient to have > everyone coding to the same "domain" objects. > > - > 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: OT: How to connect Wicket layer to underlying service layer
Yes, I suggest to you the same approach. Put everything in the same webapp, just take care to separate the tiers. For example: don't modify inside a service method the method parameters because it won't work in a EJB for example. I used to build a huge environment n-tier with different jar files for each tier, beautiful from the architecture view, but expensive to develop, and sometimes you don't need this huge approach. My advice is, do it simple but taking care to handle evolution, to in the future put it a cluster, ejbs, jms, etc. The architecture that I use is: Wicket in front end, components calling service methods. Service methods using JPA/Hibernate and now I will use Warp-persistent Dynamic Filters to act as a DAO. I always use DTO in service methods. My point of view is that if you have a method named "getSimpleUserList" and your User entity has 10 attributes and for this simple list you just need 3 of them, doesn't make sense to me return a Set of User objects, for that I would create a SimpleUserDto and return a Set of it. Please, if I was confuse, ask me more, my english isn't perfect. Thanks On Tue, Mar 24, 2009 at 12:41 PM, James Carman wrote: > Put your services in the same webapp. > > On Tue, Mar 24, 2009 at 11:37 AM, Kaspar Fischer wrote: >> I am trying to figure out the architecture of a prototype application. In >> it, the presentation layer (Wicket) needs to work with a service layer to >> display and edit lists (among other things). The service layer also exposes >> some Web Services via SOAP/REST which I intend to use for a Flash/Flex >> component that will be on the pages served by Wicket and will display the >> lists in a graphical and interactive way. >> >> What options do I have to connect the presentation and middle layer? >> >> - RMI between Wicket and the service layer: This would allow them to run >> separately (e.g., we can work on the presentation without taking down the >> service layer who is running background processes). >> >> - Service layer and Wicket in the same webapp. >> >> - Service layer and Wicket in separate webapps but with Tomcat's >> crossContext set to true. >> >> - Anything else? >> >> Can anybody share some recommendations or experiences? >> >> I am worried that RMI will not only be a performance bottleneck (is it?) but >> also that it will be hard to work with models. Looking at wicket-phonebook, >> >> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/phonebook/src/main/java/wicket/contrib/phonebook/web/DetachableContactModel.java >> >> I see that the presentation layer has access to the DAO and stores id's in >> its models. With an RMI separation, the DAO is in the middle layer and not >> accessible from the presentation layer. Also, transactional boundaries are >> in the service layer, so I will not be able to do something "more complex" >> in the presentation layer (which I shouldn't do anyway, I guess). >> >> Many thanks for feedback, >> Kaspar >> >> - >> 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 > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Security Framework that best fits to Wicket
Hi guys, This is another of my posts " best fits to Wicket". Now my doubt is about security frameworks. I came from the JEE world (jboss and glassfish) and I'm used to work with JAAS and Spring acegi (tomcat). Now I'm taking a easy/fast to development set of frameworks, I'm using Jetty, Google Guice, Warp-persist and Wicket. Considering this set of frameworks I'm tending to choose JSecurity as security framework because Acegi (spring security) uses spring internally and if I would use spring for security I would use it to dependency injection too. Ok, backing to the real point... In your opinion which security framework best fits to Wicket + Guice? What wicket "plugin" should I use to integrate with jsecurity or spring security? Should I use the security framework for authentication and authorization or do you recommend to use just to authorization? Thing to consider: - At the moment I'm not using a JEE AS but it could happen in the future. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is this a bug in Wicket?
I understand what Mr. Mattler said but is it correct from the HTML point of view? Anybody knows what the HTML specification says about it? On Thu, Mar 5, 2009 at 2:49 PM, rjilani wrote: > > Mattler thanks for the tip, It did work like a charm, but I am bit confuse > about this behavior. > > Regards, > RJ. > > > rmattler wrote: >> >> Don't put the in a . >> >> Should be: >> >> >> >> >> Search feed by name: >> >> >> >> >> >> >> Match all >> conditions> >> Match any >> conditions> >> Match all news >> >> >> >> >> >> >> >> rjilani wrote: >>> >>> Hi: Gurus, I am trying to render a form and looks like wicket is not >>> rendering the form elements in right sequence, here is my markup that is >>> having the issues >>> >>> >>> Search feed by name: >>> >> wicket:id="feedName"/> >>> >>> >>> >>> >>> Match all >>> conditions >>> Match any >>> conditions >>> Match all news >>> >>> >>> >>> >>> here is the java code >>> >>> add(new TextField("feedName", new Model())); >>> >>> add(new RadioChoice("conditionChoice", new >>> Model(),conditionChoices ).setSuffix("")); >>> >>> when I run the code I see the radio button choices before the text field; >>> any suggestions? >>> >>> Thanks, >>> RJ. >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Is-this-a-bug-in-Wicket--tp22356116p22356811.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: What IDE best fits with Wicket?
I deal directly with HTML coders and I want to bring to them an easy of use project build / run. I don't want to be called every time a new HTML join to the project team because he doesn't have the setup of the project. I think that maven help me a lot with it but I'm a little bit afraid of the build, for example: A HTML coder change some HTML, he needs to re-build the entire system to see the change, it isn't a good thing. Is it possible to define something on maven to just copy the HTML files to the deployment directory? I wondering to use ant as build because with it I have all flexibility necessary to do this kind of thing. What is your opinion? Thanks, Eduardo S. Nunes On Tue, Feb 24, 2009 at 3:17 PM, Marcelo Morales wrote: > On Tue, Feb 24, 2009 at 12:55 PM, Brill Pappin wrote: >> If your on Netbeans, I think Maven will generate Netbeans project files for >> you as well (it will do so for eclipse), so you could actually flip back and >> forth if you wanted. > > Netbeans does NOT need any other project files. It just need the pom.xml. > After personalizing, you'll might find a couple of extra files like > nbactions.xml, profiles.xml, that you can safely ignore on your SCM. > You can checkout the wicket source from SVN and just open it up with > netbeans. Nothing else is necessary > > -- > Marcelo Morale > > - > 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: What IDE best fits with Wicket?
Do you use some plug-in? I like netbeans too. On Mon, Feb 23, 2009 at 4:55 PM, Jeremy Levy wrote: > Eclipse or NetBeans. > > I like netbeans. Use what your most productive in.. > > > > On Mon, Feb 23, 2009 at 2:19 PM, Eduardo Nunes wrote: > >> Hello guys, >> >> I don't want to generate a flame war but I want to know your opinion >> about what IDE best fits with Wicket? >> >> The basic requirements are: free and the set of plug-ins free too. >> >> Thanks, >> Eduardo S. Nunes >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Jeremy Levy > > See my location in real-time: > http://seemywhere.com/jeremy > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
What IDE best fits with Wicket?
Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Validation From A Custom Component
I'm a little bit out of what you are doing, but validate information directly in setter methods usually isn't a good option... my 50c On Tue, Feb 17, 2009 at 2:19 PM, walnutmon wrote: > > That's a fantastic idea, I'll definitely do that. > > There is one problem, because the validation is actualy coming from the > domain objects "setters", I don't know if there was a problem until the > "updateModel" method is called... I don't know if I like calling > "updateModel" from the validator, since I'm not sure whether that will break > other things down the road, I'll try it and report back. > > Is there a way that I can retrieve the setter, so that I can set it, and > then return it to it's initial state before the form calls 'updateModel' on > it's children? Perhaps the component can only take PropertyModels? > > > Jeremy Thomerson-5 wrote: >> >> in the custom component's constructor, why don't you do: >> >> add(new IValidator() { >> ... >> }); >> >> Or create a custom validator class and just add it to your custom >> components. >> >> On Tue, Feb 17, 2009 at 10:04 AM, walnutmon >> wrote: >> >>> >>> All, >>> >>> I have custom components which know if they have a validation error when >>> they call "updateModel()", the domain is where validation happens, I'm >>> using >>> this to post error messages which are rendered like a validation error: >>> >>>@Override >>>public void updateModel() >>>{ >>>try >>>{ >>>super.updateModel(); >>>} catch (Exception ex) >>>{ >>>error(ex.getCause().getMessage()); >>>} >>>} >>> >>> however, unlike a wicket validation error, it still finishes the form >>> submission, is there a way for a component to add a validation error, so >>> that it behaves as if it were a MaximumLengthValidator() error, or >>> something >>> similar? Or do I need to extend IValidator, and pass it the component's >>> domain object in order to do the check and use wicket's validation form >>> processing procedure. >>> >>> Thanks! >>> Justin >>> -- >>> View this message in context: >>> http://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22060300.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 >>> >>> >> >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> > > -- > View this message in context: > http://www.nabble.com/Validation-From-A-Custom-Component-tp22060300p22061961.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