RE: Generic modal windows

2010-01-25 Thread Chris Colman
It appears that nothing much happens with a ModalWindow until a user clicks on a button to bring up a ModalWindow. That should mean that the only performance consequences for embedding ModalWindow capability in an application's base page class (and therefore every page in the app) is that every

How to change content in ModalWindow

2010-01-25 Thread Chris Colman
Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when clicked, should cause PanelB to display in the same ModalWindow (PanelB replaced PanelA). The onClick event handler does something like the

modal window contained and displayed by another modal window

2010-01-25 Thread Martin Asenov
Hello guys! I was trying to trigger a modal window from another modal window, but on top modal window closing seems like the bottom page gets refreshed, or something like this, because when I click on something on the middle frame (first modal) that is active after the closing of the top

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Chuck Brinkman
1) So, if I didn't access the session in my ajax callback then the page would eventually expire. Another way to say this is if I simply had the original Clock implementation on this page then the session would expire? 2) Is there an easy way of implement this countdown to expire? On Mon, Jan

Re: modal window contained and displayed by another modal window

2010-01-25 Thread Martin Grigorov
On Mon, 2010-01-25 at 11:26 +0200, Martin Asenov wrote: Hello guys! I was trying to trigger a modal window from another modal window, but on top modal window closing seems like the bottom page gets refreshed, or something like this, because when I click on something on the middle frame

RE: modal window contained and displayed by another modal window

2010-01-25 Thread Martin Asenov
Thanks, namesake, this is useful! -Original Message- From: Martin Grigorov [mailto:mcgreg...@e-card.bg] Sent: Monday, January 25, 2010 12:06 PM To: users@wicket.apache.org Subject: Re: modal window contained and displayed by another modal window On Mon, 2010-01-25 at 11:26 +0200, Martin

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread nino martinez wael
No one has a feeling about making a super/parent security framework for wicket and then let providers implement their solution.. Like JPA ? It would mean that it would be the same using Shiro or Swarm / Wasp etc.. You just switch provider? 2010/1/22 nino martinez wael nino.martinez.w...@gmail.com

Re: Resource JS

2010-01-25 Thread nino martinez wael
Yeah you should be able to cache / compress resources with Apache http. If your resources are dynamic (session dependant) then offcourse it's not possible. 2010/1/25 Douglas Ferguson doug...@douglasferguson.us Hmm... Actually, I'm wanting to gzip them are they gziped? Another thought was to

RE: Override fragments in subclasses

2010-01-25 Thread aboiteux.ext
Hi, Thanks for your help, that works. But there's always an issue: I'd like to display component that is common in all classes So in my parent html : body span wicket:id=myDiv/span div wicket:id=myNewPanel/div div wicket:id=myNewPanel2/div /body And add a label with id

SV: Override fragments in subclasses

2010-01-25 Thread Wilhelmsen Tor Iver
So in my parent html : body span wicket:id=myDiv/span div wicket:id=myNewPanel/div div wicket:id=myNewPanel2/div /body And add a label with id myDiv in related parent java. This part is common to all classes. But when I render the TestFormOne, that doesn't work

Re: SV: Override fragments in subclasses

2010-01-25 Thread Ilja Pavkovic
public abstract class MyPage extends WebPage { public MyPage() { add(createMyDiv(myDiv)); } public abstract Component createMyDiv(String markuId); } public MyConcretePage extends MyPage { public createMyDiv(String markupId) {

Re: wicket bench in eclipse

2010-01-25 Thread Hauke Ingmar Schmidt
Hej, 2010/1/21 Lionel Port lio...@portconnection.com: Not strictly a wicket question, I know. For me tools are an important part of a framework's ecosystem. Does anyone have wicket bench working in Galileo or recent version of eclipse or know of a good plugin I should be using?. My project

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread Emond Papegaaij
I do think this is a good idea, however it will be difficult to implement. WASP/SWARM already provides this setup. WASP defines the interface, where SWARM is the implementation of that interface. I do not know about Shiro, but I don't think it is implemented on top of WASP. So should SWARM be

Re: How to change content in ModalWindow

2010-01-25 Thread Olivier Bourgeois
Aren't you missing a : modalContentWindow.show(target) in the onClick callback ? 2010/1/25 Chris Colman chr...@stepaheadsoftware.com Searching Nable shows this question has been asked before but there none of the solutions proposed there work for me. I have a link in PanelA that, when

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 6:11 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: I do think this is a good idea, however it will be difficult to implement. WASP/SWARM already provides this setup. WASP defines the interface, where SWARM is the implementation of that interface. I do not know

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman chasb1...@gmail.com wrote: 1)  So, if I didn't access the session in my ajax callback then the page would eventually expire.  Another way to say this is if I simply had the original Clock implementation on this page then the session would expire?

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Chuck Brinkman
James, Thanks for the information. I wonder if those using AjaxSelfUpdatingTimerBehavior realize that this prevents session timeout? Chuck On Mon, Jan 25, 2010 at 7:09 AM, James Carman jcar...@carmanconsulting.comwrote: On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman chasb1...@gmail.com

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread Emond Papegaaij
On Monday 25 January 2010 13:02:05 James Carman wrote: On Mon, Jan 25, 2010 at 6:11 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: I do think this is a good idea, however it will be difficult to implement. WASP/SWARM already provides this setup. WASP defines the interface, where

Empty Form Error Message

2010-01-25 Thread Andrea Fantappiè
I have updated the wicket libraries from 1.4.0 to 1.4.5 and now all pages with form don't submit. On the feedback panel appear an empty li, the form raise the onError but all components inside validate without errors. I've iterated over components in the form but all FeedBackMessage property is

PageExpiredException after fourth call modal window

2010-01-25 Thread Alexey Tomin
1.4.5 In window with list, I call modal window (org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow) with my edit window (extends org.apache.wicket.markup.html.WebPage with WebSession.get().createAutoPageMap()). This edit window contains some link, wich also create modal window for

Re: wicket bench in eclipse

2010-01-25 Thread Peter Karich
Hi! But it looks like this Eclipse plugin is not actively developed? Is it time to buy an IDEA license where there seems to be a quite nice toolset for Wicket? I downloaded the open source version of IntelliJ and the wicket plugin seems to work. There is also a wicket plugin for NetBeans,

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 8:07 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: That sounds a bit overkill to me. I don't think anyone will ever want to use SWARM in a non-Wicket application. Naturally, this is a bit different for Shiro and spring-security, because these are existing

Re: SV: Override fragments in subclasses

2010-01-25 Thread aurelie.boiteux
That's what I did when the component has to be overriden in subclasses. But how does it work when the component is common to every concrete page? I would not want to redefine common component in every concrete page. Let's see my example, In my parent page : public abstract class TestForm

Re: SV: Override fragments in subclasses

2010-01-25 Thread aurelie.boiteux
Ok, There was a problem when copy/paste html, sorry about that: TestForm.html (parent html): body div wicket:id=myNewPanel/div div wicket:id=myNewPanel2/div /body and TestFormOne.html(subclass html): body wicket:fragment wicket:id=myNewPanel /wicket:fragment

Re: wicket bench in eclipse

2010-01-25 Thread Hauke Ingmar Schmidt
Hej, 2010/1/25 Peter Karich peat...@yahoo.de: Is it time to buy an IDEA license where there seems to be a quite nice toolset for Wicket? I downloaded the open source version of IntelliJ and the wicket plugin seems to work. Yes, but the free version of IDEA is lacking too much in other

Re: SV: Override fragments in subclasses

2010-01-25 Thread Ilja Pavkovic
Hi, I think you should provide component classes that are responsible for sub elements class TestFormPanel extends Panel { public TestFormPanel(String markupId) { super(markupId); add(new Label(label,My very good label 1)); } }

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread Emond Papegaaij
On Monday 25 January 2010 14:31:47 James Carman wrote: On Mon, Jan 25, 2010 at 8:07 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: That sounds a bit overkill to me. I don't think anyone will ever want to use SWARM in a non-Wicket application. Naturally, this is a bit different for

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 9:11 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: I didn't mean that providing a general framework for security providers is overkill, just that modifying SWARM to be usable outside a Wicket-environment is overkill. There is no need to split SWARM into a general

Generics

2010-01-25 Thread Sam Barrow
I've noticed in some places where generics wildcards may be useful that they are not used. For example, in IColumn. If I have a Type and a SubType that extends Type, I can't use IColumnType in a DataTableSubType. Is there any reason for this or was it just not implemented? Not the most necessary

Localization properties overriding

2010-01-25 Thread Marek Šabo
Hi all, I have a question regarding property binding when using localized property files, consider following: UserHomePage page has one property for localization and that is title=User's Home which is then used in markup as: head titlewicket:message key=title //title /head ... This page

JSR 330 Spring

2010-01-25 Thread Jochen Mader
Hello, I am using wicket together with spring. Getting it going with @SpringBean was pretty straight forward but now I am wondering if it is possible to get it going with JSR 330 annotations as the spring side of my app is already using it. Thanks, Jochen

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread Emond Papegaaij
On Monday 25 January 2010 15:22:42 James Carman wrote: On Mon, Jan 25, 2010 at 9:11 AM, Emond Papegaaij The current wicket-security code is somewhat limited in what you can do with it. WASP provides a much richer (probably too rich) interface for security. I see WASP as a viable basis for

Re: Localization properties overriding

2010-01-25 Thread Marek Šabo
Hi Erik, I understand this - I use it eg. HomePage has title=Home, UserHomePage has title=User's Home etc... and it works top-down as expected. But why does this topmost property title, that should bind itself to key=title of wicket:messages attached to page component itself, got bounded to

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 9:50 AM, Emond Papegaaij emond.papega...@topicus.nl wrote: I think a good security framework needs to provide an API that allows, but not require, fine-grained control. Exactly! That's what I'm looking for. For the folks who want to get down-and-dirty and really

Re: Generics

2010-01-25 Thread Pedro Santos
Basically the list view depend from List interface due some calls to his get(index) method. It means that the order of the components on the collections, are meaninful to the component. If it is not your case (order, item indexes doesn't matters), you can use an wrapper model in an list view,

Re: Localization properties overriding

2010-01-25 Thread Erik van Oosten
The search for any given property key is top-down, the first result is found. Why? As I said, to allow an override of the component (which may be third party). Regards, Erik. Marek Šabo wrote: Hi Erik, I understand this - I use it eg. HomePage has title=Home, UserHomePage has

Re: Generics

2010-01-25 Thread sam
That's exactly what I do now (wrapped model). Just wondering if there was a technical reason behind it. Sent via BlackBerry from T-Mobile -Original Message- From: Pedro Santos pedros...@gmail.com Date: Mon, 25 Jan 2010 13:03:16 To: users@wicket.apache.org Subject: Re: Generics

Re: Generics

2010-01-25 Thread Pedro Santos
Just make sure that the items on the collection have an index (List interface ensure it). It is important to the implementation of ListItemModel.setObject for instance and turn possible the component pagination. On Mon, Jan 25, 2010 at 1:05 PM, s...@sambarrow.com wrote: That's exactly what I do

Re: Future of Wicket Security (WASP/SWARM)

2010-01-25 Thread Emond Papegaaij
On Monday 25 January 2010 15:59:53 James Carman wrote: On Mon, Jan 25, 2010 at 9:50 AM, Emond Papegaaij Most of the complicated stuff is from SWARM, which indeed requires a lot of configuration. The difference between WASP and SWARM is not quite clear from the documentation, nor is the

Re: Localization properties overriding

2010-01-25 Thread Marek Šabo
Hi, well I see where was the misunderstanding. The FIRST result found. What I'm used to when going from top to down is the LAST definition takes effect. Well maybe I will see to it when I will do some modules but for now I'll just rename it and won't use single name properties anymore to

Re: JSR 330 Spring

2010-01-25 Thread Martin Grigorov
On Mon, 2010-01-25 at 15:34 +0100, Jochen Mader wrote: Hello, I am using wicket together with spring. Getting it going with @SpringBean was pretty straight forward but now I am wondering if it is possible to get it going with JSR 330 annotations as the spring side of my app is already using

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Martin Grigorov
On Mon, 2010-01-25 at 07:09 -0500, James Carman wrote: On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman chasb1...@gmail.com wrote: 1) So, if I didn't access the session in my ajax callback then the page would eventually expire. Another way to say this is if I simply had the original Clock

RE: How to change content in ModalWindow

2010-01-25 Thread Chris Colman
I tried that initially but calling modalContentWindow.show when there already is a ModalWindow being displayed creates a new ModalWindow that sits over the top of the original one meaning I now have 2 windows that the user has to close. My aim is to have only one ModalWindow but just switch its

RE: How to change content in ModalWindow

2010-01-25 Thread Chris Colman
My use case might explain the situation better: User visits a page that needs authentication. A ModalWindow appears with a username/password field pair and a 'sign in' button. In case they are a new user it also contains a 'create account' button. If they click this then the contents of the

Re: JSR 330 Spring

2010-01-25 Thread Jochen Mader
Thanks for the quick answer. I never came across a scenario where somebody did or I would use two IoC containers in the same application. Why would you do that? Cheers, Jochen

RE: How to change content in ModalWindow

2010-01-25 Thread Chris Colman
For this to work can I use Panels for the Modal content or do I need to use Pages for the content and set up a PageCreator? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26 January 2010 4:03 AM To: users@wicket.apache.org Subject: RE: How

RE: How to change content in ModalWindow - minor success!

2010-01-25 Thread Chris Colman
Well I managed to get the panels to replace without adding a new ModalWindow to the stack each time: replacePanel(Panel existingPanel, Panel newPanel, String title, AjaxRequestTarget target) { existingPanel.replaceWith(newPanel); newPanel.setOutputMarkupId(true);

RE: How to change content in ModalWindow - minor success!

2010-01-25 Thread Chris Colman
Also, it seems like ModalWindow.setTitle will not update the title after the initial ModalWindow.show has been called. Is there any way to trigger a title update after show has been called? -Original Message- From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 26

Wicket tab panels detaching too early

2010-01-25 Thread Neil Curzon
Hi all, Our Wicket 1.4 project (currently 1.4.3) uses tabs on some pages to display linked information. For example, an Account may have a User. On the Account page, there would be a User tab in this case. The User is a PropertyModel on a LoadableDetachableModel for the Account (which grabs from

Re: Wicket tab panels detaching too early

2010-01-25 Thread Martijn Dashorst
Wicket needs to detach the replaced panel because it is no longer attached to the component hierarchy. If we didn't detach at that time, hell [c/w]ould break loose. We assume with loadable detachable models that people use proper caching such that the database won't be hit hard. E.G. if you use

Re: Wicket tab panels detaching too early

2010-01-25 Thread Neil Curzon
I do understand and appreciate the need to detatch the models. It's just that if the detached happened a few lines earlier, before the new tab is instantiated, it would be a lot less error prone with respect to accidentally causing more db load. Current mechanism: 1. Instantiate new tab (causes

Re: Resource JS

2010-01-25 Thread Jeremy Thomerson
How are you frontending Tomcat with Apache? If it's by proxying, you may just be able to configure it to do the gzip for you on anything in the resources directory. -- Jeremy Thomerson http://www.wickettraining.com On Sun, Jan 24, 2010 at 10:30 PM, Douglas Ferguson doug...@douglasferguson.us

SV: SV: Override fragments in subclasses

2010-01-25 Thread Wilhelmsen Tor Iver
public abstract class TestForm extends WebPage { public TestForm() { add(new Label(myDiv, my div from test form)); = common to every concrete page add(createDivWithComponent(myNewPanel)); = has to be redefine by each concrete page

RE: Override fragments in subclasses

2010-01-25 Thread Chris Colman
Would your issue be better solved by the ability to override more than one section of markup in a base page (the arbitrary figure of 'one', it was agreed, was not mandated by java class hierarchy or any OO design principles of or for any other reason - the page class still only derives from a

Resetting a form after ajax submit

2010-01-25 Thread Flavius
I have a panel with a form on it. I've attached an ajaxButton to submit the form. Afterward, I want the inputs to be reset with the backing model reset. I've done a lot of refreshing with an ajax submit, but I can't seem to get the form's values to reset in the webpage. The backing model

Re: Resource JS

2010-01-25 Thread Douglas Ferguson
I'm using modjk. On Jan 25, 2010, at 4:05 PM, Jeremy Thomerson wrote: How are you frontending Tomcat with Apache? If it's by proxying, you may just be able to configure it to do the gzip for you on anything in the resources directory. -- Jeremy Thomerson http://www.wickettraining.com

Re: Resetting a form after ajax submit

2010-01-25 Thread Igor Vaynberg
call form.modelchanged() after setting the new model -igor On Mon, Jan 25, 2010 at 9:23 PM, Flavius flav...@silverlion.com wrote: I have a panel with a form on it.  I've attached an ajaxButton to submit the form.  Afterward, I want the inputs to be reset with the backing model reset.  I've

Re: Resetting a form after ajax submit

2010-01-25 Thread Flavius
I tried that. It didn't work. Actually Component#setDefaultModelObject() already calls modelChanging(); model.setObject(object); modelChanged(); I also looked at the ajax guestbook example. igor.vaynberg wrote: call form.modelchanged() after setting the new model -igor On Mon, Jan

Re: [release] Wicket Security 1.4-beta1

2010-01-25 Thread Emond Papegaaij
I've just checked in a major commit on wicket-security-1.4, adding generics, cleaning up the API where needed and introducing a project wide source code formatting. This commit has changed the API of wicket-security in some places. If it breaks for you, please let me know, so I can fix it or