Re: Issue regarding refresh a wicket page portlet in Jetspeed portal

2009-05-28 Thread Mansour Al Akeel
Arun: See my comment. On Wed May 27,2009 04:01 pm, Arun Wagle wrote: Hello , I have an issue with refreshing the portlet in jetspeed. I will try to explain the issue below I have a navigation in Jetspeed which point to a psml file. This psml file will bring up a wicket portlet. In the

Re: [announce] WicketStuff Artwork new release

2009-05-28 Thread nino martinez wael
True.. The link's in the source :) But here is it : http://www.ruzee.com/content/liquid-canvas 2009/5/27 Erik van Oosten e.vanoos...@grons.nl: Hi Nino, Nice stuff. Do you have a link to liquid? Its not a nice google word. Regards,   Erik. nino martinez wael wrote: Hi Guys Just

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
Thanks for the info Frank. Any tips on how to do so? Frank Bille wrote: On Thu, Apr 24, 2008 at 8:10 PM, qk wuhanqiangk...@gmail.com wrote: 1. after the page was rendered using WicketTester.startPage(), the real content (the one that returned by getLazyLoadComponent()) was not loaded

Re: RequestLogger and session invalidation

2009-05-28 Thread Taneli Korri
On Thu, May 28, 2009 at 6:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Please open a JIRA so this doesn't get lost. I haven't looked, but it sounds wrong if it truly recreates an invalidated session in some end-of-request logging, even if it doesn't bind the session. Post the

Re: RequestLogger and session invalidation

2009-05-28 Thread Johan Compagner
why are you using invalidateNow? On Thu, May 28, 2009 at 10:11, Taneli Korri tko...@gmail.com wrote: On Thu, May 28, 2009 at 6:49 AM, Jeremy Thomerson jer...@wickettraining.com wrote: Please open a JIRA so this doesn't get lost. I haven't looked, but it sounds wrong if it truly

AutoCompleteTextField and IE8, javascript error thrown

2009-05-28 Thread Fichera, Christian (KCTP)
Dear all, I have a problem using AutoCompleteTextField: when I type something into it, the choices list is not shown, and the following javascript error is thrown: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET

AutoCompleteTextField and IE8, javascript error thrown

2009-05-28 Thread Christian G. Fichera
Dear all, I have a problem using AutoCompleteTextField: when I type something into it, the choices list is not shown, and the following javascript error is thrown: Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET

Re: Example of ModalWindow misleading

2009-05-28 Thread Live Nono
Should I open a jira for this ? 2009/5/21 Matej Knopp matej.kn...@gmail.com: I think modal window example could be fixed by using getPageReference() to pass page reference between pages instead of page instance. -Matej On Wed, May 20, 2009 at 10:29 PM, Martin Makundi

[BUG ? ] Disabling AjaxSelfUpdatingTimerBehavior

2009-05-28 Thread Objelean Alex
I am trying to disable AjaxSelfUpdatingTimerBehavior which I have added to some component disable it when something happens. I found that no matter what the isEnabled method of the behaviour returns, the behaviour remains enabled. Is this a bug or I am doing something wrong? Alex Objelean

LogoutPage: PageParameters not set after redirecting to LoginPage

2009-05-28 Thread Roman Zechner
hi all, we are having a strange problem with page parameters. when the user logs out we call LogoutPage: ... PageParameters parameters = new PageParameters(); parameters.put(client, signature); setResponsePage(LoginPage.class, parameters); in LoginPage we do: ... String signature =

Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
Hi, Our current architecture: --- We're currently using a 3-tier architecture (presentation, service/business and persistence) consisting of Wicket (+ a little Spring), Spring and Spring + Hibernate: Wicket: Does presentation, we're not inside a transaction / Hibernate session so all used

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread James Carman
In your entities, you don't use @SpringBean. You use @Configurable/@Autowire. On Thu, May 28, 2009 at 9:38 AM, Kent Larsson kent.lars...@gmail.com wrote: Hi, Our current architecture: --- We're currently using a 3-tier architecture (presentation, service/business and persistence)

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread James Carman
No, I mean @Configurable/@Autowired http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/beans/factory/annotation/Configurable.html http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/beans/factory/annotation/Autowired.html With these, you can

How to find that component is being updated by AjaxFormComponentUpdatingBehavior?

2009-05-28 Thread Sergej Logish
Hello community! I have created component, which supports text code input by which it then finds corresponding value in DB. If user deletes code and leaves input component, AjaxFormComponentUpdatingBehavior takes it's turn and removes previously fetched value (if any). The problem is, that

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
Do you have a separation between domain objects and DTO's? It sounds like you don't (and there is nothing wrong with that), but if you do, how do you inject the DTO into the entity? In my case each DTO is a Spring singleton bean. On Thu, May 28, 2009 at 4:17 PM, Will Jaynes w...@jaynes.org wrote:

Re: Example of ModalWindow misleading

2009-05-28 Thread Igor Vaynberg
yes -igor On Thu, May 28, 2009 at 3:09 AM, Live Nono liven...@gmail.com wrote: Should I open a jira for this ? 2009/5/21 Matej Knopp matej.kn...@gmail.com: I think modal window example could be fixed by using getPageReference() to pass page reference between pages instead of page

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
this is why i built salve.googlecode.com you can easily hook it into spring and have all your objects (doman objects or wicket components) injected via @Dependency without worrying about serialization issues or eager injection - eg if you load a result set of 1000 hibernate entities that need

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread James Carman
Are you talking about DAOs (data access objects) and not DTOs (data transfer objects)? DTOs are typically not singletons. Nor are they set up via spring. On Thu, May 28, 2009 at 11:20 AM, Kent Larsson kent.lars...@gmail.com wrote: Do you have a separation between domain objects and DTO's? It

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
Oops! Yes I'm talking about DAO's, not DTO's as I wrote. I guess I shouldn't write acronyms after a long work day. ;-) Thanks for spotting it! Best regards, Kent On Thu, May 28, 2009 at 6:07 PM, James Carman jcar...@carmanconsulting.com wrote: Are you talking about DAOs (data access objects)

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Kent Larsson
Nice! I think Salve looks great! And it solves more than this problem, I like the design by contract module too as it allows me to validate parameters in a bit more declarative way. Do you think Salve is ready to be used in production? I'm a bit concerned by Although already usable, Salve is

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
On Thu, May 28, 2009 at 10:09 AM, Kent Larsson kent.lars...@gmail.com wrote: Nice! I think Salve looks great! And it solves more than this problem, I like the design by contract module too as it allows me to validate parameters in a bit more declarative way. Do you think Salve is ready to be

Update rules in PackageResourceGuard

2009-05-28 Thread Martin Dietze
Hi, I added my own subclass of PackageResourceGuard to my application which provides a configurable interface to the extensions and file names blacklist. After a while I noticed that if I put e.g. 'xml' on my blacklist, the new rule works for all resources which I have not requested before, but

Re: Update rules in PackageResourceGuard

2009-05-28 Thread Igor Vaynberg
clear your browser cache. -igor On Thu, May 28, 2009 at 11:28 AM, Martin Dietze d...@fh-wedel.de wrote: Hi,  I added my own subclass of PackageResourceGuard to my application which provides a configurable interface to the extensions and file names blacklist. After a while I noticed that

Re: Update rules in PackageResourceGuard

2009-05-28 Thread Martin Dietze
On Thu, May 28, 2009, Igor Vaynberg wrote: can I enforce a new rule on resources even if they have been delivered before? clear your browser cache. Hmm, that was my first guess, I even accessed the page using a different browser. Cheers, Martin -- --- /

singletons, pools, wicket, web services and architecture

2009-05-28 Thread Christopher L Merrill
I've got a few questions that are somewhat general to web development, but since we've chosen Wicket as one of our front-end frameworks, I thought I would ask here first for pointers...especially where there may be a wicket way of doing things that we need to be aware of. The system we're

Re: singletons, pools, wicket, web services and architecture

2009-05-28 Thread Martijn Dashorst
Might be a dumb question, but why not make your wicket front end use the JAX-WS services as well? Martijn On Thu, May 28, 2009 at 10:01 PM, Christopher L Merrill ch...@webperformance.com wrote: I've got a few questions that are somewhat general to web development, but since we've chosen Wicket

Re: Tomcat Context problem

2009-05-28 Thread jpswain
Your context.xml file needs to be like this ?xml version=1.0 encoding=UTF-8? Context path=/ You probably have this: ?xml version=1.0 encoding=UTF-8? Context path=/WicketApp/ Hope this helps! Jamie Anton Veretennikov wrote: Hello, all wicket users! I'm new to this list but like to be

Re: OutOfMemory on certain combinations of controls

2009-05-28 Thread Flavius
The sample I posted only has the single page with a link to the ModalWindow. The modal window keeps a reference to the ModalWindow param passed in to the constructor. That's only used to close the window when the AjaxRequestTarget is passed from the AjaxLink. When the

Re: OutOfMemory on certain combinations of controls

2009-05-28 Thread Igor Vaynberg
there is too much going on in the sample you posted. if you want you can create a quickstart with the minimal amount of code necessary to reproduce this and i will take a look. -igor On Thu, May 28, 2009 at 2:12 PM, Flavius flav...@silverlion.com wrote: The sample I posted only has the single

Re: CompoundPropertyModel and Combobox

2009-05-28 Thread Marco Santos
Thanx for the tip. It work on some cases. I found a pattern. For instance, if a component (be it a textfield or a DropDownChoice) has it self a Model, for instance a PropertyModel, the instance variables of the class that is used on the form model (CompoundPropertyModel) are not filled. EXAMPLE

Use of base tag in head seems to break AJAX

2009-05-28 Thread Chris Colman
We have a site with lots of wicket AJAX working fine but we needed to add a base href=http://www.mysite.com/; / because the site uses a Rich Text editor that wants to convert all absolute links to links relative to www.mysite.com/ Adding this base tag seems to have broken all AJAX on the site

RE: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Chris Colman
Another extremely light weight IoC with ORM wrapping (JDO and Hibernate) is exPOJO at http://www.expojo.com No need for old fashioned DAOs etc., just POJOs being persisted transparently the way they should be. In terms of serialization: Is that for the purpose of scaling in a cluster

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
serialization in the context when you need to serialize the object - eg wicket serializes its pages for offline storage, etc. -igor On Thu, May 28, 2009 at 5:51 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Another extremely light weight IoC with ORM wrapping (JDO and Hibernate) is

RE: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Chris Colman
Is that controllable? What if I have complex object models referenced from wicket UI components that I don't want (can't reasonably with Java's non optimal serialization) serialized? If we're serializing for offline storage aren't we going to require the underlying model objects to get

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
well, this is why salve removes the dependency field to at least help with those. other then that you can use a loadabledetachablemodel to release the reference when the page is not used. -igor On Thu, May 28, 2009 at 6:40 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is that

RE: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Chris Colman
When you say offline storage do you mean that the user has chosen to save pages for future offline reference or do you mean a more 'automated' process that wicket performs when system memory becomes too low? Chris -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]

IResourceStreamWriter

2009-05-28 Thread Douglas Ferguson
Has anybody tried to use a an impl of IResourceStreamWriter? I created one and I have a link that set this to the RequestCyle in an on click. When I click the link, nothing happens in the browser, but I can use a debugger and see the impl get called and my code is writting to the

Re: IResourceStreamWriter

2009-05-28 Thread Douglas Ferguson
I just discovered the issue. It is a because I was using an AjaxFallbackLink, I switch it to a regular Link and now it works. However, as a side effect of clicking this link, I'd like make some changes to the screen, i.e. I need an AjaxRequestTarget. Is it possible to trigger a download using

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
to keep memory overhread low only the last visisted page is stored in http session. the rest of the pages are spooled to disk for long-term storage in case the user uses the back button, and are cleaned up on session expiration. -igor On Thu, May 28, 2009 at 6:54 PM, Chris Colman

RE: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Chris Colman
Is that a relatively new feature because we're still on 1.4m2 (2008/05/24) and haven't had any trouble with non serializeable model objects when going back to pages that have been spooled to disk. Maybe if it's a newer feature and we upgrade to the latest wicket we might start seeing some

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Igor Vaynberg
noep, there since 1.3.6 and enabled by default. if you use httpsessionstore the problem will only appear when clustering or when servlet container spools sessions to disk. -igor On Thu, May 28, 2009 at 7:26 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is that a relatively new feature

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
And boom! Thanks for the inspiration Frank! final WicketTester wc = constructBasicPanel(); wc.debugComponentTrees(); wc.dumpPage(); // delicious is the constructed panel, which contains a AjaxLazyLoadPanel... // visit it's children, looking for the AjaxLazyLoadPanel

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-05-28 Thread Antony Stubbs
And here's a nicer version to add to your library: /** * Triggers an {...@link AjaxLazyLoadPanel} to fetch it's contents. * * @param wc the {...@link WicketTester} to execute the behaviour ( {...@link WicketTester#executeBehavior} ). * @param container contains the

RE: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread Chris Colman
Yep, we use HttpSessionStore in a non clustered environment. We also turn off session persistence in Tomcat in context.xml with Manager pathname= / So we there should be no session spooling to disk by the servlet container. Cool, I can relax now =] noep, there since 1.3.6 and enabled

Re: Expired sign in link after signing out

2009-05-28 Thread Tim Moose
Same error in 1.3.6. Worked in 1.4-rc4. Thanks for the suggestion. Tim Jeremy Thomerson-5 wrote: If you're on 1.3.2 can you try upgrading to at least the latest 1.3.X release (or even better, 1.4-rc4) to see if that doesn't fix it? -- Jeremy Thomerson http://www.wickettraining.com

Re: Anemic domain model and are @SpringBean's compatible with the solution in Spring 2.0 vs. the Anemic Domain Model?

2009-05-28 Thread James Carman
On Thu, May 28, 2009 at 11:36 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: this is why i built salve.googlecode.com you can easily hook it into spring and have all your objects (doman objects or wicket components) injected via @Dependency without worrying about serialization issues or

Re: nested loop view

2009-05-28 Thread khamis0o
Can you please share the solution? I am doing something similar and I get java.lang.IllegalArgumentException: A child with id 'reoirtItems' already exists /*java*/ add(new ListView(reportList, reportVector) { public void populateItem(final ListItem listItem) {

Re: [announce] Wicket 1.4-rc4 released

2009-05-28 Thread Antony Stubbs
Is it just me, or is there no rc4 tag in svn? I only see rc3. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs On 12/05/2009, at 6:13 AM, Jeremy Thomerson wrote: The Apache Wicket team is proud to announce the availability of the fourth release candidate for the newest version of