Re: Modal Window inside a wizardstep

2009-02-25 Thread jensiator
I'm getting the background submit on both IE7 and Firefox 3.0.6. I'll try to change the wizardbuttons to ajaxbuttons and see if this problem will disappear. I think it has something to do with the default form behavior with the enter key. Still I would like someone to confirm this behavior. (It

how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
I have a TextField with some input. If a user deletes the input and submit the setter sets the value to NULL. How can i avoid this behavior and force an empty String to bet set? Thanks for any help! Santiago -- View this message in context:

Re: wicket-spring classpath issue

2009-02-25 Thread Alex Parvulescu
Hello, Your point is interesting , but I really think theres more to this than simple convenience. I am really interested in this because I think its a bug. Its you choice if you want to have a big fat war (~5MB) and deploy that over scp - i guess the fast deploy cycles go out the window, or

GSoC ideas for 09

2009-02-25 Thread C. Bergström
Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful projects for Wicket. Thanks ./Christopher

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread Ernesto Reinaldo Barreiro
What kind of model are you attaching to a the text field? Anyway, you could always do: public class EmptyStringModel extend WhatEverModelYouAreUsingString { .Constructors public void setObject(String value) { if(value != null) { super.setObject(value);

Re: determine which form was submitted

2009-02-25 Thread Ernesto Reinaldo Barreiro
Wouldn't it be enough to and onSubmit() {...} for each form and then you will know which one was submited? Ernesto On Wed, Feb 25, 2009 at 12:33 AM, Alexander Lohse a...@humantouch.de wrote: Hi, I have two forms on one page and need to toggle visibility of a container depending on which

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread jensiator
My experience is that null values a nice to use. What if you have a optional email field? When the user starts to write something the email validation kicks in. I think a lot of wickets validators uses Null in that case. And I have used that i JSP/Struts programming to. I think its better to

Re: GSoC ideas for 09

2009-02-25 Thread Peter Thomas
On Wed, Feb 25, 2009 at 1:26 AM, C. Bergström cbergst...@netsyncro.comwrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful projects for Wicket. A

Re: GSoC ideas for 09

2009-02-25 Thread C. Bergström
Peter Thomas wrote: On Wed, Feb 25, 2009 at 1:26 AM, C. Bergström cbergst...@netsyncro.comwrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful

Re: DropBoxExample

2009-02-25 Thread Martin Makundi
MyObject default = xx; new DropDownChoice(markup-id, new Model(default), new AbstractReadOnlyModel() { getObject() { return Collections.emptyList(); // TODO Your options here } }, new IChoiceRenderer() { Object getDisplayValue(Object element) { return element.toString(); // What

DropBoxExample

2009-02-25 Thread SrinivasaRaju Ch
Hi, I am new to wicket . I want to populate key value pairs to dropbox in wicket . I will be getting a list of Object[] ex: ListObject[] sampleList = new ArraListObject[] and then add some item to this list. now how can i populate this list into wicket dropbox with key as Object[0] and

Re: Wicket Focus Policy

2009-02-25 Thread alexander.elsholz
hi, no, i think there doesn't exist an out of the box solution in any other webframework. you have to implmenent a visitor, which uses the java-programming policy and: - manipulates the htmlattributes for static fields - add an ajax-behavior for dynamic fields. i will implement this policy and

Re: GSoC ideas for 09

2009-02-25 Thread Antony Stubbs
286 Portlet support has already been finished. Cheers, Tony. On 25/02/2009, at 2:20 PM, C. Bergström wrote: Peter Thomas wrote: On Wed, Feb 25, 2009 at 1:26 AM, C. Bergström cbergst...@netsyncro.com wrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate

AjaxSelfUpdatingTimerBehavior and ModalWindow

2009-02-25 Thread dtoffe
Hi, Is there an easy way of stopping an AjaxSelfUpdatingTimerBehavior when a ModalWindow is opened, and restarting it again when the modal is closed ?? AbstractAjaxTimerBehavior provides a stop() method, but not a (re)start, I would like to know if it is possible to get the desired

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
I used a PropertyModel. Now i use my own extended PropertyModel which overrides the setObject-Method quite similar to your proposal. Thanks for the Help. reiern70 wrote: What kind of model are you attaching to a the text field? Anyway, you could always do: public class EmptyStringModel

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread SantiagoA
A null value won´t work for me, because I have to Map these values via Castor to XML and as result null values were deleted in Castor. At this point I need an empty String to make sure the value is mapped in Castor. Thanks for the proposal anyway, the solution above (Ernestos proposal) works

Session expires while a modal window is open

2009-02-25 Thread Andrea Beda
Hi all! I've a problem in my application when the session expires while a modal window containing a back button is open. If you press the button, the expired page appares and after the link will redirect you to the login page, but inside the modal window. Is this the normal behavior? Is it

Re: GSoC ideas for 09

2009-02-25 Thread Marcelo Morales
You've got 86 unresolved enhancements and 32 feature requests on issues.apache.org. The leaders might want to umbrella a couple of related ones and have them coded on GSoC. Also, there might be a couple of orphaned projects on wicketstuff and elsewhere that could get into the main distribution.

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread Ernesto Reinaldo Barreiro
You are welcome. Ernesto On Wed, Feb 25, 2009 at 2:44 PM, SantiagoA s.auc...@gmx.de wrote: I used a PropertyModel. Now i use my own extended PropertyModel which overrides the setObject-Method quite similar to your proposal. Thanks for the Help. reiern70 wrote: What kind of model are

Re: Some SignInPanel Questions

2009-02-25 Thread Jeremy Levy
1) No valuemap is a cheap model, the only value is using it in this cause is that it's quick to write, see models for more information. 2) That example is designed to show you how to do sign in, not necessary the best way to handle getting data from forms. From looking at the code you highlight

Re: how to avoid value set to null if value of textfield gets deleted

2009-02-25 Thread Sergio García
If you retrieve the string using getModelObjectAsString() you will never receive a null, because that method converts nulls to SantiagoA wrote: A null value won´t work for me, because I have to Map these values via Castor to XML and as result null values were deleted in Castor. At this

Re: GSoC ideas for 09

2009-02-25 Thread Sergio García
Better tree component maybe? quot;C. Bergströmquot; wrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful projects for Wicket. Thanks

Re: GSoC ideas for 09

2009-02-25 Thread Peter Thomas
On Wed, Feb 25, 2009 at 3:53 AM, Antony Stubbs antony.stu...@gmail.comwrote: 286 Portlet support has already been finished. Cheers, Tony. Great! I had no idea, can you provide a link to read up about it, even a JIRA would be fine. On 25/02/2009, at 2:20 PM, C. Bergström wrote:

Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Hi! I have a problem with theme support for borders. I want to exchange real markup of border depending on theme name, for example: RoundedCornerBorder_black.html RoundedCornerBorder_white.html How to do this in Wicket? - To

Re: Switching between markup files for borders

2009-02-25 Thread Michael Sparer
http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocaleandStyle regards Anton Veretennikov wrote: Hi! I have a problem with theme support for borders. I want to exchange real markup of border depending on theme name, for example: RoundedCornerBorder_black.html

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Thank you very much! On Thu, Feb 26, 2009 at 12:19 AM, Michael Sparer michael.spa...@gmx.at wrote: http://cwiki.apache.org/WICKET/newuserguide.html#Newuserguide-LocaleandStyle regards Anton Veretennikov wrote: Hi! I have a problem with theme support for borders. I want to exchange

Re: determine which form was submitted

2009-02-25 Thread Igor Vaynberg
are these embedded forms? -igor On Tue, Feb 24, 2009 at 3:33 PM, Alexander Lohse a...@humantouch.de wrote: Hi, I have two forms on one page and need to toggle visibility of a container depending on which form was submitted. Is there a way to I find out which form was posted? Thank you in

How to deal with IE bug/feature 'return form submit' in Wicket?

2009-02-25 Thread Wayne Pope
Hi, I have a form that has a single text field and an ajax button. In FF when I click on the button or hit return key the onSumit of the ajaxButton is called. In IE when I click on the button the onSubmit of the ajaxButton is called. However In IE (as you may know) if I hit the return key it

[jobs] contractor needed in NYC

2009-02-25 Thread evaneustace
Hi, We need some contractor support in New York. The contract would be full time and would most likely run for 2-3 months. I would prefer someone to be on-site (financial district.) We're preparing some new functionality for release, and we primarily need help with fixing and enhancing UI per

Re: How to deal with IE bug/feature 'return form submit' in Wicket?

2009-02-25 Thread Jeremy Thomerson
This probably isn't the best way, but you could possibly move all of your onSubmit code to the form's on submit, including the request target stuff. Just do RequestCycle.get().getRequestTarget() (or there maybe AjaxRequestTarget.get() - I can't remember). That's not a true fix but at least it

Re: How to deal with IE bug/feature 'return form submit' in Wicket?

2009-02-25 Thread Jeremy Thomerson
Actually, thinking a little more - rather than disabling the return key, could you do something like this in JS (pseudo code): form onsubmit=ajaxSubmitButton.submit(); return false; blah blah blah /form Then when the return key was pressed, the form would submit, and if they have JS, it will use

Border body inside a fragment

2009-02-25 Thread Adriano dos Santos Fernandes
Hi! I'm having some difficulties to achieve this, may be it's not supported? My Border have: wicket:border wicket:fragment wicket:id=windowFragment ... wicket:body / ... /wicket:fragment wicket:border I.e., could the border body be inserted inside a fragment? I want

Wicket Security Question

2009-02-25 Thread M Goodell
I would like to pose a question. We are looking at using Wicket as a platform for an upcoming project. So far we are *really* liking what Wicket brings to the table. In terms of security / securing a web application our first thought was Spring Security. My question: Does Spring

External Resource Bundle in Wicket

2009-02-25 Thread gaugat
Is it possible to configure wicket to look for a resource in a resource bundle external to the web application (perhaps from the user.home dir) and if the resource does not exist continue to use wicket's default implementation to locate the resource? If so, how do you do this? -- View this

Re: External Resource Bundle in Wicket

2009-02-25 Thread Jeremy Thomerson
This should help: http://www.google.com/search?q=wicket+custom+resource And the first two results: http://cwiki.apache.org/WICKET/custom-resource-paths. http://www.wicket-library.com/wicket-examples/customresourceloading/ On Wed, Feb 25, 2009 at 2:39 PM, gaugat gor...@augat.org wrote: Is it

Re: Wicket Security Question

2009-02-25 Thread Markus Strickler
Hi- http://wicketstuff.org/confluence/display/STUFFWIKI/Security+Framework+Comparison might be of interest. I've been using Auth-roles together with ACEGI in a project and it worked quite well. -markus Am 25.02.2009 um 21:23 schrieb M Goodell: I would like to pose a question. We

Re: determine which form was submitted

2009-02-25 Thread Alexander Lohse
Hi Ernesto, not really, but you pointed me in right way: I have two forms in my markup, which are shown and hidden via javascript. So I need to know which form was posted to keep it visible. onSubmit was not sufficient, as I need to know which form was submitted, wether the input is valid

Is it save to call MarkupCache.removeMarkup()?

2009-02-25 Thread Markus Strickler
Hi- I have a method (run from a quartz scheduled job) that calls removeMarkup() on the application's MarkupCache for some templates, if they have changed. Now I'm wondering if it is save to do so, or if this can cause conflicts when the markup is used / requested at the same time. Has

Propper Way to Format Money

2009-02-25 Thread Daniel Ferreira Castro
I would like an opinion about what is the propper, or more recommended, way to format a TextField to show money? Should I declare it TextFieldString or TextFieldFloat? And to format it with the money symbol ( Like US$) while you type? Any ideas? -- Two rules to succeed in life: 1 - don´t tell

WYSIWYG component

2009-02-25 Thread Daniel Ferreira Castro
Guys, Maybe u know something about. Is there any *WYSIWYG* solution to use with Wicket? Ok, let me explain it better. I wanna make a way to an administrator be able to register a newsletter to send to it's clients. And I would like to be able to put an *WYSIWYG* interface on the page to be able

Re: WYSIWYG component

2009-02-25 Thread evaneustace
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-tinymce Daniel Ferreira Castro wrote: Guys, Maybe u know something about. Is there any *WYSIWYG* solution to use with Wicket? Ok, let me explain it better. I wanna make a way to an administrator be able to register a

Re: WYSIWYG component

2009-02-25 Thread Daniel Ferreira Castro
I am readig it now :) But I am not seeing a way to insert it as a dependency on my pom.xml (Maven). What is the latest version that is compatible to wicket 1.4-rc2? On Wed, Feb 25, 2009 at 8:11 PM, evaneustace evan.eust...@teachscape.comwrote:

Re: Datatable Internationalization

2009-02-25 Thread TahitianGabriel
Add this in your YourPage.properties file : NavigatorLabel=Lignes ${from} à ${to} sur ${of} In case you use the NoRecordToolBar (include in DefaultDataTable) : dataTableName.no-records-found=Aucun enregistrement trouvé It works for me. Et voilà! Loic Descotte wrote: Hi all, I have a

Re: WYSIWYG component

2009-02-25 Thread Jeremy Thomerson
groupId: org.wicketstuff artifactId: tinymce 1.4-SNAPSHOT make sure you include the wicketstuff maven repo, as described on the wicketstuff site. On Wed, Feb 25, 2009 at 5:20 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: I am readig it now :) But I am not seeing a way to insert it as

Re: Propper Way to Format Money

2009-02-25 Thread Cristiano Kliemann
I wouldn't recomend declaring it as float ou double. With floating point, sometimes 14.8 minus 13.76 is 1.041. Use BigDecimal. It is much safer. -- Cristiano On Wed, Feb 25, 2009 at 7:20 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: I would like an opinion about what is the

Re: Propper Way to Format Money

2009-02-25 Thread John Krasnay
We keep all our money amounts as ints representing the number of cents. We have a MoneyField that extends TextField and overrides getConverter(Class) to return something like this: public class MoneyConverter implements IConverter { public Object convertToObject(String value, Locale locale)

Re: WYSIWYG component

2009-02-25 Thread Daniel Ferreira Castro
I did it. But now I am recievieng an error whn accessing the page When the page execute this line SpellCheckPlugin spellCheckPlugin = new SpellCheckPlugin(); it throws a ClassNotFoundException: com.swabunga.spell.event.SpellCheckListener Does anyone knows how to solve it? I addapted the file

Re: GSoC ideas for 09

2009-02-25 Thread Andreas Petersson
- tool to migrate JSF apps to Wicket (heh heh) +1 for that. this would be the killer argument to finally start transitioning to wicket. it does not need to be a 100% converter of all jsf+backing beans - a two-way method for sharing panels/components would enable better transition to

Re: WYSIWYG component

2009-02-25 Thread Daniel Ferreira Castro
By commenting the line SpellCheckPlugin spellCheckPlugin = new SpellCheckPlugin(); it runs, but appears only a TextArea without tools...a single TextArea. Why? :) On Wed, Feb 25, 2009 at 9:31 PM, Daniel Ferreira Castro dfcas...@gmail.comwrote: I did it. But now I am recievieng an error whn

Re: WYSIWYG component

2009-02-25 Thread jcgarciam
I have this component working at work. Im using Wicket 1.4 RC1. I'll suggest you to download the example war and check it out, Basically tinyMCE have a simple default theme, then you need to add any other button you may need using the Plugin Class provided with the Component on the Wicket Side.

NPE thrown from CheckBoxMultipleChoice when submitting a form.

2009-02-25 Thread Ned Collyer
After update to rc2 - I am getting an NPE on a CheckBoxMultipleChoice when submitting a form. The NPE is thrown from the same area that the following Jira addresses. https://issues.apache.org/jira/browse/WICKET-1270 This patch does not appear in 1.4-rc2. The stack I'm getting is Caused by:

Re: NPE thrown from CheckBoxMultipleChoice when submitting a form.

2009-02-25 Thread Timo Rantalaiho
On Wed, 25 Feb 2009, Ned Collyer wrote: After update to rc2 - I am getting an NPE on a CheckBoxMultipleChoice when submitting a form. The NPE is thrown from the same area that the following Jira addresses. https://issues.apache.org/jira/browse/WICKET-1270 This patch does not appear in

SortableDataView

2009-02-25 Thread SrinivasaRaju Ch
Hi, How can i add a check box in the header column by using DefaultDataTable class , While using sortable dataview we have to pass IColumn[] columns as parameter to DefaultDataTable class . Ex: DefaultDataTableEmployeeDetails dataTable = new

Re: New Wicket Grails Plug-in Available + about the Groovy wicket builder

2009-02-25 Thread NYLister
I was just wondering if someone can tell me what is the benefit of using Wicket rather than just using grails for you view layer? Hi Wicket users! We've published a new version of the Wicket plugin for Grails that works with Wicket 1.3. See announcement here:

Quickstart for jar

2009-02-25 Thread Anton Veretennikov
Hi, Do we have jar quickstart with resources filter added by default? -- Tony. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

AuthorizationStrategy for Resources?

2009-02-25 Thread Alexander Lohse
Hi, I wonder if there is a way to implement a AuthorizationStrategy for WebResources? I want to export some data to xml and found the WebResource to be a nice convienient way to do so. But this data should not be accessible for everyone, but only for authenticated users ... Best

Wicket + iframe Session Question

2009-02-25 Thread freak182
Hello, How can I get the session from my main application to the application in the iframe? here is the scenario: 1. I have a large wicket application then we agree to separate the reporting from main application. 2. The said report application is also a wicket and jasper but embedded into

Re: Switching between markup files for borders

2009-02-25 Thread Jeremy Thomerson
Obviously I have nothing other than the name of your file to base this thought on, but I'll throw it out there anyway If the only difference between the two is color, just use localized / themed css files and use a single HTML file. This will save you a ton of code duplication over having

Re: Datatable Internationalization

2009-02-25 Thread loicd
Thanks a lot i'm going to try this! I was using MyApp.properties file, not MyPage.properties, maybe it's the reason why it didn't work. I'm already using dataTableName.no-records-found=Aucun enregistrement trouvé for the NoRecordToolBar, it works fine in MyApp.properties file. Thanks again!

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
It will be better of course, Jeremy. My borders have differences not only in css but in images in table cells. Images are taken from other folders depending on theme name. Yes, I know, rounded corners can be made with pure css. But my war with browsers is endless. I thought about some variable

Re: Switching between markup files for borders

2009-02-25 Thread Jeremy Thomerson
Bummer - knew it couldn't be as easy as it looked. :) I don't suppose it's something you could do like this, then? Border.html td class=foo main_white.css TD.foo { background-image: (/url/whiteimages/bar.jpg); } main_black.css TD.foo { background-image: (/url/blackimages/bar.jpg); } As to

Re: Switching between markup files for borders

2009-02-25 Thread Igor Vaynberg
return new roundedcornerborder(...) { string getvariation() { return black; }}; -igor On Wed, Feb 25, 2009 at 11:45 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Bummer - knew it couldn't be as easy as it looked.  :)  I don't suppose it's something you could do like this, then?

Re: Switching between markup files for borders

2009-02-25 Thread Anton Veretennikov
Igor, I did it already :) Jeremy suggests another approach - with no variations. On Thu, Feb 26, 2009 at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: return new roundedcornerborder(...) { string getvariation() { return black; }}; -igor On Wed, Feb 25, 2009 at 11:45 PM, Jeremy