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 > S

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 mess

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

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 sourc

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 a

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: 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

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 > >

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 w

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 i

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()

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 wi

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,

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")); } el

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 > List attendees = new ArrayList(); > attendees.add("At

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 List attendees = new ArrayList(); attendees.add("Attendee 1"); attendees.add("Attendee 2"); attendees.add("Attendee 3"); add(

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 > bec

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 PROTECT

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 Bo

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

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: 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 som

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

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

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 s

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: > Li