Re: wicketstuff-minis status?

2009-11-18 Thread Martijn Dashorst
apparently we're looking in the wrong directory: http://wicketstuff.org/maven/repository/org/wicketstuff/minis/1.4-SNAPSHOT/ Martijn On Tue, Nov 17, 2009 at 8:35 PM, Doug Leeper douglee...@yahoo.com wrote: But wouldn't i see the timestamp change on the jars, etc change with each deployment?

Can i convince WicketTester to click a label?

2009-11-18 Thread Per Newgro
Hi, i've added the html tag label and it's attribute for to provide selection change of my checkbox. form wicket:id=selected input type=checkbox wicket:id=check / label wicket:id=text/label /form final CheckBox checkbox = checkbox(); _item.add(checkbox); _item.add(new Label(text,

Re: Can i convince WicketTester to click a label?

2009-11-18 Thread Kent Tong
Newgro wrote: It's clear to me that there is no ajax event behavior added to the label. But can i test the html event? I would like to get this by WicketTester and not by external Tester (Fitnesse, Selenium etc.). Would running Selenium internally work? If so, please see

Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM,

Re: Wicket + Spring + Hibernate - Wicket-In-Action

2009-11-18 Thread Martijn Dashorst
The interceptor can be safely removed. It was necessary for the project I was working on, but you probably don't need it. JDBC connection settings are best done through a DataSource and specified at the container level instead of programmatically. Martijn On Mon, Nov 16, 2009 at 6:38 PM,

Re: wicketstuff-minis status?

2009-11-18 Thread richardwilko
Hi Doug, I originally wrote the prototip component, and the main reason why I never upgraded the prototip js version is because the library changed to having a commercial licence and I don't know exactly what the rules are about including commercial code into wicket-stuff. While I have no

javascript slider implementation

2009-11-18 Thread pieter claassen
I would like to implement a slider to set the width of a component. I could not get the Dojo Slider implementation working with wicket 1.4.1 (I could not get the code in with maven even though the Dojo project built from SVN, it just doesn't seem to contain the Slider class anymore). My thinking

RE: javascript slider implementation

2009-11-18 Thread Stefan Lindner
// Put Javascript into body after compoonent @Override protected void onComponentRendered() { super.onComponentRendered(); JavascriptUtils.writeJavascript(response, our javascript); } or // put Javascript into head

Re: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
IF upgrading, it should be moved out of minies, so IT's really really clear. Otherwise people will get disappointed. 2009/11/18 richardwilko richardjohnwilkin...@gmail.com Hi Doug, I originally wrote the prototip component, and the main reason why I never upgraded the prototip js version is

Re: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
Why do you want to upgrade? I created the mootip integration, because I needed the ajax integration. 2009/11/17 Doug Leeper douglee...@yahoo.com We are about to integrate wicketstuff-minis in our project. However, we noticed on Nabble that prototip is out of date based on some comments by the

Re: javascript slider implementation

2009-11-18 Thread Martin Grigorov
check wicketstuff-jquery there is a slider behavior + demo On Wed, 2009-11-18 at 13:04 +0100, pieter claassen wrote: I would like to implement a slider to set the width of a component. I could not get the Dojo Slider implementation working with wicket 1.4.1 (I could not get the code in with

the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
I create a class Loginpage which extends WebPage,how the IDE show me many errors when I use wicket 1.4 : public LoginPage() { User user = new User(); Form logForm = new Form(form, new CompoundPropertyModel(user)) { protected void onSubmit() { } }; logForm.setMultiPart(true);

Re: multi file upload question

2009-11-18 Thread Marcelo Fukushima
couldnt it be done with some clever javascript? creating a new input type=file each time one is selected? On Mon, Nov 16, 2009 at 3:51 PM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: The multiple files upload is achieved by a flash object. It works both in firefox as chrome (but,

Re: multi file upload question

2009-11-18 Thread Marcelo Fukushima
nevermind me... should have seen the example before posting... ill shut up now... On Wed, Nov 18, 2009 at 11:33 AM, Marcelo Fukushima takesh...@gmail.com wrote: couldnt it be done with some clever javascript? creating a new input type=file each time one is selected? On Mon, Nov 16, 2009 at

Re: multi file upload question

2009-11-18 Thread Ilja Pavkovic
Hi, couldnt it be done with some clever javascript? creating a new input type=file each time one is selected? well, there is a reason why google did NOT use javascript to implement it. In fact, the upload browser widget does not support multi file selection. Some http extensions exist but

Re: javascript slider implementation

2009-11-18 Thread pieter claassen
Thanks, this helped a lot. My component that I want to resize is a WebMarkupContainer and I add my Slider to it. However, I don't see any output from my onChange method. here is the java and html. I am not sure what role SliderOptions and SliderHandleOptions play? Where can I see some example

Re: wicketstuff-minis status?

2009-11-18 Thread Doug Leeper
Richard, Thanks for the update. This was one of the items to be looked at. But since prototip has moved to commercial, then I won't update the JS. - Doug -- View this message in context: http://old.nabble.com/wicketstuff-minis-status--tp26394666p26408385.html Sent from the Wicket - User

Re: wicketstuff-minis status?

2009-11-18 Thread Doug Leeper
I was going to see about upgrading Prototip but the current version has moved to commercial license. Since that is the case, I won't be updating wicket-minis and will be looking at mootip. Thanks - Doug -- View this message in context:

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread Igor Vaynberg
you need to tweak your ide to enable java5 functionality i think. -igor On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com wrote: I create a class Loginpage which extends WebPage,how the IDE show me many errors when I use wicket 1.4 : public LoginPage() { User user = new

Open new window through a form

2009-11-18 Thread Zak Johnson
All - I am trying to find a way to open a new window after submitting a form. I've seen the threads about using a Link with PopupSettings, but I can't use a link in this case, I need this popup to happen within the onSubmit method. I also can't use ModalWindow because I need the ability to

Re: Open new window through a form

2009-11-18 Thread Martin Makundi
I have a somewhat similar need, I need to display the feedback panel before opening popup. In my undesranding you could do some kind of ajax deocrator that will open the opup after successful form submit. HEre is some discussion: http://osdir.com/ml/users-wicket.apache.org/2009-07/msg00472.html

RE: Spring/Wicket/Hibernate testing driving me banana nuts

2009-11-18 Thread Loritsch, Berin C.
OK. I've got it working again. The HibernateSession was set up in a hibernate Servlet filter. I found the minimum necessary lines to get the system working using my session factory configured in Spring. For the interested parties, here they are:

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread Pieter Degraeuwe
Don't want to be rude; did you import the correct types (Component / Form) ?... some IDE's have the 'exclude import' funtionallity, which is great (don't want to mention its name, but it starts wich Intelli, and ends with J :-) -- I'm loving it :-) Pieter On Wed, Nov 18, 2009 at 4:07 PM, Igor

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/18 Jeremy Thomerson jer...@wickettraining.com Well, you can't make a subclass a different parameterized type than it's parent. It won't work. You should be using an Integer model for this and using a converter rather than a nested model to make it a string. That's what converters

Re: wicketstuff-minis status?

2009-11-18 Thread nino martinez wael
Great, so you are aware that theres a mootip in minis aswell.. If you have questions just ask -Nino(author of mootip integration) 2009/11/18 Doug Leeper douglee...@yahoo.com I was going to see about upgrading Prototip but the current version has moved to commercial license. Since that is

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread Jeremy Thomerson
http://cwiki.apache.org/WICKET/using-custom-converters.html -- Jeremy Thomerson http://www.wickettraining.com On Wed, Nov 18, 2009 at 10:09 AM, smallufo small...@gmail.com wrote: 2009/11/18 Jeremy Thomerson jer...@wickettraining.com Well, you can't make a subclass a different

RE: best approach for a criteria and result page

2009-11-18 Thread Bernard LUPIN
Thank you very much Igor for your answer. You're right, this is working even without any code in the onSubmit() method (in fact I just added one line to manage the visibility of my result WebMarkupContainer). Bernard -Message d'origine- De : Igor Vaynberg

method assertWarningMessages

2009-11-18 Thread Bernard LUPIN
Hi all, Components have 3 methods to put information in a feedback panel : info(), warn() and error(). But in the WicketTester class, there are only 2 asserts available : assertInfoMessages() and assertErrorMessages(). How can I verify my warning messages ? I can't find an assertWarnMessages.

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread smallufo
2009/11/19 Jeremy Thomerson jer...@wickettraining.com http://cwiki.apache.org/WICKET/using-custom-converters.html Thanks a lot , this solves my problem... But , there is a more complicated situation : Old code : (works in 1.3) ListView poem = new ListView(poem , new PropertyModel(model ,

Re: [1.4] override getObject() return type not the same with original model ?

2009-11-18 Thread Jeremy Thomerson
ListView needs a model that has ListV, so do this: ListViewString poems = new ListViewString(poems, new AbstractReadOnlyModelListString() { public ListString getObject() { // here you put the code that takes the string and tokenizes it } }) { @Override protected void

redirect parameter encoding issue

2009-11-18 Thread Scott Swank
I believe that I see a but in Wicket 1.3.5. Perhaps it has been fixed in a subsequent version. Under certain circumstances an http parameter that contains a slash / ascii 47 results in the following exception: *** URL fragment has unmatched key/value pairs, responding with 404. *** The

How to compile a component for both Wicket 1.3 and 1.4?

2009-11-18 Thread Matt Brictson
Hello, I am writing a Wicket component that I would like to use in two different Wicket applications. One application is using Wicket 1.4.3, and the other is a legacy application using Wicket 1.3.6. Unfortunately upgrading this legacy app to 1.4 is not an option. I'm using maven for my build

Palette and LazyLoadingException. How to solve?

2009-11-18 Thread Fernando Wermus
Hi all, I would ask how to solve a problem regarding palette component. Palette accepts two models: one that is for showing possibles elements to select and another one that collects users choices. For the first case, I dont have any problem. I just use a LDM to bring back a collection from

Re: Palette and LazyLoadingException. How to solve?

2009-11-18 Thread Igor Vaynberg
maybe you have a model that internally converts between a listentity and listid, storing only the listid -igor On Wed, Nov 18, 2009 at 11:00 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all,     I would ask how to solve a problem regarding palette component. Palette accepts two

Re: London Wicket Event at Foyles Bookshop, November 21st, 2009

2009-11-18 Thread jWeekend
I have asked Foyles to stock up on Wicket In Action - Manning are sending 10 extra copies which should be on the shelves by Saturday morning. Thanks for kindly offering to do some signing again, Martijn; my signed copy from your last visit to the London Wicket Event is looking rather worn these

AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread pieter claassen
Hi Guys, Here is a blog entry on how I update listviews in listviews with Ajax. http://skeptical-inquirer.blogspot.com/2009/11/updating-listview-in-listview-with-ajax.html I would appreciate any comments to help me improve this pattern. Cheers, Pieter

Re: AjaxFallBackLink updating a listview in a listview (blog entry)

2009-11-18 Thread Sven Meier
I'm afraid forcing the reader to enter credentials isn't going to increase your comment count. Nevertheless here are some suggestions: A) Use PropertyListView and you won't have to twiddle with the item's model. B) IMHO passing the container into EditableQuestionPanel isn't a good idea - why

Wicket 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread VGJ
I'm completely at wits end here and I hope someone can point out what's wrong. I've got an e-commerce application that is simply moving between two pages using setRedirectPage() when going from a product detail page to the shopping cart page. There isn't anything remarkable about either of these

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
2009/11/18 Igor Vaynberg igor.vaynb...@gmail.com you need to tweak your ide to enable java5 functionality i think. In fact The jre library I add is jdk1.6 -igor On Wed, Nov 18, 2009 at 5:26 AM, maven apache apachemav...@gmail.com wrote: I create a class Loginpage which extends

Re: the version of wicket1.4 and 1.3

2009-11-18 Thread maven apache
2009/11/18 Pieter Degraeuwe pieter.degrae...@systemworks.be Don't want to be rude; did you import the correct types (Component / Form) I think so , since I can new a Form object, but can not use the add method. ?... some IDE's have the 'exclude import' funtionallity, which is great (don't

Re: How to compile a component for both Wicket 1.3 and 1.4?

2009-11-18 Thread mbrictson
If anyone is interested, here's how I solved the problem of building a Wicket 1.3-compatible JAR and 1.4-compatible JAR from the same codebase. First I tweaked my Wicket code so that it could compile under 1.3 and 1.4. Basically, I started with 1.4 code, then removed generics, and avoided using

General questions regarding Wicket roadmap and plans

2009-11-18 Thread Lester Chua
Hi, I've finished converting major portions of an existing in-house application from EXTJS/JSON Servlets to Wicket as part of an evaluation of Wicket. Right now I'm VERY impressed with the framework and would like to introduce it to the organization I'm working for. There are a couple of

Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
Hi, I'm using log4j as my logging tool. But when I add log4j loggers into my components, I get serialization issues. Wicket gives serialization errors because of the logger. E.g. class SomeForm extends Form { Logger logger = LogManager.getLogger(SomeForm.class); public void

Re: Question regarding Logging in Wicket

2009-11-18 Thread James Carman
Commons Logging? On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm using log4j as my logging tool. But when I add log4j loggers into my components, I get serialization issues. Wicket gives serialization errors because of the logger. E.g. class SomeForm

Re: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
declare your logger static -igor On Wed, Nov 18, 2009 at 8:11 PM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm using log4j as my logging tool. But when I add log4j loggers into my components, I get serialization issues. Wicket gives serialization errors because of the logger. E.g.

Re: General questions regarding Wicket roadmap and plans

2009-11-18 Thread Martin Makundi
1) Product Roadmap (Release plans, upcoming features etc) This is important to us because it will at least indicate the intentions of Wicket Team. As any technology that is adopted enterprise-wide needs to be long-lived and well supported in addition to it's features and technology, some

Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
Thanks, I was wondering about that since it seems to get away from Serialization. But I do not understand Wicket internals when it comes to clustering. Will this approach impact the clustering facility supported by Wicket out of box? Lester Igor Vaynberg wrote: declare your logger static

Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
I think I'll use this then. I was reluctant to because of the need to introduce yet another library (some examples used this). Thanks! Lester James Carman wrote: Commons Logging? On Wed, Nov 18, 2009 at 11:11 PM, Lester Chua cicowic...@gmail.com wrote: Hi, I'm using log4j as my logging

Re: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
no -igor On Wed, Nov 18, 2009 at 9:05 PM, Lester Chua cicowic...@gmail.com wrote: Thanks, I was wondering about that since it seems to get away from Serialization. But I do not understand Wicket internals when it comes to clustering. Will this approach impact the clustering facility

Re: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
i wouldnt, commons logging, aka clogging, has been a bane of web applications for a long time... wicket uses slf4j, why dont you do the same? still declaring your loggers static. -igor On Wed, Nov 18, 2009 at 9:07 PM, Lester Chua cicowic...@gmail.com wrote: I think I'll use this then. I was

Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
H, very interesting, didnt realise that commons-logging was problematic, just that I avoided it before because I didnt want to introduce yet another library dependency for logging; which is so low level that I don't think the logging stack ever change in a project lifetime. About slf4j,

Re: General questions regarding Wicket roadmap and plans

2009-11-18 Thread Lester Chua
Thanks for the reply. 1) Product Roadmap (Release plans, upcoming features etc) This is important to us because it will at least indicate the intentions of Wicket Team. As any technology that is adopted enterprise-wide needs to be long-lived and well supported in addition to it's features and

Re: Question regarding Logging in Wicket

2009-11-18 Thread Igor Vaynberg
their website is a good source of information, afair the basic difference that unlike clogging slf4j uses compile-time binding instead of run-time binding of api to impl thus avoiding classloader hell. -igor On Wed, Nov 18, 2009 at 9:21 PM, Lester Chua cicowic...@gmail.com wrote: H, very

Re: Question regarding Logging in Wicket

2009-11-18 Thread James Carman
By the way (not to start a flame war or anything), but clogging has been working just fine for us. We use it along with SLF4J using the adapter, We've had no problems at all. Don't get me wrong, I am aware of the issues with Commons Logging and I've argued for us to change the way it works to

Re: Question regarding Logging in Wicket

2009-11-18 Thread Lester Chua
Many thanks to both you and James. I will use slf4j (with log4j underlying) and static the logger. Regards, Lester Igor Vaynberg wrote: their website is a good source of information, afair the basic difference that unlike clogging slf4j uses compile-time binding instead of run-time binding of

Re: Wicket 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread Pieter Degraeuwe
Your cart has a reference to the sessionBean ShopingCart. This is not allowed, however. The IOC incjectionsupport makes this possible by wrapping this EJB reference with a serializable proxy. I only have expecience with wicket-spring end it works great. (In your case, define your ejb reference in

Re: Wicket 1.4 + GF v2.1 causing WicketNotSerializableException

2009-11-18 Thread Igor Vaynberg
wicket stuff contains a wicket-jee module which supports injecting ejb beans into wicket components the same way that wicket-spring injects wicket beans. -igor On Wed, Nov 18, 2009 at 10:37 PM, Pieter Degraeuwe pieter.degrae...@systemworks.be wrote: Your cart has a reference to the sessionBean

Re: javascript slider implementation

2009-11-18 Thread pieter claassen
Hi Martin, I tried to implement your Slider suggestion but even if I duplicate the code in the examples, I get no feedback to the onChange method. My ajax debug console also shows nothing so I get the feeling I am missing some javascript code here. I have the jquery-1.4-SNAPSHOT.jar