Re: How to resolve tree issue?

2009-02-05 Thread Ernesto Reinaldo Barreiro
I haven't used tree from inmethod myself but I would bet that what you see is the result of DetachableTagGroupModel(tg.toString())... So either override your toString or change DetachableTagGroupModel to return what you want... (maybe look at the implementation to see how the node's text is

Re: How to stop submit of form on AjaxSubmitLink onSubmit

2009-02-05 Thread jWeekend
If you need to decorate AJAX callback JavaScript, take a look at the IAjaxCallDecorator family of interfaces/classes. Regards - Cemal http://www.jWeekend.com jWeekend rag...@directi wrote: thx a lot Timo for ur reply yea i agree that it is meant for submittingbut what i meant was to

Re: SessionPerRequestFilter

2009-02-05 Thread Thomas Mäder
You might also configure the filter such that it is not active for paths where you are sure you don't need the filter (think Web-Content/StaticImages/*.jpg or other static content) Thomas On Thu, Feb 5, 2009 at 3:56 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: a single request is processed

Wicket Jiras, Wednesday 11 Feb, @ jWeekend

2009-02-05 Thread jWeekend
Let me know if you'd like to join us on Wednesday evening, at jWeekend's office in London, for our inaugural session designed to go over selected Wicket Jira issues (1.4 fixes to start with). The idea is to dig into how things work with Al and I, understand the problems, work out how things hang

A doubt regarding best-practices

2009-02-05 Thread Daniel Ferreira Castro
In lots of books about wicket I can see a Page implementation declaring a Form as an inner class of the Page. Of course that this is, in part, a personal preference. I think, in my opinion, that the approach of declaring the Form as an inner class makes the code more dirty. I mean, the Page class

Re: A doubt regarding best-practices

2009-02-05 Thread Leszek Gawron
Daniel Ferreira Castro wrote: In lots of books about wicket I can see a Page implementation declaring a Form as an inner class of the Page. Of course that this is, in part, a personal preference. I think, in my opinion, that the approach of declaring the Form as an inner class makes the code

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
I prefer to declare the Form as a top class instead inner class. That is ok. This way you can also re-use the same form from different pages/panels. If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Depends on your

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Wicket works both ways. No, Form doesn't extend WebMarkupContainerWithAssociatedMarkup. Ah.. might be true, if you want it to have its own markup, you will embed it into

FormTester doesn't call the submit method

2009-02-05 Thread alexander.elsholz
Hi, i've a simple form with only one button. i wan't to test the submit method of button, so i call formtester.submit(). validation is executed and alsotester.assertNoErrorMessage(); is called. but the submit method of button wasn't called. thanks alex -- View this message in context:

Re: FeedBackPanel not rendering Messages

2009-02-05 Thread jWeekend
Since you have: feedback.setOutputMarkupId(true); is it possible that some AJAX behaviour is clearing the messages before you notice them? Either way, the technique described at http://wicket.apache.org/quickstart.html is very simple, quick and useful. You can make the simplest possible app

Re: migration from jsf to wicket

2009-02-05 Thread uwe janner
again thx to all the people so helpful on this mailing list!! this fact was an important argument to convince my customer to take wicket into account! i migrated a little part of our old struts1 app to both seam/jsf and seam/wicket to compare the performance degradation when going from naked

Re: Unexpected RuntimeException: RestartResponseException in onBeforeRender of cached page

2009-02-05 Thread ckuehne
I created a quickstart project to reproduce the error. Curiously, the problem does not show up in the automated test case. It does show up however if you run jetty and then click TabbedPanels--intercept--Tabbed Panel. The difference between the test case and the browser variant seems to be that

Another question for best practices

2009-02-05 Thread janneru
dear community, still working on a reimplementation of a former jsf gui i have some more questions about how to implement it correctly in wicket; * simple components: in my html i have many lines where i need just little modifications of the html: e.g. in jsf i had 10 lines like: link

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Martin Makundi
There is QueryStringUrlCodingStrategy if that is what you mean... if you just want to construct a query url (GET). In my understanding POST must come from the client browser so it cannot be constructed by Wicket as such. ** Martin 2009/2/5 Steve Swinsburg s.swinsb...@lancaster.ac.uk: Hi all,

Re: Another question for best practices

2009-02-05 Thread Martin Makundi
in wicket i tried: style a{color: span wicket:id=linkColor/; }/style Have you tried wicket:container wicket:id=linkColor/ ? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Ryan Gravener
I would use: http://hc.apache.org/httpclient-3.x/ Ryan Gravener http://ryangravener.com/flex | http://twitter.com/ryangravener On Thu, Feb 5, 2009 at 7:45 AM, Steve Swinsburg s.swinsb...@lancaster.ac.uk wrote: Hi all, just wondering if there is any API in Wicket that wraps up making a HTTP

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Steve Swinsburg
Thanks all. need POST so will use httpclient (need to make another request to an external service after a form is submitted) cheers, Steve On 5 Feb 2009, at 13:15, Martin Makundi wrote: There is QueryStringUrlCodingStrategy if that is what you mean... if you just want to construct a

Re: Checkbox filtering a dataview

2009-02-05 Thread Matt Welch
Thanks. That makes a lot of sense. Sometimes the simplest approaches are the ones I forget. Matt igor.vaynberg wrote: public mypage extends webpage { private boolean filter; public mypage() { add(new dataview(dataview, new dataprovider()) {}); } private class

Custom Domain Exception Handling

2009-02-05 Thread walnutmon
All, I am working with a domain where the POJOs have a method that checks there values, and throws an exception with the error message if there is a problem with one of there property values. I am using panels to model these objects, is there something I can do to utilize this behavior when a

Re: Another question for best practices

2009-02-05 Thread uwe janner
i just tried it, the parser seems to ignore it, i find the wicket:container wicket:id=linkColor/ unchanged in the html if i dont add a omponent to the page, and if i add the component wicket complains that he cannot find the associated component in the html (just as before) On Thu, Feb 5,

Re: Using urlFor

2009-02-05 Thread Flavius
That works. I'll do that. Thanks Igor. igor.vaynberg wrote: you can mount the pages so you have well known urls to them and build them manually. -igor -- View this message in context: http://www.nabble.com/Using-urlFor-tp21842522p21852518.html Sent from the Wicket - User mailing

Re: Server requirements for Web Apps

2009-02-05 Thread greeklinux
Thanks for sharing your Info. best regards Janos Cserep-2 wrote: Hi, I'm running www.szeretgom.hu on a two year old Sun Fire X2100 (1.8 ghz dual core Opteron, 4 GB RAM) running OpenSolaris, Postgresql, Glassfish v3 Prelude. The application runs on Wicket 1.4rc1 using EclipseLink with

Re: Custom Domain Exception Handling

2009-02-05 Thread Igor Vaynberg
class myform extends form { public void process() { try { super.process(); } catch (basedomainexception e) { error(e.getusermessage()); } } } -igor On Thu, Feb 5, 2009 at 5:49 AM, walnutmon justin.m.boy...@gmail.com wrote: All, I am working with

Problems Ajax with Portlet 2.0 in Liferay 5.2.1

2009-02-05 Thread Benjamin Ernst
Hi, I am Testing the new Portlet 2.0 with Liferay and have some problems with Ajax-calls. I am using wicket 1.4-SNAPSHOT(Revision 741130) and Liferay Portal Standard Edition 5.2.1 (Augustine / Build 5201 / February 3, 2009). I have a simple page with one label and one Ajaxlink: public

How to remove open-close tags of head

2009-02-05 Thread based
Hi, We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using request.include(). (We have some customizations of course.) The problem is about header resources, when i include a wicket component, it is also adding

Re: Wicket Jiras, Wednesday 11 Feb, @ jWeekend

2009-02-05 Thread Igor Vaynberg
feel free to work on any open bug, even if it has been assigned to someone (as long as it is not in progress) -igor On Thu, Feb 5, 2009 at 1:39 AM, jWeekend jweekend_for...@cabouge.com wrote: Let me know if you'd like to join us on Wednesday evening, at jWeekend's office in London, for our

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Peter Ertl
Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at least in Java 6 there is URLConnection.setConnectTimeout(int) Cheers Peter Am 05.02.2009 um 14:12 schrieb Erik van

Re: How to remove open-close tags of head

2009-02-05 Thread Igor Vaynberg
add an rfe into jira to break this out into a setting -igor On Thu, Feb 5, 2009 at 7:40 AM, based fatih.incefi...@eu.sony.com wrote: Hi, We have a big SpringMVC based web project. And we are developing new modules with wicket and including them to current View-Engine by using

Re: Another question for best practices

2009-02-05 Thread Igor Vaynberg
On Thu, Feb 5, 2009 at 4:43 AM, janneru jan.ne...@googlemail.com wrote: * simple components: in my html i have many lines where i need just little modifications of the html: e.g. in jsf i had 10 lines like: link rel=stylesheet type=text/css href=#{mediaPath.cssFolder}/header.css /

Re: static pages dynamic pages. How to have the same layout

2009-02-05 Thread Vika
kinabalu wrote: Can you elaborate on your current architecture so we can let you know how Wicket can achieve this? There are two categories pages on the site. 1) dynamic content - jsp/servlet 2) static content - html Both categories of pages only display the content. Navigation

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Marcelo Morales
Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no control over timeouts potentially hanging your application. Is this still true? I found that at

Re: Another question for best practices

2009-02-05 Thread uwe janner
thanks igor, it's always so refreshing how easy things can be done in wicket with the right hint perhaps this is usefull for somebody, so i post the code here (as i work with seam i use org.jboss.el.lang.ExpressionBuilder.Expressions): public class ReplaceElContainer extends WebComponent{

Re: Another question for best practices

2009-02-05 Thread Igor Vaynberg
wicket also has a MapVariableInterpolator that can take care of ${var} substitutions -igor On Thu, Feb 5, 2009 at 9:18 AM, uwe janner ujan...@googlemail.com wrote: thanks igor, it's always so refreshing how easy things can be done in wicket with the right hint perhaps this is usefull

Re: static pages dynamic pages. How to have the same layout

2009-02-05 Thread Igor Vaynberg
simply have a generic StaticContentPage that can load static content from anywhere. -igor On Thu, Feb 5, 2009 at 7:53 AM, Vika victoria.elin...@nasa.gov wrote: kinabalu wrote: Can you elaborate on your current architecture so we can let you know how Wicket can achieve this? There are

Re: Problems Ajax with Portlet 2.0 in Liferay 5.2.1

2009-02-05 Thread Thijs Vonk
This is an issue with Liferay (see http://issues.liferay.com/browse/LPS-1911) You can probably fix it by making sure that portlet-name (in portlet.xml) and the wicketfilter mapping url-pattern are identical (portlet.xml web.xml) On 2/5/09 4:30 PM, Benjamin Ernst wrote: Hi, I am Testing

DropDown component to work around IE6 z-index bug

2009-02-05 Thread Stephan Koch
Hi all, I am looking for a DropDownChoice component replacement to work around the nasty z-index bug in IE6 (SELECT elements are always shown on top of everything else and completely ignore the z-index setting). I tried DojoDropDownChoice, but it does not work on IE6 due to Javascript errors.

Re: FormTester doesn't call the submit method

2009-02-05 Thread nav
What is the html tag that you are using. If u r using button change to input type=submit and try also u can test with findSubmitButton(). //N alexander.elsholz wrote: Hi, i've a simple form with only one button. i wan't to test the submit method of button, so i call

Re: How to resolve tree issue?

2009-02-05 Thread nav
Does your model have getName() , if so why dont you try with that instead of .toString(). //N Penn wrote: Hi all, I am working with wicket tree based on the inmethod tree example.I have just 2 level tree with taggroup and tags. I have issue in just displaying the name, rather I get a

Re: static pages dynamic pages. How to have the same layout

2009-02-05 Thread jWeekend
Vicky, Take a look at http://www.wicket-library.com/wicket-examples/staticpages/ too. Regards - Cemal http://www.jWeekend.co.uk jWeekend Vika wrote: kinabalu wrote: Can you elaborate on your current architecture so we can let you know how Wicket can achieve this?

Re: Another question for best practices

2009-02-05 Thread Thomas Mäder
What I would have tried is this: have a list view of web markup containers. As a list item, create a WebMarkupContainer (mapped to the link tag). Add an attribute modifier that fixes up the href attribute of the link tag. You get the filename (header.css) from the ListView's model. Or am I

Web application using Wicket and iBATIS can't find DAOs?? ...pls help...its urgent

2009-02-05 Thread Edwin Ansicodd
Extending org.apache.wicket.spring.SpringWebApplication, used abator to generate generated DAOs, beans, and _SqlMap.xml files, but deploying the app, get following error: 17:58:31,025 ERROR [[/JPS]] StandardWrapper.Throwable java.lang.IllegalStateException: bean of type

java.lang.ClassCastException in ListMultipleChoice

2009-02-05 Thread Agent Mahone
Hi guys, I have a simple question. I´m using a ListMultipleChoice in my form. The selected items should be binded to Car.color as ListCar cars. If I bind the ListMultipleChoice to cars, I´ll get a java.lang.ClassCastException because wicket trys to map a ListString to ListCar.

[OT] Java hosting USB stick deployment

2009-02-05 Thread Kaspar Fischer
I am in the midst of deciding on the technology to use for an application that must be (i) cheap to host and (ii) must be deployable on USB sticks (Windows/Mac), for use in ad hoc networks. Options include Wicket/Hibernate/Spring or a PHP framework like Drupal, in some web container like

Re: [OT] Java hosting USB stick deployment

2009-02-05 Thread Nick Heudecker
I use eapps.com for hosting. Not sure what the problem is with USB drives, since you can get a 2GB drive for $6. On Thu, Feb 5, 2009 at 1:29 PM, Kaspar Fischer fisch...@inf.ethz.ch wrote: I am in the midst of deciding on the technology to use for an application that must be (i) cheap to

Re: java.lang.ClassCastException in ListMultipleChoice

2009-02-05 Thread Thomas Mäder
Stack trace please? On Thu, Feb 5, 2009 at 10:16 PM, Agent Mahone maho...@yahoo.de wrote: Hi guys, I have a simple question. I´m using a ListMultipleChoice in my form. The selected items should be binded to Car.color as ListCar cars. If I bind the ListMultipleChoice to cars, I´ll get a

RE: java.lang.ClassCastException in ListMultipleChoice

2009-02-05 Thread Stefan Lindner
And a little bit of example's code too. -Ursprüngliche Nachricht- Von: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] Im Auftrag von Thomas Mäder Gesendet: Donnerstag, 5. Februar 2009 23:38 An: users@wicket.apache.org Betreff: Re: java.lang.ClassCastException in ListMultipleChoice

Re: [OT] Java hosting USB stick deployment

2009-02-05 Thread Ryan Gravener
I use slicehost. $20 a month 10gb/100gb + 250mb.. You have to set up everything yourself except dns. On 2/5/09, Nick Heudecker nheudec...@gmail.com wrote: I use eapps.com for hosting. Not sure what the problem is with USB drives, since you can get a 2GB drive for $6. On Thu, Feb 5, 2009 at

RE: Web application using Wicket and iBATIS can't find DAOs?? ...pls help...its urgent

2009-02-05 Thread Kai Mutz
I think it is rather a Wicket/Spring integration question. Thus look at http://cwiki.apache.org/WICKET/spring.html You have to 1) Declare your wicket application in your application context, e.g. bean id=wicketApplication class=project.MyApplication/ 2) Install a SpringComponentInjector in your

Re: [OT] Java hosting USB stick deployment

2009-02-05 Thread John Armstrong
I did a test deploy on slicehost an it was great outside of disk space issues. Ultimately it was cheaper for me to pay ~$70 a month to cari.net for a dedicated server. Slicehost is great though, highly recommended if you have data storage requirements. J On Thu, Feb 5, 2009 at 2:45 PM, Ryan

Re: [OT] Java hosting USB stick deployment

2009-02-05 Thread John Armstrong
I meant 'if you have low data storage requirements'. The bump from 10GB to 20GB starts to erode the price competitiveness pretty quickly. J On Thu, Feb 5, 2009 at 3:05 PM, John Armstrong siber...@siberian.orgwrote: I did a test deploy on slicehost an it was great outside of disk space issues.

Testing DataView

2009-02-05 Thread Erick Fleming
Looking for samples or advice for unit testing DataViews. I've been using ListViews, since they are easy to test. Thanks

Re: FormTester doesn't call the submit method

2009-02-05 Thread Timo Rantalaiho
On Thu, 05 Feb 2009, alexander.elsholz wrote: i wan't to test the submit method of button, so i call formtester.submit(). validation is executed and also tester.assertNoErrorMessage(); is called. but the submit method of button wasn't called. formtester.submit(buttonId); If it doesn't work,

IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Andreas Petersson
hi! so, im using wicket together with guice for DI. i really wondered that the correct approach is here. at first i thought it way easy to do this, but it turns out it is more complicated..- at least more complicated to understand. my typical page looks like this: public class StartPage

Re: Testing DataView

2009-02-05 Thread Timo Rantalaiho
On Thu, 05 Feb 2009, Erick Fleming wrote: Looking for samples or advice for unit testing DataViews. I've been using ListViews, since they are easy to test. What exactly do you want to test? That the data rendered is displayed correctly? Can you show some example code that you'd like to test?

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Timo Rantalaiho
On Fri, 06 Feb 2009, Andreas Petersson wrote: so, im using wicket together with guice for DI. i really wondered that the correct approach is here. http://wicketstuff.org/wicket13/guice/ http://cwiki.apache.org/WICKET/wicket-guice-and-ibatis-example.html Best wishes, Timo -- Timo Rantalaiho

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Andreas Petersson
Timo Rantalaiho schrieb: On Fri, 06 Feb 2009, Andreas Petersson wrote: so, im using wicket together with guice for DI. i really wondered that the correct approach is here. http://wicketstuff.org/wicket13/guice/ http://cwiki.apache.org/WICKET/wicket-guice-and-ibatis-example.html Best

Clickable Image in a ListView (thumbnail principle)

2009-02-05 Thread frankmuel
Hi there, I am looking for a small hint about how to do the next step, if possible. I know, it looks a bit like the old please do my homework-question, duh, but I am a beginner and working on my first big project. I can't come up with any new idea because it is a bit too complicated for my own

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Timo Rantalaiho
On Fri, 06 Feb 2009, Andreas Petersson wrote: i wonder: myDao is most likely not serializable. WebPage is. WebPage should get serialized. so why the heck does this not throw an error? what kind of magic is going on here? Look at what GuiceComponentInjector does (or something it calls).

AW: AW: java.lang.ClassCastException in ListMultipleChoice

2009-02-05 Thread Agent Mahone
once again trying to send this mail thanks! Von: Agent Mahone maho...@yahoo.de An: us...@wicket..apache.org Gesendet: Freitag, den 6. Februar 2009, 01:06:50 Uhr Betreff: AW: java.lang.ClassCastException in ListMultipleChoice Hi, here my example: ###

Wicket BDD with JDave training at ApacheCon EU 2009 on Tue 24 March in Amsterdam

2009-02-05 Thread Timo Rantalaiho
Hello all, My colleagues Markus Hjort and Marko Sibakov and I are holding a full-day training session on applying the JDave Behavior-Driven Development (BDD) framework for developing Apache Wicket applications. This will take place in the ApacheCon EU 2009 conference in Amsterdam on Tuesday 24

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Andreas Petersson
Timo Rantalaiho schrieb: On Fri, 06 Feb 2009, Andreas Petersson wrote: i wonder: myDao is most likely not serializable. WebPage is. WebPage should get serialized. so why the heck does this not throw an error? what kind of magic is going on here? Look at what GuiceComponentInjector

Re: Clickable Image in a ListView (thumbnail principle)

2009-02-05 Thread Jeremy Thomerson
Your code's looking good - you're on the right track. The ease of the next step will blow your mind and you'll love wicket even more (I hope :) NonCachingImage image = new NonCachingImage(attachment, new AbstractReadOnlyModel() { @Override public Object getObject()

Re: Testing DataView

2009-02-05 Thread Erick Fleming
I'm new to unit testing and just trying to get my feet wet. The actual code under test would be a panel that should display some data. I guess I don't really care to test wicket's dataview but whether or not my panel is actually displaying the data. Should I mock the IDataProvider and verify

Re: making a HTTP request directly in Wicket

2009-02-05 Thread Erik van Oosten
Thanks Peter, Marcelo, Still learning every day... Regards, Erik. Marcelo Morales wrote: Don't forget setReadTimeout(int) Also very important. On Thu, Feb 5, 2009 at 11:42 AM, Peter Ertl pe...@gmx.org wrote: Please use commons HttpClient, with the standard Java client you have no

Re: IoC: how to best handle non-serializable fields in wicket

2009-02-05 Thread Adriano dos Santos Fernandes
Andreas Petersson wrote: hi timo, thanks for the links. well, i've modeled my application after reading the mentioned example. from Wicket, Guice and Ibatis example: public class MyPage extends WebPage { @Inject protected MyDao myDao; --- i wonder: myDao is most likely not

Re: Border fails to render if its contents are not visible by default (WICKET-1789 ?)

2009-02-05 Thread smallufo
igor: Thank you very much , it works ! BR -- smallufo 2009/2/5 Igor Vaynberg igor.vaynb...@gmail.com remove border.settransparentresolver(true); instead of add(listViewContainer.add(listView)); do border.add(listViewContainer.add(listView)); now your component hierarchy is proper,

Re: [OT] Java hosting USB stick deployment

2009-02-05 Thread Andrew Lombardi
slicehost.com. easy. and at Mystic we've had several web applications written in Wicket deployed on external media, with a running system behind it of course :) On Feb 5, 2009, at 1:29 PM, Kaspar Fischer wrote: I am in the midst of deciding on the technology to use for an application

RE: making a HTTP request directly in Wicket

2009-02-05 Thread Swinsburg, Stephen
I was just going to do it in a different thread, make a void function then it can take as long as it needs without having timeouts. Might still have a timeout just in case though ;) cheers. -Original Message- From: Erik van Oosten [mailto:e.vanoos...@grons.nl] Sent: Fri 2/6/2009 5:40

Re: How to remove open-close tags of head

2009-02-05 Thread based
Hi Igor, Thanks for your reply, I have created the jira rfe. To be able to continue to development, i created a new IResponseFilter to remove head tags from responseBuffer. Do you see any concern in this? Thanks in advance igor.vaynberg wrote: add an rfe into jira to break this out into a