Re: Question about StringResourceLoader

2008-04-23 Thread Ned Collyer
Was there any thoughts on this guys? Ned Collyer wrote: If I have something like my.example.City.java my.example.City.properties And its a non wicket class, possibly coming from another library managing its own internationalisation. How can I use this in my panels, and have the

Re: PageableListView need to be generified?

2008-04-23 Thread Frank Bille
Done. On Wed, Apr 23, 2008 at 6:57 AM, Matthew Young [EMAIL PROTECTED] wrote: I'm getting warning on: new PageableListView() { @Override protected void populateItem(ListItem item) { ListItem is generic. References to generic type ListItemT should be parameterized.

Re: How to close a popup window after a form submition and update an arbitrary component on a parent page via ajax?

2008-04-23 Thread Maurice Marrink
use a windowclosedcallback to update the parent page. Maurice On Wed, Apr 23, 2008 at 1:06 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, A page containing a form is opened in a popup window (a true browser window) and being submitted if the form has been processed

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread lars vonk
@1: There is also the session timeout of your appserver (I think the default for most app servers is 30 minutes) In my experience it is not very user friendly if pages take that long to render... A better approach is I think to use some Ajax stuff as you describe in your second question. @2:

Re: How to close a popup window after a form submition and update an arbitrary component on a parent page via ajax?

2008-04-23 Thread Vitaly Tsaplin
As I said its a true browser window. I open it using a regular link and supplying the popup settings. So where can I find windowclosedcallback? On Wed, Apr 23, 2008 at 9:04 AM, Maurice Marrink [EMAIL PROTECTED] wrote: use a windowclosedcallback to update the parent page. Maurice On

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread Rens Verhage
There's also the AjaxLazyLoadPanel in wicket-extensions. Rens On Wed, Apr 23, 2008 at 9:19 AM, lars vonk [EMAIL PROTECTED] wrote: @1: There is also the session timeout of your appserver (I think the default for most app servers is 30 minutes) In my experience it is not very user

Re: Question about StringResourceLoader

2008-04-23 Thread Erik van Oosten
That is easy. Use getLocalizer.getString(key, City.class, new Model(obj)). You can not do this in the constructor of your component though. There are 2 workaround: 1) create a model (for example by subclassing AbstractReadOnlyModel), 2) override the method onBeforeRender in your component.

Re: 1.3, resource locator and properties

2008-04-23 Thread Erik van Oosten
Scott, I am no core developer, but I think that creating a issue (preferably with a patch) would be the fastest way to success. Regards, Erik. Scott Swank wrote: Bump. Do any devs have an opinion on this? Should I create a jira instead of asking this on the list? Here is a quick

Re: Wicket in Action (Amazon MEAP)

2008-04-23 Thread jWeekend
Alex, http://manning.com/dashorst/ Wicket In Action is a great resource for anyone interested in Wicket; it nicely fills a previously noticeable gap and compliments the http://cwiki.apache.org/WICKET/ wiki and other available http://wicket.apache.org/ Wicket learning/reference resources .

Re: Problems with FileUploadField

2008-04-23 Thread Fabien D.
Thank you, do you have exemple for manipuling this? Because I have a panel with a form, and I want to display a image when the file is changed in the FileUploadFiled Thank you in advance Cristi Manole wrote: The FileUploadField doesn't work with Ajax like that. You have to add an

Re: How to close a popup window after a form submition and update an arbitrary component on a parent page via ajax?

2008-04-23 Thread Maurice Marrink
Sorry, that is modalwindow specific. but you could try to replicate the trick they are doing. Now this is of the top of my head since i am not exactly sure how it is done. but i think it is somewhere along these lines :) the submit should simply return to the popup executing some javascript to

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread Maurice Marrink
You could execute calls in a background thread, yes i know java ee warns about this, but i think it actually is a better solution then having your user wait. That way the user can continue to work and periodically check a special page which shows the progress of the task with some fancy ajax

Strange redirect page before actual page loads

2008-04-23 Thread Richard Wilkinson
Hi, I have a page mounted like this: mount(new IndexedParamUrlCodingStrategy(/mapl, someclass.class, null)); the first time I go to this page (localhost:8080/map) I see another page which says 'If you see this, it means that both javascript and meta-refresh are not supported by your browser

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread Johan Compagner
all request must be fast as possible long standing request are bad. Also you block all other things for that user So it also cant stop go back or what ever. Because the pagemap is locked and no other request ajax or normal will go through in all that time. As said by other use a back ground

Re: Auth roles in 1.3.3 broken?

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
After upgrading to Wicket 1.3.3 from 1.3(wicket,wicket-extensions,wicket-auth-roles) I now get this error in my application: What could be wrong? HTTP ERROR: 500 Unable to instantiate web session class se.waylabs.locus.security.LocusSession RequestURI=/app/ Caused by:

Re: [WUG] Copenhagen today @ 16 hours reminder!

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
You can still sign up, so please do so:) And if you get in trouble about directions etc, either use kraks.dk or callme, the number are below. Adress are Jakob danefærdsvej 6b frederiksberg CPH -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936

Re: integrating extjs with wicket

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
We could use this as a use case for WUG today? And kickstart the contrib? Flemming Boller wrote: Hi Could you explain a little more about how you do? Do you just use the look and feel when using form compoents, or have are you also using the FormPanel? I have tried to convert FormPanel

Re: integrating extjs with wicket

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
You could also look at the wicket input events contrib. It's very small and uses text templates. I'd be happy to help out writing the contrib at a mentor level(answering questions on how to implement the different things), since my stack are full.

intro and explanation about DataTable and DetachableModel

2008-04-23 Thread Eyal Golan
Hi, Can anyone give me an explanation about paging with DetachableModel? My problem: We have records in the DB that can be a-lot. We also filter them sometimes. someone in the company created a non-standard paging. He doesn't use the Wicket's paging. The iterator method of the DataProvider he

Re: Anyway to fix this generic warning?

2008-04-23 Thread Johan Compagner
Form? On Wed, Apr 23, 2008 at 6:52 AM, Matthew Young [EMAIL PROTECTED] wrote: (Other than using @SupressWarnings) AjaxFallbackButtonPage1 submitButton = new AjaxFallbackButtonPage1(submitButton, form) { @Override protected void onSubmit(AjaxRequestTarget target, Form f)

Just a small warning: Ext-JS changed license to GPL

2008-04-23 Thread Erik van Oosten
Hello, As you may have heard already: Ext-JS, as of yesterday (version 2.1), no longer has the LGPL license, but GPL, making it unusable for commercial products. Just a small warning for those that are using it. Awaiting the first fork, Erik.

Re: Just a small warning: Ext-JS changed license to GPL

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
I think i'll take my offer back on the wicket ext JS contrib then.. Unless extJS wants to pay me:) Erik van Oosten wrote: Hello, As you may have heard already: Ext-JS, as of yesterday (version 2.1), no longer has the LGPL license, but GPL, making it unusable for commercial products. Just

Re: Auth roles in 1.3.3 broken?

2008-04-23 Thread Maurice Marrink
Make sure your custom session extends this constructor: public AuthenticatedWebSession(Request request). I could have sworn there was another mail about this a while back but i cannot seem to find it. In 1.3.3 the single arg constructor is used not the 2 arg. Maurice On Wed, Apr 23, 2008 at

Re: Auth roles in 1.3.3 broken?

2008-04-23 Thread Nino Saturnino Martinez Vazquez Wael
Yup found out(thanks gerolf), I was using the deprecated constructor. Maurice Marrink wrote: Make sure your custom session extends this constructor: public AuthenticatedWebSession(Request request). I could have sworn there was another mail about this a while back but i cannot seem to find it.

Problem with how to make variation

2008-04-23 Thread Mathias P.W Nilsson
Hi! I have a model that should be shared with 4 websites. site1.se, site1.com, site2.se, site2.com So the only diffrents between site1.se and site2.com is the language. The diffrents between site2 and site1 is layout. How can this be done? I want to set the langauge in startup. the site1.se

Show feedbackpanel on modalwindow

2008-04-23 Thread tsuresh
Hello, What should I do to show the feedback messages on modalwindow instead of page?.( e.g show Login failed message on modal window when user tries to login). I tried but could not succeed. thanks tsuresh -- View this message in context:

ajax get stopped because of precondition check

2008-04-23 Thread Luca Marrocco
Hi, i have a trouble using a AjaxFallbackLink. Rendering work fine but when i click on element inside a cell (see AjaxFallbackLink(toggle)) i read INFO: Ajax GET stopped because of precondition check, url:?wicket:interface=:1:rows:0:cells:0:toggle::IBehaviorListener:0: in ajax debug dialog. Two

Re: JmxPanel

2008-04-23 Thread Paolo Di Tommaso
I tried this trick but the JmxPanel still does not work .. Have someone used successfully the JmxPanel ?! Thank you // Paolo On Thu, Apr 17, 2008 at 2:20 PM, gumnaam23 [EMAIL PROTECTED] wrote: Download the jmx panel source code and add an empty DIV element before the the JmxPanel.html

autocomplete: no popup when field is empty

2008-04-23 Thread Gabriel Erzse
Hi, I am using the autocomplete feature of Wicket, and I would like the user to see the entire list of available values when the input field is empty. Then, as he starts typing values in the input field, the list of values will narrow down. However I see that when the input field is empty, the

Re: ajax get stopped because of precondition check

2008-04-23 Thread Johan Compagner
i see that you use a cell. so it is a table view very likely is it that the component (toggle) isnt there on the page anymore and when that happens we dont execute its eveent. johan On Wed, Apr 23, 2008 at 2:37 PM, Luca Marrocco [EMAIL PROTECTED] wrote: Hi, i have a trouble using a

Re: JmxPanel

2008-04-23 Thread Gerolf Seitz
Paolo, I'm not sure where the display:none comes from, but i'm pretty sure it's not from the JmxPanel. do you have jmx enabled at all? Gerolf On Thu, Apr 17, 2008 at 9:07 AM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Guys, someone has soem experience with the nice JmxPanel describe here?

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Johan Compagner
I guess this is being done because when nothing is typed there is normally no list? Gerolf do you see any problem making this configurable so that it does show always a list if there are values? johan On Wed, Apr 23, 2008 at 2:53 PM, Gabriel Erzse [EMAIL PROTECTED] wrote: Hi, I am using

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Gerolf Seitz
nah, i think this should be pretty straight forward. let me take a look. Gabriel, can you file a jira issue for that? thanks. Gerolf On Wed, Apr 23, 2008 at 4:14 PM, Johan Compagner [EMAIL PROTECTED] wrote: I guess this is being done because when nothing is typed there is normally no list?

Re: Problems with FileUploadField

2008-04-23 Thread Rüdiger Schulz
Hello Michael, Could you share this fileupload.js? I'd bet it creates some iframe tag via DOM manipulation ;-) greetings, Rüdiger 2008/4/23 Michael Mehrle [EMAIL PROTECTED]: Yeah, that's how it works. There's a fileupload.js that leverages jQuery. When the user presses the upload button it

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Gabriel Erzse
Done: https://issues.apache.org/jira/browse/WICKET-1562 Thanks, Gabi. - Original Message From: Gerolf Seitz [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Wednesday, April 23, 2008 5:26:13 PM Subject: Re: autocomplete: no popup when field is empty nah, i think this should be

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Gerolf Seitz
k, it's basically done. if the list is longer than the browser's height, scrolling with both the keyboard and the mouse either feels kinda awkward (because the entire page gets scrolled with .scrollIntoView) or even impossible. what we could do now is the following: put the list in another div

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Johan Compagner
showListOnEmptyInput looks descriptive enough for me :) On Wed, Apr 23, 2008 at 4:49 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: k, it's basically done. if the list is longer than the browser's height, scrolling with both the keyboard and the mouse either feels kinda awkward (because the

Adding AjaxFormSubmitBehavior to IndicatingAjaxButton problems

2008-04-23 Thread liny
Hi,sir: I am newbie. I have a file upload web page and want to use AJAX to submit form. So I use IndicatingAjaxButton and add an AjaxFormSubmitBehavior to this button. Here is code snippet: ajaxFormSubmitBehavior = new AjaxFormSubmitBehavior(uploadForm, onclick) { protected void

Re: ajax get stopped because of precondition check

2008-04-23 Thread Luca Marrocco
2008/4/23 Johan Compagner [EMAIL PROTECTED]: i see that you use a cell. so it is a table view interesting. i have tried to solve same problem using DataGridView and i have the same problem. very likely is it that the component (toggle) isnt there on the page anymore and when that happens we

Re: JmxPanel

2008-04-23 Thread Paolo Di Tommaso
Absolutely, JMX feature is enabled. I'm adding a JmxPanel in my page using a simple: add(new JmxPanel(jmx)); but nothing is displayed .. You have it working? Have you used any trick? // Paolo On Wed, Apr 23, 2008 at 3:46 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: Paolo, I'm not sure

Re: JmxPanel

2008-04-23 Thread Gerolf Seitz
nope, did the same thing you did. do you have any custom css that might cause this? Gerolf On Wed, Apr 23, 2008 at 7:02 PM, Paolo Di Tommaso [EMAIL PROTECTED] wrote: Absolutely, JMX feature is enabled. I'm adding a JmxPanel in my page using a simple: add(new JmxPanel(jmx)); but

Re: ajax get stopped because of precondition check

2008-04-23 Thread Igor Vaynberg
you need to setup an item reuse strategy on the dataview/grid/watever so it retains the items across requests -igor On Wed, Apr 23, 2008 at 9:52 AM, Luca Marrocco [EMAIL PROTECTED] wrote: 2008/4/23 Johan Compagner [EMAIL PROTECTED]: i see that you use a cell. so it is a table view

Re: intro and explanation about DataTable and DetachableModel

2008-04-23 Thread Igor Vaynberg
see wicketstuff.org/wicket13/repeater especially the dataview examples. they utilize wicket's IDataProvider interface which is designed for paging/sorting of database data. -igor On Wed, Apr 23, 2008 at 2:43 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hi, Can anyone give me an explanation about

Re: Problem with how to make variation

2008-04-23 Thread Igor Vaynberg
On Wed, Apr 23, 2008 at 3:58 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: So the only diffrents between site1.se and site2.com is the language. when creating session object you can set the locale. so when you create the session check the domain and call setlocale with the appropriate

Re: Strange redirect page before actual page loads

2008-04-23 Thread Igor Vaynberg
you enabled the collect extended browser info feature. that is the page that does it. it should usually be fast, but depends on your cpu/connection. -igor On Wed, Apr 23, 2008 at 1:40 AM, Richard Wilkinson [EMAIL PROTECTED] wrote: Hi, I have a page mounted like this: mount(new

Re: interesting scriptaculous usage conundrum

2008-04-23 Thread Doug Donohoe
Any ideas from the wicket developers? In the end, this is a question about how the architecture work. -Doug Doug Donohoe wrote: The issue isn't with Ajax - that part is working. The issue is when the form is submitted (normally, not via ajax) and redisplayed (e.g., if an error occurs

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Gerolf Seitz
i _could_ use something from a combobox i did some time ago: http://people.apache.org/~gseitz/combo/http://people.apache.org/%7Egseitz/combo/ but that script is 13kb (unstripped) compared to wicket-autocomplete 3k (stripped) and it's based on YUI... On Wed, Apr 23, 2008 at 4:49 PM, Gerolf Seitz

Re: Anyway to fix this generic warning?

2008-04-23 Thread Matthew Young
Form? I tried that already and it's no good. Compile Error: Name clash: The method onSubmit(AjaxRequetTarget, Form?) of type new AjaxFallbackButtonPage1(){} has the same erasure as onSubmit(AjaxRequestTarget, Form) of type AjaxFallbackButtonT but does not override it. On Wed, Apr 23, 2008 at

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Johan Compagner
i really dont care about a 3kb or 13kb script .. Those are cached anyway so thats fine by me its not that it its 100kb+ or something like that johan On Wed, Apr 23, 2008 at 8:34 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: i _could_ use something from a combobox i did some time ago:

Re: Anyway to fix this generic warning?

2008-04-23 Thread Johan Compagner
ahh then we have to first also do that.. On Wed, Apr 23, 2008 at 8:51 PM, Matthew Young [EMAIL PROTECTED] wrote: Form? I tried that already and it's no good. Compile Error: Name clash: The method onSubmit(AjaxRequetTarget, Form?) of type new AjaxFallbackButtonPage1(){} has the same

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Igor Vaynberg
heh, that is 10kb more of javascript to maintain -igor On Wed, Apr 23, 2008 at 12:40 PM, Johan Compagner [EMAIL PROTECTED] wrote: i really dont care about a 3kb or 13kb script .. Those are cached anyway so thats fine by me its not that it its 100kb+ or something like that johan

Re: JmxPanel

2008-04-23 Thread Paolo Di Tommaso
No. Just a plain html page without any custom css. What version of Wicket/Wicket-stuff-jmx-panel are you using ? Thanks, // Paolo On Wed, Apr 23, 2008 at 7:20 PM, Gerolf Seitz [EMAIL PROTECTED] wrote: nope, did the same thing you did. do you have any custom css that might cause this?

Re: autocomplete: no popup when field is empty

2008-04-23 Thread Johan Compagner
not by us ;) Gerolf is ofcourse using a standard fully tested lib right ;) On Wed, Apr 23, 2008 at 10:58 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: heh, that is 10kb more of javascript to maintain -igor On Wed, Apr 23, 2008 at 12:40 PM, Johan Compagner [EMAIL PROTECTED] wrote: i

DatePicker - CSS errors

2008-04-23 Thread Stefan Simik
Hi boys, Firefox reports some CSS error (in Error console) when using YUI date picker. The problematic file is: - http://server/resources/org.apache.wicket.extensions.yui.YuiLib/calendar/assets/skins/sam/calendar.css Version of the CSS file

How to include part of javascript in the head tag

2008-04-23 Thread PJ Pillai
Hello, I am new to Wicket. I am trying to build a dynamic navigational menus. I am building the menuitems from the database in my java code and want to include it at runtime in the page. Please see the my html below. I tried label, include component but it doesn't work. Please note the span

Integer only NumberValidator?

2008-04-23 Thread Michael Mehrle
Javadoc keeps talking about a factory method to create an Integer based NumberValidator, but I don't see it. How do I create a NumberValidator that only permits Integer values? Thanks, Michael

Wicket tester calling load twice in loadableDetachableModel

2008-04-23 Thread Ned Collyer
Hi I have the following, and its resulting in 2x calls to the load on my model - which confuses me. My panel has the following in its constructor. setModel(new CompoundPropertyModel(new LoadableDetachableModel() { protected Object load() { return

Can't see progress in progressBar

2008-04-23 Thread liny
Hi~ I run the upload - Single file upload. in wicket-examples-1.3.3 and found that I could not see a progress running. I mean I want to see, for example, percentage or how many bytes uploaded or a bar running from left to right. Hope you know what I am saying. So anyone can tell me why I can't

Strange issue with JavascriptReference

2008-04-23 Thread RedFury
Hi, Any help with the following problem would be greatly apprciated as we're about to go into full production with our wicket app and this showstopper bug is holding us back.. thanks I'm having an issue on our production server running a wicket application, with a JavascriptReference. We are

Re: Request for hints: Long duration requests; ajax 'status' line

2008-04-23 Thread PhilipJohnson
Thanks everyone for all the great tips! The last hint on using a background thread led me to the following post by Julian Sinai, who seemed to realize exactly what code example I would want to look at, four days before I knew it myself!

Re: Can't see progress in progressBar

2008-04-23 Thread Igor Vaynberg
did you try uploading a reasonably big file ( a few MB ) so the upload takes more then a few seconds? -igor On Wed, Apr 23, 2008 at 7:37 PM, liny [EMAIL PROTECTED] wrote: Hi~ I run the upload - Single file upload. in wicket-examples-1.3.3 and found that I could not see a progress

Re: DatePicker - CSS errors

2008-04-23 Thread Ned Collyer
Its more likely the fault of the YUI component than CSS. The YUI stuff uses a fair amount of hacks to get their things working cross browser - so.. its one of those things where validation of those rules doesn't matter. CSS 2 will never be elegant - it has to be handled in a sub par fashion.