Re: StringResourceModel with unknown array parameters

2008-04-19 Thread Erik van Oosten
i ii schreef: should be in core, no? -1, it is much too specific. Regards, Erik. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Swarm/Wasp or wicket-auth-roles or ?

2008-04-19 Thread Erik van Oosten
If you checkout the Wicket sources, you'll find a wicket-auth-roles-example project. Regards, Erik. mfs wrote: Also if someone could point to some examples of wicket-auth-roles usage...I could still see many for swarm but have not really for auth-roles..may be I an not looking at the right

Re: Swarm/Wasp or wicket-auth-roles or ?

2008-04-19 Thread Erik van Oosten
Actually, the examples Scott sent are better I think. Regards, Erik. Erik van Oosten schreef: If you checkout the Wicket sources, you'll find a wicket-auth-roles-example project. mfs wrote: Also if someone could point to some examples of wicket-auth-roles usage

Re: wicket-spring dependency in maven repository

2008-04-19 Thread Erik van Oosten
Doug Donohoe wrote: I'm using wicket-spring-annot and ran into a small problem with maven dependencies. The wicket-spring-annot project depends on wicket-spring. This has come up a number of times already. Hopefully not as often in the future as it is now also on the wiki :)

Re: LoadableDetachableModel and load() method question

2008-04-19 Thread Erik van Oosten
Hi Warren, It should not be called twice. Not within the same request that is. Possible causes: - you have 2 model instances instead of 1 - there is a bug in Wicket If you are sure it the latter, please provide a quickstart and add it to a new Jira issue. Regards, Erik. Warren wrote:

Re: problem with DateTextField in wicket 1.3

2008-04-19 Thread Maurice Marrink
Please create a Jira issue. Maurice On Fri, Apr 18, 2008 at 4:45 AM, Vadim Tesis [EMAIL PROTECTED] wrote: all, i'm trying to move from wicket-1.3.0-rc2 to wicket-1.3.3. for some reason i started having problems with DateTextField. it's displaying an error in java script: Line:

Re: problem with DateTextField in wicket 1.3

2008-04-19 Thread Johan Compagner
Try to clear your browser caches, maybe there is an old js lib still used On 4/18/08, Vadim Tesis [EMAIL PROTECTED] wrote: all, i'm trying to move from wicket-1.3.0-rc2 to wicket-1.3.3. for some reason i started having problems with DateTextField. it's displaying an error in java script:

Re: WicketTester: persistant error msg?

2008-04-19 Thread Johan Compagner
Attach that unit test to a jira issue On 4/18/08, Michael Perkonigg [EMAIL PROTECTED] wrote: Hello, I tried to test a form with a required field. First I submitted without setting a value and got an error message as expected. Then I set the value and submitted again but again got the error

Re: how to recover the maxlength value

2008-04-19 Thread Johan Compagner
If you do that on the client side with some js scripts anyway, why not reading the attributes value itself of the dom element? On 4/18/08, aynif [EMAIL PROTECTED] wrote: Hi, I want to recover the maxlength value of the year field rather than ...append(', 4, ')... as in the code below (4 is

Re: WicketTester.startPage(page) throws No requestCycle is currently set

2008-04-19 Thread Johan Compagner
Somehow something detaches everything when it shouldnt have done it yet in your example. Upload your test to a jira issue On 4/17/08, Federico Fanton [EMAIL PROTECTED] wrote: On Wed, 16 Apr 2008 16:16:36 +0200 Frank Bille [EMAIL PROTECTED] wrote: tester.createRequestCycle() (or something).

Re: Exception starting filter WicketFilter on Glassfish

2008-04-19 Thread Johan Compagner
Or the other way around. Are you somehow including your own servlet.jar in your webapp. And is that one picked up that shouldnt be picked up On 4/17/08, PJ Pillai [EMAIL PROTECTED] wrote: Hello, I deployed my first hello world application on Glass Fish server. I am using Netbeans 6. I am

Re: Can I use LazyLoad or something like it with a modal?

2008-04-19 Thread Johan Compagner
Use it in the modal page or panel. So that the modal window is shown On 4/16/08, taygolf [EMAIL PROTECTED] wrote: That is what I looked at which brought about this question. I guess you are saying that I can use it with a modal? Should I be trying to use it where the modal is created or

Re: BookmarkablePageLink linksTo() bug?

2008-04-19 Thread Johan Compagner
No it doesnt take that into account, previously we hadnt even access to the page params. Now we do if you do the rigth constructor call so maybe we can do something like that, make a jira issue. On 4/16/08, Ritz123 [EMAIL PROTECTED] wrote: Hi, Just wondering if linksTo(Page) method of

Re: testing a link

2008-04-19 Thread Frank Bille
1) In your java code the link's wicket:id is back but in your test you use links 2) You have a space in the Tester.assertLabel ( links: linkLabel, Access); 3) What is it you want to test with the Link? remember tester.clickLink Frank On Thu, Apr 17, 2008 at 2:36 PM, aynif [EMAIL PROTECTED]

Re: am I doing right? entities no Serializables.

2008-04-19 Thread John Krasnay
On Fri, Apr 18, 2008 at 11:50:59PM -0300, Fernando Wermus wrote: I try to spend the less memory I can using LoadableDetachableModel. But if the user is filling up a form for a new entity I think I have two options, one serialize and the other create a kind of dto. I don't like the first

RE: StringResourceModel with unknown array parameters

2008-04-19 Thread i ii
i come up with easy solution. thanks for help: .properties attendees.names=All attendees include: {0} webpage // example list, but do not know size of list at all times ListString attendees = new ArrayListString(); attendees.add(Attendee 1); attendees.add(Attendee 2); attendees.add(Attendee

Re: StringResourceModel with unknown array parameters

2008-04-19 Thread John Krasnay
On Sat, Apr 19, 2008 at 01:00:09PM +, i ii wrote: i come up with easy solution. thanks for help: .properties attendees.names=All attendees include: {0} webpage // example list, but do not know size of list at all times ListString attendees = new ArrayListString();

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 Carl-Eric Menzel
Both Login and CurrentProfile are subclasses of Panel. When the login form is submitted or the logout link is submitted, in order to get the page to re-render, I had to use this code: setResponsePage(getPage().getClass()); In this case the page isn't re-rendered, it is re-created, i.e. a

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 Carl-Eric Menzel
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 is present. I'll look under the covers of replaceWith() - I basically want to do whatever replaceWith() does

Re: Wicket+Userforum integration?

2008-04-19 Thread Nino Saturnino Martinez Vazquez Wael
Jan Kriesten wrote: hi, jforum is actually not so bad - rafael does a great job on it and it took some inspiration out of his work. i think there is a complete rewrite undergoing for v3.x (with some bigger sponsors as far as i have read). did'nt say jforum were bad, just wanted to know

Re: How to design tables that support 50-100K rows?

2008-04-19 Thread Nino Saturnino Martinez Vazquez Wael
Probably could:) James Carman wrote: In Hibernate, couldn't you just use get(Class entityClass, Serializable id) rather than doing the whole uniqueResult() stuff? On Thu, Apr 17, 2008 at 9:09 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Using jpa you can do it this

Re: Can I use LazyLoad or something like it with a modal?

2008-04-19 Thread eznibe
Other thing you can use to alert the user in a gmail mode (loading...) is to add an AjaxCallDecorator to the link that pop ups the modal window, and using javascript to show/hide this message Gerolf Seitz wrote: take a look at AjaxLazyLoadPanel. this might do the trick. Gerolf On

RE: problem with DateTextField in wicket 1.3

2008-04-19 Thread Vadim Tesis
i've tried that, didn't help. the issue occurs with at least 2 browsers: IE 7 and Firefox 2.0 Date: Sat, 19 Apr 2008 10:20:57 +0200 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: problem with DateTextField in wicket 1.3 Try to clear your browser caches, maybe there is an

Re: clarification on page versioning

2008-04-19 Thread Doug Donohoe
I meant I'd look under the covers to see if I could find a way to force the page to re-render without adding an entry to the page map. Maybe I 'm missing something. With regards to my page map question, I'm searching for a description of how the history mechanism works and what controls one has

Re: clarification on page versioning

2008-04-19 Thread Igor Vaynberg
with diskstore (default in 1.3) each pagemap only contains one page. the rest are spooled to disk. -igor On Sat, Apr 19, 2008 at 1:22 PM, Doug Donohoe [EMAIL PROTECTED] wrote: I meant I'd look under the covers to see if I could find a way to force the page to re-render without adding an

RE: problem with DateTextField in wicket 1.3

2008-04-19 Thread Vadim Tesis
i tried to modify the quick start and it works fine there. it looks like it's conflicting with wicketstuff-yui-1.3.0 which is using yui 2.2.2. i did some searching and it looked that someone was working on porting wicketstuff-yui to 2.3.0. was it completed, if yes, where can i get the

Re: clarification on page versioning

2008-04-19 Thread Martin Grigorov
Probably you should move this code in onBeforeRender() (and use addOrReplace(). This way every time you'll have the right panel. On Sat, 2008-04-19 at 07:28 -0700, Doug Donohoe wrote: I have a page which displays a [login box] (if not logged in) or an info box [user name|logout link] if logged

Session created every time

2008-04-19 Thread mfs
Guys, I have a page which contains an ExternalLink and Label, shouldnt the wicket session be created/initialized when that page is rendered given it contains Statefull components..? Currently whenever i send subsequent request to the page, the wicket session is re-created.. -- View this

Re: Session created every time

2008-04-19 Thread Igor Vaynberg
you dont have any stateless components on that page... -igor On Sat, Apr 19, 2008 at 10:12 PM, mfs [EMAIL PROTECTED] wrote: Guys, I have a page which contains an ExternalLink and Label, shouldnt the wicket session be created/initialized when that page is rendered given it contains