Re: extra 'onclick' is generated for an image wrapped by a link

2008-12-28 Thread Doug Donohoe
This behavior is in 1.4-m3 and is new. I was running 1.4-m2 and a wicket:link around an a/img combo did the expected thing (see the current http://online.ddpoker.com/ for an example - the rss image links). I agree that this is wrong. -Doug Trent Larson wrote: I have the following plain

new wicket site live: online.ddpoker.com (+1 for generics)

2008-06-02 Thread Doug Donohoe
-thumbs-up success story for generics. Thanks to the people on this list who answered my questions. I hope to add more lessons learned to my wiki page this week (http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Wicket%20Notes). -Doug Donohoe -- View this message in context: http://www.nabble.com

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Doug Donohoe
1) Generifying* Wicket [X] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give Wicket. 2) How strongly do you feel about your choice above? [X*]

Re: AW: users, please give us your opinion: what is your take on generics with Wicket

2008-06-02 Thread Doug Donohoe
Stefan makes a good point. I have raised this as an example before. My site (online.ddpoker.com, just went live) is a mix of A and B. To make my code cleaner, I created several simple subclasses for cases where I don't use models. VoidPanel, VoidContainer (only a handful, really). Also,

Re: [ANNOUNCE] Apache Wicket 1.4 Milestone 2 is released

2008-06-02 Thread Doug Donohoe
The 1.4-m2 java doc is posted at http://www.ddpoker.com/javadoc/index.html -Doug Frank Bille wrote: Help the Apache Wicket team to determine the future of your Wicket based web application development. We have released our second milestone release of our Java 5 based web framework and

Re: Default Focus Behavior?

2008-05-29 Thread Doug Donohoe
This helped me. Thanks, jwcarman! -Doug jwcarman wrote: On 3/11/08, Martijn Dashorst [EMAIL PROTECTED] wrote: I suggest wiki. Done: http://cwiki.apache.org/confluence/display/WICKET/Request+Focus+on+a+Specific+Form+Component I'm happy now. My work (no matter how trivial) may

how to do something after each page is rendered

2008-05-27 Thread Doug Donohoe
I want to do something at the end of each request (basically save some information into a cookie so I can more gracefully handle session expiration). I created my own WebRequestCycle subclass (see below) and want to use onEndRequest(), but getPage() always returns null. First, why is it null?

Re: (Class? extends Page?) casting troubles

2008-05-22 Thread Doug Donohoe
I'll chime in again. I really like generics. When I first upgraded to 1.4, I did a bit of grumbling, but I came to realize some great benefits, especially with components. I'd hate to lose that (almost as much as I'd hate to go through my whole code base and remove that work). I did a couple

Re: (Class? extends Page?) casting troubles

2008-05-21 Thread Doug Donohoe
Having moved my wicket project to the 1.4 trunk, I have to say that I like generics quite a bit. Yes, there is a bit of a learning curve with them, but in general I like not having to cast my getModelObject() calls. It is especially nice inside of DataView and DropDownChoice. Learning curve

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
Somewhat related to this thread, when I moved to generics win Wicket 1.4, I created some utility classes such as: public class VoidContainer extends WebMarkupContainerlt;Void public class VoidPanel extends Panellt;Void public class StringLabel extends Labellt;String public class IntegerModel

RE: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
things about Wicket is that it keeps the bloat to a minimum. -Original Message- From: Doug Donohoe [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 14, 2008 8:21 AM To: users@wicket.apache.org Subject: Re: Using generics with some non-generic classes in Wicket Somewhat related

Re: Using generics with some non-generic classes in Wicket

2008-05-14 Thread Doug Donohoe
Doug Donohoe: Let me outline what I believe the benefits are. For example: add(new LabelString(tournamentName, tournament.getName())); add(new LabelString(hostName, game.getHostPlayer())); row.add(new AttributeModifier(class, true, new ModelString(row.getIndex() % 2 == 0 ? odd : even

Re: Url resolve...

2008-05-13 Thread Doug Donohoe
That actually looks to be correct behavoir.If your URL is www.myserver.com/myapplication/ , then going to .. takes you to www.mysesrver.com/myapplication (no trailing slash). Then going to /css/styles.css takes you to www.myserver.com/myapplication/css/styles.css Where is your CSS file

Wicket 1.4 Generics

2008-05-09 Thread Doug Donohoe
I just migrated to 1.4-M1 and converted all my classes to use the new generics support. It cleaned up my code quite nicely - I got to remove a lot of casting and cured many unchecked/raw messages. It also make the code much more readable - especially in list views, etc. Excellent work, Wicket

RE: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread Doug Donohoe
is trying to grab the label value and put it into the model. If anyone has run into such a problem I'd appreciate any input. Michael -Original Message- From: Doug Donohoe [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 8:41 AM To: users@wicket.apache.org Subject: RE

Re: PageParameters request-for-enhancement

2008-05-09 Thread Doug Donohoe
What is the likelihood that we can get this patch included in the next 1.4 milestone? Again, I'll repeat my offer to submit it myself if given commit access. I updated the JIRA issue with the API javadoc to show what I added. -Doug Doug Donohoe wrote: I created https://issues.apache.org

RE: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread Doug Donohoe
appreciate any input. Michael -Original Message- From: Doug Donohoe [mailto:[EMAIL PROTECTED] Sent: Friday, May 09, 2008 8:41 AM To: users@wicket.apache.org Subject: RE: DropDownChoice throws IllegalArgumentException with Integer values Post your code. It's hard

RE: DropDownChoice throws IllegalArgumentException with Integer values

2008-05-09 Thread Doug Donohoe
You can get at the underlying Integer by calling getKey() on the IntegerSelectChoice object the model holds. If that doesn't work, you'll have to figure out an alternative on your own. The good news is that you have working code to start from. -Doug Michael Mehrle wrote: I like your

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-07 Thread Doug Donohoe
Thank you Maarten for pointing out the documentation I wrote on this. In my project, I have 60+ jar files in the classpath and the scan only took 255 milliseconds (on a 1.66 ghz core duo mac). Initializing hibernate takes much longer. I think this is pretty decent, and since it is only

Re: wicket-extensions javadoc

2008-05-07 Thread Doug Donohoe
Matthijs, I had to host javadoc for my own wicketstuff-annotations project, so I decided to put the Wicket docs there (since the main site isn't up-to-date). I added wicket-extensions to the site: http://www.ddpoker.com/javadoc/ -Doug Matthijs Wensveen-2 wrote: Hi, I'm not sure this is

Re: PageParameters request-for-enhancement

2008-05-07 Thread Doug Donohoe
Hillenius wrote: Hi, You can best file an RFE in JIRA for things like this. The list is primarily for questions and discussions, and adding it to JIRA will at least make sure it stays on the list of things to look at. Cheers, Eelco On Thu, Apr 24, 2008 at 3:00 PM, Doug Donohoe [EMAIL

Wicket 1.4 and generics

2008-05-07 Thread Doug Donohoe
I'm just now using 1.4. What type of thing is expected for T in WebPageT ? It looks like what your model object is. But if your page doesn't use models (perhaps just it's children do), is the correct thing to do this? class MyPage extends WebPage I have lots of 'unchecked' and 'raw use'

Wicket 1.4 faster in development

2008-05-07 Thread Doug Donohoe
I don't know if this is intentional or not, but pages seem to load much faster in development mode in Wicket 1.4-m1. It looks like the CSS and JS files are not reloaded on each request as they were previously. Was this an intentional change? -Doug -- View this message in context:

Re: Wicket 1.4 and generics

2008-05-07 Thread Doug Donohoe
HTML gobbled my lt;Object in that last message ... my proposed example was: class MyPage extends WebPagelt;Object Doug Donohoe wrote: I'm just now using 1.4. What type of thing is expected for T in WebPageT ? It looks like what your model object is. But if your page doesn't use

Re: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread Doug Donohoe
. Believe me, I spent an hour staring out the window trying to decide on the right name. Hopefully the documentation explains clearly what it does. -Doug Matthijs Wensveen-2 wrote: Doug Donohoe wrote: I am pleased to announce the 1.0 release of wicketstuff-annotation. Nice. But the name

RE: [announce] wicketstuff-annotation 1.0 released

2008-05-06 Thread Doug Donohoe
things smaller is a better idea. That way, if I want to use automount, but I don't want all of the other annotation-based goodies, I can just download this little nugget and use it. On Tue, May 6, 2008 at 3:55 PM, Doug Donohoe [EMAIL PROTECTED] wrote: Matthijs

Re: Wicket 2.0 time frame

2008-05-03 Thread Doug Donohoe
Eelco, Thanks for the thorough and thoughtful reply. Perhaps there are things that can be done in the framework with cookies and such. I am going to be looking to additions to wicket. I need to get the source built and working in my local environment. -Doug Eelco Hillenius wrote:

Re: Wicket 2.0 time frame

2008-05-01 Thread Doug Donohoe
Hi Jonathan, I'd like to open a discussion about this stance on stateless web ui because I think the original question is really one about Wicket's use of the session. By default, all wicket forms and links are stateful or dependent on the Wicket Session. If the session goes away, the links

Re: submit form to bookmarkable page

2008-05-01 Thread Doug Donohoe
Hi Catalin, Good find on the 'formname:elementname' issue. I'm not sure whether isTransparentResolver() will solve the issue - you can try it and find out. I ended up using a StatelessForm and redirect as I've document here:

Re: Wicket 2.0 time frame

2008-05-01 Thread Doug Donohoe
this, the more i'm suspecting you've just got a bunch of configuration problems. what version of wicket are you using and what session store implementation? also, tomcat provides a facility for writing out less active sessions to disk. Doug Donohoe wrote: Hi Jonathan, I'd like

StatelessForm doesn't work with GET method

2008-04-30 Thread Doug Donohoe
As part of my effort to submit a form to a bookmarkable page, I discovered this bug when trying to uses a stateless form with the GET method of a form. I've documented my saga at http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Bookmarkable%20Form%20Submission%20in%20Wicket The original

Re: submit form to bookmarkable page

2008-04-30 Thread Doug Donohoe
Compagner wrote: What you want is just stateless forms, but if you just want to do a get to a page then your page with the form can be really simple Just 1 markup container for the form tag that just has an atribute modifier that sets the action to the page url. On 4/29/08, Doug Donohoe [EMAIL

Re: submit form to bookmarkable page

2008-04-30 Thread Doug Donohoe
Martijn Dashorst wrote: On 4/30/08, Doug Donohoe [EMAIL PROTECTED] wrote: Setting the action to the page URL doesn't quite work with default wicket URLs since they pass information in the query string and browsers ignore anything after the '?' in a GET action. Huh? Query string encoding

Re: StatelessForm doesn't work with GET method

2008-04-30 Thread Doug Donohoe
I created a JIRA issue: https://issues.apache.org/jira/browse/WICKET-1580 Doug Donohoe wrote: As part of my effort to submit a form to a bookmarkable page, I discovered this bug when trying to uses a stateless form with the GET method of a form. I've documented my saga at http

Re: Spring 2.5 and Wicket, our vision about integration

2008-04-28 Thread Doug Donohoe
Having just written several pages that use @SpringBean, I agree that this new implementation seems quite awkward. Today, all I do is declare the services in the classes that need them and access that member directly. What if I want to share those pages across multiple applications? Then I need

Re: submit form to bookmarkable page

2008-04-28 Thread Doug Donohoe
to a bookmarkable page. but then you have to parse all posted values yourself. if you dont care about the url you can use a statelessform instead and probably avoid a bunch of headache. -igor On Sat, Apr 26, 2008 at 6:36 AM, Doug Donohoe [EMAIL PROTECTED] wrote: Hi, I'm like to submit a form

Re: submit form to bookmarkable page

2008-04-28 Thread Doug Donohoe
doesnt popup that annoying post values dialog. overriding oncomponenttag() should work just fine, you just have to make sure to call super first. -igor On Mon, Apr 28, 2008 at 7:08 PM, Doug Donohoe [EMAIL PROTECTED] wrote: Overriding onComponentTag doesn't seem to work. The URL

submit form to bookmarkable page

2008-04-26 Thread Doug Donohoe
Hi, I'm like to submit a form using bookmarkable page style, so that a) the form can always be submitted, regardless if the session is expired or not (think of a Google search submission e.g., http://www.google.com/search?q=wicket) b) the form remembers PageParameters that were there when the

Re: submit form to bookmarkable page

2008-04-26 Thread Doug Donohoe
values yourself. if you dont care about the url you can use a statelessform instead and probably avoid a bunch of headache. -igor On Sat, Apr 26, 2008 at 6:36 AM, Doug Donohoe [EMAIL PROTECTED] wrote: Hi, I'm like to submit a form using bookmarkable page style, so that a) the form

Re: Panel that replaces surrogate element rather than contained within it

2008-04-25 Thread Doug Donohoe
I think in order to support updates, you need an output id on the lt;ul element. I assume that is what you want to replace ... Have you tried adding a wicket:id to the lt;ul and then calling setOutputMarkupId() on that element? -Doug Sam Hough wrote: Is there a nice way to make a

Re: intro and explanation about DataTable and DetachableModel

2008-04-24 Thread Doug Donohoe
This may help. I am moving my DD Poker site to wicket and implemented an IDataProvider around my database service as follows: private class HistoryData implements IDataProvider { private static final long serialVersionUID = 42L; private PokerUser user; private int

PageParameters request-for-enhancement

2008-04-24 Thread Doug Donohoe
Hi Wicket team: I'd like to be able to call getInt(name, default) and not have to worry about catching exceptions. If the number can't be parsed, just return the default. I have a utility method which I use: public static int getInt(PageParameters params, String name, int def) {

Re: interesting scriptaculous usage conundrum

2008-04-23 Thread Doug Donohoe
Any ideas from the wicket developers? In the end, this is a question about how the architecture work. -Doug Doug Donohoe wrote: The issue isn't with Ajax - that part is working. The issue is when the form is submitted (normally, not via ajax) and redisplayed (e.g., if an error occurs

Re: If logic in wicket seems complicated

2008-04-22 Thread Doug Donohoe
); notLoggedIn.setVisible(!hasUser); add(notLoggedIn); ... to ... add(new Fragment(description, hasUser ? loggedIn : notLoggedIn, this)); ... which is quite simpler. -Doug Doug Donohoe wrote: Thanks igor for the suggestion. It's not quite that simple. If it is a valid

Re: If logic in wicket seems complicated

2008-04-22 Thread Doug Donohoe
://jweekend.com/dev/LWUGReg/ London Wicket Event registration page we use something like this to show registrants' names as links only if they have entered a URL. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk Doug Donohoe wrote: Thanks igor for the suggestion. It's not quite

Re: interesting scriptaculous usage conundrum

2008-04-22 Thread Doug Donohoe
'. For some reason, if I disable that modifier or use the model approach you suggested, wicket ignores that. -Doug John Krasnay wrote: On Mon, Apr 21, 2008 at 02:11:01PM -0700, Doug Donohoe wrote: Hi John, Thanks for the suggestion, but that did not work. I suspect it didn't work

interesting scriptaculous usage conundrum

2008-04-21 Thread Doug Donohoe
I am trying to implement a login section which appears (inserted into he page) when a user clicks a [login] link at the top of the page. I have this working fine with AjaxFallbackLink which turns visibility on/off based on the link. The pertinent code is as follows: Link link = new

If logic in wicket seems complicated

2008-04-21 Thread Doug Donohoe
As mentioned in previous posts, I'm a new wicket user and I'm migrating online.ddpoker.com to it. I may be having a mental block, but I'm finding it tedious to implement 'if' behavior in Wicket. As an example, I have a page which lists information about a DD Poker online user. It lists known

Re: interesting scriptaculous usage conundrum

2008-04-21 Thread Doug Donohoe
) { hidePanel = b; } } @Override protected void onAfterRender() { displayModel.setHidePanel(false); super.onAfterRender(); } -Doug John Krasnay wrote: On Mon, Apr 21, 2008 at 07:18:57AM -0700, Doug Donohoe wrote: So I added

Re: If logic in wicket seems complicated

2008-04-21 Thread Doug Donohoe
On Mon, Apr 21, 2008 at 11:33 AM, Enrique Rodriguez [EMAIL PROTECTED] wrote: On Mon, Apr 21, 2008 at 11:27 AM, Doug Donohoe [EMAIL PROTECTED] wrote: ... I may be having a mental block, but I'm finding it tedious to implement 'if' behavior in Wicket. I use Wicket Fragments all over

clarification on page versioning

2008-04-19 Thread Doug Donohoe
I have a page which displays a [login box] (if not logged in) or an info box [user name|logout link] if logged in. I implemented this as follows: User user = BaseSession.get().getLoggedInUser(); if (user == null) { add(new Login(login)); }

Re: clarification on page versioning

2008-04-19 Thread Doug Donohoe
Thanks for the post. I'd probably have to do an anonymous subclass of my Login panel. It doesn't know about it's parent or what the parent might like to swap in when a logged in user is present. I'll look under the covers of replaceWith() - I basically want to do whatever replaceWith() does

Re: clarification on page versioning

2008-04-19 Thread Doug Donohoe
to limit the size of the page map. Anyone have any insights on this? -Doug Carl-Eric Menzel-5 wrote: Doug Donohoe wrote: I'd probably have to do an anonymous subclass of my Login panel. It doesn't know about it's parent or what the parent might like to swap in when a logged in user

wicket-spring dependency in maven repository

2008-04-18 Thread Doug Donohoe
I'm using wicket-spring-annot and ran into a small problem with maven dependencies. The wicket-spring-annot project depends on wicket-spring. Wicket-spring in turn depends on the entire monolithic spring.jar instead of the now-preferred spring-core.jar. This caused a problem in my environment

Re: wicket markup documentation and question on threading/clustering

2008-04-18 Thread Doug Donohoe
Thanks for the fast response. igor.vaynberg wrote: On Thu, Apr 17, 2008 at 6:48 PM, Doug Donohoe [EMAIL PROTECTED] wrote: I'm looking for a complete list of all wicket markup (e.g., wicket-panel, wicket-child, wicket-exclude etc). I didn't find anything obvious via Google

wicket markup documentation and question on threading/clustering

2008-04-17 Thread Doug Donohoe
Hi Wicket Community: I'm new to Wicket - I'm using it to rebuild and enhance my www.ddpoker.com website. So far I am very impressed with Wicket. I have two books - the Wicket in Action MEAP early access edition and enjoy web development with wicket. I'm looking for a complete list of all