Refreshing components with new data w/o altering the backing model

2007-10-23 Thread karthik Guru
I have a form like this - Name: [.] Zip: [.] City: [.] State: [.] [Save] On filling the zip i want to auto populate the city and state. I can attach a AjaxFormComponentUpdatingBehavior to the zip field and do this. But I don't want to update the zip model, so i plan

Re: Reload Captcha Image

2007-10-23 Thread Nino Saturnino Martinez Vazquez Wael
Why not just use a larger font in the captcha to start with? Toscano wrote: Hello, I'm having problems with a Captcha image reloading method, and I'm sure it must be very easy to solve, but I can't!! I have a form with about 10 fields, and at the end one Captcha image using

Re: Reload Captcha Image

2007-10-23 Thread Michael Sparer
Hi Toscano, I solved this by making an AJAX call in order to change the pic. I don't know if it's possible for your app to use AJAX (and thus depend on enabled javascript on client side) - but here's my code final TextField t; final NonCachingImage img; add(img

Re: wicketstuff push and sharing an IChannelService

2007-10-23 Thread Michael Sparer
Hi Xavier, thanks for your reply - well yes, that's certainly right. I've just lost sight of it. But I got another question: how stable is the wicketstuff-push project or what sections are stable and which have to be improved for use in a professional webapp? thanks in advance Michael

Re: Wicket and Netbeans 6

2007-10-23 Thread Ayodeji Aladejebi
I have checked out and built wicket support for netbeans from http://blogs.sun.com/geertjan/entry/when_boudreau_met_wicket before, if you have NB6 installed already, install these two NB modules, create a WebApplication Project in NB and you will have a ready sample application that runs fine

Re: Wicket and Netbeans 6

2007-10-23 Thread ZedroS Schwart
hi all Great answers ! I'm downloading the latest NB to avoid bugs corrected in the Beta 1, and then I'll follow your advice Ayodeji. I'll let you know of the outcome :) Cheers ZedroS On 10/23/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: I have checked out and built wicket support for

Changing selection in RadioChoice

2007-10-23 Thread wheleph
Hello everyone! I need to capture changing selection in RadioChoice component. Of course I could override wantOnSelectionChangedNotifications() and onSelectionChanged(java.lang.Object newSelection) methods. But in this case page reloading occurs which is not desired (because other fields get

Two forms on single page

2007-10-23 Thread wheleph
How to submit two forms by clicking on one link? wheleph -- View this message in context: http://www.nabble.com/Two-forms-on-single-page-tf4675929.html#a13359615 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Changing selection in RadioChoice

2007-10-23 Thread Gerolf Seitz
have you looked at AjaxFormChoiceComponentUpdatingBehavior? it doesn't submit the form though. Gerolf On 10/23/07, wheleph [EMAIL PROTECTED] wrote: Hello everyone! I need to capture changing selection in RadioChoice component. Of course I could override

Re: Changing selection in RadioChoice

2007-10-23 Thread Swaroop Belur
have a look at AjaxFormChoiceComponentUpdatingBehavior -swaroop On 10/23/07, wheleph [EMAIL PROTECTED] wrote: Hello everyone! I need to capture changing selection in RadioChoice component. Of course I could override wantOnSelectionChangedNotifications() and

Re: Refreshing components with new data w/o altering the backing model

2007-10-23 Thread Oliver Lieven
Hi, two week ago I had a similar problem (see Thread AutoCompleteTextfield---how to populate two input fields - tf4592192.html#a13166291) The solution was to have an autocomplete-list attached to the zipcode and the city-field. The list shows the valid zipcode-city combinations for the

Re: Two forms on single page

2007-10-23 Thread Martijn Dashorst
You are asking for something that HTML doesn't support. That said... Wicket 1.3's nested forms support allows you to do this: form wicket:id=outer form wicket:id=inner1/form form wicket:id=inner2/form input type=submit value=save both forms / /form At least to my understanding this

Re: Changing selection in RadioChoice

2007-10-23 Thread wheleph
I'm using Wicket 1.2.6. There's no AjaxFormChoiceComponentUpdatingBehavior wheleph -- View this message in context: http://www.nabble.com/Changing-selection-in-RadioChoice-tf4675928.html#a13359898 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Wicket and Netbeans 6

2007-10-23 Thread ZedroS Schwart
Hi again So, it's great : the latest nightly build of NB 6 managed to retrieve a lost UML project and, even better, the modules you've indicated were of fact for Wicket 1.3 and not 1.2 as I was fearing :) Let's continue digging in ! Thanks a lot Cheers, ZedroS On 10/23/07, ZedroS Schwart

question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread raybristol
Hi, I am using isInstantiationAuthorized method in a application class for some simply security check, which is working fine, if the user doesn't have the right to access a page, page display: Access Denied You do not have access to the page you requested. Return to home page However, I can't

Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread Jonas
However, I can't change the url for 'Return to home page' link, as the homepage is a jsp page but 'Return to home page' link just send me to the default wicket homepage which specifed in xml file right? I wonder is there a way to change it as I am working with some jsp pages. You could use

Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread Gerolf Seitz
you can set your own AccessDeniedPage in Application.init(): getApplicationSettings.setAccessDeniedPage( MyAccessDeniedPageWithLinkToJspPage.class); Gerolf On 10/23/07, raybristol [EMAIL PROTECTED] wrote: Hi, I am using isInstantiationAuthorized method in a application class for some

Re: question about 'isInstantiationAuthorized' method, thanks!

2007-10-23 Thread raybristol
Thanks everyone, I will try it now :) Gerolf Seitz wrote: you can set your own AccessDeniedPage in Application.init(): getApplicationSettings.setAccessDeniedPage( MyAccessDeniedPageWithLinkToJspPage.class); Gerolf On 10/23/07, raybristol [EMAIL PROTECTED] wrote: Hi, I am

Basic question - checkboxes

2007-10-23 Thread Neil B. Cohen
Still experimenting with the framework. I've managed to load data from a database and display it in a table on a page. Now I'd like to add a column of checkboxes, and do something to the selected rows when I press a button on the page. Can someone point me at some documentation or sample code

Re: Basic question - checkboxes

2007-10-23 Thread Swaroop Belur
Have a look at AbstractCheckBoxModel . Will give u good idea. Override select() to do ur stuff. For example store the table rowmodel identifier in the model to to do some stuff for that row. On 10/23/07, Neil B. Cohen [EMAIL PROTECTED] wrote: Still experimenting with the framework. I've

Wicket id vs. markup id (wicket-1.3.0-beta4)

2007-10-23 Thread JohannesK
Hi all I've been using Wicket for a while now and i love it to death. Today i encountered a perplexing problem which i haven't been able to get around. My goal is simply to create a link that shows/hides a div when clicked, and to create the id of that div dynamically. What i am doing now is

Show indicator after modal window close

2007-10-23 Thread legol
Hi All!!! I have made my own indicating div that covers full site when special actions are made. Now what i need is to invoke this while WindowClosedCallback is running. I have page in modal window and after closing it, it needs a long time to perform all actions. Problem is when this actions

dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread raybristol
dummy question, how to set wicket in Deloyment mode? There is a Application#getConfigurationType() but I expect something like Application#setConfigurationType() which does not exist so I thing I must miss something here... Many thanks -- View this message in context:

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Swaroop Belur
Put this in ur web.xml context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param On 10/23/07, raybristol [EMAIL PROTECTED] wrote: dummy question, how to set wicket in Deloyment mode? There is a Application#getConfigurationType()

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Dipu Seminlal
you can specify it in your web.xml On 10/23/07, raybristol [EMAIL PROTECTED] wrote: dummy question, how to set wicket in Deloyment mode? There is a Application#getConfigurationType() but I expect something like Application#setConfigurationType() which does not exist so I thing I must miss

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Suad AlShamsi
You can either override getConfigurationType() in the Application class @Override public String getConfigurationType() { return Application.DEPLOYMENT; } or you can set in in the web.xml init-param param-nameconfiguration/param-name

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Vit Rozkovec
Or you can override it in your application to return the mode you want. @Override public String getConfigurationType() { return Application.DEVELOPMENT; // return Application.DEPLOYMENT; } Vitek raybristol wrote: dummy question, how to set wicket in Deloyment mode? There is a

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Vit Rozkovec
You're all so fast :) Suad AlShamsi wrote: You can either override getConfigurationType() in the Application class @Override public String getConfigurationType() { return Application.DEPLOYMENT; } or you can set in in the web.xml init-param

Quick follow-up

2007-10-23 Thread JohannesK
I managed to solve that problem, but i still cannot get the markup id to show up in my div. These two calls: products.setMarkupId(productlist+item.getIndex()); products.setOutputMarkupPlaceholderTag(true); don't seem to do anything. I can change the class of the div just fine with a

Re: Quick follow-up

2007-10-23 Thread Martijn Dashorst
Is the products a repeater (ListView, RepeatingView, DataView)? Then it doesn't have its own markup (see for instance http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html). Martijn On 10/23/07, JohannesK [EMAIL PROTECTED] wrote: I managed to solve that problem, but i still

Re: Accessing PageMap ?

2007-10-23 Thread Johan Compagner
No it has Nothing to do with how wicket caches or something Its just how hibernate tracks its own session objects And an object that you load in one request with a hibernate session object if you try to reuse that object in another one then that object of the last time is not attached to the

Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
In the Wizard example for singing up, I doesn't appear two PasswordTextField to verify if both were completed with the same password. I imagine this is something solved and then I was looking at google. At the same time it is something easy. How can I solve by my self? Just a guide. -- Fernando

Re: Reload Captcha Image

2007-10-23 Thread Jeremy Thomerson
Have you tried SubmitLink? It will submit the form (which saves your values) and allow you to just move your code from onClick() to onSubmit() (can't remember if that's the exact method signature). Jeremy Thomerson On 10/22/07, Toscano [EMAIL PROTECTED] wrote: Hello, I'm having problems

Re: Quick follow-up

2007-10-23 Thread Oliver Lieven
Hi, what about using products.setOutputMarkupId(true) ? regards, Oliver Martijn Dashorst wrote: Is the products a repeater (ListView, RepeatingView, DataView)? Then it doesn't have its own markup (see for instance http://cwiki.apache.org/WICKET/how-to-repaint-a-listview-via-ajax.html).

i18n feedbackmessages

2007-10-23 Thread [EMAIL PROTECTED]
Hi, i wonder wether the info(feedback message); could be internationalized, ie. info(feedback.success); with a corresponding entry in the xyz.properties. is there a workaround? thanks very much, best regards, nico - To

Re: Wizard and PasswordTextField

2007-10-23 Thread [EMAIL PROTECTED]
Hi Fernando, i solved this be integrating the check into the onSubmit method: /** * @see org.apache.wicket.markup.html.form.Form#onSubmit() */ @Override public void onSubmit() { //validate the password fields... if

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Frank Bille
You can also set a system property wicket.configuration. Thats what I do: In my web.xml I have init-param param-nameconfiguration/param-name param-valuedeployment/param-value /init-param so it's there for live deploying, but in my JettyStarter I do:

Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Why not use EqualPasswordInputValidator ? Martijn On 10/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Fernando, i solved this be integrating the check into the onSubmit method: /** * @see org.apache.wicket.markup.html.form.Form#onSubmit() */

Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
It takes two forms to validate but I have just one form. I dont figure it out how it works. I am a newbie On 10/23/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Why not use EqualPasswordInputValidator ? Martijn On 10/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Fernando, i

Re: Wizard and PasswordTextField

2007-10-23 Thread Fernando Wermus
I am sorry! I understood. FormComponent is the parent of PasswordTextField. I thought it was a class related to forms. On 10/23/07, Fernando Wermus [EMAIL PROTECTED] wrote: It takes two forms to validate but I have just one form. I dont figure it out how it works. I am a newbie On 10/23/07,

Re: Wizard and PasswordTextField

2007-10-23 Thread Martijn Dashorst
Two forms? It uses two *FormComponents*, the base class of all input controls. Form form = new Form(form); form.add(new PasswordTextFIeld(field1)); form.add(new PasswordTextField(field2)); form.add(new EqualPasswordInputValidator(field1, field2)); Martijn On 10/23/07, Fernando Wermus [EMAIL

Re: Changing selection in RadioChoice

2007-10-23 Thread wheleph
Now I decided to use RadioGroup with nested Radios. To each radio I attach AjaxEventBehavior for onclick event and update my model taking into account the index of radio clicked. This workaround perfectly satisfies me. Thanks everybody for help. wheleph -- View this message in context:

Re: Refreshing components with new data w/o altering the backing model

2007-10-23 Thread Igor Vaynberg
dont know if you need that, just add javascript to the ajax target to set the values on the fields.. -igor On 10/23/07, Matej Knopp [EMAIL PROTECTED] wrote: I think what you could try (though it would be a nasty hack :) ) is to set rawInput property on FormComponent. However, you'll need some

Re: i18n feedbackmessages

2007-10-23 Thread Igor Vaynberg
info(getstring(feedback.success)); -igor On 10/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i wonder wether the info(feedback message); could be internationalized, ie. info(feedback.success); with a corresponding entry in the xyz.properties. is there a workaround? thanks very

Re: i18n feedbackmessages

2007-10-23 Thread Jeremy Thomerson
info(getString(your.key)); Jeremy Thomerson On 10/23/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i wonder wether the info(feedback message); could be internationalized, ie. info(feedback.success); with a corresponding entry in the xyz.properties . is there a workaround? thanks very

Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-23 Thread Francisco Diaz Trepat - gmail
Hi. I'm going to try to explain the best that I can and without posting code at first the issue that is happening. I have the following panels A and C. A has two instances of B nested inside of it. C is empty: [ ==PANEL-A== [ ==PANEL-B1== ] [ ==PANEL-B2== ] ] [

FilterToolbar API Changes

2007-10-23 Thread UPBrandon
Could somebody please explain the Wicket-Extensions 1.3 beta 4 API changes for the FilterToolbar? I have looked everywhere for information and a working example but can't seem to find any. I found a mailing list conversation about the reasoning for the change but nothing that helps me get

Re: AbstractMethodError in logging

2007-10-23 Thread Sasha O
John -- Thanks for the quick reply. That did it! -- Sasha John Krasnay wrote: On Tue, Oct 23, 2007 at 09:49:25AM -0700, Sasha O wrote: Hello Wicket people -- Love the framework so far. Getting this message, have no idea how to deal with it: Exception in thread ModificationWatcher Task

Re: wicketstuff push and sharing an IChannelService

2007-10-23 Thread Xavier Hanin
On 10/23/07, Michael Sparer [EMAIL PROTECTED] wrote: Hi Xavier, thanks for your reply - well yes, that's certainly right. I've just lost sight of it. But I got another question: how stable is the wicketstuff-push project or what sections are stable and which have to be improved for use in

Re: FilterToolbar API Changes

2007-10-23 Thread Igor Vaynberg
see wicket-phonebook in wicket-stuff -igor On 10/23/07, UPBrandon [EMAIL PROTECTED] wrote: Could somebody please explain the Wicket-Extensions 1.3 beta 4 API changes for the FilterToolbar? I have looked everywhere for information and a working example but can't seem to find any. I found a

Re: Accessing PageMap ?

2007-10-23 Thread mfs
Makes sense...and calling the getUser method when you need it, and that would onBeginRequest ? Farhan. Johan Compagner wrote: No it has Nothing to do with how wicket caches or something Its just how hibernate tracks its own session objects And an object that you load in one request with

retrieving page from ModalWindow's setPageCreator(ModalWindow.PageCreator)

2007-10-23 Thread Kirk Israel
I looked at the JavaDoc and inspected the class, but couldn't find a clear way of getting the page I'm generating in ModalWindow.setPageCreator's createPage() out of the ModalWindow. (My situation is a little complex: I want a single upload image ModalWindow (and corresponding page embedded in

Re: FilterToolbar API Changes

2007-10-23 Thread UPBrandon
Do you have an address for that? I downloaded what I thought was the latest version from http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook yesterday but it appears to be using an older version of Wicket-Extensions. The page I was focusing on, ListContactsPage, uses the older

Re: FilterToolbar API Changes

2007-10-23 Thread Martijn Dashorst
Check it out from subversion, then you are sure you have the latest (though it may still be a bit out of date). https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-phonebook/ Martijn On 10/23/07, UPBrandon [EMAIL PROTECTED] wrote: Do you have an address for that? I

Re: dummy question, how to set wicket in Deloyment mode?

2007-10-23 Thread Eelco Hillenius
System.setProperty(wicket.configuration, development); I just add -Dwicket.configuration=development in my Eclipse run configuration. Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: FilterToolbar API Changes

2007-10-23 Thread UPBrandon
That worked perfectly. Thanks for the point in the right direction. For anyone looking for information on a similar problem, a change in Wicket-Extensions 1.3 beta 4 requires users to pass a FilterForm to a FilterToolbar when it is constructed. If your table already uses components like a

updating components on Page from ModalWindow's internal Page's components

2007-10-23 Thread Kirk Israel
So I spoke too soon about this working out... I think the core problem is kind of simple: How can a component of a page inside a ModalWindow update components on the page that holds the Modal Window? More Specifically: I have an EditCreativePage that creates an instance of UploadMediaPanelPage,

Javascript call on AjaxFallbackDefaultDataTable

2007-10-23 Thread Cristi Manole
Hello, I am wondering how I could make a javascript call each time the AjaxFallbackDefaultDataTable is refreshed. Thanks in advance.

Internationalization and Component orientation

2007-10-23 Thread alshamsi
Hi All, I am developing an application that supports English and Arabic. Therefore based on the locale I need to shift components from right to left and vice versa. Does wicket provide any utility to facilitate that? Does anybody know any other framework that can be used on top of wicket to

Reporting Tool and Portal Integration

2007-10-23 Thread mehdi b
Hi, I have two questions: 1.How can I create report in a wicket web application? Is there any solution integrated with wicket, for example jasper report? 2.Does anyone use wicket-portlet in a portal server like liferay? Tnx __ Do You Yahoo!?

Re: Reporting Tool and Portal Integration

2007-10-23 Thread Philip A. Chapman
I integrated it by using a servlet, but I believe that there is a wicket-stuff project that uses DynamicResource objects. Check wicket-stuff. On Tue, 2007-10-23 at 13:37 -0700, mehdi b wrote: Hi, I have two questions: 1.How can I create report in a wicket web application? Is there any

javascript settimeout on ajaxeventtarget

2007-10-23 Thread James Law
Hi, I have a screen that shows a list (using wicket datagrid). Each row has an href/link that is opening the wicket modal window. It works well, but the users wanted ability to mouseover (instead of having to click) to automatically open the window (without clicking the link). I accomplished

Cache Panel

2007-10-23 Thread Joe Toth
I have a bunch of Panels where the generated HTML can be cached for a period of time. What's the best way to go about doing something like this? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Accessing PageMap ?

2007-10-23 Thread Johan Compagner
no why would that be onBeginRequest? calling getUser would be when you need in somewhere in your code On 10/23/07, mfs [EMAIL PROTECTED] wrote: Makes sense...and calling the getUser method when you need it, and that would onBeginRequest ? Farhan. Johan Compagner wrote: No it has

Re: updating components on Page from ModalWindow's internal Page's components

2007-10-23 Thread Matej Knopp
Problem is that AjaxRequestTarget only applies to one page. If you want to update the outer page (assuming that you have another page inside modal window, not a panel), the only way to do it is from within WindowClosedCallback registered to modal window. So you have to mark somehow dirty

Re: javascript settimeout on ajaxeventtarget

2007-10-23 Thread Matej Knopp
What you want to accomplish needs a little bit more of javascript, it's not a simple timeout. Problem is that you need to make sure that after the timeout the mouse is still over the element. Anyway, you can use AjaxEventBehavior.getAjaxCallDecorator() to return your own decorater which decorates

Re: Accessing PageMap ?

2007-10-23 Thread mfs
Well than may be i am misundertanding it...the getUser method than can be defined anywhere (i thought you were suggested in some specific class i.e. MyCustomRequestCycle which we would be overriding and hence onBeginRequst and onEnd)..and since we were talking in the context where we want to load

Re: retrieving page from ModalWindow's setPageCreator(ModalWindow.PageCreator)

2007-10-23 Thread Matej Knopp
Modal window doesn't keep the reference to the page. What prevents you from keeping the reference inside the page creator instance if you need to? -Matej On 10/23/07, Kirk Israel [EMAIL PROTECTED] wrote: I looked at the JavaDoc and inspected the class, but couldn't find a clear way of getting

Re: Cache Panel

2007-10-23 Thread Joe Toth
There are some operations that are kind of complicated, rather than dig into those operations and try to cache things, it would be A LOT easier to just stick a cache in front of it all. On Tue, 2007-10-23 at 21:01 -0500, Jeremy Thomerson wrote: The first thing to ask yourself would be if you

Re: Cache Panel

2007-10-23 Thread Igor Vaynberg
use any cache you want to cache it, and stick the contents into a label -igor On 10/23/07, Joe Toth [EMAIL PROTECTED] wrote: There are some operations that are kind of complicated, rather than dig into those operations and try to cache things, it would be A LOT easier to just stick a cache

Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Chris Lintz
Hey all, We are quite puzzled why this is happening. Every use of a Button onSubmit causes a 302 redirect no matter if it posts a form or does a get. I have simplified this down to a simple page with a Button and guaranteed there are no Apache redirects or .htaccess files in play. I also

Re: Must wicket modify the input attribute name?

2007-10-23 Thread Eelco Hillenius
I am trying to integrate my wicket application to use jquery validator plugin, and specifying the rules in a js file. The js file will need to identify the input by the name of the input. It worked fine in plain html markup, but when I ran it in wicket I was unable to

Re: Button component bug - all uses of a Button cause a 302 redirect

2007-10-23 Thread Igor Vaynberg
yep, this is called a redirect-after-post pattern - i suggest you look it up. it is the preferred way of building webapps and wicket gives you it for free. so actually this is a Good Thing (tm). -igor On 10/23/07, Chris Lintz [EMAIL PROTECTED] wrote: Hey all, We are quite puzzled why this is