Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Jonathan Locke
also see wicket-rad if appropriate igor.vaynberg wrote: have a look see here for an example https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/ -igor On Thu, Sep 11, 2008 at 6:29 PM, walnutmon [EMAIL PROTECTED] wrote: Very new to Wicket, I've

Re: Cannot create Spring Bean via Proxy in Wicket

2008-09-12 Thread cricdigs
This is a great thread! It saved my day. Since yesterday I was getting this error and just couldn't figure out the reason. Of course it was the object instead of the interface! Thanks a bunch! Sergey Podatelev wrote: On Jan 14, 2008 1:13 AM, Konstantin Ignatyev [EMAIL PROTECTED] wrote:

Re: Tracking logged in users / SessionStore questions

2008-09-12 Thread behlma
Now another question has popped up. My bulletin board overview page, the one displaying all currently active/guests users and forums is a (stateless) BookmarkablePage. To be able to track the (guest) users however, I'm calling getSession().bind() in the page's constructor. The session gets bound

Re: Wicket + jboss 4.0.5 + slf4j-log4j12 markup refresh problem issue

2008-09-12 Thread Bernard Niset
Hi Lukasz, I use about the same configuration as yours. I think you can safely replace the provided version of log4j (in the lib directory) with a more recent one. I have a production environment working with log4j 1.2.8, other test environments I use have more recent versions. My production

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler
Jonathan Locke wrote: also see wicket-rad if appropriate A http://sites.google.com/site/wicketrad URL could be useful, so here it is . :) The org.wicketrad.propertyeditor package in the wicket-rad-core module has a bunch of Panels you might want to look at for your problem. The exact

Re: Wicket 1.3.4 + SWFObject

2008-09-12 Thread Kaspar Fischer
On 11.09.2008, at 13:59, Piller Sébastien wrote: Hello, this time I haven't any dummy question :) I've developped a wicket panel to display a *.swf file with a autoinstall feature of the flash player, using SWFObject, and I'm ready to share it with the community. Are you interested?

Re: FeedbackPanel and page refresh (f5) after submit

2008-09-12 Thread Ajayi Yinka
Hurray, i have got over it. The problem I was having is that, I forgort to implement the cleanupFeedbackMessages() method which I declare in my session class. I called the method but forgot to put the codes therein. thanks so much. Now, i can continue with my app. I will appreciate it if anyone

Re: Wicket 1.3.4 + SWFObject

2008-09-12 Thread Piller Sébastien
Sure! AutoInstallShockwaveComponent.java import java.util.Hashtable; import java.util.Map; import java.util.Set; import org.apache.wicket.ResourceReference; import org.apache.wicket.behavior.HeaderContributor; import org.apache.wicket.markup.html.WebMarkupContainer; import

Re: Can we have a prefix in the subject line for any emails from this mailing list?

2008-09-12 Thread Charlie Dobbie
The list software produces a valid RFC 2919 List-Id header - any decent mail user agent should be able to filter based on that. As alluded to by Ryan, Gmail recognises this and will create a new filter in like three clicks. Charlie. 2008/9/10 Ryan Gravener [EMAIL PROTECTED] switch to gmail

Re: ajax dropdowns

2008-09-12 Thread Matej Knopp
prepend/append javascript should work. -Matej On Thu, Sep 11, 2008 at 11:15 PM, Scott Swank [EMAIL PROTECTED] wrote: This is apparently an IE6 bug, in that inserting an image in the dom above the select screws up the tabindex/focus in some way. If I have the span/image already in the dom and

Form values lost on converter error when inside table

2008-09-12 Thread Lorenzo Bolzani
Hi, I'need to display some editable values inside an HTML table. The form contains both string and numeric values. If I submit an invalid numeric value an error is reporter but all other values are lost. Using a simple form this does not happens, it happens only when we had the table part. I

Re: WicketTester feature request

2008-09-12 Thread Jan Stette
2008/9/12 Timo Rantalaiho [EMAIL PROTECTED] On Thu, 11 Sep 2008, Jan Stette wrote: Absolutely, I see what you're saying. Part of the problem here may be that on the project I'm working on, WicketTester is indeed used to do integration/functional tests. I'm not sure why this was done in

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number of radio buttons. Wouldn't ListView suffice in this situation? That's all they asked for. The XP folks would say, Do the simplest thing that works. On Fri, Sep

Automated testing of Wicket applications

2008-09-12 Thread Jan Stette
This is a bit of a general question: I'd be interested in hearing about how people do automated tests of their Wicket applications. I'm thinking about system tests of the full application, not unit tests. There are of course tools like Selenium which let you automate actions on a web

Re: Form values lost on converter error when inside table

2008-09-12 Thread Serkan Camurcuoglu
if you were using a listview, you should have called setReuseItems(true) on it.. Maybe there exists something similar for DataView.. ListView javadoc says: If you nest a ListView in a Form, ALLWAYS set this property to true, as otherwise validation will not work properly. Lorenzo Bolzani

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread wfaler
Nope, probably not, but he can take a look at the code for a sample on how to achieve exactly what he wants. jwcarman wrote: Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number of radio buttons. Wouldn't

JasperReport in IFrame

2008-09-12 Thread freak182
Hello Eelco, It is possible for the jasperreport to be display in iframe in html format? because the example that comes with the wicket-contrib-jasperreports the pdf is embeded in the page through the object tag. If it is possible also for the html export to be view in iframe inside the page?

Re: Form values lost on converter error when inside table

2008-09-12 Thread Lorenzo Bolzani
2008/9/12 Serkan Camurcuoglu [EMAIL PROTECTED]: if you were using a listview, you should have called setReuseItems(true) on it.. Maybe there exists something similar for DataView.. ListView javadoc says: If you nest a ListView in a Form, ALLWAYS set this property to true, as otherwise

Re: Apache is freezing CPU

2008-09-12 Thread jmatt
hello thank you for your words. Martijn Dashorst wrote: With that many users you probably have session retention. Try to profile your app with yourkit or another profiler. Failing that, you could look at the numbers using jmap and jstat. Martijn On 9/11/08, jmatt [EMAIL PROTECTED]

Re: Apache FOP and Wicket

2008-09-12 Thread Edvin Syse
Sure, it is possible, but it is tedious and verbose compared to using Freemarker or another scripting language. Using Wicket for this will only add more code and complexity to the process, and it's not like you need component based control of the markup you are creating, so Wicket is simply

Re: Form values lost on converter error when inside table

2008-09-12 Thread Serkan Camurcuoglu
I think you can make a quick test by implementing a simple reuse strategy which directly returns the existingItems iterator.. Lorenzo Bolzani wrote: 2008/9/12 Serkan Camurcuoglu [EMAIL PROTECTED]: if you were using a listview, you should have called setReuseItems(true) on it.. Maybe there

Re: Tracking logged in users / SessionStore questions

2008-09-12 Thread Igor Vaynberg
are your cookies disabled? -igor On Thu, Sep 11, 2008 at 11:46 PM, behlma [EMAIL PROTECTED] wrote: Now another question has popped up. My bulletin board overview page, the one displaying all currently active/guests users and forums is a (stateless) BookmarkablePage. To be able to track the

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread Igor Vaynberg
did you also explain about setreuseitems(true) to them after suggesting a listview? -igor On Fri, Sep 12, 2008 at 3:35 AM, James Carman [EMAIL PROTECTED] wrote: Does this person really need a RAD tool for what they're trying to do? All they need to do is display a list of an arbitrary number

GMap2-Issue with AJax

2008-09-12 Thread Markus
Hi all, I filed a Bugreport for Gmap2: http://wicketstuff.org/jira/browse/WSGMAPP-11 Can anyone reconstruct this behavior or has already solved the Problem? I´m kinda stuck here and have not the tiniest bit of an idea how to debug this :/ Regards Markus

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread James Carman
Where's the fun in that? ;) Sorry, I should have mentioned that you need to setup your ListView to reuse the items if you're doing things as you say. On Fri, Sep 12, 2008 at 10:10 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: did you also explain about setreuseitems(true) to them after suggesting

Re: Automated testing of Wicket applications

2008-09-12 Thread German Morales
Hi Jan, We are using Watir, which lets you write tests in ruby. And we are using mainly wicket generated names for identification of components, but sometimes we use generated attributes too (for example a does not have name), or just the text in the html. Since the code is all in ruby, it is

Re: Automated testing of Wicket applications

2008-09-12 Thread Peter Thomas
On Fri, Sep 12, 2008 at 8:12 PM, German Morales [EMAIL PROTECTED]wrote: Hi Jan, We are using Watir, which lets you write tests in ruby. For those who don't want to use Ruby, Watij is the Java equivalent of Watir. http://watij.com/ But the problem with both Watij and Watir is that you have

Re: Automated testing of Wicket applications

2008-09-12 Thread German Morales
Actually there are more platforms for watir ( http://wtr.rubyforge.org/platforms.html): FireWatir and SafariWatir. I gave a quick try to FireWatir some time ago, with no much success, but they continue working on it. They mention also a Watir interface that uses Selenium. 2008/9/12 Peter

Re: Automated testing of Wicket applications

2008-09-12 Thread Jan Stette
Hi German, thanks for an interesting reply. Ruby probably wouldn't be appropriate in our environment, but it's still interesting to see the principles involved in writing tests using it. Some points I'm not clear about: When Wicket generates pages, as far as I can tell, the wicket:id that's

Re: Automated testing of Wicket applications

2008-09-12 Thread Jan Stette
Thanks Peter, those are interesting links. As for the question I asked of German as well, are you able to get the full wicket path for components, or just the local wicket:ids? If the latter, how do you deal with components that can be instantiated multiple times on a page? Also, have you

Re: Automated testing of Wicket applications

2008-09-12 Thread Pointbreak
Also, have you successfully tested Ajax applications using Selenium-RC and Junit? I have, and Selenium works really well for testing wicket ajax applications. Only thing I had to do was to add a script to the pages that helps selenium figure out when ajax requests are finished. See this

Re: Newbie Question: Dynamically Building Form Elements

2008-09-12 Thread walnutmon
Haha, first off, thanks for all the responses, I'm glad the community is active :) I took a look at the Wicket Rad, it looks pretty cool, I think he referenced it so that I can actually see how some of that stuff works, and get a handle on what Wicket is capable of, it was a bit over my head. I

Re: Automated testing of Wicket applications

2008-09-12 Thread German Morales
2008/9/12 Jan Stette [EMAIL PROTECTED] Hi German, thanks for an interesting reply. Ruby probably wouldn't be appropriate in our environment, but it's still interesting to see the principles involved in writing tests using it. Some points I'm not clear about: When Wicket generates pages,

integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
Hi @all I´m new to spring and wicket. I´d like to know how is it possible to inject wicket beans in a smart way??? My preconditions are: using jdk 1.4 for example: my applicationContext.xml file looks like. bean id=loginPanel class=example.login.LoginPanel singleton=false property

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
Have you read this page: http://cwiki.apache.org/WICKET/spring.html On Fri, Sep 12, 2008 at 3:30 PM, mahone9 [EMAIL PROTECTED] wrote: Hi @all I´m new to spring and wicket. I´d like to know how is it possible to inject wicket beans in a smart way??? My preconditions are: using jdk 1.4

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
You could use (warning: shameless plug coming) Apache Commons Proxy to create proxies that would lookup your spring beans at runtime. On Fri, Sep 12, 2008 at 3:30 PM, mahone9 [EMAIL PROTECTED] wrote: Hi @all I´m new to spring and wicket. I´d like to know how is it possible to inject wicket

AW: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Agent Mahone
Thanks for ur quick response. I already read this article. But I don´t like this approach calling this creation Proxy stuff when I need it for from a Wicket-Bean. private ContactDao dao = LazyInitProxyFactory.createProxy(ContractDao.class, new IProxyTargetLocator() { public Object

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
Thanks for ur quick response. I already read this article. But I don´t like this approach calling this creation Proxy stuff when I need it for from a Wicket-Bean. private ContactDao dao = LazyInitProxyFactory.createProxy(ContractDao.class, new IProxyTargetLocator() { public Object

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
Well, Wicket is an unmanaged framework, so you're going to have a hard time getting it to use spring to instantiate and inject beans for you. However, you can move this proxy creation logic up into a superclass if you wish: public class BasePage extends WebPage { protected Object

Re: ajax dropdowns

2008-09-12 Thread Scott Swank
Thank you Matej. The final solution for IE6 (should anyone else hit this lovely dom bug) is to toggle the style.display for the relevant component(s) via appendJavascript for the image. Cheers, Scott On Fri, Sep 12, 2008 at 1:54 AM, Matej Knopp [EMAIL PROTECTED] wrote: prepend/append

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
Hmmm, i thought about it too. But is it the best practise or an acceptable hack ??? With ur mentioned approach I have always to be aware of wicket beans in order to handle them in that special way. Is it somehow possible to hook into any bean instantiation class (or beanFactory etc.)... and

Re: Automated testing of Wicket applications

2008-09-12 Thread Igor Vaynberg
we can always make it so there is a setting that outputs the full path as an attribute of a component if that is helpful. eg div wicket:path=some:path:to:this:div -igor On Fri, Sep 12, 2008 at 12:18 PM, German Morales [EMAIL PROTECTED] wrote: 2008/9/12 Jan Stette [EMAIL PROTECTED] Hi

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Igor Vaynberg
there was also a project that integrated commons-attributes instead of the springbean annot so your code would be /** @SpringBean */ private dao; instead of the jdk5 version @SpringBean private dao; -igor On Fri, Sep 12, 2008 at 1:39 PM, mahone9 [EMAIL PROTECTED] wrote: Hmmm, i thought about

Mysterious classnotfoundexceptions

2008-09-12 Thread Ritesh Trivedi
Every once in a while I get these classnotfoundexceptions for some odd reason which I cant figure out why. The class does exist (its a panel as you can tell from the classname) and is serializeable with one of the members IClusterable. It happens atleast few times a day and dont know why - Will

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread jcgarciam
Hi everyone and let me thanks you guys for this awesome framework, now back to the topic :) you can use SpringComponentInjector from the wicket-spring-anot, see the following example which is shown at http://cwiki.apache.org/WICKET/spring.html#Spring-AnnotationbasedApproach

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Igor Vaynberg
in his very first email he said he is stuck on jdk1.4 -igor On Fri, Sep 12, 2008 at 2:31 PM, jcgarciam [EMAIL PROTECTED] wrote: Hi everyone and let me thanks you guys for this awesome framework, now back to the topic :) you can use SpringComponentInjector from the wicket-spring-anot, see

Re: Mysterious classnotfoundexceptions

2008-09-12 Thread Igor Vaynberg
are you using any interesting class reloading tools like javarebel, etc? -igor On Fri, Sep 12, 2008 at 2:31 PM, Ritesh Trivedi [EMAIL PROTECTED] wrote: Every once in a while I get these classnotfoundexceptions for some odd reason which I cant figure out why. The class does exist (its a panel

Re: Automated testing of Wicket applications

2008-09-12 Thread James Carman
That might be pretty cool! I can see how that might help constructing your unit tests. On Fri, Sep 12, 2008 at 5:03 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: we can always make it so there is a setting that outputs the full path as an attribute of a component if that is helpful. eg div

Re: Mysterious classnotfoundexceptions

2008-09-12 Thread Ritesh Trivedi
I am not - but I am using Apache Ofbiz inside tomcat, Wicket being used as a front end to Ofbiz component. Ofbiz has its ClassLoaders which it creates. May be thats an issue or may be it messes up in hot deploy mode when the webapp is reloaded due to recompilation. Does wicket print anywhere in

Re: Mysterious classnotfoundexceptions

2008-09-12 Thread Igor Vaynberg
ah, i assumed you were seeing this in production...some times you can get these kinds of errors because of hot deployment. -igor On Fri, Sep 12, 2008 at 2:55 PM, Ritesh Trivedi [EMAIL PROTECTED] wrote: I am not - but I am using Apache Ofbiz inside tomcat, Wicket being used as a front end to

Re: Automated testing of Wicket applications

2008-09-12 Thread Igor Vaynberg
open a jira issue and we can whip it up -igor On Fri, Sep 12, 2008 at 2:54 PM, James Carman [EMAIL PROTECTED] wrote: That might be pretty cool! I can see how that might help constructing your unit tests. On Fri, Sep 12, 2008 at 5:03 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: we can always

Re: Automated testing of Wicket applications

2008-09-12 Thread Jan Stette
That sounds very promising, thanks! Jan 2008/9/12 Pointbreak [EMAIL PROTECTED][EMAIL PROTECTED] Also, have you successfully tested Ajax applications using Selenium-RC and Junit? I have, and Selenium works really well for testing wicket ajax applications. Only thing I had to do was to

Re: Automated testing of Wicket applications

2008-09-12 Thread James Carman
Done: https://issues.apache.org/jira/browse/WICKET-1830 If you don't mind, I'd like to take a stab at this. I can submit a patch. Do you want me to develop it against trunk or the 1.3 branch? I assume you want this to be optional in development mode so that we don't screw up all of the

Re: Automated testing of Wicket applications

2008-09-12 Thread Jan Stette
Ah sorry, you must have beat me to it by seconds! https://issues.apache.org/jira/browse/WICKET-1831 I'll close mine off as a dupe... With regards to scheduling, it would be really great to have this in 1.3.5 if it's not a big change. Thanks, Jan 2008/9/13 James Carman [EMAIL PROTECTED]

Re: Automated testing of Wicket applications

2008-09-12 Thread Igor Vaynberg
go for it if you want, its a 5 minute thing anyways. and yes, there should be a setting that is off by default in both dev and prod modes. -igor On Fri, Sep 12, 2008 at 4:04 PM, James Carman [EMAIL PROTECTED] wrote: Done: https://issues.apache.org/jira/browse/WICKET-1830 If you don't mind,

Re: Mysterious classnotfoundexceptions

2008-09-12 Thread Johan Compagner
are you using a framework that uses classloaders on top of the web app classloaders?? this is a very very bad idea. especially with wicket or with clustering in general.. you really shouldnt do that. For wicket we have a solution please look at the:

Re: A few more newbie questions

2008-09-12 Thread James Carman
Are you basically wanting each users' browser to be notified of some change in state on the server? Well, there are a couple of ways to go about this. You can either implement server push or you can have your application poll via Ajax. On Fri, Sep 12, 2008 at 8:52 PM, walnutmon [EMAIL