Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Null kühl
Check this out: http://ilearnzone.com/wicket.html On Sat, Jun 13, 2009 at 6:44 AM, Igor Vaynberg wrote: > eclipse issue is easily fixed if you search the archives > > -igor > > On Fri, Jun 12, 2009 at 8:15 PM, Neil Bartlett > wrote: > > Thx Bruno. I've tried it under pure Maven. I recreated the q

Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Igor Vaynberg
eclipse issue is easily fixed if you search the archives -igor On Fri, Jun 12, 2009 at 8:15 PM, Neil Bartlett wrote: > Thx Bruno. I've tried it under pure Maven. I recreated the quickstart > but did a mvn jetty:run in the project directory and all works fine. > Seems to be an issue with my Eclips

markup inheritance redirect issue

2009-06-12 Thread Edward Zarecor
We're integrating a third party web-based authentication service that requires that we redirect from Wicket and then handle a redirect back from the service. The API requires passing in the raw HTTPServletRequest and HTTPServletResponse. Our page hierarchy looks like this: BasePage Aut

Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Neil Bartlett
Thx Bruno. I've tried it under pure Maven. I recreated the quickstart but did a mvn jetty:run in the project directory and all works fine. Seems to be an issue with my Eclipse set-up. - Original Message - From: "Bruno Ledesma" To: users@wicket.apache.org Date: Fri, Jun 12, 2009 at 10:40

Re: Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Bruno Ledesma
For the first exception that you posted, i would say that you're missing HomePage.html. Maybe the filename is a little bit different from the class name. But in the end you have commented that you already checked this. You could try a mvn clean install just to make sure the jetty plugin is with sy

tabbedpanel search form must update another panel view area

2009-06-12 Thread jorge Bo
Hi, i have a page that has 2 areas, a formArea anda a viewArea 1) In the formArea, there is a Ajaxtabbedpanel with 2 tabs, each of them has a form with a search button, they are for diferent seaches. 2) In the viewArea, the results of each search must appear in turn I was wondering which is the c

Noob question: error on quickstart project with maven 2.1.0 and wicket 1.3.6

2009-06-12 Thread Neil Bartlett
I thought I'd give Wicket a whirl on a new project. Till now I've predominantly used Spring, but I'm doing a small project so I thought I'd see what wicket could do. I'm getting an exception on the quickstart maven project. The exception is org.apache.wicket.markup.MarkupNotFoundException: Marku

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
On Fri, Jun 12, 2009 at 5:57 PM, Jeremy Thomerson wrote: > Those designs aren't what make me like CSS - most of them are > necessarily-filled with hacks to make them work, especially across > browsers. > Sure. My comment was a joking plea to Johan to reconsider CSS :) > css is really crap And

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
As an aside, I think the art-form takes a great stride forward every time we arrive at a framework that, by its very use, improves general design and implementation. For example, I think the concepts around Spring are a huge step forward. Most young developers don't understand what *dependencies*

Re: Wicket generics?

2009-06-12 Thread James Carman
But, the compiler only knows what you're allowed to do by the type of the variable. You do not need to declare your variables with the wildcards. On Fri, Jun 12, 2009 at 6:31 PM, Cristi Manole wrote: > declaration is not the problem. from what i remember from generics (I might > be wrong), you're

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
Those designs aren't what make me like CSS - most of them are necessarily-filled with hacks to make them work, especially across browsers. Again I think it all comes down to familiarity. I still like the separation of markup for presentation and java for code - which is what draws me to Wicket an

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Luther Baker
Admittedly - it may not be standard, easy or necessarily intuitive ... but CSS ain't all bad is it? :) http://www.mezzoblue.com/zengarden/alldesigns/ -Luther On Fri, Jun 12, 2009 at 10:34 AM, Johan Compagner wrote: > css is really crap (until i really can use box-sizing: border-box > everywhe

Re: Wicket generics?

2009-06-12 Thread Cristi Manole
declaration is not the problem. from what i remember from generics (I might be wrong), you're not allowed to instantiate "generically". you have to tell the compiler exactly what type you want. at runtime it has no idea about generics. On Sat, Jun 13, 2009 at 12:41 AM, James Carman wrote: > Just

Re: Wicket generics?

2009-06-12 Thread James Carman
Just because the constructor is declared that way (with the ?) doesn't mean you have to declare your variables that way. On Jun 12, 2009 4:43 PM, "Martin Makundi" < martin.maku...@koodaripalvelut.com> wrote: > new DropDownChoice ? Maybe ... ** Martin > > On Fri, Jun 12, 2009 at 6:06 AM, Martin

Re: Wicket generics?

2009-06-12 Thread Martin Makundi
> new DropDownChoice ? Maybe ... ** Martin > > On Fri, Jun 12, 2009 at 6:06 AM, Martin > Makundi wrote: >> I have casting problem: >> >> dropDown = new DropDownChoice(, new >> ChoiceRenderer(...)); >> >> dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject()); >> <-- DOES NOT

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
What you describe i already replied Thats the hybrid approache if pages can be stateless then wicket can generate already urls that can generate the page again if expired and the call the event On 12/06/2009, Martin Sachs wrote: > I wonder why this is so a big problem. On bookmarkable Webpages (e

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Martin Sachs
I wonder why this is so a big problem. On bookmarkable Webpages (e.g. Productpages) the user dont need to login and the session can destroyed via timeout. Each Ajax-Request throw would throw a PageExpiredException. This is the worst thing in wicket, IMHO. My tryout was the following in a quickstar

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Johan Compagner
Yes if you dont want to have page expires you could try to use bookmarkable pages all the way and use the hybrid coding to get mixed book/session pages. Or store something in the db record the last page for every user... On 12/06/2009, Jeremy Thomerson wrote: > the path is stored in the session,

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
Or implement a "remember me" feature in the request cycle. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 12, 2009 at 2:38 PM, Jeremy Thomerson wrote: > Just lengthen the session timeout - how to do this depends on your > servlet container. > > -- > Jeremy Thomerson > http://www

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
Just lengthen the session timeout - how to do this depends on your servlet container. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 12, 2009 at 2:37 PM, Christopher L Merrill wrote: > Jeremy Thomerson wrote: >> >> the path is stored in the session, so as long as your app server

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill
Jeremy Thomerson wrote: the path is stored in the session, so as long as your app server reloads existing sessions on restart, it should (iirc). however, in your dev environment, the app server probably blows away sessions hr, i just re-read and realized that you said this is for the PageEx

Re: how to avoid multiple session for the same username

2009-06-12 Thread Juan Carlos Garcia M.
You're right i got confused, probably was thinking on something else when i replied. =) Thanks Jeremy Thomerson-5 wrote: > > it wouldn't need to grow - it could be a single column in the users > table - next to userid. > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > >

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
the path is stored in the session, so as long as your app server reloads existing sessions on restart, it should (iirc). however, in your dev environment, the app server probably blows away sessions hr, i just re-read and realized that you said this is for the PageExpired which is typical

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill
Wow, I hope it's really that easy!?! Should this work through an appserver restart? E.g. if I 1) login to the app 2) restart the app server 3) click a page link in the browser Should this work? It didn't for me. Based on my limited understanding of how wicket works and stepping into the code,

Re: Returning to the original page after session timeout / login

2009-06-12 Thread Jeremy Thomerson
in your login form submit, call continueToOriginalDestination() onSubmit() { if (false == continueToOriginalDestination()) { setReturnPage(SomeOtherPage.class); } } -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 12, 2009 at 1:45 PM, Christopher L Merrill wrote: > I've changed o

Returning to the original page after session timeout / login

2009-06-12 Thread Christopher L Merrill
I've changed out PageExpiredErrorPage to be the login page for our app. Does wicket have any support built-in to help return the user to where they were after re-authenticating? From my modest understanding of Wicket, it would need to be a bookmarkable page, which will be ok for a good percentage

RE: how to avoid multiple session for the same username

2009-06-12 Thread Ames, Tim
Be careful not to confuse sessions with opening new windows. I got bit by this recently. For example; an application is a link from a portal. This portal opens a new window (i.e. target="_blank") that launches your wicket or servlet app. A new session is created upon first log in. The user t

Re: how to avoid multiple session for the same username

2009-06-12 Thread Jeremy Thomerson
it wouldn't need to grow - it could be a single column in the users table - next to userid. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 12, 2009 at 12:57 PM, Juan Carlos Garcia M. wrote: > > Also attach some HttpSessionListener to your web application in order to > remove old

Re: how to avoid multiple session for the same username

2009-06-12 Thread Juan Carlos Garcia M.
Also attach some HttpSessionListener to your web application in order to remove old sessions from the database whenever they get destroyed and prevent that table for growing without control. Jeremy Thomerson-5 wrote: > > Store the session ID in your DB whenever someone signs in. Then if > some

Re: how to avoid multiple session for the same username

2009-06-12 Thread Jeremy Thomerson
Store the session ID in your DB whenever someone signs in. Then if someone signs in, and the session ID is not the same, you can either block them from signing in, or you can have something in the request cycle that checks on every request to make sure that this session ID is still allowed to be s

how to avoid multiple session for the same username

2009-06-12 Thread tubin gen
I need suggestions on implementing single user login , like My system has a user with a usernamejdavid and my application should not allow two different sessions for the same username jdavid , can one session peep into all other session to see if the any has a usernaem jdavid, I am basically

Re: AW: inserting urls in script variables

2009-06-12 Thread Bas Vroling
wicked :) Thanks alot, saved my day! On Jun 12, 2009, at 17:33 , Jeremy Thomerson wrote: Yes - don't use a simple attribute modifier. Use an "AttributeModifier" that takes a model. Return the URL in the model. pseudo code: container.add(new AttributeModifier("value", true, new AbstractReadO

Re: page load timer

2009-06-12 Thread Igor Vaynberg
dont remember offhand, look in the source. -igor On Fri, Jun 12, 2009 at 9:29 AM, Steve Swinsburg wrote: > Thats the one I was after. A question though, what units are the > measurements displayed in? time/totaltime in milliseconds, session size in > bytes? > > thanks, > Steve > > On 12 Jun 2009,

Re: page load timer

2009-06-12 Thread Steve Swinsburg
Thats the one I was after. A question though, what units are the measurements displayed in? time/totaltime in milliseconds, session size in bytes? thanks, Steve On 12 Jun 2009, at 16:54, Igor Vaynberg wrote: getRequestLoggerSettings().setRequestLoggerEnabled(true); -igor On Fri, Jun 12,

Re: Wicket generics?

2009-06-12 Thread Igor Vaynberg
new DropDownChoice ? -igor On Fri, Jun 12, 2009 at 6:06 AM, Martin Makundi wrote: > I have casting problem: > > dropDown = new DropDownChoice(, new > ChoiceRenderer(...)); > > dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject()); > <-- DOES NOT COMPILE > > Is this a wicket

Re: page load timer

2009-06-12 Thread Igor Vaynberg
getRequestLoggerSettings().setRequestLoggerEnabled(true); -igor On Fri, Jun 12, 2009 at 3:04 AM, Steve Swinsburg wrote: > > Hi all, > > I vaguely remember seeing a component or setting that times how long it > takes to completely render a page then outputs the result in a Label, can > someone poi

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-12 Thread Jeremy Thomerson
This vote is closed. We will be releasing 1.4-rc5. 13 yes votes, 3 of which are binding. 1 sort of no vote, non-binding - Bernard didn't really say no, but raised an objection I'll work on completing the release later today. Announcements will follow. -- Jeremy Thomerson http://www.wickettrain

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
css is really crap (until i really can use box-sizing: border-box everywhere that will be a great relieve) who ever thought about that content-box should be shot and not through the head but shot at various places so that he will die a very painfull and slow death. its completely counter intuitiv

Re: AW: inserting urls in script variables

2009-06-12 Thread Jeremy Thomerson
Yes - don't use a simple attribute modifier. Use an "AttributeModifier" that takes a model. Return the URL in the model. pseudo code: container.add(new AttributeModifier("value", true, new AbstractReadOnlyModel()) { public CharSequence getObject() { return getRequestCycle().urlFor(dlink,

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
Yeah - but the other parts of the app I know that I can proficiently make - the business logic, tasks, etc... The only part that I don't have experience in is the desktop GUI - which is why I ask for help on that specific piece. And I have received a lot of helpful pointers! Thanks to everyone!

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Jeremy Thomerson
I used to hate HTML / CSS and had designers to do the layout. In the past couple years, I've had to do all my own layouts from photoshop images of what it should look like, and have become fairly proficient with HTML / CSS. To the point where I actually sort of like it. Not as much as coding the

Re: inserting urls in script variables

2009-06-12 Thread Wilhelmsen Tor Iver
> Put some wicket:id on that, then add a WebComponent for it that you add an AttributeModifier to, which sets the "value" attribute. > When I try to do the obvious, replace the {{URL_HERE}} part > with it complains > about non-valid XML and such. There are basically two groups

Re: dropdownchoice crashes IE7

2009-06-12 Thread Stefan Malmesjö
I think I found the answer to this - it has nothing to do with wicket at all. But, in case anyone wonders: http://www.techtalkz.com/internet-explorer/56120-ie7-drop-down-menus-crash-browser.html The users haven't tried the proposed solution yet, but at least it seems like it's not a wicket pro

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Erik van Oosten
I have some time ago. It doesn't get much priority from Spring Source so don't expect miracles. The main author is mostly tied up on Spring Webflow. Unrelated: I forgot to mention that you should absolutely use Glazed Lists when you're doing a Swing project. Regards, Erik. Jeremy Thomer

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Erik van Oosten
Major Péter wrote: I didn't actually used it, but this could be helpful for you: http://www.jformdesigner.com/ I have used JFormDesigner extensively, it is an excellent product. Simle, yet it has all layout features you need. Costs are not high. Works with open source JFormLayout layout manag

Re: refresh page

2009-06-12 Thread Luther Baker
Ok, so that 'almost' wraps this up. HypbridUrlCodingStrategy works perfectly for the Ajax-added data. My last problem is related to the form fields. In AjaxFallbackButton.onSubmit ... I clean out the input that holds the value I've just added to the database and redisplayed in a list to the user.

Wicket generics?

2009-06-12 Thread Martin Makundi
I have casting problem: dropDown = new DropDownChoice(, new ChoiceRenderer(...)); dropDown.getChoiceRenderer().getDisplayValue(dropDown.getModelObject()); <-- DOES NOT COMPILE Is this a wicket bug or bug in me? ** Martin -

Strange page behavior after getting UTF page parameters (for Wicket 1.4 RC2)

2009-06-12 Thread Uladzimir
Hello, Everybody There is very simple code: form with input line and submit button (to get words for searching): public void onSubmit() { PageParameters parameters = new PageParameters(); parameters.put( "searchLine", "words to search" ); se

dropdownchoice crashes IE7

2009-06-12 Thread Stefan Malmesjö
Hi! A couple of my users have reported that their IE7 crashes when they fiddle around with a dropdown in my app. The browser just shuts down completely when they make a choice in the drowpdownchoice box. It is ajax enabled. I have the exact same version of IE7, and I cannot repeat the proble

Re: Radio group selection not being saved if page submit fails due to validation errors...

2009-06-12 Thread Nicolas Melendez
Here is the URL of the ListView: http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/markup/html/list/ListView.html - NM On Thu, Jun 11, 2009 at 10:11 PM, Jen Van Orman wrote: > Igor, > > Thank you; this makes sense now, it was a matter of getting straightened > out > on

Re: refresh page

2009-06-12 Thread Luther Baker
> > mount the page with hybridurlcodingstrategy and your problems will go away. > Flawless Victory! Thanks everybody, -Luther

Re: page load timer

2009-06-12 Thread Martin Makundi
Hi! Here is a heavier Jamon example, but you can see how it is done: * http://blog.xebia.com/2008/02/02/monitor-wicket-page-request-using-jamon/ ** Martin 2009/6/12 Steve Swinsburg : > > Hi all, > > I vaguely remember seeing a component or setting that times how long it > takes to completely re

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread James Carman
I agree. However, finding the right GUI component library can make things look very nice a lot quicker than you can do it on your own. You still have to handle events properly (threading issues) and architect stuff the right way, but having a nice library of "widgets" is a great start. On Fri, Ju

page load timer

2009-06-12 Thread Steve Swinsburg
Hi all, I vaguely remember seeing a component or setting that times how long it takes to completely render a page then outputs the result in a Label, can someone point me in the right direction? Or is it as simple as just setting the start time in my BasePage, then checking again at the

Re: AW: inserting urls in script variables

2009-06-12 Thread Bas Vroling
Thanks, I looked at the source and did the following: public JalViewPanel(String id, DefaultMutableTreeNode treeNode) { super(id); activeNode = treeNode; dlink = new DownloadLink("downloadMsf", currentJalviewAlignment) { @O

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Thomas Singer
Yes, this is indeed very funny. People think, that making a good (desktop) user interface is just about making the right choice of the used architecture or GUI builder. That's plain wrong. You also can't automatically make good looking and behaving web applications, just because you know how html a

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Per Lundholm
GWT is nice until you have too many objects on screen, then performance drops to horrible. What I like about doing HTML is that a lot of the layout problems have been solved. Crude, yes, but solved. Here is some hundreds of JavaFX examples, http://jfxstudio.wordpress.com One is mine :-) /Per O

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Johan Compagner
Ha this is funny, I hear things like swing is horrible to design, from users that use wicket so html apps. I guess those dont design the webapps themselfs, because if i have to choose i would choose swing or swt over html/css any day.. I really hate css For swing apps just have a good ui builder l