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 H
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 an
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, s
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*] Whateve
-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
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 tr
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? S
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
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
pro
;
>
>
>
> Am 14.05.2008 um 15:47 schrieb Doug Donohoe:
>
>>
>> Let me outline what I believe the benefits are. For example:
>>
>> add(new Label("tournamentName", tournament.getName()));
>> add(new Label("hostName", game.getHostPl
readability and
maintainability.
-Doug
Hoover, William wrote:
>
> imho, that seems like that adds a lot of unnecessary code. One of the
> nice things about Wicket is that it keeps the bloat to a minimum.
>
> -Original Message-
> From: Doug Donohoe [mailto:[EMAIL PROTECTED]
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 WebMarkupContainer
public class VoidPanel extends Panel
public class StringLabel extends Label
public class IntegerModel exten
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 stor
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 sol
1.3.3.
>
> Michael
>
> -Original Message-
> From: Doug Donohoe [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 09, 2008 9:30 AM
> To: users@wicket.apache.org
> Subject: RE: DropDownChoice throws IllegalArgumentException with Integer
> values
>
>
> I po
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
e problem lies in the conversion, and that Wicket
> somehow 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
Post your code. It's hard to guess w/out seeing the code. I have an
integer-based drop down choice working well (I used that example as my
starting point).
-Doug
Michael Mehrle wrote:
>
> Anyone? Was hoping for some input here ;-)
>
> -Original Message-
> From: Michael Mehrle [mailt
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 t
HTML gobbled my <Object> in that last message ... my proposed example was:
class MyPage extends WebPage<Object>
Doug Donohoe wrote:
>
> I'm just now using 1.4. What type of thing is expected for T in
> WebPage ?
>
> It looks like what your model object i
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:
http://www.
I'm just now using 1.4. What type of thing is expected for T in WebPage ?
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' warnin
Eelco 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
>
&
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 i
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 incurr
tion.mount() defaults
too.
-Doug
Jonathan Locke wrote:
>
>
> neato. but don't you think MountBookmarkablePageRequestTarget could be
> just MountBookmarkable?
>
>
> Doug Donohoe wrote:
>>
>> I am pleased to announce the 1.0 release of wicketstuff-annotat
keeping 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
. 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.
>>
projects (if they need one).
Thanks,
-Doug Donohoe
Use wicketstuff-annotation to use Java Annotations and class path searching
to mount your Wicket pages:
@MountPath(path = "terms")
public class Terms extends WebPage { ... }
@Moun
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:
>
>
>>
onathan Locke wrote:
>
>
> the more i think about 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
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:
http://wiki.donohoedigital.com/wiki/Wiki.jsp?page=Bookmarkable%20Form
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 a
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 s
dden or otherwise).
-Doug
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
>&
;
>>
>> igor.vaynberg wrote:
>> >
>> > thats what stateless forms are for. after a submit you want a redirect
>> > anyways so that a refresh doesnt popup that annoying post values
>> > dialog.
>> >
>> > overriding oncomponenttag() shoul
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 threa
ms are for. after a submit you want a redirect
> anyways so that a refresh 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 a
oncomponenttag callback with a
> url 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
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
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
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 p
I think in order to support updates, you need an output id on the
element. I assume that is what you want to replace ... Have you tried
adding a wicket:id to the and then calling setOutputMarkupId() on
that element?
-Doug
Sam Hough wrote:
>
> Is there a nice way to make a compone
I think in order to support updates, you need an output id on the
element. I assume that is what you want to replace ... Have you tried
adding a wicket:id to the and then calling setOutputMarkupId() on
that element?
-Doug
Sam Hough wrote:
>
> Is there a nice way to make a compone
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)
{
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 co
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.,
ne'. 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
the
> requirements you have mentioned, so far.
> On the http://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.c
uot;notLoggedIn");
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
then there is no need to toggle the none fragment to show up
>
> -igor
>
>
> 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:
>> > ...
>&g
: "";
}
private void setHidePanel(boolean b)
{
hidePanel = b;
}
}
@Override
protected void onAfterRender()
{
displayModel.setHidePanel(false);
super.onAfterRender();
}
-Doug
John Krasnay wrote:
>
> On Mo
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 al
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 Ajax
ontrols one has 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 wha
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 wi
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"));
}
el
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
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
i
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 w
60 matches
Mail list logo