ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
Hello everybody, after upgrading to the latest trunk, none of my pages render anymore. The Exception I get is below. Before upgrading, everything worked fine, so I don't think it's in my code (but you never know). I'll get back to beta4 for now I guess... 2007-10-18 09:22:40 ERROR:

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
A little more detail: the component having the MetaDataEntry is a Webmarkupcontainer which also has a WicketAjaxIndicatorAppender. Not sure if this is related. -- greetings from Berlin, Rüdiger Schulz www.2rue.de - To

RadioChoice vs. RepeatingView inside RadioGroup

2007-10-18 Thread Daniel Kröger
Hi, using a RadioChoice within my project is out of question because RadioChoice seems to render the label-tag behind the input type=radio-Tag statically, but i need to add a class-attribute to that label-tag. So one attempt could be using a RepeatingView inside the RadioGroup to dynamically

Re: RadioChoice vs. RepeatingView inside RadioGroup

2007-10-18 Thread Martijn Dashorst
Why do you *need* to add a class to the label? span wicket:id=radiogroup class=myradiogroupclass ... /span css: .myradiogroupclass label { color : red; font-size : 72px; } Martijn On 10/18/07, Daniel Kröger [EMAIL PROTECTED] wrote: Hi, using a RadioChoice within my project is out

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Matej Knopp
Hi, we are experimenting a little with component data representation right now in order to improve memory consumption, so the trunk might be a little unstable though. But so far I am unable to reproduce your exception. Sorry for inconvenience. -Matej On 10/18/07, Rüdiger Schulz [EMAIL

RE: RadioChoice vs. RepeatingView inside RadioGroup

2007-10-18 Thread Daniel Kröger
Oh, you're right Martijn. How could I not even think about that!?! ;) Thanks! Daniel -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 11:13 AM To: users@wicket.apache.org Subject: Re: RadioChoice vs. RepeatingView inside

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Johan Compagner
But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! johan On 10/18/07, Matej Knopp [EMAIL PROTECTED] wrote: Hi, we are

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
Hello Matej, 2007/10/18, Matej Knopp [EMAIL PROTECTED]: Hi, we are experimenting a little with component data representation right now in order to improve memory consumption, so the trunk might be a little unstable though. But so far I am unable to reproduce your exception. Sorry for

Wicket Presentation at the Java User Group Hamburg, Germany

2007-10-18 Thread Jan Kriesten
Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg, Germany. 25 interested Java Developers attended at the presentation and we had a detailed discussion afterwards on what Wicket can do and especially can do better than

File download and page refresh

2007-10-18 Thread Federico Fanton
Hi everyone! Is it possible to build a form button which triggers a download *and* a page refresh? Many thanks for your time! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Can't promise anything, these

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running fine with the current code So our test do have a few holes in this area which we should fix also! Ok, a simple test failed very

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Johan Compagner
thx, i fixed it. Please let me know if this first works for you johan On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: 2007/10/18, Johan Compagner [EMAIL PROTECTED]: But everybody that can give us a test case that fails now That would be great! Because all wicket tests are running

Re: (OT) Calendar UI?

2007-10-18 Thread Ivo van Dongen
Hi, We're working on a wicket based calendar atm. It's not just a UI but rather a whole calendar application. Still, perhaps it can be of use to you. Our UI is currently being redesigned and should be comparable with google calendar's in a short while. Check it out at http://www.webical.org (the

Re: Ajax question

2007-10-18 Thread Matej Knopp
Hi, what wicket version are you using and how do you re-invoke the javascript on ajax update? if you are using wicket 1.3 the best way to do invoke the javascript is using IHeaderResponse.renderOnDomReadyJavascript (works on regular page refresh and also on ajax update). -Matej On 10/18/07, Doug

how to change format in DateTimeField?

2007-10-18 Thread raybristol
there is a good example about use DateTextfield in : http://www.wicketstuff.org/wicket13/dates/?wicket:bookmarkablePage=sources%3Aorg.apache.wicket.examples.dates.DatesPage however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to

Re: how to change format in DateTimeField?

2007-10-18 Thread Alex Objelean
You mean DateTextField (instead of DateTimeField). It has also this constructor: DateTextField(String id, IModel model, String datePattern) where datePattern can be: mm/DD/. Alex raybristol wrote: there is a good example about use DateTextfield in :

Re: Portlet howto

2007-10-18 Thread Ate Douma
Charly wrote: Hello, I have the beginning of a solution ! Cool ! My code is based on Liferay's struts support with some adaptations. At this time, Guestbook portlet sample is ok, and I've made a modification in wicket to get Navomatic and other bookmarkablePage working. The main point is

Re: Wicket Presentation at the Java User Group Hamburg, Germany

2007-10-18 Thread Frank Bille
Looks good though my german is very rusty. Thanx for sharing. Frank On 10/18/07, Jan Kriesten [EMAIL PROTECTED] wrote: Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg, Germany. 25 interested Java Developers

Re: how to change format in DateTimeField?

2007-10-18 Thread raybristol
Thanks for your reply, I actually mean DateTimeField and I want to do the same thing as in DateTextField, because I need no only the date but the time as well. Many thanks Ray Alex Objelean wrote: You mean DateTextField (instead of DateTimeField). It has also this constructor:

Re: (OT) Calendar UI?

2007-10-18 Thread Cristi Manole
Great. I for one like it. On 10/18/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We're working on a wicket based calendar atm. It's not just a UI but rather a whole calendar application. Still, perhaps it can be of use to you. Our UI is currently being redesigned and should be

Re: Ajax question

2007-10-18 Thread Doug Leeper
I am using 1.3 (Trunk). I am calling AjaxRequestTarget.target.appendJavascript() right after i call AjaxRequestTarget.target.addComponent(). Is this the right approach? Do I have access to IHeaderResponse in an Ajax call? Thanks - Doug -- View this message in context:

adding (prepending) Javascript to onchange

2007-10-18 Thread Adam Koch
I have a drop down that submits the form when the selection changes (wantOnSelectionChangedNotifications returns true). I would like to add some javascript to display a please wait message before the form is submitted. How can I do that? Thanks, Adam

Input Text Mask?

2007-10-18 Thread William Hoover
Is anyone interested in using the mask script (below) to a component in a Wicket extension? The script prevents invalid input in a text field as the user types (similar to the Atlas version: http://www.fci.com.br/maskedit/MaskEdit/MaskEdit.aspx). I didn't see a component in Wicket that would

RE: Wicket Meetup: 33 attendees and counting

2007-10-18 Thread Arje Cahn
Excellent idea. I've contacted Klaasjan Tukker and he says we can send out a mailing over the NLJUG mailinglist. All I need is a nice design :) Arje - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Wicket Presentation at the Java User Group Hamburg, Germany

2007-10-18 Thread Michael Sparer
I just used your presentation to prove if I've understood the key-concepts of wicket - as it turns out I did ;-) thanks for sharing Michael Jan Kriesten wrote: Hi, just wanted to let you know that I had a quite successful presentation yesterday evening at the Java User Group Hamburg,

Re: Ajax question

2007-10-18 Thread Doug Leeper
FYI...there is a working example of this problem in the wicketstuff-yui-examples project under Context Menu 2 - Tree -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13278196 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Ajax question

2007-10-18 Thread James McLaughlin
On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I am using 1.3 (Trunk). I am calling AjaxRequestTarget.target.appendJavascript() right after i call AjaxRequestTarget.target.addComponent(). Is this the right approach? Do I have access to IHeaderResponse in an Ajax call? Have your

Re: File download and page refresh

2007-10-18 Thread Igor Vaynberg
you can redirect to a page that has a meta refresh pointing to a file... -igor On 10/18/07, Federico Fanton [EMAIL PROTECTED] wrote: Hi everyone! Is it possible to build a form button which triggers a download *and* a page refresh? Many thanks for your time!

Re: adding (prepending) Javascript to onchange

2007-10-18 Thread Igor Vaynberg
override oncomponenttag and add your javascript there? -igor On 10/18/07, Adam Koch [EMAIL PROTECTED] wrote: I have a drop down that submits the form when the selection changes (wantOnSelectionChangedNotifications returns true). I would like to add some javascript to display a please wait

Re: Input Text Mask?

2007-10-18 Thread Igor Vaynberg
would you be interested in making this a subclass of textfield and throwing it into wicketstuff-minis project which is in wicket-stuff? -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Is anyone interested in using the mask script (below) to a component in a Wicket extension? The

Re: how to change format in DateTimeField?

2007-10-18 Thread Eelco Hillenius
however, I want to add the time field as well, so I found DateTimeField which is working, however i don't know how to change the format of the date it displayed, in DateTextfield I believe I can do that with using its constructor: new DateTextField(dateTextField, new

Re: Ajax question

2007-10-18 Thread Doug Leeper
I just found this. With a AjaxRequestTarget, you can get the HeaderResponse. Unfortunately, it still doesn't work :-( -- View this message in context: http://www.nabble.com/Ajax-question-tf4644668.html#a13279426 Sent from the Wicket - User mailing list archive at Nabble.com.

Ajax update of component screws up

2007-10-18 Thread kent lai
Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button), replace B with C.

Re: Ajax update of component screws up

2007-10-18 Thread Neil B. Cohen
kent lai wrote: Hi, There was an interesting case recently, whereby Wicket seemed to be not updating my page properly with an ajax request. I have 3 classes, A, which is a page, B and C which are panels. A will add B initially, and after an ajax request (triggered by a button),

RE: Input Text Mask?

2007-10-18 Thread William Hoover
Sure. How would I go about doing so? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:11 PM To: users@wicket.apache.org Subject: Re: Input Text Mask? would you be interested in making this a subclass of textfield and throwing it into

Re: how to change format in DateTimeField?

2007-10-18 Thread Gerolf Seitz
On 10/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote: also I want to prevent user to type in invalid date in the text field as well, becuase if user type some letters in the textfield next to the date picker then the date picker won't start properly as well. I think there's an open

Re: Ajax question

2007-10-18 Thread Matej Knopp
You should make your component implement IHeaderContributor. Or your behavior, depends on how you implement your menu. Then you don't have to worry about AjaxRequestTarget. -Matej On 10/18/07, Doug Leeper [EMAIL PROTECTED] wrote: I just found this. With a AjaxRequestTarget, you can get the

RE: how to change format in DateTimeField?

2007-10-18 Thread William Hoover
Would it make more sense to add it to extensions instead? -Original Message- From: Gerolf Seitz [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:39 PM To: users@wicket.apache.org Subject: Re: how to change format in DateTimeField? On 10/18/07, Eelco Hillenius [EMAIL

Re: how to change format in DateTimeField?

2007-10-18 Thread Gerolf Seitz
Does it work well? Any issues with licenses/ dependencies? If it is a big improvement, I'd be ok with it if the rest agrees. A good mask component imho would fit wicket-extensions. Though we have to be careful not get ourselves into more maintenance obligations. yep, i totally agree with.

wicket:message does not honor xmlns

2007-10-18 Thread Otan
With the following markup, html xmlns=http://www.w3.org/1999/xhtml; xmlns:w=http://wicket.apache.org ... img w:message=alt:home_image alt=Home width=97 height=82src=images/mainmenu- home.jpg / ... /html w:message does not work as wicket:message. The following is reported in the logs: INFO -

Re: how to change format in DateTimeField?

2007-10-18 Thread Martijn Dashorst
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: There are no licenses or dependencies. This is in itself a problem :). You really should pick a license, or make it public domain. But the best way of ensuring compatibility with the rest of the world is to make it BSD or MIT licensed. Picking

RE: how to change format in DateTimeField?

2007-10-18 Thread William Hoover
I see... Not sure how the licensing works, but whatever is the suggested license is fine with me. I'm not much of a business guru and wouldn't mind leaving it up to you Wicket folks ;o) I just need to know what the next step is so that others can make use of it :o) -Original Message-

Re: how to change format in DateTimeField?

2007-10-18 Thread Alex Objelean
There is no difference, you still can use DateTextField . All you have to do is update the datePattern to support also the time, like this: dd/MM/yyy HH:mm:ss Alex raybristol wrote: Thanks for your reply, I actually mean DateTimeField and I want to do the same thing as in DateTextField,

Re: how to change format in DateTimeField?

2007-10-18 Thread Martijn Dashorst
It is your code, so we can't legally license it ;-) If you don't mind people taking your code without contributing back the following licenses are rather equivalent: - BSD (http://www.opensource.org/licenses/bsd-license.php) - MIT (http://www.opensource.org/licenses/mit-license.php) If you do

Re: Input Text Mask?

2007-10-18 Thread Igor Vaynberg
create a sf.net account and i will give you commit access to wicketstuff repo. -igor On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Sure. How would I go about doing so? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 1:11 PM

Library Samples

2007-10-18 Thread anita nichols
I tried to re-build the library sample on quick start project but I got HTTP ERROR: 503 SERVICE_UNAVAILABLE RequestURI=/librarytest/ If I remove the sign in, how to make this thing work? I copied all the files from the examples folder to my quick start project AuthenticatedWebPage.java

Implementation question of WebMarkupContainer

2007-10-18 Thread Bushby
I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a link from a menu the html is then pulled from the database and displayed. I have created a custom object extending WebMarkupContainer. I override the

Re: Implementation question of WebMarkupContainer

2007-10-18 Thread Martijn Dashorst
Use: add(new Label(contents, contentsFromDatabase).setEscapeModelStrings(false))); instead. Martijn On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I have a use case where an admin manages html for the user side of an application. The html is stored in the database. When the user selects a

Re: Implementation question of WebMarkupContainer

2007-10-18 Thread Bushby
I missed a piece of the functionality. If the user were to select another menu item, I need to replace the html. So I could create a new label with the new html, replace the label within the container, and then render the container? Thanks Bushby Martijn Dashorst wrote: Use: add(new

Re: Trunk stability

2007-10-18 Thread Eelco Hillenius
I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). You rock! Eelco - To unsubscribe, e-mail: [EMAIL

Trunk stability

2007-10-18 Thread Matej Knopp
Hi all, I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). The downside is that the changes touches component internals and there might be some issues with it, so if you spot

Re: Implementation question of WebMarkupContainer

2007-10-18 Thread Martijn Dashorst
Read up on models [1]. The user selects a menu item, so probably your page has something like this: class mypage extends webpage { private MenuItem selectedMenuItem = null; } If the menuitem class has a property called itemMarkup you can do this: add(new Label(contents, new

Re: Implementation question of WebMarkupContainer

2007-10-18 Thread Frank Bille
Use a model on the label instead. If the content changes the label will pull the latest from the model. Frank On 10/18/07, Bushby [EMAIL PROTECTED] wrote: I missed a piece of the functionality. If the user were to select another menu item, I need to replace the html. So I could create a

RE: how to change format in DateTimeField?

2007-10-18 Thread William Hoover
I went ahead and added the Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with the attached code granting the license. All the code is original and unborrowed except the trivial public domain snippet that adds an escape function to JavaScript's RegExp. Let me know if there is

RE: Input Text Mask?

2007-10-18 Thread William Hoover
I created a Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with attached source. I placed the issue under extensions as others suggested. Would I still have to go through sf.net? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18,

London Wicket User Group, Nov 6 (host required)

2007-10-18 Thread jweekend
Our next http://jweekend.co.uk/dev/LWUGReg/ London Wicket User Group event is on 6 November. If you or your company would like to host our event (and get linked to form jWeekend.co.uk), ideally in a location able to seat accommodate) 12-20 people, http://www.jweekend.co.uk/dev/ContactUsBody/

Re: Trunk stability

2007-10-18 Thread Matej Knopp
Well, that was a joint effort with Johan! -Matej On 10/18/07, Eelco Hillenius [EMAIL PROTECTED] wrote: I've commited bunch of memory optimization that significantly reduce memory usage. On the pages I've tested it the consumption was reduced by up to 40% (live objects size). You rock!

Re: Input Text Mask?

2007-10-18 Thread Eelco Hillenius
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: I created a Jira Issue (https://issues.apache.org/jira/browse/WICKET-1085) with attached source. I placed the issue under extensions as others suggested. Thanks. Would I still have to go through sf.net? It would either be put in

Re: London Wicket User Group, Nov 6 (host required)

2007-10-18 Thread Martijn Dashorst
Correction: my blog is on: http://martijndashorst.com/blog, not jroller (I abandoned that blogging system a while ago). Otherwise, thanks for buying so many copies Cemal! :) Martijn On 10/18/07, jweekend [EMAIL PROTECTED] wrote: Our next http://jweekend.co.uk/dev/LWUGReg/ London Wicket User

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Rüdiger Schulz
Hello Johan, yes, this worked for me. Thanks a lot for such a quick fix! However, I had to build with maven tests disabled. And there was an error on some of my pages, where I use BookmarkablePageLinks with parameters: Caused by: java.lang.NullPointerException at

RE: Input Text Mask?

2007-10-18 Thread William Hoover
Okay, sounds good... I assume I will be notified on which approach that will be decided by the committers at some point in the process? -Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Thursday, October 18, 2007 5:08 PM To: users@wicket.apache.org Subject: Re:

Re: ClassCastException with MetaDataEntry

2007-10-18 Thread Matej Knopp
This should be fixed already in the latest trunk. -Matej On 10/18/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Johan, yes, this worked for me. Thanks a lot for such a quick fix! However, I had to build with maven tests disabled. And there was an error on some of my pages, where I use

Re: Input Text Mask?

2007-10-18 Thread Eelco Hillenius
On 10/18/07, William Hoover [EMAIL PROTECTED] wrote: Okay, sounds good... I assume I will be notified on which approach that will be decided by the committers at some point in the process? Of course. We'll discuss in public anyway. Eelco

wicket:message error when using custom namespace (xmlns:w=http://wicket.apache.org)

2007-10-18 Thread Otan
wicket:message does not honor defined namespace (for example, xmlns:w= http://wicket.apache.org) With the following markup, html xmlns= http://www.w3.org/1999/xhtml xmlns:w= http://wicket.apache.org; ... img src=images/mainmenu-home.jpg w:message=alt:home_image alt=Home name=home width=97

is it a bug? (using beta 4)

2007-10-18 Thread Otan
I'm using wicket beta 4 release. Images source path is wrong when my wicket filter is mapped to the url /* The reason is because the src path of each images changes into something with double dot (..) Example: my wicket filter: filter description /description

Re: Ajax question

2007-10-18 Thread Doug Leeper
My Behavior extends AbstractDefaultAjaxBehavior which implements IHeaderContributor. There are no components involved except the one that is to be listened in on for client side clicks. At this point, I am not sure what I need to do to debug. Is there any JS debugging tools that I could use in

Re: Ajax update of component screws up

2007-10-18 Thread kent lai
Ok I have managed to reproduce the issue as a standalone project, and uploaded to http://s3.amazonaws.com/technoriment/WicketTest.zip , about 140kb big. As can be seen from the project, the single page contains a header content, the central container for panel, and then a footer. The

Re: Ajax update of component screws up

2007-10-18 Thread kent lai
Hi, it's the latter, where the update on a single panel caused markup outside of that panel to go missing I'll see if I can get a sample project up to verify this Kent On 19 Oct 2007, at 2:10 AM, Oli Evans wrote: Do you mean the panel content failed to render? If so then from

New public Wicket based site online: www.indyphone.de

2007-10-18 Thread Rüdiger Schulz
Hello everybody, it is done - the side project I was working on for all these months has finally reached the public beta stage www.indyphone.de What started as a simple PHP script evolved into a full Java web application. On the way, several known-before techniques were tested (JBoss, JSP, JSF,

Re: body onload contribution

2007-10-18 Thread John Patterson
Something I have noticed with renderOnLoad with my site is that it stopped being called after I added some Javascript for banner ads. Maybe their included script replaced the wicket function. I had to revert to using onLoad which makes gives the impression that the maps load more slowly.

Re: Ajax update of component screws up

2007-10-18 Thread Eelco Hillenius
Ok I have managed to reproduce the issue as a standalone project, and uploaded to http://s3.amazonaws.com/technoriment/WicketTest.zip , about 140kb big. As can be seen from the project, the single page contains a header content, the central container for panel, and then a footer. The

Re: New public Wicket based site online: www.indyphone.de

2007-10-18 Thread jweekend
Your reasons closely reflect what we hear at our London Wicket User Group events and from our more advanced Wicket students too. In particular, the more experienced and worldly-wise the developer, the more appreciated the quality of the mailing-list and especially the core-developers consistently