Re: Forum?

2008-05-21 Thread Maurice Marrink
On Wed, May 21, 2008 at 12:23 AM, Uwe Schäfer <[EMAIL PROTECTED]> wrote: > Maurice Marrink schrieb: > >>> feel free, to convert me ;) >> >> I am not good at converting people, either you see the light or you don't >> :P > > *g* > >> One of the strong points of swarm (imo ;)) is the ease with which

Re: (Class>) casting troubles

2008-05-21 Thread Gerolf Seitz
Eelco, can you try it again with latest trunk? Cheers, Gerolf On Wed, May 21, 2008 at 6:54 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 9:44 PM, Gerolf Seitz <[EMAIL PROTECTED]> > wrote: > > i have the fix for that in my local checkout and > > will commit it sometim

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread gumnaam23
I would love too. But what confuses me is the aim of wicketstuff projects. Some of them seem to follow wicket release cycle, some have their own cycle, and always build against wicket-trunk. It would be helpful if wicketstuff projects have a clearer release cycle plan. Also some projects use rele

Re: Annoying enclosure bug introduced in Wicket 1.3.3

2008-05-21 Thread Edvin Syse
Confirmed :) It works with 1.3-SNAPSHOT -- Edvin Igor Vaynberg skrev: already fixed in trunk afair -igor On Tue, May 20, 2008 at 3:14 PM, Edvin Syse <[EMAIL PROTECTED]> wrote: Hi, I think this is my third bug found in the enclosure system :) Simple quickstart: HomePage.java: public cla

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Igor Vaynberg
why should all wicket-stuff projects follow the same release schedule? all these projects are owned by different people, their only thing in common being the svn repository. -igor On Wed, May 21, 2008 at 12:58 AM, gumnaam23 <[EMAIL PROTECTED]> wrote: > > I would love too. But what confuses me is

Re: Spring?

2008-05-21 Thread Peter Ertl
at this point because of the convenience and flexibility it offers. Guice looks nice, but the tool support isn't there yet. That's why I use guice. Because you don't even need tools :-) Am 21.05.2008 um 03:32 schrieb Nick Heudecker: I have to agree with James. I wouldn't build an applicat

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Martijn Dashorst
On Wed, May 21, 2008 at 10:08 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > why should all wicket-stuff projects follow the same release schedule? Because it will bring balance to the force? Seriously, having such a huge component library available is good, but when they are not maintained and n

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
always strange that that works If you just look at it then it seems to be the same thing :) i already did those changes for IVisitor, from public final Object visitChildren(final Class clazz, final IVisitor> visitor) to this i believe. public final > Object visitChildren(final Class clazz, final

Re: (Class>) casting troubles

2008-05-21 Thread Gerolf Seitz
On Wed, May 21, 2008 at 10:30 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > always strange that that works > If you just look at it then it seems to be the same thing :) > tbh, i would still like to get an explanation _why_ it works with > and not directly with >. Gerolf

Re: AjaxButton without a Form

2008-05-21 Thread Gerolf Seitz
you can have in markup and new AjaxLink("linkButton") {...} in java code. Gerolf On Tue, May 20, 2008 at 2:35 AM, mnwicket <[EMAIL PROTECTED]> wrote: > > That is an option, but would rather use; > > > > I have styles around my input buttons that I want to reuse. I'm sure I can > create my o

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
Am I the only one who gets confused with all those <>? Can't we just drop the component generification? I see a lot of problems and type duplication for little gain. I think having IModel generified is a good thing because it allows you to specify types on your component constructors. Martijn On

Re: (Class>) casting troubles

2008-05-21 Thread Timo Rantalaiho
On Wed, 21 May 2008, Martijn Dashorst wrote: > Am I the only one who gets confused with all those <>? Can't we just > drop the component generification? I see a lot of problems and type > duplication for little gain. I think having IModel generified is a > good thing because it allows you to specif

Re: Why Localizer Retained so many heapsize?

2008-05-21 Thread Quan Zhou
i remove the code "cursor.getId()" from Localizer.getCacheKey and deploy it to the server. No more memory leak detected. the server runs well for several days. Great thanks to Johan. 2008/5/15 Quan Zhou <[EMAIL PROTECTED]>: > Maybe you're right. > Yesterday I deployed the application in a high lo

Re: (Class>) casting troubles

2008-05-21 Thread Wouter Huijnink
Am I the only one who gets confused with all those <>? you are not! Can't we just drop the component generification? I see a lot of problems and type duplication for little gain. I think having IModel generified is a good thing because it allows you to specify types on your component constru

Re: (Class>) casting troubles

2008-05-21 Thread Peter Ertl
I suspect the multiple wildcards (?) in one type expression causing all that trouble. probably an issue of the compiler and not of the language spec. public class Test { public static void main(String[] args) { bad(Derived.class); // ok bad(Base.class); // compile error good(De

Re: (Class>) casting troubles

2008-05-21 Thread Peter Ertl
Also if you use CompoundPropertyModels (widely used) then generics are completely not used anymore at all.. Speaking for me, I never use expression based property models in any mid- to large-sized project to have complete(!) refactoring support in my IDE. String expression are a lot less v

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
On Wed, May 21, 2008 at 11:03 AM, Johan Compagner <[EMAIL PROTECTED]> wrote: > if we drop that then we can pretty much drop also model Not sure. I think having Component(String id, IModel model) is a good thing. However, generifying Component further to get rid of the cast when doing getModelObjec

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
if we drop that then we can pretty much drop also model Because the model goes into the Component and gone is the generified model. Also if you use CompoundPropertyModels (widely used) then generics are completely not used anymore at all.. So what do we gain then? For example the DropDownChoice t

Re: (Class>) casting troubles

2008-05-21 Thread Peter Ertl
Maybe this can help a little: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6384510 (verified with java 1.5 on mac os x leopard) Am 21.05.2008 um 11:13 schrieb Martijn Dashorst: On Wed, May 21, 2008 at 11:03 AM, Johan Compagner <[EMAIL PROTECTED] > wrote: if we drop that then we can pret

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
and both compilers Eclipse and Javac both report the problem? What happens if if we say then raw types are not allowed anymore At least that is what sun says and also wants.. So i get > that that gives a compile error if you give a Component that is of raw type But why is it that if you do xxx

Re: (Class>) casting troubles

2008-05-21 Thread Wouter Huijnink
Martijn Dashorst wrote: That is not my problem. The problem is that Component is confusing as hell and opens up the box of pandorra wrt generics. I *like* IModel but I fail to see how setResponsePage(>>) is necessary for this. The only reason iirc to generify component is to remove the casts for

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
That is not my problem. The problem is that Component is confusing as hell and opens up the box of pandorra wrt generics. I *like* IModel but I fail to see how setResponsePage(>>) is necessary for this. The only reason iirc to generify component is to remove the casts for these two methods: IModel

Re: Ajax postcall handler does not get called every time

2008-05-21 Thread TonyVegas
*revive zombie* has any simple solution been found? I am dealing with the same issue. RobinShine wrote: > > Hi Matt, > > Thanks for your quick answer. Although in this simple case, it is enough > to only update the count label. However in my application, it is > necessary to update the wh

Re: Spring?

2008-05-21 Thread Uwe Schäfer
Peter Ertl schrieb: at this point because of the convenience and flexibility it offers. Guice looks nice, but the tool support isn't there yet. That's why I use guice. Because you don't even need tools :-) +1 for guice: very easy, powerful, small, lightweight, blazing fast, no xml/all jav

Re: Creating Image from local directory outside project

2008-05-21 Thread Blackbird
Worked great. What I did: 1) Created the FileResource class: public class FileResource extends WebResource { private static final long serialVersionUID = 1L; private File file; public FileResource(File file) { this.file = file; } @Override public IReso

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
as i said. any generified use of CompoundPropertyModel is gone Also if you make getModel() return a normal IModel that is of raw type i think you get warnings everywhere again... and i think only suppresswarnings will help those Because if yo do IModel stringModel = (IModel)component.getModel();

Re: (Class>) casting troubles

2008-05-21 Thread Jan Kriesten
Hi, IModel getModel() Object getModelObject() I can live with having these methods not being generified. for my own cases, generics have been also been more pain- than helpful with Wicket. I don't see any _real_ advantage in having all components needing a type just for the sake of typing

Re: Html mail representation

2008-05-21 Thread Davidoff
i resolved that problem...i put a label instead of MultiLineLabel...thanks. Now i want optimize the opening of the email. MailAccount.java package ajaxubimail.index; import java.io.IOException; import java.util.Arrays; import java.util.List; import java.util.Properties; import javax.mail.Addre

AutoCompleteTextField in 1.4-SNAPSHOT

2008-05-21 Thread Daniel Peters
Hi, i'm trying to implement an AutoCompleteTextField that selects from a List of POJOs. In my example i want to select an Artist from a Database. (see code at end of the mail) I ran into two problems there... 1.) generic implementation all classes are generic and of type "Artist", but AutoCom

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Martin Funk
Igor Vaynberg wrote: why should all wicket-stuff projects follow the same release schedule? all these projects are owned by different people, their only thing in common being the svn repository. Technically you are right. But I think there is more to it, than just only technique. More than

RE: Providing IModel to Validators

2008-05-21 Thread Hoover, William
What I'm proposing would not require the same "first name" model on both validators. I might not have been clear enough in my explanation... StringValidator.minimum='${label}' with value '${input}' is shorter than the minimum of ${minimum} characters. CustomStringValidator.minimum='${label}' with

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: That is not my problem. The problem is that Component is confusing as hell and opens up the box of pandorra wrt generics. I *like* IModel but I fail to see how setResponsePage(>>) is necessary for this. The only reason iirc to generify component is to remove the casts for

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
On Wed, May 21, 2008 at 2:19 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Generics are hard, especially for library/framework designers: it's hard to > get them exactly right, especially with wildcards in complex cases. But just > because they are not currently exactly right yet in M1 seems

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: On Wed, May 21, 2008 at 2:19 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Generics are hard, especially for library/framework designers: it's hard to get them exactly right, especially with wildcards in complex cases. But just because they are not currently exactly r

Re: (Class>) 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 pro

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
On Wed, May 21, 2008 at 2:44 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: >> Generified component touches *ALL* code in Wicket, wether you care or >> not. IModel itself is rather contained. > Yes, but in my opinion rather useless as well. Plus you get heaps of > @SuppressWarnings all over the

Re: (Class>) casting troubles

2008-05-21 Thread Joni Freeman
On Wed, 2008-05-21 at 14:44 +0200, Sebastiaan van Erk wrote: > Martijn Dashorst wrote: > > Generified component touches *ALL* code in Wicket, wether you care or > > not. IModel itself is rather contained. > > Yes, but in my opinion rather useless as well. Plus you get heaps of > @SuppressWarning

Re: Spring?

2008-05-21 Thread Thomas Mäder
Why would you add a large chunk of code to your project if you're not sure you're going to need it? My advice: leave Spring out until it's actually solving a concrete problem for you. Thomas PS: but then again I never understood what Spring was for anyway ;-) On Wed, May 21, 2008 at 2:04 AM, Bru

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
I must say if this works, it has my +1000 support. Martijn On Wed, May 21, 2008 at 3:01 PM, Joni Freeman <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-21 at 14:44 +0200, Sebastiaan van Erk wrote: >> Martijn Dashorst wrote: >> > Generified component touches *ALL* code in Wicket, wether you care o

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Martijn Dashorst wrote: On Wed, May 21, 2008 at 2:44 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Generified component touches *ALL* code in Wicket, wether you care or not. IModel itself is rather contained. Yes, but in my opinion rather useless as well. Plus you get heaps of @SuppressWarn

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Joni Freeman wrote: On Wed, 2008-05-21 at 14:44 +0200, Sebastiaan van Erk wrote: Martijn Dashorst wrote: Generified component touches *ALL* code in Wicket, wether you care or not. IModel itself is rather contained. Yes, but in my opinion rather useless as well. Plus you get heaps of @SuppressW

Re: Spring?

2008-05-21 Thread James Carman
On Wed, May 21, 2008 at 9:03 AM, Thomas Mäder <[EMAIL PROTECTED]> wrote: > Why would you add a large chunk of code to your project if you're not sure > you're going to need it? My advice: leave Spring out until it's actually > solving a concrete problem for you. Spring (or another dependency injec

Re: (Class>) casting troubles

2008-05-21 Thread Ryan McKinley
does this mean it should work now? strangely, things work fine for me in eclipse, but from the command line, I still get: $ mvn clean install: /Users/ryan/Documents/workspace/dexter/website/src/java/dexter/website/ wicket/page/DownloadingPage.java:[18,97] inconvertible types found : jav

Re: Html mail representation

2008-05-21 Thread Davidoff
i did it...was simple!I had to declare Folder folder field in ListView Constructor... now the systems opens the mails, but the problem is it not opens non-HTML mails...How can i do the trick? Davidoff wrote: > > i resolved that problem...i put a label instead of > MultiLineLabel...thanks. > Now

Re: (Class>) casting troubles

2008-05-21 Thread Joni Freeman
On Wed, 2008-05-21 at 15:22 +0200, Sebastiaan van Erk wrote: > Does this always work nicely though, because you need to do a capture > which means that the compiler must be able to infer the type... I've had > problems before in these kind of situations that for me it seems > obvious, but the

Re: 1.3.4 Release

2008-05-21 Thread OliZilla
Any news on the 1.3.4 release date yet? We are waiting on a couple of fixes that are already committed, but we don't want to go back to using a SNAPSHOT if the 1.3.4 release is on the horizon. Cheers, Oli -- View this message in context: http://www.nabble.com/1.3.4-Release-tp16810205p1736424

Date Validation

2008-05-21 Thread Tim Sarver
How does one validate two dates with one another on the same form? As seen in the snippets below, I've added the validators in the onSubmit() of the form which actually works, though not on the first time the form is submitted only on subsequent submittals. Could someone throw me a bone on how

Re: Date Validation

2008-05-21 Thread James Carman
Use a custom validator? On Wed, May 21, 2008 at 10:13 AM, Tim Sarver <[EMAIL PROTECTED]> wrote: > How does one validate two dates with one another on the same form? As seen > in the snippets below, I've added the validators in the onSubmit() of the form > which actually works, though not on the f

Re: (Class>) casting troubles

2008-05-21 Thread Gerolf Seitz
Ryan, this is already fixed in trunk and will be included in the rebuilt M2 release. Gerolf On Wed, May 21, 2008 at 3:49 PM, Ryan McKinley <[EMAIL PROTECTED]> wrote: > does this mean it should work now? > > strangely, things work fine for me in eclipse, but from the command line, I > still get

External Form target

2008-05-21 Thread mmocnik
Hi, I want to create a form in a Wicket Panel that POSTs its data to an external site. Simple coding it in the HTML does not work since the target URL and some hidden values will be insterted dynamically. Is there something similar to an ExternalLink only form Forms? Or do I have to add the HTML

Re: (Class>) casting troubles

2008-05-21 Thread Ryan McKinley
The changes to BookmarkablePageLink are working, but not for RestartResponseAtInterceptPageException? It looks like BookmarkablePageLink is: new BookmarkablePageLink(final String id, final Class pageClass) while new RestartResponseAtInterceptPageException( final Class< ? ext

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
yes i also thought about some time ago. But this is not really better... Now without you doing a cast in the code (so that you know what you are doing) you suddenly have a class cast exception at some point later on class MyComp extends Component { public MyComp() { IModel mode

Re: GMap2 problem with displaying in IE 6/7

2008-05-21 Thread Martin Funk
Just to make shure, do you still see a bug? Or are things fine now? mf 2008/5/20 Java Programmer <[EMAIL PROTECTED]>: > Found bug in that version comma after 'marker': overlayID, in > addGOverlayListener click event, probably repaired in earlier > versions, sorry for troubling you :(. > > Best

Re: (Class>) casting troubles

2008-05-21 Thread Sebastiaan van Erk
Johan Compagner wrote: yes i also thought about some time ago. But this is not really better... Now without you doing a cast in the code (so that you know what you are doing) you suddenly have a class cast exception at some point later on class MyComp extends Component { public MyComp()

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
Typesafety from getObject() was never the ultimate goal. API clarity was, and JavaDoc is not API clarity. Martijn On Wed, May 21, 2008 at 4:59 PM, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > Johan Compagner wrote: >> >> yes i also thought about some time ago. >> >> But this is not really bett

RE: (Class>) casting troubles

2008-05-21 Thread Zappaterrini, Larry
I think that is only part of the problem in this instance. The other part of the problem is that Base.class presents only runtime information. There is no way to invoke Base.class to get Class> in a manner similar to how you can invoke a generic method. The type represented in the <> returned by a

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
Generics is type safety Not API clarity that was only the case in a few things. I am against this abuse big time -1000 from me Then no generics johan On Wed, May 21, 2008 at 5:03 PM, Martijn Dashorst < [EMAIL PROTECTED]> wrote: > Typesafety from getObject() was never the ultimate goal. API cla

Re: 1.3.4 Release

2008-05-21 Thread Frank Bille
I think we are ready to release 1.3.4. Let me ping the others if it can be this weekend (I don't have time before) Frank On Wed, May 21, 2008 at 3:57 PM, OliZilla <[EMAIL PROTECTED]> wrote: > > Any news on the 1.3.4 release date yet? > We are waiting on a couple of fixes that are already committe

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
On Wed, May 21, 2008 at 5:05 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > Generics is type safety I didn't say generics isn't type safety. But APPLYING generics for the Wicket framework API *ISN'T* its primary goal. API clarity *IS*. Less questions on the mailing list regarding DDC, ListView,

Re: Spring?

2008-05-21 Thread cwilkes
Bruce McGuire-2 wrote: > > There are aspects (no pun intended) of Spring that we like, but are unsure > if the benefits (AOP, IOC) are worth the added effort. > If you use the @SpringBean annotation in your Wicket classes there's not really any added effort at all. Everytime I add one of thes

Re: External Form target

2008-05-21 Thread Jeremy Thomerson
You could use a WebMarkupContainer and attribute modifiers. It may not be the most elegant, but WMC works for decorating any kind of HTML tag in the markup... Markup: ... Code: WebMarkupContainer form = new WebMarkupContainer("externalForm"); form.add(new AttributeModifier("act

Re: Spring?

2008-05-21 Thread sualeh
Here is another jumping-off point, that uses JPA along with @SpringBean annotations. http://wicket-learning-application.googlecode.com/svn/trunk/ jwcarman wrote: > > If you want a "jumping off point", you can start with my example > project I used for a talk I gave on Wicket last night: > > ht

Re: Repeating suggestions...

2008-05-21 Thread Gwyn Evans
Thanks, yes, I'd been looking at RepeatingView and hadn't noticed ListView, which was what I really needed, as I needed to have embedded components, which RV doesn't do but LV does... That and: listItem.setMarkupId(PREFIX + index); listItem.setOutputMarkupId(true); pretty much sorted it...

How to strip wicket tags from markup in development mode?

2008-05-21 Thread Lauri Lehtinen
Hi - Is there an easy way to strip the wicket tags from the produced markup while keeping the application in development mode? I'm finding the development of a Facebook FBML app pretty painful, as are ignored by Facebook and result in error messages. With deployment configuration I get arou

Re: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Gerolf Seitz
in MyApplication.init(): getMarkupSettings().setStripWicketTags(true); Gerolf On Wed, May 21, 2008 at 7:08 PM, Lauri Lehtinen < [EMAIL PROTECTED]> wrote: > Hi - > > Is there an easy way to strip the wicket tags from the produced markup > while keeping the application in development mode? > >

Re: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Uwe Schäfer
Lauri Lehtinen schrieb: Is there an easy way to strip the wicket tags from the produced markup while keeping the application in development mode? take a look at http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wicket/settings/Settings.html#setStripWicketTags(boolean) cu uw

RE: How to strip wicket tags from markup in development mode?

2008-05-21 Thread Zappaterrini, Larry
In Application.init add getMarkupSettings().setStripWicketTags(true); -Original Message- From: Lauri Lehtinen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 1:09 PM To: users@wicket.apache.org Subject: How to strip wicket tags from markup in development mode? Hi - Is there an e

How to localize each DropDownChoice separately?

2008-05-21 Thread Martin Makundi
Hi! Does the Wicket localizer support overriding localization for each component? This is what I have: add(new DropDownChoice(TYPE_PICKER, typeChoices)); add(new DropDownChoice(DATE_PICKER, dateChoices)); I would like to localize the null choice differently. Now it reads "Choose one" for both dr

Re: AutoCompleteTextField in 1.4-SNAPSHOT

2008-05-21 Thread Igor Vaynberg
On Wed, May 21, 2008 at 4:20 AM, Daniel Peters <[EMAIL PROTECTED]> wrote: > Hi, > > i'm trying to implement an AutoCompleteTextField that selects from a List of > POJOs. In my example i want to select an Artist from a Database. (see code > at end of the mail) > > I ran into two problems there... >

Re: External Form target

2008-05-21 Thread Mathias P.W Nilsson
Hummm... this is an interesting question. Currently in have solved it like this. Add a javacript to the page that changes the forms target. function makeCallBack( URL ){ document.forms[ "orderForm" ].action = URL; document.forms[ "orderForm" ].submit(); } In my wicket page target.app

Password field to textField and back

2008-05-21 Thread Mathias P.W Nilsson
Hi! In my website I have an textField for email and a password field for the password. The problem is that I need to print "Email here" , "Password here" in the field so that the user can type in the fields. There are no room for labels. I need some way of changing the password field to textfiel

urlFor and SSL switch question

2008-05-21 Thread Ritz123
Hi, This is sort of 2nd attempt to get some answers about SSL switching. http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html is the page I am referring to. The solution mentioned for wicket 1.3.x does not seem to work for form submission. What is happening is the incoming URL has the

Re: External Form target

2008-05-21 Thread Ryan Gravener
Perhaps you can extend Form and do onComponentTag(final ComponentTag tag) { super.onComponentTag(tag); tag.put("method","post"); tag.put("action",MyApplication.get().getExternalUrl()); } On Wed, May 21, 2008 at 2:30 PM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hummm... this is an inter

Re: Password field to textField and back

2008-05-21 Thread Jeremy Thomerson
Just an off-the-cuff guess, but have you tried adding both a textfield and a password field, and then when the textfield (with the hint) is in focus, hiding that and showing / focusing on the password field? -- Jeremy Thomerson http://www.wickettraining.com On Wed, May 21, 2008 at 1:46 PM, Math

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Igor Vaynberg
well, thats what we get for having virtually no entry barrier. for me branching the entire repo with every major release of wicket is much easier because i can do it with one command. if each project has their own tree i am not going to do it. that means when there is an api change in wicket all pr

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread James Carman
On Wed, May 21, 2008 at 3:00 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > well, thats what we get for having virtually no entry barrier. for me > branching the entire repo with every major release of wicket is much > easier because i can do it with one command. if each project has their > own tre

Re: Providing IModel to Validators

2008-05-21 Thread Igor Vaynberg
and what happens when someone wants ${label} at row {0} column {1} is required? do we start passing in arrays, lists, or maps for imodels to validators? why not just do textfield.setlabel(new model("first name at row "+row)); -igor On Wed, May 21, 2008 at 4:52 AM, Hoover, William <[EMAIL PROTEC

Re: Date Validation

2008-05-21 Thread Igor Vaynberg
see IFormValidator and its implementations -igor On Wed, May 21, 2008 at 7:13 AM, Tim Sarver <[EMAIL PROTECTED]> wrote: > How does one validate two dates with one another on the same form? As seen > in the snippets below, I've added the validators in the onSubmit() of the form > which actually w

Re: Password field to textField and back

2008-05-21 Thread greeklinux
Hello, I think to solve the problem with wicket, you have to do some ajax stuff in wicket. You can have wicket to render the normal password field and code a javascript that swaps the two different fields "onFocus" and/or "onBlur" on the client side. Mathias P.W Nilsson wrote: > > Hi! > >

Re: How to localize each DropDownChoice separately?

2008-05-21 Thread Maurice Marrink
In the properties file for your page do: component1Id.nullValid=Choose type component2Id.nullValid=Choose date Instead of just the id you can also include the (partial) path, working your way to the top from the component you are trying to use. Maurice On Wed, May 21, 2008 at 8:08 PM, Martin Mak

Re: Password field to textField and back

2008-05-21 Thread Ryan Gravener
If I read a password field asking me to type my password, where plain text already exists, I would have 2nd thoughts on entering it. On Wed, May 21, 2008 at 3:00 PM, Jeremy Thomerson <[EMAIL PROTECTED]> wrote: > Just an off-the-cuff guess, but have you tried adding both a textfield and > a > pass

Re: (Class>) casting troubles

2008-05-21 Thread Igor Vaynberg
ok so we pretty much have some core people wanting to back out the generics support. shall we start a vote? johan, gerolf and i have spent a ridiculous amount of time trying to generify the codebase and remove all the shitty warnings. if there is even a slight chance of this getting backed out i d

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Igor Vaynberg
well, the problem is that most trunks depend on wicket snapshots -igor On Wed, May 21, 2008 at 12:05 PM, James Carman <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 3:00 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: >> well, thats what we get for having virtually no entry barrier. for me >>

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread Igor Vaynberg
flattery will get you everywhere -igor On Wed, May 21, 2008 at 12:29 PM, James Carman <[EMAIL PROTECTED]> wrote: > With the quick release cycles that Wicket goes through, that just > seems weird to me. They should pick a version and go with it. The > Wicket team is very good about keeping thing

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
so that pretty much means going forward with 1.3? drop 1.4 completely and focus on 1.5 (which is the current trunk) ? Because if we drop generics from Component and IModel we dont have to have a 1.4 why should we do that? johan On Wed, May 21, 2008 at 9:24 PM, Igor Vaynberg <[EMAIL PROTECTED]>

Re: (Class>) casting troubles

2008-05-21 Thread Igor Vaynberg
yep, pretty much. we will have to reapply the api-breaking fixes we put into 1.4 to 1.3/new 1.4/whatever -igor On Wed, May 21, 2008 at 12:36 PM, Johan Compagner <[EMAIL PROTECTED]> wrote: > so that pretty much means going forward with 1.3? > drop 1.4 completely and focus on 1.5 (which is the curr

Re: Ajax postcall handler does not get called every time

2008-05-21 Thread Matthew Young
I filed a bug report: https://issues.apache.org/jira/browse/WICKET-1572 This bug is so unfathomable, there is got to be some psychic being involve. On Wed, May 21, 2008 at 2:32 AM, TonyVegas <[EMAIL PROTECTED]> wrote: > > *revive zombie* > > has any simple solution been found? I am dealing with

Re: (Class>) casting troubles

2008-05-21 Thread Martijn Dashorst
Before we do a vote I want to make sure what our alternatives are. I still like Joni's alternative. I don't think they are an abomination, because the /potential/ class cast exception you get is the same as with current 1.3. But the benefit of documenting the model parameters in DDC, LV, etc. is H

Re: [PROPOSAL] wicketstuff SVN reorganization...

2008-05-21 Thread James Carman
With the quick release cycles that Wicket goes through, that just seems weird to me. They should pick a version and go with it. The Wicket team is very good about keeping things fresh. I have been very surprised at how many releases have gone out in my brief experience with Wicket. On Wed, May

Re: (Class>) casting troubles

2008-05-21 Thread James Carman
How about generifying the DDC constructor and not the class itself? public DropDownChoice(String id, IModel> choices, IModel selectedValue); On Wed, May 21, 2008 at 3:53 PM, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > Before we do a vote I want to make sure what our alternatives are. > > I s

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
no i am really against that falls IModel getModel() method that really abuses everything that generics stands for. For such a basic thing. this is really bad programming If we drop it we also pretty much drop it from IModel or have warnings in the user code. But then drop it completely is better

AutoComplete behavior not working in Wicket extension 1.3.3

2008-05-21 Thread ak
Hello, I am using AutoCompleteBehavior from wicket extensions 1.3.0 and it works like a charm. But after upgrading to 1.3.3, I am getting a script error on my IE. Is there any known remedy ? Appreciate your thoughts. Regards, Andy -- View this message in context: http://www.nabble.com/AutoComp

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
yeah we need to do that then. But after that you loose the generification completely So the constructors are the "Documented" nothing more. But getModel will have a warning then and getModelObject() always will return an object. johan On Wed, May 21, 2008 at 10:05 PM, James Carman <[EMAIL PROT

Re: (Class>) casting troubles

2008-05-21 Thread Timo Rantalaiho
On Wed, 21 May 2008, Martijn Dashorst wrote: > Before we do a vote I want to make sure what our alternatives are. > > I still like Joni's alternative. I don't think they are an > abomination, because the /potential/ class cast exception you get is > the same as with current 1.3. But the benefit of

Re: (Class>) casting troubles

2008-05-21 Thread Matej Knopp
class Component { private IModel model; public IModel getModel() { return (IModel) model; } } I like this. Even with the possible class cast exception. Because without generics, it doesn't leave you no other option than to cast it to your model, which isn't

Re: (Class>) casting troubles

2008-05-21 Thread Matej Knopp
Well, maybe it really is a hack that's too ugly. We might have two methods, default getModel() that doesn't cast it and alternative convenience one that does. -Matej On Wed, May 21, 2008 at 10:10 PM, Matej Knopp <[EMAIL PROTECTED]> wrote: > class Component { > private IModel model; > >

Re: (Class>) casting troubles

2008-05-21 Thread Johan Compagner
i really dont get it how people can like this.. really if i would have a frame work that abuses it like that For example if the collections framework of java would do things like that? What would you all think?? This is really horrible abuse, enormous hack. If i would encounter something like

Re: (Class>) casting troubles

2008-05-21 Thread Eelco Hillenius
On Wed, May 21, 2008 at 12:24 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ok so we pretty much have some core people wanting to back out the > generics support. I hate to say it, and I kept myself on the background because I don't want to be a pita, but I still feel the same as I did last year:

RE: Spring?

2008-05-21 Thread Bruce McGuire
Thanks to all who responded. The consensus seems to support the idea of adding Spring to the app. Here we go! I really appreciate the information. Bruce.

DateTextField related question

2008-05-21 Thread Beyonder Unknown
Hi All, Has anyone tried using DateTextField with DatePicker, that instead of having a calendar image beside the DateTextField and calendar pops up when click, it actually pops up when you click the text field itself? Any response will be greatly appreciated! Thanks, Wen Tong -- The only

  1   2   >