Modal dialog's components get disabled after closing

2009-07-31 Thread Gajo Csaba
Hi, I have a class which extends ModalWindow and has just one content panel inside. I've added several radio buttons and ajaxfallbackbuttons to it. When I display it with dialog.show(target) it shows without problem. I also have a Cancel button in it, which is supposed to close the dialog.

Re: Modal dialog's components get disabled after closing

2009-07-31 Thread Gajo Csaba
I've found the error, looks like our abstract class which extends the ModalWindow had contentPanel.setEnabled(false); written in its close callback method... Gajo Csaba wrote: Hi, I have a class which extends ModalWindow and has just one content panel inside. I've added several radio

Custom URL mapping (wild cards)

2009-07-31 Thread Andrew Easter
Hi everyone, I've got a interesting requirement and, being only a complete newbie to Wicket, I'm not 100% sure I can achieve it. Basically, assume you have the following URL to display a product: app/products/1234 I know I can use bookmarkable links and URL mounting in Wicket to allow such

Wicket, Ajax and JSON

2009-07-31 Thread Serban Balamaci
Hello. I'm trying to create a wicket component out of FlexiGrid http://www.flexigrid.info/ . The javascript for the component requires an address from which it will receive data in the form of a JSON response. I'm not sure what is the best way to go about it. Simple and most ugly approach

Components and nullable data

2009-07-31 Thread Iain Reddick
Thanks for the reply - I think I'm perhaps trying to bend the framework rather than work with it. I suppose I'm really wondering about the following kind of thing, and whether it's worth trying to build similar re-usable components: public class NullableLabel extends Label { private boolean

Re: Components and nullable data

2009-07-31 Thread Antony Stubbs
Absolutely. It's one of wickets many strong points. Regards, Antony Stubbs website: sharca.com On 1/08/2009, at 1:39 AM, Iain Reddick iain.redd...@beatsystems.com wrote: Thanks for the reply - I think I'm perhaps trying to bend the framework rather than work with it. I suppose I'm

RE: Apache Wicket 1.4 takes type safety to the next level

2009-07-31 Thread Craig McIlwee
I heard someone saying here a few weeks ago that the 1.4.0 build had been finalized and that the official release was waiting on some PR stuff. Just curious what that was? -Original Message- From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On Behalf Of Martijn

Stateless login form?

2009-07-31 Thread Martin Makundi
Hi! My login page html looks like this: form id=loginForm method=post action=https://www.mydomain.com/?wicket:interface=:0:loginForm::IFormSubmitListener::; Can set some switch to make it more stateless? I would like the form submit target to be a stateless url. Why? I assume that currently if

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe you are trying to drive screw into a board with a hammer? I recommend just creating servlet to serve up these json style responses and then use the excellent json.org libraries(instead of hand constructing json transform your data structures into json automatically). The only issue you'll

RE: Wicket, Ajax and JSON

2009-07-31 Thread Serban Balamaci
Hello John. This I would put in the same category as the Controller Page solution. And well, that kind of separation will not make a nice reusable component. I want in the end to get maybe even with something of a model behind it and not have such a separation, although I guess the model of the

Re: Stateless login form?

2009-07-31 Thread Jeremy Thomerson
You could either: 1 - override isStateless and return true or 2 - make it submit to a bookmarkable page and process the input from the PageParameters -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jul 31, 2009 at 9:07 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote:

Re: update quickstart page

2009-07-31 Thread Maarten Bosteels
I see that the page is updated. Thanks. But it still uses mvn archetype:create which generates the follwoing warning: [WARNING] This goal is deprecated. Please use mvn archetype:generate instead Is there a reason to stick to the deprecated goal ? Maarten On Wed, Jul 29, 2009 at 12:36 PM,

Re: Apache Wicket 1.4 takes type safety to the next level

2009-07-31 Thread Jeremy Thomerson
Trying to write all of the announcements and make sure all the documentation on the site is reasonably up-to-date is also a critical part of any release. And it takes a long time. We were all scrambling to try to get it done. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jul 31,

Re: update quickstart page

2009-07-31 Thread Jeremy Thomerson
If it ain't baroque, don't fix it? I think it just comes down to the fact that we haven't had time to switch and test that everything still works. I think there's a JIRA issue for this that mentions the warning that you copied here. You could test out switching to generate and make sure the app

Re: Wicket, Ajax and JSON

2009-07-31 Thread richardwilko
Hi, Instead of using AbstractDefaultAjaxBehavior you can use its superclass AbstractAjaxBehavior as follows: AbstractAjaxBehavior behaviour = new AbstractAjaxBehavior() { private static final long serialVersionUID = 1L; @SuppressWarnings(unchecked)

Re: Stateless login form?

2009-07-31 Thread Martin Makundi
1 - override isStateless and return true Will the form work ok? What about retry: if there are validation errors, will such a stateless page work? 2 - make it submit to a bookmarkable page and process the input from the PageParameters q1: Will I have to manually hack the submit target? q2:

Re: Custom URL mapping (wild cards)

2009-07-31 Thread Igor Vaynberg
see org.apache.wicket.request.target.coding.IndexedParamUrlCodingStrategy, its exactly what you want. -igor On Fri, Jul 31, 2009 at 2:21 AM, Andrew Easterandrew.eas...@gmail.com wrote: Hi everyone, I've got a interesting requirement and, being only a complete newbie to Wicket, I'm not 100%

Re: Components and nullable data

2009-07-31 Thread Igor Vaynberg
instead of creating a lot of subclasses you can use the iauthorizationstrategy to do this: onaction(component, action) { if (action==component.render) { if (component.hasannotation(@HideIfModelIsNull)) { return false; } } return true; } you get this behavior for any

Job Oportunity

2009-07-31 Thread Ryan McKinley
I am building a search engine for geographic data -- see http://voyagergis.com/ -- and would love some help from a good wicketeer. If interested, please contact me directly ryan...@gmail.com or skype: ryantxu Ideally someone who could get to/from Washington DC without much hassle, but

Re: Wicket, Ajax and JSON

2009-07-31 Thread francisco treacy
That's cool. I'm still surprised to see that whenever something remotely ressembling stateless/REST comes up in the mailing list, the gut reaction is: servlets. It might be simpler for a few usecases, but normally you also want to take advantage of other Wicket features - precisely the reason why

Re: Wicket, Ajax and JSON

2009-07-31 Thread John Armstrong
Maybe someone can document a workable solution in the Wiki for future generations? Tx J On Fri, Jul 31, 2009 at 10:22 AM, francisco treacy francisco.tre...@gmail.com wrote: That's cool. I'm still surprised to see that whenever something remotely ressembling stateless/REST comes up in the

Re: Stateless login form?

2009-07-31 Thread francisco treacy
If I understood correctly, you might find this interesting: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html Francisco 2009/7/31 Martin Makundi martin.maku...@koodaripalvelut.com: 1 - override isStateless and return true Will the form work ok? What about retry:

Re: Stateless login form?

2009-07-31 Thread Martin Makundi
Seems funny if wicket does not have robust login page capability out-of-the-box ;) If I understood correctly, you might find this interesting: http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html Does appear to make stateless-looking urls AFTER you CLICK/REDIRECT

launching a modal page from a Panel

2009-07-31 Thread Elad Katz
Hi all, I need to launch a modal from a panel. I saw the examples http://www.wicket-library.com/wicket-examples/ajax/modal-window but they were very complicated for what I need and didn't show how I can launch it from within a panel. Let me try to explain: I have a datatable where one of the

Re: Wicket, Ajax and JSON

2009-07-31 Thread serban . balamaci
Thanks guys, loved the AbstractAjaxBehavior solution, and by the way jqgrid seems to be more active and the way to go(thanks for pointing it Richard). Keeping fingers crossed for wiQuery and if they even bring the flexi or jqgrid to wicket it's gonna prove you can have awesome visual components in

Testing RadioChoice with AjaxFormComponentUpdatingBehavior

2009-07-31 Thread development
Hi all, I am trying to test the ajax behaviour on a RadioChoice. The RadioChoice has an AjaxFormComponentUpdatingBehavior which show/hide a panel depending on its model value. final Label label = new Label(label, label); label.setOutputMarkupId(true); label.setVisible(false);

Re: Apache Wicket 1.4 takes type safety to the next level

2009-07-31 Thread Eric Gulatee
Congrats to all that contributed. A comment: The 1.4 Javadocs on the wicket site should probably be updated from Wicket Parent 1.4-rc2 API . http://wicket.apache.org/docs/1.4 On Fri, Jul 31, 2009 at 11:09 AM, Jeremy Thomersonjer...@wickettraining.com wrote: Trying to write all of the

Re: Apache Wicket 1.4 takes type safety to the next level

2009-07-31 Thread Jeremy Thomerson
Thanks - they were updated - but the link wasn't updated. I will move them to that folder to match the link since that is more appropriate than having both anyway. It will take an hour or two to sync. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jul 31, 2009 at 4:17 PM, Eric

Issue with AjaxLinks in ListView

2009-07-31 Thread Kugaprakash Visagamani
Hi, I have a page that has a panel with ListViewAjaxLink (Listview contains AjaxLink's). I go to that page, click on a links - does an ajax update of one section in a page, and then I do a target.addComponent(listViewPanel) to update the link selection background. This works fine so far.

Re: Issue with AjaxLinks in ListView

2009-07-31 Thread Mischa
Can you post the listview piece of code so i can have a better look. Verstuurd vanaf mijn iPhone Op 1 aug 2009 om 04:56 heeft Kugaprakash Visagamani kvisagam...@infoblox.com het volgende geschreven:\ Hi, I have a page that has a panel with ListViewAjaxLink (Listview contains AjaxLink's).