Re: [Wicket-user] noob question about wicket

2007-06-18 Thread Eelco Hillenius
Just tested it and found an entry on their mailing list. In maven 2, at least the current version mvn eclipse:eclipse tries to download sources and javadocs automatically. Eelco On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm guessing it includes the source jars if they are in your

Re: [Wicket-user] noob question about wicket

2007-06-18 Thread Martijn Dashorst
If you look at the settings for the eclipse project in our parent pom.xml you will see a setting that is responsible for downloading the sources: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-eclipse-plugin/artifactId version2.3/version

Re: [Wicket-user] noob question about wicket

2007-06-18 Thread Eelco Hillenius
Yeah, you're right. I just found a similar entry in our pom. Gawd, why don't they just do that automatically. Eelco On 6/17/07, Martijn Dashorst [EMAIL PROTECTED] wrote: If you look at the settings for the eclipse project in our parent pom.xml you will see a setting that is responsible for

Re: [Wicket-user] noob question about wicket

2007-06-18 Thread Eelco Hillenius
Yeah, you're right. I just found a similar entry in our pom. Gawd, why don't they just do that automatically. our == Teachscape - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread verbal evasion
the code i'm writing basically just resulted from my playing with the examples giving in the Pro Wicket book i got. then i wanted to write a basic site to play with things i can do. this is not anything that i've designed. just seeing what wicket is capable of. also, am i missing something? i do

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Johan Compagner
when you do this: CSSession session = (CSSession) getSession(); session.setUser(loggedInUser); then that method: CSSession.setUser(User) { this.user = user; dirty(); You have to do this here! } if you alter your session data you have to call dirty Then you

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Thies Edeling
Also in 1.3? Yesterday I noticed that a Calendar which I retrieved from the session and modified afterwards was updated in the session as well. Thies Johan Compagner wrote: when you do this: CSSession session = (CSSession) getSession();

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread verbal evasion
i put in the dirty(), but it still doesnt work. i think i'm going to do more research and look for code examples. the one i followed in Pro Wicket doesnt seem to be working. if there are any more complete examples and documentation, please point me to them. i have found the documentation

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Eelco Hillenius
On 6/13/07, verbal evasion [EMAIL PROTECTED] wrote: the code i'm writing basically just resulted from my playing with the examples giving in the Pro Wicket book i got. then i wanted to write a basic site to play with things i can do. this is not anything that i've designed. just seeing what

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Timo Rantalaiho
On Wed, 13 Jun 2007, Eelco Hillenius wrote: debugging mode ;) And while you're at it, be sure to attach the Wicket sources to your project dependencies, so that you can step into the Wicket code as well. This may be a bit intimidating at the start, but it's a great way to learn about the

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Matej Knopp
On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Actually the dirty bit is only relevant when you use session replication using a 'standard' clustering technology (e.g. like Tomcat provides). If the dirty bit is set, Wicket will explicitly set an attribute on the session, which will

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread verbal evasion
are you talking about the maven2 eclispe plugin? i am using maven1 right now so there isnt a good plugin for it. i'm working on moving to maven2, but maven2 kinda makes me feel gross. thanks, verbal On 6/14/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Wed, 13 Jun 2007, Eelco Hillenius

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Eelco Hillenius
With maven 2 you can do 'mvn eclipse:eclipse' and your Eclipse project will be generated including sources. Plugins for other IDEs probably work similar. Eelco On 6/14/07, verbal evasion [EMAIL PROTECTED] wrote: are you talking about the maven2 eclispe plugin? i am using maven1 right now so

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Igor Vaynberg
not quiete mvn eclipse:eclipse -DdownloadSources=true -igor On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: With maven 2 you can do 'mvn eclipse:eclipse' and your Eclipse project will be generated including sources. Plugins for other IDEs probably work similar. Eelco On 6/14/07,

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Eelco Hillenius
On 6/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not quiete mvn eclipse:eclipse -DdownloadSources=true I don't have to do that anymore. Just works for me. Maybe it remembers previous source attachements or something. Eelco

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Igor Vaynberg
no, you probably edited your mvn launch script and added it there? -igor On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 6/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not quiete mvn eclipse:eclipse -DdownloadSources=true I don't have to do that anymore. Just works for me. Maybe

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Eelco Hillenius
On 6/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: no, you probably edited your mvn launch script and added it there? Haha, that would be funny. No, of course I didn't. Eelco - This SF.net email is sponsored by DB2 Express

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Eelco Hillenius
I'm guessing it includes the source jars if they are in your local repository, but doesn't download them unless you provide the extra argument. Anyway, to be sure, you can provide the argument. Eelco On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 6/14/07, Igor Vaynberg [EMAIL

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Igor Vaynberg
right, thats it -igor On 6/14/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm guessing it includes the source jars if they are in your local repository, but doesn't download them unless you provide the extra argument. Anyway, to be sure, you can provide the argument. Eelco On 6/14/07,

Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Timo Rantalaiho
On Thu, 14 Jun 2007, Eelco Hillenius wrote: On 6/14/07, Igor Vaynberg [EMAIL PROTECTED] wrote: not quiete mvn eclipse:eclipse -DdownloadSources=true I don't have to do that anymore. Just works for me. Maybe it remembers previous source attachements or something. We put it in pom.xml in

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Eelco Hillenius
It's the org.apache.wicket.examples.template package in Wicket examples. You can best just look at the code, but a live example is at http://wicketstuff.org/wicket13/template/. Eelco On 6/13/07, verbal evasion [EMAIL PROTECTED] wrote: eelco, are these templates on the wicket page? or the

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread verbal evasion
i tried implementing what you had put and i am stuck because loggedin and form are both in the highest scope of the websitem but in the java code, you have the form added to the loggedin WeMarkupContainer. that doesnt seem to fly with wicket unless i'm doing something wrong. i tried to take out

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Igor Vaynberg
the form is added to loggedout container, also notice that the form tag is inside a div wicket:id=loggedout so it matches the java hierarchy. -igor On 6/13/07, verbal evasion [EMAIL PROTECTED] wrote: i tried implementing what you had put and i am stuck because loggedin and form are both in

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread verbal evasion
yeah i got it to work. it wasnt the code, it was some maven weirdness that was going on. i have a few more questions. currently, when i login, my authentication mechanism tells me that i have successfully logged in, but it seems like the session information is not stored?? i have a print in my

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Timo Rantalaiho
On Wed, 13 Jun 2007, verbal evasion wrote: yeah i got it to work. it wasnt the code, it was some maven weirdness that was going on. i have a few more questions. currently, when i login, my authentication mechanism tells me that i have successfully logged in, but it seems like the session

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread verbal evasion
Timo, Speaking of logging, I want to use log4j, but i cant because it doesnt implement serializable. secondly, session.get().info(message); doesnt seem to print anything. i have to resort to System.out's. I made the logger transient so that solved that problem, but it doesnt print anything to

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Eelco Hillenius
Speaking of logging, I want to use log4j, but i cant because it doesnt implement serializable. Either make the log instance it a static variable (statics don't get serialized) or get it on the fly (every time you need it but don't keep a reference). secondly, session.get().info(message);

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Timo Rantalaiho
On Wed, 13 Jun 2007, verbal evasion wrote: i have turned on debugging for wicket.Session in log4j, but all it prints is information about pages being dirty or not. any other debugging i can use or turn on? Be sure to turn on debugging also for your own code to get log messages from there. I

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread verbal evasion
the default behavior is for a session to be temporary? that doesnt make sense. this maybe another reason. i have my login code (basically everything you've seen) in an abstract BasePage class. I then call Index which extends BasePage. would that have anything to do with anything? thanks,

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Eelco Hillenius
20:06:14,806 INFO [STDOUT] loggedOut - isVisible? true 20:06:14,806 INFO [STDOUT] loggedIn - isVisible? false 20:06:14,810 INFO [STDOUT] loggedOut - isVisible? true 20:06:14,810 INFO [STDOUT] loggedOut - isVisible? true 20:06:14,811 INFO [STDOUT] loggedOut - isVisible? true 20:06:14,811

Re: [Wicket-user] noob question about wicket

2007-06-13 Thread Eelco Hillenius
the default behavior is for a session to be temporary? that doesnt make sense. It is Wicket trying to be as efficient as possible. I understand the confusion, but think of it: you would typically only want a persistent session when you actually do something with it (like setting the user). An

[Wicket-user] noob question about wicket

2007-06-12 Thread verbal evasion
hello everyone, this is my first post. i have been playing with wicket for a while, trying to see if it will let me do everything i want it to. while a lot of things in wicket look very attractive from a programmer-forced-to-do-website-stuff perspective, i do have one big glaring question. the

Re: [Wicket-user] noob question about wicket

2007-06-12 Thread mchack
Very easy to do. There are many ways but an easy one is to have an html tag such as div, that will correspond to either the login form or signed in text and give it a wicket:id . During processing you would check to see if the user is signed in. If not then you would add an appropriate object to

Re: [Wicket-user] noob question about wicket

2007-06-12 Thread verbal evasion
thanks for the responses from eelco and mchack. i appreciate it. i guess part of the problem is i dont understand enough html either :\. it seems that you have implied you can put anything in a span tag (e.g. a form and a label). i will look at the template more carefully. i bought the pro wicket

Re: [Wicket-user] noob question about wicket

2007-06-12 Thread Igor Vaynberg
html body div wicket:id=loggedinspan wicket:id=username/div div wicket:id=loggedoutform wicket:id=form.../form/div ... MyPage() { add(new WebMarkupContainer(loggedin, new PropertyModel(this, session.user.username)) { public boolean isvisible() { return

Re: [Wicket-user] noob question about wicket

2007-06-12 Thread Eelco Hillenius
html body div wicket:id=loggedinspan wicket:id=username/div div wicket:id=loggedoutform wicket:id=form.../form/div ... MyPage() { add(new WebMarkupContainer(loggedin, new PropertyModel(this,session.user.username)) { public boolean isvisible() { return