Re: General questions regarding Wicket roadmap and plans

2009-12-04 Thread Martijn Dashorst
The problem with pre built components is that they never, ever are exactly what you want or need. Maintaining such components for other people is what I call hell. We are in the business of creating the best Java web framework for building your own custom components with unprecedented ease. This

Re: close a ModalWindow when session expired

2009-12-04 Thread Bernard Lupin
Hi again, After a lot of various tries, I finally found a solution that seems to work. On my ModalWindow close button, I don't need javacode anymore, I just have this small javascript command in the markup file: onclick=window.parent.Wicket.Window.close(); Do you think that it's a good way to

Re: InvalidUrlException considered evil?

2009-12-04 Thread Alex Objelean
That is why this Exception was created... you can override requestCycle handle this kind of exception whatever you like ... Alex Objelean Marat Radchenko-2 wrote: There some places in Wicket sources where it throws InvalidUrlException that causes exception logging and InternalErrorPage

Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-04 Thread Michał Letyński
Hi i have simple select with AjaxFormSubmitBehavior attached to it. After changing selection i get: Error: Wicket.Ajax.Call.failure: Error while parsing response: Could not find root ajax-response element Is it a known problem ?

Re: close a ModalWindow when session expired

2009-12-04 Thread Johan Compagner
it could be that if you do that then in normal use the serverside doesnt know that the modal window isnt shown anymore. So i guess you should also try to let the server know. On Fri, Dec 4, 2009 at 10:16, Bernard Lupin beal6...@yahoo.fr wrote: Hi again, After a lot of various tries, I finally

RE: Resource Location

2009-12-04 Thread Stefan Droog
If you use CompressedResourceReference(MyPage.class, MyPage.css); it will expect to have the CSS file in the same package as the MyPage.class. So in your case the css file should be in the following package: myPackage/Application.java myPackage/css/jquery/cupertino/jquery-ui-1.7.2.custom.css

DropDownChoiceWithStylingOptionsT

2009-12-04 Thread Martin Makundi
Free4U public class DropDownChoiceWithStylingOptionsT extends DropDownChoiceT { private String previouslyAppendedOptGroupLabel; private int choices; /** * @param id * @param choices * @param renderer */ public DropDownChoiceWithStylingOptions(String id, IModel? extends

Re: Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-04 Thread Michał Letyński
The problem came in wicket 1.4.2 and its connected with NullPointer exception which came from wicket-ajax.js - line 1133 Here is the code: if (submitButton!=null) { try { var btn = document.createElement(input type='hidden' name='+submitButton+'

Re: DropDownChoiceWithStylingOptionsT

2009-12-04 Thread nino martinez wael
Martin, why not put something like this in minis? 2009/12/4 Martin Makundi martin.maku...@koodaripalvelut.com Free4U public class DropDownChoiceWithStylingOptionsT extends DropDownChoiceT { private String previouslyAppendedOptGroupLabel; private int choices; /** * @param id *

Re: DropDownChoiceWithStylingOptionsT

2009-12-04 Thread Martin Makundi
Busy... sorry. Feel free to put it. 2009/12/4 nino martinez wael nino.martinez.w...@gmail.com: Martin, why not put something like this in minis? 2009/12/4 Martin Makundi martin.maku...@koodaripalvelut.com Free4U public class DropDownChoiceWithStylingOptionsT extends DropDownChoiceT {  

Re: DropDownChoiceWithStylingOptionsT

2009-12-04 Thread nino martinez wael
Ahh, me too :/ So anyone able feel free to put this in minis. 2009/12/4 Martin Makundi martin.maku...@koodaripalvelut.com Busy... sorry. Feel free to put it. 2009/12/4 nino martinez wael nino.martinez.w...@gmail.com: Martin, why not put something like this in minis? 2009/12/4 Martin

Re: wicket enclosure not finding child!?

2009-12-04 Thread Douglas Ferguson
Is there a way to test this with maven? On Dec 4, 2009, at 12:45 AM, Girts Ziemelis wrote: You might want to try first the development snapshot first. There is additional enclosure fix waiting for 1.4.4:

Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
Still working on this darn sign-up form in my spare time. I currently can not get feedback to show up. If I disable javascript it shows up but using ajax it does not. In my WizardStep I have the code to add the feedback panel to the target as a placeholder. (confirmed, its in the DOM hidden).

Re: Resource Location

2009-12-04 Thread Lester Chua
Is there a way to load the css from webapp's context path? Stefan Droog wrote: If you use CompressedResourceReference(MyPage.class, MyPage.css); it will expect to have the CSS file in the same package as the MyPage.class. So in your case the css file should be in the following package:

Re: Component feedback

2009-12-04 Thread Martin Makundi
You can filter feedback messages.. have a look inside FeedbackPanel. ** Martin 2009/12/4 Sam Barrow s...@sambarrow.com: Hi. I have a FormComponentPanel called MoneyField with a couple of text boxes inside. Is there any way to make a new MoneyField with a ComponentFeedbackPanel that collects

Re: Ajax Wizard and feedback

2009-12-04 Thread Martin Makundi
When does the error occur? ** Martin 2009/12/4 John Armstrong siber...@siberian.org: Still working on this darn sign-up form in my spare time. I currently can not get feedback to show up. If I disable javascript it shows up but using ajax it does not. In my WizardStep I have the code to add

Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
When I click next in the wizard and have not selected an item from the RadioGroup. J On Fri, Dec 4, 2009 at 7:26 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: When does the error occur? ** Martin 2009/12/4 John Armstrong siber...@siberian.org: Still working on this darn

onClick Handle ?

2009-12-04 Thread Peter Arnulf Lustig
Hi, I'd like to create an own Link in the template document. When I create an Link via Wicket with an onClick attribute, then it calls the page everytime I click on it. What I need is a Link in that way: a onclick=funci('8912aja')Click for Item/a But the 8912aja is created dynamicially, so I

Re: Wicket.Ajax.Call.failure: after update wicket from 1.4.1 to 1.4.3

2009-12-04 Thread Igor Vaynberg
first try with latest wicket-1.4.x branch build. if its still there then open a jira issue. -igor 2009/12/4 Michał Letyński mletyn...@consol.pl: The problem came in wicket 1.4.2 and its connected with NullPointer exception which came from wicket-ajax.js - line 1133 Here is the code:      

Re: DropDownChoiceWithStylingOptionsT

2009-12-04 Thread Igor Vaynberg
lol -igor On Fri, Dec 4, 2009 at 6:43 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Ahh, me too :/ So anyone able feel free to put this in minis. 2009/12/4 Martin Makundi martin.maku...@koodaripalvelut.com Busy... sorry. Feel free to put it. 2009/12/4 nino martinez wael

Re: Resource Location

2009-12-04 Thread Igor Vaynberg
if its in your context path you can simply link to it in the markup with its context-relative path. -igor On Fri, Dec 4, 2009 at 7:13 AM, Lester Chua cicowic...@gmail.com wrote: Is there a way to load the css from webapp's context path? Stefan Droog wrote: If you use

Re: FormComponentPanel

2009-12-04 Thread Igor Vaynberg
override convertinput() and check that all three are filled in by calling getconvertedinput() on the child components -igor On Fri, Dec 4, 2009 at 8:39 AM, Sam Barrow s...@sambarrow.com wrote: I have a FormComponentPanel called Name with 3 fields. Is there a way to set it up so that by

Re: DropDownChoiceWithStylingOptionsT

2009-12-04 Thread Marat Radchenko
Definitely, lol :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

TextArea with list of strings.

2009-12-04 Thread Sam Barrow
I am trying to make a TextArea that allows you to input a list of strings (separated by a newline) and turns that list into a Collection. I had it working but it was kind of hacked together, I'm trying to do it the clean way now. I have it working except for two things: If I give it an empty

Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
The button itself lives in my ButtonBar class and the buttons themselves are extensions of AjaxFallbackButtons public class AjaxWizardButtonBar extends WizardButtonBar public abstract class AjaxWizardButton extends AjaxFallbackButton The buttonbar class has an onSubmit method that knows when

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
you should do convertToObject() call in a try block, catch any exception and throw a conversionexception -igor On Fri, Dec 4, 2009 at 11:32 AM, Sam Barrow s...@sambarrow.com wrote: I am trying to make a TextArea that allows you to input a list of strings (separated by a newline) and turns

Re: Ajax Wizard and feedback

2009-12-04 Thread Igor Vaynberg
does your button also properly implement onerror() ? -igor On Fri, Dec 4, 2009 at 11:35 AM, John Armstrong siber...@siberian.org wrote: The button itself lives in my ButtonBar class and the buttons themselves are extensions of AjaxFallbackButtons public class AjaxWizardButtonBar extends

wizard and datagrid

2009-12-04 Thread Fernando Wermus
Hi all, I have, Step 1 which the user selects something Steps 2 which a datagrid is shown which depends in a model that is associated with the selection from step 1. The fact is that I never see any change in the datagrid. I review several times if the model associated with the datagrid

Re: wizard and datagrid

2009-12-04 Thread Fernando Wermus
I added this to make it work, but I dont see the need. Why? @Override protected void onBeforeRender() { final UsersModel w=(UsersModel) getModelObject(); DataGrid g=(DataGrid) get(grid); g.setModel(w.lookForUsers()); super.onBeforeRender(); } This model was set up before. The only

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
so walk the code and see where your ConversionException is being wrapped by a RuntimeException -igor On Fri, Dec 4, 2009 at 1:08 PM, Sam Barrow s...@sambarrow.com wrote: That's what I'm doing, but i still get the conversion exception public final class EmailAddressConverter implements

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
No I'm getting a ConversionException, I must have made a typo. But for the single text field I get a message in the feedback panel. On Fri, 2009-12-04 at 13:25 -0800, Igor Vaynberg wrote: so walk the code and see where your ConversionException is being wrapped by a RuntimeException -igor

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
ok, override convertValue() instead of convertInput() and then the exception will be handled for you -igor On Fri, Dec 4, 2009 at 1:39 PM, Sam Barrow s...@sambarrow.com wrote: No I'm getting a ConversionException, I must have made a typo. But for the single text field I get a message in the

Re: TextArea with list of strings.

2009-12-04 Thread Sam Barrow
I'll try that. What about the problem with the square brackets? I can't find a function to override that allows me to format the text inside the textarea On Fri, 2009-12-04 at 14:01 -0800, Igor Vaynberg wrote: ok, override convertValue() instead of convertInput() and then the exception will be

Re: Ajax Wizard and feedback

2009-12-04 Thread John Armstrong
My problem was 4 fold (after multiple iterations of problems) 1) I was overriding onError in both AjaxButton and AjaxButtonBar so my AjaxButton version was ignored 2) I am using the default ButtonBar html which has a component called 'feedback' in it, this dup'd my nested feedback form (merely

Re: TextArea with list of strings.

2009-12-04 Thread Igor Vaynberg
overrwrite getmodelvalue() and convert it to string there -igor On Fri, Dec 4, 2009 at 2:10 PM, Sam Barrow s...@sambarrow.com wrote: I'll try that. What about the problem with the square brackets? I can't find a function to override that allows me to format the text inside the textarea On

Re: Ajax Wizard and feedback

2009-12-04 Thread Igor Vaynberg
protected void onError(final AjaxRequestTarget target, Form form) { form.visit(FormComponentPanel.class, new VisitorFormComponentPanel() { visitComponent(FormComponentPanel component) { target.addComponent(feedback);

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-04 Thread Igor Vaynberg
1.4 -igor On Fri, Dec 4, 2009 at 2:13 PM, Doug Leeper douglee...@yahoo.com wrote: 1.4 trunk or 1.5 trunk? -- View this message in context: http://old.nabble.com/FileUploadField-in-a-ModalWindow-%28wicket-1.4.3%29--tp26577255p26641953.html Sent from the Wicket - User mailing list archive

Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _
Hi, I have a page with several panels each of them them have links that open modal windows. Essentially there are a number of modal windows on the page most are hidden. They all open up and I am able to close them with the Cross (X) link. In one of the modal windows the content has an

RE: Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _
Using version 1.4.3 Would really ppreciate suggestions. From: ed_b...@hotmail.com To: users@wicket.apache.org Subject: Closing ModalWindows on page with multiple modal windows Date: Fri, 4 Dec 2009 15:09:22 -0800 Hi, I have a page with several panels each of them them have links

RE: Closing ModalWindows on page with multiple modal windows

2009-12-04 Thread Ed _
And the application is throwing an exception. On repeated tries to close the ModalWindow via the AjaxLink [2009-12-04 16:45:34,942]ERROR [http-8080-4] (RequestCycle.java:1521) - org.apache.wicket.WicketRuntimeException: After 1 minute the Pagemap modal-dialog-pagemap is still locked by:

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-04 Thread Doug Leeper
I have created a quick start and attached it to WICKET-2595. I have also included my suggested fixes to Form.java and wicket-ajax.js. It got past the problem of not submitting in an iframe but my AjaxButton.onSubmit is not being called and there are no errors generated. Hope this helps. -

Add method in wicket 1.4.3

2009-12-04 Thread Johan den Boer
Hi I am new to wicket so this question may already been answered. In my java class which is extended from WebPage I can not add a Label. add(new Label(message, Hello World)) does not work. Is this method been replaced in 1.4.3 can you point me to the url so i can read about it or can you give

Re: Add method in wicket 1.4.3

2009-12-04 Thread Igor Vaynberg
im pretty sure its still there -igor On Fri, Dec 4, 2009 at 10:12 PM, Johan den Boer johanj.denb...@gmail.com wrote: Hi I am new to wicket so this question may already been answered. In my java class which is extended from WebPage I can not add a Label. add(new Label(message, Hello World))

Re: Add method in wicket 1.4.3

2009-12-04 Thread Johan den Boer
No is not working. the error message is The method add(Component[]) in the type MarkupContainer is not applicable for the arguments (Label) I am using eclipse 3.5 and maven. In my pom file dependencies dependency groupIdorg.apache.wicket/groupId

Re: Add method in wicket 1.4.3

2009-12-04 Thread Igor Vaynberg
wicket 1.4.3 is jdk5+ -igor On Fri, Dec 4, 2009 at 10:46 PM, Johan den Boer johanj.denb...@gmail.com wrote: No is not working. the error message is The method add(Component[]) in the type MarkupContainer is not applicable for the arguments (Label) I am using eclipse 3.5 and maven. In my

Re: Add method in wicket 1.4.3

2009-12-04 Thread Johan den Boer
Hi, ok, now is working thanks igor.vaynberg wrote: wicket 1.4.3 is jdk5+ -igor On Fri, Dec 4, 2009 at 10:46 PM, Johan den Boer johanj.denb...@gmail.com wrote: No is not working. the error message is The method add(Component[]) in the type MarkupContainer is not applicable

How to return specific HTTP result code on HTTP request

2009-12-04 Thread Petr Fejfar
Hi all, I'm not able to find-out how to respond on HTTP request (via mounted URL) by setting HTTP result code to specific value e.g. 402 (Payment required) etc... Pls, could somebody push me forward? Thx, pf - To unsubscribe,

Remote Image Generation Null Pointer

2009-12-04 Thread bassglider
Hi Everyone, I am attempting to load an image that takes some time. I can load a remote image using the URL, but when it takes time to gather the data and then get the url, I get this: [java] 11174 [btpool0-1] ERROR org.apache.wicket.RequestCycle - Exception in rendering component: [Component