Re: Avoid serialization troubles with static members
no because the component isnt instantiated so that wount be called. after deserialization that field will be null. maybe you could bulid in a container/page a deserialize hook and when that is called go over all your components and inject it again johan On Thu, Feb 19, 2009 at 08:41, Martin Sachs sachs.mar...@gmail.com wrote: Hi If we use @SpringBean we have automaticaly a serialized proxy object. Is it possible to use a transient variable to avoid the serialization at all ? public MyPanel extends Panel{ @SpringBean(name=myserviceBean) private transient MyServiceInterface service; ... } What do we need to inject the service after de-serialization ? We have the ComponentInstantiationListener, maybe this would work also with transient ? Martin -- View this message in context: http://www.nabble.com/Avoid-serialization-troubles-with-static-members-tp22082899p22095373.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: maven guru/wickstuff project maintainers..
First i also have to checkout why this happens and why it happens only to sourceforge wicketstuff only from that server Caused by: java.net.ConnectException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createPlainSocket(SVNSocketFactory.java:53) Yesterday everything worked fine. Today i get those errors again johan On Wed, Feb 18, 2009 at 22:07, Jeremy Thomerson jer...@wickettraining.comwrote: Yes - all wicketstuff-core projects appear to be generating timestamped snapshots, which they shouldn't be. The wicketstuff-core parent pom [1] has the proper line in it (I think) to exclude this from happening: uniqueVersionfalse/uniqueVersion Continuum is still running on my server [2], building the wicketstuff-core projects and deploying to an alternate repo [3] (including javadoc snapshots). Everything there seems to be running fine, and it's not generating timestamped snapshots. Perhaps this is a problem with TeamCity? Maybe a Maven / TeamCity guru can help more, but I tried to make sure that it wouldn't do this. I never have liked TeamCity too much. Let me know how I can be of assistance. I don't mind hosting these repos on my servers. And I don't mind keeping Continuum running - it has been very easy. PS - Continuum is also building the site:deploy goal on my server, and deploying the sites publicly [4], including nice html views of the source in the reports section for each project. [1] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/pom.xml [2] - http://www.wickettraining.com/continuum/ [3] - http://www.wickettraining.com/ws-snaps/ [4] - http://www.wickettraining.com/ws-sites/ -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I see this is a issue for wicketstuff core aswell 2009/2/18 Johan Compagner jcompag...@gmail.com Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like that i think it has to do something in the profiles and then distributionManagement ?? distributionManagement snapshotRepository idrepo/id nameLocal Bamboo/Tomcat repository/name urlfile:/home/wicket/tomcat/webapps/maven/repository//url uniqueVersionfalse/uniqueVersion /snapshotRepository /distributionManagement also wicket 1.3 has the same problem. i guess because the jdk1.4 and jdk1.5 dirs dont have the right stuff? Or is the wrong profiler being done? Where can this be changed? johan
Re: maven guru/wickstuff project maintainers..
i see that wicket1.3 jdk1.4 is using these goals: -Pbamboo-jdk-1.4 clean deploy On Thu, Feb 19, 2009 at 08:03, Martin Funk mafulaf...@googlemail.comwrote: But those are only defined in profiles: 'bamboo' and 'wickettraining.com-continuum' are those profiles pulled for the builds? mf Am 18.02.2009 um 22:07 schrieb Jeremy Thomerson: Yes - all wicketstuff-core projects appear to be generating timestamped snapshots, which they shouldn't be. The wicketstuff-core parent pom [1] has the proper line in it (I think) to exclude this from happening: uniqueVersionfalse/uniqueVersion Continuum is still running on my server [2], building the wicketstuff-core projects and deploying to an alternate repo [3] (including javadoc snapshots). Everything there seems to be running fine, and it's not generating timestamped snapshots. Perhaps this is a problem with TeamCity? Maybe a Maven / TeamCity guru can help more, but I tried to make sure that it wouldn't do this. I never have liked TeamCity too much. Let me know how I can be of assistance. I don't mind hosting these repos on my servers. And I don't mind keeping Continuum running - it has been very easy. PS - Continuum is also building the site:deploy goal on my server, and deploying the sites publicly [4], including nice html views of the source in the reports section for each project. [1] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/pom.xml [2] - http://www.wickettraining.com/continuum/ [3] - http://www.wickettraining.com/ws-snaps/ [4] - http://www.wickettraining.com/ws-sites/ -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I see this is a issue for wicketstuff core aswell 2009/2/18 Johan Compagner jcompag...@gmail.com Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like that i think it has to do something in the profiles and then distributionManagement ?? distributionManagement snapshotRepository idrepo/id nameLocal Bamboo/Tomcat repository/name urlfile:/home/wicket/tomcat/webapps/maven/repository//url uniqueVersionfalse/uniqueVersion /snapshotRepository /distributionManagement also wicket 1.3 has the same problem. i guess because the jdk1.4 and jdk1.5 dirs dont have the right stuff? Or is the wrong profiler being done? Where can this be changed? johan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: maven guru/wickstuff project maintainers..
I'm willing to move to hudson (though I don't think hudson's interface is inspiring). There has been some discussion moving for Wicket core stuff to the Apache based hudson, but I haven't seen that much benefits from it. I might follow up on that. Martijn On Thu, Feb 19, 2009 at 9:16 AM, Johan Compagner jcompag...@gmail.com wrote: First i also have to checkout why this happens and why it happens only to sourceforge wicketstuff only from that server Caused by: java.net.ConnectException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createPlainSocket(SVNSocketFactory.java:53) Yesterday everything worked fine. Today i get those errors again johan On Wed, Feb 18, 2009 at 22:07, Jeremy Thomerson jer...@wickettraining.comwrote: Yes - all wicketstuff-core projects appear to be generating timestamped snapshots, which they shouldn't be. The wicketstuff-core parent pom [1] has the proper line in it (I think) to exclude this from happening: uniqueVersionfalse/uniqueVersion Continuum is still running on my server [2], building the wicketstuff-core projects and deploying to an alternate repo [3] (including javadoc snapshots). Everything there seems to be running fine, and it's not generating timestamped snapshots. Perhaps this is a problem with TeamCity? Maybe a Maven / TeamCity guru can help more, but I tried to make sure that it wouldn't do this. I never have liked TeamCity too much. Let me know how I can be of assistance. I don't mind hosting these repos on my servers. And I don't mind keeping Continuum running - it has been very easy. PS - Continuum is also building the site:deploy goal on my server, and deploying the sites publicly [4], including nice html views of the source in the reports section for each project. [1] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/pom.xml [2] - http://www.wickettraining.com/continuum/ [3] - http://www.wickettraining.com/ws-snaps/ [4] - http://www.wickettraining.com/ws-sites/ -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I see this is a issue for wicketstuff core aswell 2009/2/18 Johan Compagner jcompag...@gmail.com Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like that i think it has to do something in the profiles and then distributionManagement ?? distributionManagement snapshotRepository idrepo/id nameLocal Bamboo/Tomcat repository/name urlfile:/home/wicket/tomcat/webapps/maven/repository//url uniqueVersionfalse/uniqueVersion /snapshotRepository /distributionManagement also wicket 1.3 has the same problem. i guess because the jdk1.4 and jdk1.5 dirs dont have the right stuff? Or is the wrong profiler being done? Where can this be changed? johan -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: maven guru/wickstuff project maintainers..
and now it works fine. I think it is the network between that server and wicketstuff somehow. Because it is really not reachable when making a socket connection i will try to monitor it On Thu, Feb 19, 2009 at 09:34, nino martinez wael nino.martinez.w...@gmail.com wrote: Yeah I know.. I reported that to sourceforge months ago... :/ And it seems to be very unpredictable.. However Jeremy's server seems to have no problems.. 2009/2/19 Johan Compagner jcompag...@gmail.com First i also have to checkout why this happens and why it happens only to sourceforge wicketstuff only from that server Caused by: java.net.ConnectException: Network is unreachable at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createPlainSocket(SVNSocketFactory.java:53) Yesterday everything worked fine. Today i get those errors again johan On Wed, Feb 18, 2009 at 22:07, Jeremy Thomerson jer...@wickettraining.comwrote: Yes - all wicketstuff-core projects appear to be generating timestamped snapshots, which they shouldn't be. The wicketstuff-core parent pom [1] has the proper line in it (I think) to exclude this from happening: uniqueVersionfalse/uniqueVersion Continuum is still running on my server [2], building the wicketstuff-core projects and deploying to an alternate repo [3] (including javadoc snapshots). Everything there seems to be running fine, and it's not generating timestamped snapshots. Perhaps this is a problem with TeamCity? Maybe a Maven / TeamCity guru can help more, but I tried to make sure that it wouldn't do this. I never have liked TeamCity too much. Let me know how I can be of assistance. I don't mind hosting these repos on my servers. And I don't mind keeping Continuum running - it has been very easy. PS - Continuum is also building the site:deploy goal on my server, and deploying the sites publicly [4], including nice html views of the source in the reports section for each project. [1] - https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/pom.xml [2] - http://www.wickettraining.com/continuum/ [3] - http://www.wickettraining.com/ws-snaps/ [4] - http://www.wickettraining.com/ws-sites/ -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 8:41 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: I see this is a issue for wicketstuff core aswell 2009/2/18 Johan Compagner jcompag...@gmail.com Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like that i think it has to do something in the profiles and then distributionManagement ?? distributionManagement snapshotRepository idrepo/id nameLocal Bamboo/Tomcat repository/name urlfile:/home/wicket/tomcat/webapps/maven/repository//url uniqueVersionfalse/uniqueVersion /snapshotRepository /distributionManagement also wicket 1.3 has the same problem. i guess because the jdk1.4 and jdk1.5 dirs dont have the right stuff? Or is the wrong profiler being done? Where can this be changed? johan
ListView within a stateless form
Hello, first of all I can say that I very much like the concepts of wicket. This is basically the first web framework whose concepts align with my understanding of how a web framework should separate the view, the business logic and the model. In a large web application we would like to work with a stateless form that includes a ListView. But if I don't miss something this doesn't seem to work out of the box because the list view is neither a IFormModelUpdateListener nor a IFormVisitorParticipant and thus it never gets reconstructed when wicket starts to rebuild the stateless form. After letting our subclassed ListView and ListItem implement these interfaces we recognized, that the list items do not get reconstructed because there aren't yet any. The reason is, that the populateItem() method has not yet been called to create them but will be called later on rendering time. To get around this we called onPopulate() within the constructor. Now everything works as expected. But of course we wonder if this will cause any side effects and if there isn't any standard way to use a ListView within a stateless form. Any information on how to handle that is very much appreciated. Best, Sandro -- Sandro Böhme 11 Internet AG Brauerstraße 48 · D-76135 Karlsruhe fon +49-721-91374-8260 fax +49-721-91374-2716 Mail: sandro.boe...@1und1.de Xing: https://www.xing.com/profile/Sandro_Boehme Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Drop Down Box - Ajax Behaviour
The method getHibernateTransaction is a need :) Hibernate complains if I try to do a select without an active transaction. But this is not the case, it is working fine - no runtime errors - so it is ok at the moment :) My problem is that After I submit the form, inserting on the bank a new Category (Caategoria in Portuguese), the DropDown does not update its values list with the inserted one. Wierd also is the fact that I tryed to use the AjaxSelfUpdatingTimerBehavior to update the DropDown from time to time, but the values does not change - even with the new version inserted on the database. So, my best guess is that I am doing something wrong...the problem is find out what. I tryed to look, always do, the wicket debug console, but didn't show me the reason of the actual behaviour. On Thu, Feb 19, 2009 at 1:23 AM, Timo Rantalaiho timo.rantala...@ri.fiwrote: On Thu, 19 Feb 2009, Timo Rantalaiho wrote: AjaxFormComponentUpdatingBehavior does not submit the whole form -- for that you need to use some *submitting*behavior. Ah, now I saw that you had probably tried that? It's pretty hard to investigate what's going on -- you could try debugging Form.process() which usually gives a pretty good idea of what's happening, or prepare a quickstart with a problem and post a link here if you need more help. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Two rules to succeed in life: 1 - don´t tell people everything you know. We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill
how to hide parameter in URL? for parameters
Dear all, I am doing a project , there is one url with some parameters as below http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834 If I set mountBookmarkablePage in webApplication for CompanyDetail like that: mountBookmarkablePage(/company, CompanyDetail.class); The url will be changed to http://localhost:8080/dira/company/originPage/company/organizationId/191834/ how Can I hide the parameters? like http://localhost:8080/dira/company thanks wch -- View this message in context: http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to hide parameter in URL? for parameters
use a post request !! tawus On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote: Dear all, I am doing a project , there is one url with some parameters as below http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834 If I set mountBookmarkablePage in webApplication for CompanyDetail like that: mountBookmarkablePage(/company, CompanyDetail.class); The url will be changed to http://localhost:8080/dira/company/originPage/company/organizationId/191834/ how Can I hide the parameters? like http://localhost:8080/dira/company thanks wch -- View this message in context: http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Avoid serialization troubles with static members
Thanks for your answer. Wouldn't it be sufficient to use a static member to hold a reference to a service? i.e. public class SomeWicketComponent{ private static MyService service; // ... } How would you intialize these? Would you have a static getter, and force yourself to remember to always use it? Or would you have a static setter and centralize the initialization code somewhere else? Either way sounds ugly to me. This is the DI problem, but in this step I only regarded the serialization problem. I wanted to fetch object as you described it: MyService svc = (MyService) MyApp.getBean(myService); Let's see, where to start... - it's ugly - the cast and the bean name can fail in a way that is only detectable at runtime - it ties all your components to your application class - it's difficult to test, since you need to mock up a MyApp instance for your component to work You're right. My solution is like a solution without DI and with all the dependency troubles DI should avoid. What don't you like about them? Annotations are often missused and they bring a declarative programming style to Java. Sometimes you don't know what happens in the background. A programm can better be understood if you can follow the instruction instead of guessing how annotions will be interpreted. I think of Spring MVC where a @Controller exists. It indicates that you want the class to be a controller. But you don't see how the controller must look like, you don't see that you need other annotations to get your controller working. The old style with extendig some framework classes are much more readable but a bit more verbose. But there are also some good use cases for annotations like JPA and maybe the mentonioned annotation to integrate Spring in Wicket. I tried to use Spring integration but failed. I wonder about the class org.apache.wicket.spring.injection.annot.SpringComponentInjector mentioned in the API doc. This class does not exist! I've only found wicket.spring.injection.annot.SpringComponentInjector. The missing org.apache should be irrelevant, but the following example doesn't work: package some.package; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; import wicket.spring.injection.annot.SpringComponentInjector; public class WickiApplication extends WebApplication { @Override public void init() { addComponentInstantiationListener(new SpringComponentInjector(this)); } // ... } The compiler says: cannot find symbol. symbold: constructor SpringComponentInjector(...) SpringComponentInjector is on the classpath, the import is correct, but it doesn't work. Have you any idea why? Thanks. Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Avoid serialization troubles with static members
but if you just use static fields then the only thing you have to do in your app is when the Application.init() is called you just set them once through a static setter on that component. (or reflection) So you have to do all your injection over your components onces at startup of your application. You just inject class instances not object instances johan On Thu, Feb 19, 2009 at 11:27, Christian Helmbold christian.helmb...@yahoo.de wrote: a static service inside a component? Why not? Services are typically singletons and I can't see a problem to share an instance. From the dependency point of view it is equal to use * static Service svc, * transient Service svc or * Service svc I think the disadvantage of my solution is the inversion of inversion of control ;-) But even if I start to use the Spring annotation, I'm interested in possible disadvantages of using static members to avoid serialization. Maybe there will be a use case where dependencies are not important ... Thanks. Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: Avoid serialization troubles with static members
if the org.apache is missing, you're using an old version of wicket. check your dependencies for 1.2 versions (the version before wicket moved to apache) for the DI stuff: I'm using the annotation approach throughout my applications and never had any problems regards, Michael christian.helmbold wrote: Thanks for your answer. Wouldn't it be sufficient to use a static member to hold a reference to a service? i.e. public class SomeWicketComponent{ private static MyService service; // ... } How would you intialize these? Would you have a static getter, and force yourself to remember to always use it? Or would you have a static setter and centralize the initialization code somewhere else? Either way sounds ugly to me. This is the DI problem, but in this step I only regarded the serialization problem. I wanted to fetch object as you described it: MyService svc = (MyService) MyApp.getBean(myService); Let's see, where to start... - it's ugly - the cast and the bean name can fail in a way that is only detectable at runtime - it ties all your components to your application class - it's difficult to test, since you need to mock up a MyApp instance for your component to work You're right. My solution is like a solution without DI and with all the dependency troubles DI should avoid. What don't you like about them? Annotations are often missused and they bring a declarative programming style to Java. Sometimes you don't know what happens in the background. A programm can better be understood if you can follow the instruction instead of guessing how annotions will be interpreted. I think of Spring MVC where a @Controller exists. It indicates that you want the class to be a controller. But you don't see how the controller must look like, you don't see that you need other annotations to get your controller working. The old style with extendig some framework classes are much more readable but a bit more verbose. But there are also some good use cases for annotations like JPA and maybe the mentonioned annotation to integrate Spring in Wicket. I tried to use Spring integration but failed. I wonder about the class org.apache.wicket.spring.injection.annot.SpringComponentInjector mentioned in the API doc. This class does not exist! I've only found wicket.spring.injection.annot.SpringComponentInjector. The missing org.apache should be irrelevant, but the following example doesn't work: package some.package; import org.apache.wicket.Page; import org.apache.wicket.protocol.http.WebApplication; import wicket.spring.injection.annot.SpringComponentInjector; public class WickiApplication extends WebApplication { @Override public void init() { addComponentInstantiationListener(new SpringComponentInjector(this)); } // ... } The compiler says: cannot find symbol. symbold: constructor SpringComponentInjector(...) SpringComponentInjector is on the classpath, the import is correct, but it doesn't work. Have you any idea why? Thanks. Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Avoid-serialization-troubles-with-static-members-tp22082899p22097988.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
HTML creation tool
Any css based HTML creation tool recommended by Wicket users? -- View this message in context: http://www.nabble.com/HTML-creation-tool-tp22098061p22098061.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: AW: Avoid serialization troubles with static members
if the org.apache is missing, you're using an old version of wicket. I use Wicket 1.4 RC2. Maybe I use an old version (1.2.7) of the Spring integration. Where can I get the current version? http://cwiki.apache.org/WICKET/spring.html says nothing about where to download it (without maven).. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: HTML creation tool
Any css based HTML creation tool recommended by Wicket users? Are you looking for a so called WYSIWYG editor? Adobe Dreamweaver is my favorite. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: AW: Avoid serialization troubles with static members
then I'd recommend using maven (or similar) :-) managing all dependencies manually seems to me quite masochistically and yepp, you're using an old version of spring integration then ... christian.helmbold wrote: if the org.apache is missing, you're using an old version of wicket. I use Wicket 1.4 RC2. Maybe I use an old version (1.2.7) of the Spring integration. Where can I get the current version? http://cwiki.apache.org/WICKET/spring.html says nothing about where to download it (without maven).. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Avoid-serialization-troubles-with-static-members-tp22082899p22098368.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Can a TreeTable be pagable?
-- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: AW: Avoid serialization troubles with static members
Yes, but if the frameworks and tools can make you actually more productive, why not use them? The @SpringBean annotation-based approach just works. I've never had any troubles with it and I really don't have to think about it. There's a very shallow learning curve, especially if you're already using Spring. If I've got a need for something in my spring context, I create a field for it and slap that annotation on it and I'm done. I don't have to make sure I initialize some static field in my application class. I don't have to worry about serialization issues. It just works. As Ron Burgundy said, sixty percent of the time, it works every time. :) On Thu, Feb 19, 2009 at 6:38 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: then I'd recommend using maven (or similar) :-) I try to use only tools I really nead. Sometimes it seems to me that in Java programming most time is spent in frameworks and tools and not in the programming itself. But, yes, I know the JAR hell and time for maven (or Ivy?) has been come to me ... Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Remove ancient Spring integration
I've downloaded the Wicket-Spring integration from http://sourceforge.net/project/showfiles.php?group_id=119783package_id=182494 but this site seems to be dead. Is one of the mainters here? Please remove this dead project from Source Forge to avoid confusion. Tanks. Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: HTML creation tool
Thank you for your post! Yes, I would imagine a WYSIWYG editor would be best. Are there any open source or freeware tools you like? christian.helmbold wrote: Any css based HTML creation tool recommended by Wicket users? Are you looking for a so called WYSIWYG editor? Adobe Dreamweaver is my favorite. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/HTML-creation-tool-tp22098061p22099181.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: Avoid serialization troubles with static members
If you don't want to use maven, then download the distribution of Wicket, and look in the lib folder. All the wicket jars are there. How did you get wicket-1.4-rc2.jar then? Martijn On Thu, Feb 19, 2009 at 12:10 PM, Christian Helmbold christian.helmb...@yahoo.de wrote: if the org.apache is missing, you're using an old version of wicket. I use Wicket 1.4 RC2. Maybe I use an old version (1.2.7) of the Spring integration. Where can I get the current version? http://cwiki.apache.org/WICKET/spring.html says nothing about where to download it (without maven).. Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: AW: HTML creation tool
I've searched several times for open source WYSIWYG HTML editors but all I've found is poor - especially compared to Dreamweaver. Dreamweaver is not cheap but it is a good investment. You'll be very productive and it's fun! I wish there would be something comparable in the open source sphere. Regards, Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Remove ancient Spring integration
How is matching the right versions of your dependencies confusing? Did you care to take a look inside your Wicket distribution that we carefully crafted such that everything is available in one download (Wicket Ultimate)? Did you take a look at the location where you downloaded the wicket jar and see if there were other dependencies with that same version that might be of interest? If you do your dependency management yourself, you are responsible for finding them yourself too, and use the proper distributions. I don't know where you got your wicket jar from, but if it is from the apache-wicket-1.4-rc2.zip then there's this LIB folder with the wicket-1.4-rc2.jar and *EVERY* other sub project jar. If it is from a Maven repository, then why are you not using Maven to manage your dependencies? Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Remove ancient Spring integration
How is matching the right versions of your dependencies confusing? I found the mentioned website and looked for the most recent version. I thought that this was the official and only site to get Wicket's Spring integration. Did you care to take a look inside your Wicket distribution that we carefully crafted such that everything is available in one download (Wicket Ultimate)? I must admit that I missed that. I didn't expect the Spring integration there for some reason. Thanks for the hint! I don't know where you got your wicket jar from, but if it is from the apache-wicket-1.4-rc2.zip then there's this LIB folder with the wicket-1.4-rc2.jar and *EVERY* other sub project jar. If it is from a Maven repository, then why are you not using Maven to manage your dependencies? It is from http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc2 but I will use Maven or Ivy in the future. Thanks for your help. Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Yet another Wicket quick start application...
True. And I have no problem with that. I'll update the wiki with what I know before the end of the week. However, I believe the good management of projects is in large part what makes them a success. On Wed, Feb 18, 2009 at 11:54 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Most pages you refer to (apart from those that are in the wicket.apache.org style) are WIKI pages. This means *you* can modify them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI. If you want to contribute text to the main wicket site, you can attach it to a JIRA issue. etc. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[announce] Apache Wicket Merchandise awards
Hi Guys The first award for helping the Wicket community goes to Daan van Etten for providing graphics to the merchandise... You can read more about the merchandise shop and nominate your own favorite here: http://ninomartinez.wordpress.com/2009/02/19/apache-wicket-merchandise-shop/ And please nominate someone :) Best regards Nino
Re: HTML creation tool
I just use the eclipse html/css syntax support.. And then check if it's working with Firefox and then with browsershots.org for a larger amount of browsers. 2009/2/19 Edwin Ansicodd erik.g.hau...@gmail.com Any css based HTML creation tool recommended by Wicket users? -- View this message in context: http://www.nabble.com/HTML-creation-tool-tp22098061p22098061.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with ListMultipleChoice component
Yes, and thanks for the quick response. What is missing from the example is how to read the list of selected items. Here is some of my code fragments. Any thoughts? private LinkedListDeviceGeneric addDevicesList = new LinkedListDeviceGeneric(); ... add(new ListMultipleChoice(devicesOutChain, new PropertyModel(this, addDevicesList), createListOfOptions())); My thoughts was that addDeviceList would then contain the list of DeviceGeneric items that were selected from the list created by createListOfOptions(). Am I missing something here? David Timo Rantalaiho wrote: On Wed, 18 Feb 2009, David R Robison wrote: I'm having trouble with the ListMultipleChoice component. It displays correctly, but when I submit the form, the server side code does not see any items selected. Any thoughts? Can anyone point me to a good example? Have you checked out wicket-examples from svn and then checked out this? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.ListMultipleChoicePage Best wishes, Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately.
Re: HTML creation tool
My favorite CSS based HTML creation tool is Rent-A-Coder. John- On Thu, Feb 19, 2009 at 2:59 AM, Edwin Ansicodd erik.g.hau...@gmail.com wrote: Any css based HTML creation tool recommended by Wicket users? -- View this message in context: http://www.nabble.com/HTML-creation-tool-tp22098061p22098061.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicket extensions: Palette
Hi I use the Palette component and I need to fill both palette's lists when I create palette. For example, a have ListString availableValues = new ArrayListString(); // add 5 strings into this list ListString selectedValues = new ArrayListString(); // add 3 strings creating palette (this is pseudo-code): Palette palette = new Palette(availableValues, selectedValues, ...) when palette shows on screen, there are only 5 values in Available list, but Selected list is empty. I have read the javadoc, but found nothing. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Problem with Forms within Navomatic
Hello ! I'm new to wicket, after testing the navomaticBorder stuff, i got a question about adding a form into the span wicket:id = navomaticBorder /span area: Doing this drops a hierarchy does not match Error... Any suggestions about MarkupContainer and hierarchies are welcome! Thanks in advance Hagen -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket extensions: Palette
I think your selected strings should match those in available.. I cant remember if palette uses a choicerender.. Then you implement a custom one.. I'd recommend using models anyhow.. 2009/2/19 Vasily Vasilkov chand0s@gmail.com Hi I use the Palette component and I need to fill both palette's lists when I create palette. For example, a have ListString availableValues = new ArrayListString(); // add 5 strings into this list ListString selectedValues = new ArrayListString(); // add 3 strings creating palette (this is pseudo-code): Palette palette = new Palette(availableValues, selectedValues, ...) when palette shows on screen, there are only 5 values in Available list, but Selected list is empty. I have read the javadoc, but found nothing. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problem with Forms within Navomatic
Sorry i forgot to put the code snippets into the mail: Hello ! I'm new to wicket, after testing the navomaticBorder stuff, i got a question about adding a form into the span wicket:id = navomaticBorder /span area: Doing this drops a hierarchy does not match Error... Any suggestions about MarkupContainer and hierarchies are welcome! Thanks in advance Hagen Page2.html == html xmlns:wicket=http://wicket.apache.org/; head titlePage2/title /head body h1Page2/h1 div wicket:id = mainNavigation style = width:250px/ span wicket:id = navomaticBorder div style = width:850px centerh3Erfassung Schicht/h3/center hr form wicket:id=input div input type=text wicket:id=text / input value=Add type=submit / /div /form /div /span /body /html ==end of code Page2.java: == package template; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; public class Page2 extends WebPage { /** Add components to be displayed on page. */ public Page2() { add (new InputForm(input)); } public class InputForm extends Form { public InputForm(String id) { super(id); add(new TextField(text)); } } } =EndofCode== -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[JOB] Web application developer (The Hague, Netherlands)
At the Huygens Institute in The Hague, two positions are available for web application developers, preferably with Wicket experience. Digital text editions and building text analysis tools play an important role in research and development at the Huygens Institute. In close cooperation with text researchers and editors, the Software Research Development Team builds scientifically founded software for the online production, publication, and analysis of texts, image material and data sets in the humanities. A full job description (in Dutch) can be found here: http://www.huygensinstituut.knaw.nl/index.php?option=com_contenttask=viewid=77Itemid=52#ontwikkelaars -- Reinout van Schouwen - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problems with ListMultipleChoice component
Opps... Due to a cut and paste error I had default form processing set to false. Now don't I feel silly! Thanks, David David R Robison wrote: Yes, and thanks for the quick response. What is missing from the example is how to read the list of selected items. Here is some of my code fragments. Any thoughts? private LinkedListDeviceGeneric addDevicesList = new LinkedListDeviceGeneric(); ... add(new ListMultipleChoice(devicesOutChain, new PropertyModel(this, addDevicesList), createListOfOptions())); My thoughts was that addDeviceList would then contain the list of DeviceGeneric items that were selected from the list created by createListOfOptions(). Am I missing something here? David Timo Rantalaiho wrote: On Wed, 18 Feb 2009, David R Robison wrote: I'm having trouble with the ListMultipleChoice component. It displays correctly, but when I submit the form, the server side code does not see any items selected. Any thoughts? Can anyone point me to a good example? Have you checked out wicket-examples from svn and then checked out this? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=:org.apache.wicket.examples.compref.ListMultipleChoicePage Best wishes, Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 This e-mail communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed. If you are not the intended recipient, you should immediately stop reading this message and delete it from all computers that it resides on. Any unauthorized reading, distribution, copying or other use of this communication (or its attachments) is strictly prohibited. If you have received this communication in error, please notify us immediately. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
London Wicket Event
Hi Cemal, Op donderdag 05-02-2009 om 01:39 uur [tijdzone -0800], schreef jWeekend: It looks like we already have 5 or 6 people quite keen to join in from our London Wicket Event last night, (...) On behalf of my colleague Ronald and myself I'd just like to mention that our short visit to London for the Wicket Event on February 4th was well worth it. Very informative talks on Scala and Wicket and some productive discussions afterwards. Thanks and till next time! -- Reinout van Schouwen Huygens Institute Royal Netherlands Academy of Arts and Sciences - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket newbie - Quickstart help required
Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
form - ajax submit and validation
Hi guys, I have form and AjaxButton as submit button for the form. If I use non ajax button validation is called and input fields are validated. But If I use AjaxButton then validation are passedWhat should I do to get form validated even If I use ajax button? thank you, Vitek
Re: sepearte stylesheet refrences for page and panel
Hi: Jeremy sorry for the late reply, HeaderContributor is now working, the reason it was not working before because I didn't pay attention that I had to use add(HeaderContributor.forCss(RegisteredUserPanel.class, register.css) ) in my code instead of just HeaderContributor.forCss(RegisteredUserPanel.class, register.css) Jeremy Thomerson-5 wrote: HeaderContributor is definitely the standard way of doing this (StyleSheetReference is only used once in all of Wicket code). I would suggest figuring out how to get the HeaderContributor working. Open a new thread on what's not working, and paste your code (where you add the HC in java and your HTML for your base page template that all your other pages extend from, if you have one, or any page that you added the HC to). If you don't figure out why HeaderContributor isn't working, it is likely that other Wicket extensions and components will not work because they will not be able to contribute their JS or CSS to the head. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 4:05 PM, rjilani jil...@lifebiosystems.com wrote: Thanks Jeremy for your suggestions. You were right the wicket link for style sheet was not in wicket:panel tag and putting the link under panel tag resolved the issue. One other observation though and it worked too, I put both the style sheet linked at the page level and added both the refrences in the constructor of the page and vola it worked. E.g link wicket:id=stylesheet/ link wicket:id=stylesheetPanel/ add(new StyleSheetReference(stylesheet, PBNASLogin.class, login.css)); in page constructor add(new StyleSheetReference(stylesheetPanel, RegisteredUserPanel.class, register.css)); //in page constructor too BTW even though HeaderContributor.forCss looks the most elegant solution, it never worked for me. Regards, RJ. Jeremy Thomerson-5 wrote: Your error didn't include WHICH components failed to render. Here are a couple suggestions: 1 - in your panel, is the link tag inside the wicket:panel tag - this would be my first guess as to your problem. 2 - why not just use HeaderContributor.forCss(RegisteredUserPanel.class, register.css) in your panel (and the same in your page) - these will add the link for you, and in the head, where it should be. You don't have to put a component in the page then. -- Jeremy Thomerson http://www.wickettraining.com On Wed, Feb 18, 2009 at 3:31 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus, I am attaching two separate style sheets one for a page and one for the panel. I am attaching the style sheets in my Java code like this add(new StyleSheetReference(stylesheet, PBNASLogin.class, login.css)); //in page constructor add(new StyleSheetReference(stylesheetPanel, RegisteredUserPanel.class, register.css)); //in panel constructor here is the html mark up for page and panel respectively link wicket:id=stylesheet/ link wicket:id=stylesheetPanel/ but when I run the code I got the following wicket error The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference it in the markup (thus the component will never be rendered) My question is that is it possible to add 2 separate style sheets in a parent child markup, if yes, what is the root cause of the above error. Thanks, RJ. -- View this message in context: http://www.nabble.com/sepearte-stylesheet-refrences-for-page-and-panel-tp22088667p22088667.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/sepearte-stylesheet-refrences-for-page-and-panel-tp22088667p22089319.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/sepearte-stylesheet-refrences-for-page-and-panel-tp22088667p22103261.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
drop down default item string is erroneous
Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
Martin, Thanks for your help. I tried adding the following to my pom.xml within plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target encodingUTF-8/encoding /configuration /plugin I'm now getting a bunch of cannot find symbol errors though (see paste below). Anyone have any further suggestions? [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] cannot find symbol symbol : class TextField location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] cannot find symbol symbol : class Button location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage Martin Funk-3 wrote: maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.html Sent from the
Re: Yet another Wicket quick start application...
hi richard, part of your concerns are addressed in wickethub. i launched it a few weeks ago but time is scarce to maintain it (anyway, it is open source so anyone can access the code / contribute). there are still issues and lots of things we want to do. i'm thinking over the domain model and this will likely change to making the whole idea more useful. hopefully this will only get better in the near future. francisco -- http://wickethub.org On Thu, Feb 19, 2009 at 2:10 PM, Richard Allen richard.l.al...@gmail.com wrote: True. And I have no problem with that. I'll update the wiki with what I know before the end of the week. However, I believe the good management of projects is in large part what makes them a success. On Wed, Feb 18, 2009 at 11:54 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Most pages you refer to (apart from those that are in the wicket.apache.org style) are WIKI pages. This means *you* can modify them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI. If you want to contribute text to the main wicket site, you can attach it to a JIRA issue. etc. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
Would you please make sure what version of Java are you using. Annotaions are only supported from version 1.5 and forward. Regards, RJ. nicgould wrote: Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103741.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event
Reinout, It was good to see you and Ronald there and to know that you enjoyed your time with us - we have again had a lot of excellent feedback but it's always good (and still a bit surprising) that so many people travel, for just one night, to our events in London! Anyway, closer to home, you may be interested in the ApacheCon Europe, 2009 [1] in Amsterdam, on March 23-27, where Martijn and co are organising good looking talks/classes [2]. jWeekend will be one of the sponsors, but at the moment, it is looking most unlikely that I will be there (I am working on it). [1] http://www.eu.apachecon.com/c/aceu2009/ [2] http://cwiki.apache.org/confluence/display/WICKET/Wicket+Community+meetups+-+Amsterdam Regards - Cemal http://jWeekend.com jWeekend Reinout van Schouwen-4 wrote: Hi Cemal, Op donderdag 05-02-2009 om 01:39 uur [tijdzone -0800], schreef jWeekend: It looks like we already have 5 or 6 people quite keen to join in from our London Wicket Event last night, (...) On behalf of my colleague Ronald and myself I'd just like to mention that our short visit to London for the Wicket Event on February 4th was well worth it. Very informative talks on Scala and Wicket and some productive discussions afterwards. Thanks and till next time! -- Reinout van Schouwen Huygens Institute Royal Netherlands Academy of Arts and Sciences - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-Jiras%2C-Wednesday-11-Feb%2C-%40-jWeekend-tp21847882p22103782.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
I am using Java 1.6, here is the output of mvn --version: Maven version: 2.0.9 Java version: 1.6.0_11 OS name: linux version: 2.6.27.7-9-debug arch: i386 Family: unix rjilani wrote: Would you please make sure what version of Java are you using. Annotaions are only supported from version 1.5 and forward. Regards, RJ. nicgould wrote: Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
Maybe this spoon will feed you right: http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf 2009/2/19 nicgould wic...@nicgould.co.uk Martin, Thanks for your help. I tried adding the following to my pom.xml within plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target encodingUTF-8/encoding /configuration /plugin I'm now getting a bunch of cannot find symbol errors though (see paste below). Anyone have any further suggestions? [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] cannot find symbol symbol : class TextField location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] cannot find symbol symbol : class Button location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage Martin Funk-3 wrote: maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
Do you use an IDE? Non-IDE development using just command line tools is really masochistic. Grab eclipse, netbeans, intellij, or something that provides autocompletion, and autoimports. Martijn On Thu, Feb 19, 2009 at 5:10 PM, nicgould wic...@nicgould.co.uk wrote: I am using Java 1.6, here is the output of mvn --version: Maven version: 2.0.9 Java version: 1.6.0_11 OS name: linux version: 2.6.27.7-9-debug arch: i386 Family: unix rjilani wrote: Would you please make sure what version of Java are you using. Annotaions are only supported from version 1.5 and forward. Regards, RJ. nicgould wrote: Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103843.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Making an invisible panel visible via AjaxLink
Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22103906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
http://tinyurl.com/dmhfub On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22103906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
Maybe setOutputMarkupPlaceholderTag(outputTag) can help you? On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22103906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that should do the trick hth, michael rjilani wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104028.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
It's a forbidden link for me but I get the hint ;) will read up on Maven myself. Thanks for your help anyway. Nic Martin Funk-3 wrote: Maybe this spoon will feed you right: http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf 2009/2/19 nicgould wic...@nicgould.co.uk Martin, Thanks for your help. I tried adding the following to my pom.xml within plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target encodingUTF-8/encoding /configuration /plugin I'm now getting a bunch of cannot find symbol errors though (see paste below). Anyone have any further suggestions? [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] cannot find symbol symbol : class TextField location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] cannot find symbol symbol : class Button location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage Martin Funk-3 wrote: maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands,
Re: drop down default item string is erroneous
i just ran the tests and Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 also, your log shows that there are 0 errors and failures, so how come you have failed tests listed below? -igor On Thu, Feb 19, 2009 at 7:53 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
this has nothing to do with maven, looks like you are missing imports for classes like Form and Model. like Martjin said, use an ide. -igor On Thu, Feb 19, 2009 at 8:29 AM, nicgould wic...@nicgould.co.uk wrote: It's a forbidden link for me but I get the hint ;) will read up on Maven myself. Thanks for your help anyway. Nic Martin Funk-3 wrote: Maybe this spoon will feed you right: http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf 2009/2/19 nicgould wic...@nicgould.co.uk Martin, Thanks for your help. I tried adding the following to my pom.xml within plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target encodingUTF-8/encoding /configuration /plugin I'm now getting a bunch of cannot find symbol errors though (see paste below). Anyone have any further suggestions? [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] cannot find symbol symbol : class TextField location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] cannot find symbol symbol : class Button location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage Martin Funk-3 wrote: maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22103676.html Sent from
Re: Problem with Forms within Navomatic
you are putting the form inside the border, so you have to add it to the border or make the border transparent by overriding istransparentresolver() and returning true. -igor On Thu, Feb 19, 2009 at 6:42 AM, Hagen Dasz hagend...@gmx.de wrote: Sorry i forgot to put the code snippets into the mail: Hello ! I'm new to wicket, after testing the navomaticBorder stuff, i got a question about adding a form into the span wicket:id = navomaticBorder /span area: Doing this drops a hierarchy does not match Error... Any suggestions about MarkupContainer and hierarchies are welcome! Thanks in advance Hagen Page2.html == html xmlns:wicket=http://wicket.apache.org/; head titlePage2/title /head body h1Page2/h1 div wicket:id = mainNavigation style = width:250px/ span wicket:id = navomaticBorder div style = width:850px centerh3Erfassung Schicht/h3/center hr form wicket:id=input div input type=text wicket:id=text / input value=Add type=submit / /div /form /div /span /body /html ==end of code Page2.java: == package template; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; public class Page2 extends WebPage { /** Add components to be displayed on page. */ public Page2() { add (new InputForm(input)); } public class InputForm extends Form { public InputForm(String id) { super(id); add(new TextField(text)); } } } =EndofCode== -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket extensions: Palette
selected has to be a subset of available, so also add your selected strings to available. -igor On Thu, Feb 19, 2009 at 6:09 AM, Vasily Vasilkov chand0s@gmail.com wrote: Hi I use the Palette component and I need to fill both palette's lists when I create palette. For example, a have ListString availableValues = new ArrayListString(); // add 5 strings into this list ListString selectedValues = new ArrayListString(); // add 3 strings creating palette (this is pseudo-code): Palette palette = new Palette(availableValues, selectedValues, ...) when palette shows on screen, there are only 5 values in Available list, but Selected list is empty. I have read the javadoc, but found nothing. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Remove ancient Spring integration
sf.net is alive to make wicket 1.2.x and all its dependencies available. wicket-1.3.x lives in apache. -igor On Thu, Feb 19, 2009 at 3:45 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: I've downloaded the Wicket-Spring integration from http://sourceforge.net/project/showfiles.php?group_id=119783package_id=182494 but this site seems to be dead. Is one of the mainters here? Please remove this dead project from Source Forge to avoid confusion. Tanks. Christian -- http://www.groovy-forum.de - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drop down default item string is erroneous
Hi. Sorry the complete print out is... Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Tests run: 768, Failures: 3, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. svn info gives, URL: http://svn.apache.org/repos/asf/wicket/trunk I just ran svn up, and then mvn clean install. Regards, Ross igor.vaynberg wrote: i just ran the tests and Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 also, your log shows that there are 0 errors and failures, so how come you have failed tests listed below? -igor On Thu, Feb 19, 2009 at 7:53 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22104407.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
Thanks Michael the trick worked like a charm. Best Regards, RJ. Michael Sparer wrote: put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that should do the trick hth, michael rjilani wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104436.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
setoutputmarkupplaceholdertag that ernesto mentioned is the non-trick solution to your problem. -igor On Thu, Feb 19, 2009 at 8:39 AM, rjilani jil...@lifebiosystems.com wrote: Thanks Michael the trick worked like a charm. Best Regards, RJ. Michael Sparer wrote: put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that should do the trick hth, michael rjilani wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104436.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can a TreeTable be pagable?
it doesnt make sense to have a pageable tree -igor On Thu, Feb 19, 2009 at 3:36 AM, CraigGreenhalhj craig.greenha...@intersoftsolutions.co.uk wrote: -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
Thanks Martijn it was cute:-) next time I remember it. BTW my Kudos to you for writing such an awesome book on Wicket. Really good work. Best Regards, RJ. Martijn Dashorst wrote: http://tinyurl.com/dmhfub On Thu, Feb 19, 2009 at 5:14 PM, rjilani jil...@lifebiosystems.com wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22103906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104606.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
The key, as others have alluded to and you discovered yourself, is that setting a component's visibility to false will cause that component to not be rendered. I know in the back of some people minds (mine included) we think invisible means it's there, we just can't see it). Well, in this case invisible means it's not rendered at all. This is all just semantics until you try to change that visibility on the client side (i.e. AJAX). Since it's not there to being with, you can't really do client side modifications of it. So, as Michael pointed out, you can instead put what you want to make invisible inside a container and then use the Ajax functionality to update that container and not the invisible item itself. The container will be re-rendered and now that the internal item is set to visible it will be rendered right along with its parent container. Matt -- Michael Sparer wrote: put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that should do the trick hth, michael rjilani wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104664.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback message isn't displayed
I'm seeing the same issue with 1.4 rc2. Gary On Wed, Feb 18, 2009 at 1:17 AM, Jakub Srba jakub.s...@email.cz wrote: Here is a simpler example that doesn't work for me either: ProblemPage.java: public class ProblemPage extends WebPage { @SuppressWarnings(serial) public ProblemPage() { add(new FeedbackPanel(feedback)); error(this error message is displayed); final IModelString helloModel = new LoadableDetachableModelString() { @Override protected String load() { error(this error message is NOT displayed); return Hello message; } }; add(new Label(hello, helloModel)); } } ProblemPage.html: html body div wicket:id=hello[hello]/div div wicket:id=feedback[feedback messages]/div /body /html First message is displayed, the second one isn't and in the output console I can read: Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = this error message is NOT displayed, reporter = 0, level = ERROR] Cristiano Kliemann wrote: Maybe you are calling the error method of a wrong component. Can you send some code snippet? -- Cristiano On Tue, Feb 17, 2009 at 9:59 AM, Jakub Srba jakub.s...@email.cz wrote: Hi I have LoadableDetachableModel model1. In load method it calls error(String). When I put model1 into Label, the error message is displayed in my FeedbackPanel. Then I have PropertyModel model2, that wraps model1. This time, when I put model2 into Label, the error message isn't displayed. Do you have any idea what do I do wrong? Jakub Srba -- View this message in context: http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22056824.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22074113.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Gary Evesson
Re: Problem with Forms within Navomatic
Thank You Igor ! That helps, i added it to my border... Snippet: NavomaticBorder navomaticBorder = new NavomaticBorder(navomaticBorder); navomaticBorder.add(new Test(formTest)); add (navomaticBorder); and it works! hagen Original-Nachricht Datum: Thu, 19 Feb 2009 08:33:29 -0800 Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Betreff: Re: Problem with Forms within Navomatic you are putting the form inside the border, so you have to add it to the border or make the border transparent by overriding istransparentresolver() and returning true. -igor On Thu, Feb 19, 2009 at 6:42 AM, Hagen Dasz hagend...@gmx.de wrote: Sorry i forgot to put the code snippets into the mail: Hello ! I'm new to wicket, after testing the navomaticBorder stuff, i got a question about adding a form into the span wicket:id = navomaticBorder /span area: Doing this drops a hierarchy does not match Error... Any suggestions about MarkupContainer and hierarchies are welcome! Thanks in advance Hagen Page2.html == html xmlns:wicket=http://wicket.apache.org/; head titlePage2/title /head body h1Page2/h1 div wicket:id = mainNavigation style = width:250px/ span wicket:id = navomaticBorder div style = width:850px centerh3Erfassung Schicht/h3/center hr form wicket:id=input div input type=text wicket:id=text / input value=Add type=submit / /div /form /div /span /body /html ==end of code Page2.java: == package template; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Form; import org.apache.wicket.markup.html.form.TextField; public class Page2 extends WebPage { /** Add components to be displayed on page. */ public Page2() { add (new InputForm(input)); } public class InputForm extends Form { public InputForm(String id) { super(id); add(new TextField(text)); } } } =EndofCode== -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
bookmarkable links
Hi, I am beginnig on Wicket. Well, my questions is: Diferences beetwen bookmarkablelink and links - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Making an invisible panel visible via AjaxLink
uff. yeah right :-) igor.vaynberg wrote: setoutputmarkupplaceholdertag that ernesto mentioned is the non-trick solution to your problem. -igor On Thu, Feb 19, 2009 at 8:39 AM, rjilani jil...@lifebiosystems.com wrote: Thanks Michael the trick worked like a charm. Best Regards, RJ. Michael Sparer wrote: put the panel in an additional container and add this container WebmarkupContainer div = new WebmarkupContainer(cont); div.setOutputMarkupId(true); div.add(registeredUserPanel.setVisible(false)); then in the onclick stuff registeredUserPanel.setVisible(true); target.addComponent(div); that should do the trick hth, michael rjilani wrote: Hi: Gurus I am trying to make an invisible panel visible via Ajax link, but got stuck at a point where I don't know how to proceed further. Please see the code snipet below final RegisteredUserPanel registeredUserPanel = new RegisteredUserPanel(registrationPanel); add(registeredUserPanel); registeredUserPanel.setOutputMarkupId(true); registeredUserPanel.setVisible(false); add(new AjaxLink(registerLink) { @Override public void onClick(AjaxRequestTarget target) { registeredUserPanel.setVisible(true); target.addComponent(registeredUserPanel); } }); the problem is that when I call registeredUserPanel.setVisible(false), becuase by defualt I don't want this pannel to be visible; the wicket don't render the html markup for the pannel at all and hence the ajax calls fails becuase it don't find the markup to render the panel. Any suggestions how to tackle a situation like this. Regards, RJ -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104436.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Making-an-invisible-panel-visible-via-AjaxLink-tp22103906p22104792.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drop down default item string is erroneous
im guessing this is one of those issues that doesnt show up on windows. what platform are you working on? -igor On Thu, Feb 19, 2009 at 8:38 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi. Sorry the complete print out is... Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Tests run: 768, Failures: 3, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. svn info gives, URL: http://svn.apache.org/repos/asf/wicket/trunk I just ran svn up, and then mvn clean install. Regards, Ross igor.vaynberg wrote: i just ran the tests and Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 also, your log shows that there are 0 errors and failures, so how come you have failed tests listed below? -igor On Thu, Feb 19, 2009 at 7:53 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22104407.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can a TreeTable be pagable?
I disagree. Here the senario. I have a tree table with 10 parent nodes. I have this is a pageable table (2 pages of 5 rows). I open up the 1st node in the 1st page, it has 50 children in, this increases the overall rows in the table and hence number of pages. It still maintains only 5 rows per page (ie 1st page has 1 parent, 4 children, 2 page has 5 children etc). Because the number of pages has increased to take into account the number of visable children I can easily navigate from page to page without having to scroll down all the children. When I have a node that has 10k children it clearly has to be paged has anyone else needed something like this? Craig igor.vaynberg wrote: it doesnt make sense to have a pageable tree -igor On Thu, Feb 19, 2009 at 3:36 AM, CraigGreenhalhj craig.greenha...@intersoftsolutions.co.uk wrote: -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22104803.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: form - ajax submit and validation
I think more information is needed before someone can provide a useful response: Are you initializing the AjaxButton with the form (in the the constructor of the AjaxButton or with setter)? Is the form data being submitted? If not, this would indicate a problem somewhere other than in the validation itself. Can you show your actual code? Vitek.Tajzich wrote: Hi guys, I have form and AjaxButton as submit button for the form. If I use non ajax button validation is called and input fields are validated. But If I use AjaxButton then validation are passedWhat should I do to get form validated even If I use ajax button? thank you, Vitek -- View this message in context: http://www.nabble.com/form---ajax-submit-and-validation-tp22102523p22104799.html Sent from the Wicket - User mailing list archive at Nabble.com.
Re: Can a TreeTable be pagable?
If you have node that has 10k children then it is obvious that there is something wrong either with your data structure or the way you present it. Pageable tree doesn't make much sense. If you are on 15th page, how do you know what parents the nodes you see have? It's against the purpose of tree - to hierarchically structure the data. -Matej On Thu, Feb 19, 2009 at 6:18 PM, CraigGreenhalgh craig.greenha...@intersoftsolutions.co.uk wrote: I disagree. Here the senario. I have a tree table with 10 parent nodes. I have this is a pageable table (2 pages of 5 rows). I open up the 1st node in the 1st page, it has 50 children in, this increases the overall rows in the table and hence number of pages. It still maintains only 5 rows per page (ie 1st page has 1 parent, 4 children, 2 page has 5 children etc). Because the number of pages has increased to take into account the number of visable children I can easily navigate from page to page without having to scroll down all the children. When I have a node that has 10k children it clearly has to be paged has anyone else needed something like this? Craig igor.vaynberg wrote: it doesnt make sense to have a pageable tree -igor On Thu, Feb 19, 2009 at 3:36 AM, CraigGreenhalhj craig.greenha...@intersoftsolutions.co.uk wrote: -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22104803.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DatePicker configuration isn't always working
We are trying to use the DatePicker, only allowing the selection of days 5-25 of each month. We've tried adding the following renderer to work with the OutOfBoundsDate, but it doesn't work when the calendar is initially shown. For example, if the pageDate of the calendar is set to 03/2009, the 1st through the 4th of April and May will be disabled as expected, but the 1st through the 4th of March will be enabled. When navigating back to March, the 1st through the 4th are then disabled, as expected! Also, closing the calendar and reopening it disables the 1st through the 4th, which is what we want... but we want it to start out with those dates disabled. for ( int i = minCal.get(Calendar.*MONTH*); i = maxCal.get(Calendar.MONTH); i++){ javascript += ${calendar}.addRenderer(\ + (i + 1) + /1\, ${calendar}.renderOutOfBoundsDate);; javascript += ${calendar}.addRenderer(\ + (i + 1) + /2\, ${calendar}.renderOutOfBoundsDate);; javascript += ${calendar}.addRenderer(\ + (i + 1) + /3\, ${calendar}.renderOutOfBoundsDate);; javascript += ${calendar}.addRenderer(\ + (i + 1) + /4\, ${calendar}.renderOutOfBoundsDate);; We also thought we might do something special on the 'init' method, and we noticed an old 'appendToInit' method, but it's deprecated. Thanks for any ideas. Trent
ACEGI and Kerberos Security
Does anyone have an example of integrating ACEGI security with Kerberos authentication in a Wicket application? Thanks, David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com book: http://www.xulonpress.com/book_detail.php?id=2579 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to hide parameter in URL? for parameters
A post isn't always the answer, obviously, if you need a bookmarkable page. Look at the IndexedParamUrlCodingStrategy - that's what you need. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com wrote: use a post request !! tawus On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote: Dear all, I am doing a project , there is one url with some parameters as below http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834 If I set mountBookmarkablePage in webApplication for CompanyDetail like that: mountBookmarkablePage(/company, CompanyDetail.class); The url will be changed to http://localhost:8080/dira/company/originPage/company/organizationId/191834/ how Can I hide the parameters? like http://localhost:8080/dira/company thanks wch -- View this message in context: http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket newbie - Quickstart help required
things that happen while beeing in haste ;-) its this, what I meant: http://www.sonatype.com/maven/documentation/download-book?file=books/maven-definitive-guide.pdf which 'seriously' is a readable source for information. at least on the maven subject. mf 2009/2/19 nicgould wic...@nicgould.co.uk It's a forbidden link for me but I get the hint ;) will read up on Maven myself. Thanks for your help anyway. Nic Martin Funk-3 wrote: Maybe this spoon will feed you right: http://www.sonatype.com/download.php?file=books/maven-definitive-guide.pdf 2009/2/19 nicgould wic...@nicgould.co.uk Martin, Thanks for your help. I tried adding the following to my pom.xml within plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source1.5/source target1.5/target encodingUTF-8/encoding /configuration /plugin I'm now getting a bunch of cannot find symbol errors though (see paste below). Anyone have any further suggestions? [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,1] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[28,20] cannot find symbol symbol : class Form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,14] cannot find symbol symbol : class TextField location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,39] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[35,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,14] cannot find symbol symbol : class Button location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,38] cannot find symbol symbol : class Model location: class com.mycompany.HomePage /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[36,1] cannot find symbol symbol : variable form location: class com.mycompany.HomePage Martin Funk-3 wrote: maybe this helps. http://fisheye3.atlassian.com/browse/wicket-stuff/trunk/wicketstuff-core/pom.xml?r=4567#l383 maven obviously compiles with java version 1.3 if you use annotations you need to compile against 1.5 the maven compiler plugin needs to be configured as in the example above. mf 2009/2/19 nicgould wic...@nicgould.co.uk Hi there, I set up a wicket 1.3.5 project using the quickstart instructions from wicket.apache.org. I successfully got the test page up and running using Jetty. I tried adding a basic form with a textbox to the page using code taken from Wicket in Action. However when recompiling I got the following error from Maven: [INFO] Compilation failure /home/nic/myproject/src/main/java/com/mycompany/HomePage.java:[29,4] annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @override This is my first foray into Wicket so apologies if this is an obvious error - I searched the list first but couldn't find anything that looked like the same issue. I'd be grateful for any assistance anyone can offer. I am using Wicket 1.3.5, Java 1.6 on Linux and Maven 2.0.9 and my Homepage constructor now looks like this: public HomePage(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, If you see this message wicket is properly configured and running)); //Member lookup form Form memform = new Form(memform){ @override protected void onSubmit(){ System.out.println(Form onSubmit is called); } }; add(memform); form.add(new TextField(memname, new Model())); form.add(new Button(membutton, new Model(Go)){ @override public void onSubmit(){ System.out.println(Mem button clicked); } }); // TODO Add your page's components here } -- View this message in context: http://www.nabble.com/Wicket-newbie---Quickstart-help-required-tp22102144p22102144.html Sent from the Wicket - User mailing list archive at Nabble.com. - To
Re: drop down default item string is erroneous
Mac OSX Leopard, with all the latest updates. Java 1.5.0_16 Maven 2.0.9 Wicket 1.4-SNAPSHOT revision : 745941 Regards, Ross igor.vaynberg wrote: im guessing this is one of those issues that doesnt show up on windows. what platform are you working on? -igor On Thu, Feb 19, 2009 at 8:38 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi. Sorry the complete print out is... Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Tests run: 768, Failures: 3, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. svn info gives, URL: http://svn.apache.org/repos/asf/wicket/trunk I just ran svn up, and then mvn clean install. Regards, Ross igor.vaynberg wrote: i just ran the tests and Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 also, your log shows that there are 0 errors and failures, so how come you have failed tests listed below? -igor On Thu, Feb 19, 2009 at 7:53 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22104407.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22105594.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: drop down default item string is erroneous
i guess this will have to wait for martijn or matej or someone else with a mac/unix to debug. -igor On Thu, Feb 19, 2009 at 9:44 AM, rossputin rossaj...@yahoo.co.uk wrote: Mac OSX Leopard, with all the latest updates. Java 1.5.0_16 Maven 2.0.9 Wicket 1.4-SNAPSHOT revision : 745941 Regards, Ross igor.vaynberg wrote: im guessing this is one of those issues that doesnt show up on windows. what platform are you working on? -igor On Thu, Feb 19, 2009 at 8:38 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi. Sorry the complete print out is... Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Tests run: 768, Failures: 3, Errors: 0, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. svn info gives, URL: http://svn.apache.org/repos/asf/wicket/trunk I just ran svn up, and then mvn clean install. Regards, Ross igor.vaynberg wrote: i just ran the tests and Tests run: 768, Failures: 0, Errors: 0, Skipped: 0 also, your log shows that there are 0 errors and failures, so how come you have failed tests listed below? -igor On Thu, Feb 19, 2009 at 7:53 AM, rossputin rossaj...@yahoo.co.uk wrote: Hi guys, hoping you can help. At some point during the last couple of days, possibly today, I received some dependency updates, and now all of my DropDownChoice components are displaying a nonsense string for the default item instead of 'Choose One'. I typically point to the 1.4-SNAPSHOT dependency for Wicket. Perhaps related, the tests are failing for 1.4-SNAPSHOT with the latest updates as below: Running org.apache.wicket.resource.BundleStringResourceLoaderTest Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 sec Results : Failed tests: testDefault(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInQueryParameter(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) testUmlautsInRequestUri(org.apache.wicket.redirect.encodingtest.RequestEncodingTest) Regards, Ross. -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22103460.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22104407.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/drop-down-default-item-string-is-erroneous-tp22103460p22105594.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can a TreeTable be pagable?
I'm bound by client requirements for the data structure so there's not much I can do about having 10k children. I'm trying to resolve the ways its presented by having a pageable tree table! In response to If you are on 15th page, how do you know what parents the nodes you see have? It's against the purpose of tree - to hierarchically structure the data. You could have a breadcrumb indicator to show where the 1st x number of rows are in the hierachy. Matej Knopp-2 wrote: If you have node that has 10k children then it is obvious that there is something wrong either with your data structure or the way you present it. Pageable tree doesn't make much sense. If you are on 15th page, how do you know what parents the nodes you see have? It's against the purpose of tree - to hierarchically structure the data. -Matej On Thu, Feb 19, 2009 at 6:18 PM, CraigGreenhalgh craig.greenha...@intersoftsolutions.co.uk wrote: I disagree. Here the senario. I have a tree table with 10 parent nodes. I have this is a pageable table (2 pages of 5 rows). I open up the 1st node in the 1st page, it has 50 children in, this increases the overall rows in the table and hence number of pages. It still maintains only 5 rows per page (ie 1st page has 1 parent, 4 children, 2 page has 5 children etc). Because the number of pages has increased to take into account the number of visable children I can easily navigate from page to page without having to scroll down all the children. When I have a node that has 10k children it clearly has to be paged has anyone else needed something like this? Craig igor.vaynberg wrote: it doesnt make sense to have a pageable tree -igor On Thu, Feb 19, 2009 at 3:36 AM, CraigGreenhalhj craig.greenha...@intersoftsolutions.co.uk wrote: -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22104803.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22105890.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to hide parameter in URL? for parameters
wch, Why do you need to make a bookmarkable page and hide its parameters? It doesn't make much sense to me. The main purpose of bookmarkable pages is, like the name says, to let the user bookmark them (by copying to a text file, for example) with all the parameters needed to show what you intend to show. You can't just hide the parameters with a bookmarkable page. To completely hide them, the only choice is to use a post request. You can, however, obfuscate them with a URL coding strategy, like Jeremy said. You may use IndexedParamUrlCodingStrategy or implement your own. -- Cristiano On Thu, Feb 19, 2009 at 2:31 PM, Jeremy Thomerson jer...@wickettraining.com wrote: A post isn't always the answer, obviously, if you need a bookmarkable page. Look at the IndexedParamUrlCodingStrategy - that's what you need. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com wrote: use a post request !! tawus On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote: Dear all, I am doing a project , there is one url with some parameters as below http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834 If I set mountBookmarkablePage in webApplication for CompanyDetail like that: mountBookmarkablePage(/company, CompanyDetail.class); The url will be changed to http://localhost:8080/dira/company/originPage/company/organizationId/191834/ how Can I hide the parameters? like http://localhost:8080/dira/company thanks wch -- View this message in context: http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Can a TreeTable be pagable?
you need a different metaphor than the treetable to represent this. -gior On Thu, Feb 19, 2009 at 9:51 AM, CraigGreenhalgh craig.greenha...@intersoftsolutions.co.uk wrote: I'm bound by client requirements for the data structure so there's not much I can do about having 10k children. I'm trying to resolve the ways its presented by having a pageable tree table! In response to If you are on 15th page, how do you know what parents the nodes you see have? It's against the purpose of tree - to hierarchically structure the data. You could have a breadcrumb indicator to show where the 1st x number of rows are in the hierachy. Matej Knopp-2 wrote: If you have node that has 10k children then it is obvious that there is something wrong either with your data structure or the way you present it. Pageable tree doesn't make much sense. If you are on 15th page, how do you know what parents the nodes you see have? It's against the purpose of tree - to hierarchically structure the data. -Matej On Thu, Feb 19, 2009 at 6:18 PM, CraigGreenhalgh craig.greenha...@intersoftsolutions.co.uk wrote: I disagree. Here the senario. I have a tree table with 10 parent nodes. I have this is a pageable table (2 pages of 5 rows). I open up the 1st node in the 1st page, it has 50 children in, this increases the overall rows in the table and hence number of pages. It still maintains only 5 rows per page (ie 1st page has 1 parent, 4 children, 2 page has 5 children etc). Because the number of pages has increased to take into account the number of visable children I can easily navigate from page to page without having to scroll down all the children. When I have a node that has 10k children it clearly has to be paged has anyone else needed something like this? Craig igor.vaynberg wrote: it doesnt make sense to have a pageable tree -igor On Thu, Feb 19, 2009 at 3:36 AM, CraigGreenhalhj craig.greenha...@intersoftsolutions.co.uk wrote: -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22098653.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22104803.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Can-a-TreeTable-be-pagable--tp22098653p22105890.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to hide parameter in URL? for parameters
Sorry - I thought she wanted to hide the parameter *names* and leave the values. My bad. On Thu, Feb 19, 2009 at 11:53 AM, Cristiano Kliemann cristia...@gmail.comwrote: wch, Why do you need to make a bookmarkable page and hide its parameters? It doesn't make much sense to me. The main purpose of bookmarkable pages is, like the name says, to let the user bookmark them (by copying to a text file, for example) with all the parameters needed to show what you intend to show. You can't just hide the parameters with a bookmarkable page. To completely hide them, the only choice is to use a post request. You can, however, obfuscate them with a URL coding strategy, like Jeremy said. You may use IndexedParamUrlCodingStrategy or implement your own. -- Cristiano On Thu, Feb 19, 2009 at 2:31 PM, Jeremy Thomerson jer...@wickettraining.com wrote: A post isn't always the answer, obviously, if you need a bookmarkable page. Look at the IndexedParamUrlCodingStrategy - that's what you need. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:12 AM, taha siddiqi tawushaf...@gmail.com wrote: use a post request !! tawus On Thu, Feb 19, 2009 at 2:31 PM, wch2001 wch2...@hotmail.com wrote: Dear all, I am doing a project , there is one url with some parameters as below http://localhost:8080/dira/?wicket:bookmarkablePage=%3Asg.sphsearch.dira.web.wicket.pages.company.CompanyDetailoriginPage=companyorganizationId=191834 If I set mountBookmarkablePage in webApplication for CompanyDetail like that: mountBookmarkablePage(/company, CompanyDetail.class); The url will be changed to http://localhost:8080/dira/company/originPage/company/organizationId/191834/ how Can I hide the parameters? like http://localhost:8080/dira/company thanks wch -- View this message in context: http://www.nabble.com/how-to-hide-parameter-in-URL--for-parameters-tp22096367p22096367.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Re: bookmarkable links
bookmarkable links are bookmarkable - you can come back to them even after session is destroyed or send to a friend and they can come to them links are not bookmarkable - relative only to your session - and stateful On Thu, Feb 19, 2009 at 10:55 AM, Matías Tito mt...@zauber.com.ar wrote: Hi, I am beginnig on Wicket. Well, my questions is: Diferences beetwen bookmarkablelink and links - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Re: AW: AW: Avoid serialization troubles with static members
vi is not only a tool, but a whole platform, so that would exclude it. Personally, I find that echo import org.apache.wicket.* MyClass.java echo import java.util.* MyClass.java works best. :) j/k j/k -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 10:40 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: so you only use javac, java, and vi? :) -igor On Thu, Feb 19, 2009 at 3:38 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: then I'd recommend using maven (or similar) :-) I try to use only tools I really nead. Sometimes it seems to me that in Java programming most time is spent in frameworks and tools and not in the programming itself. But, yes, I know the JAR hell and time for maven (or Ivy?) has been come to me ... Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[wicket-rad] Problem creating form
I hope this is the right list for wicket-rad questions? (The one on SourceForge is empty.) I am trying to create a form using Wicket-RAD 0.6 and get Caused by: java.lang.NoSuchMethodError: org.wicketrad.jpa.propertyeditor.CreateBeanForm.add(Lorg/apache/wicket/ Component;)Lorg/apache/wicket/MarkupContainer; at org .wicketrad .jpa.propertyeditor.CreateBeanForm.init(CreateBeanForm.java:27) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.init(DefaultCreateBeanForm.java:47) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.init(DefaultCreateBeanForm.java:35) at org.icarbasel.aris.ui.web.pages.ProfilesPage $1.init(ProfilesPage.java:11) at org.icarbasel.aris.ui.web.pages.ProfilesPage.init(ProfilesPage.java: 11) ... 31 more Does anybody know where the problem could lie? Kaspar -- My page has markup div wicket:id=form/div and constructor public ProfilesPage() { BeanForm? form = new DefaultCreateBeanForm(form, new Profile()) { @Override protected void afterSubmit() { System.err.println(Done...); } }; add(form); } The Profile class looks like this: @Table public class Profile implements IdentifiableLong { @Column @Id @GeneratedValue private Long id; @Column(unique = true) private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } @FieldOrder(1) @TextField @Length(min = 5, max = 255) @LabelProperty public String getName() { return name; } public void setName(String name) { this.name = name; } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket-rad] Problem creating form
Hi, Wicket RAD is actually not officially part of Wicket, so the right forum is here: http://www.nabble.com/Wicket-RAD-f35257.html However, looking at your code, what version of Wicket are you using, and is it really on the classpath? the add call on the line referred to in the stacktrace is actually the add() method on Component, which should be there. hbf wrote: I hope this is the right list for wicket-rad questions? (The one on SourceForge is empty.) I am trying to create a form using Wicket-RAD 0.6 and get Caused by: java.lang.NoSuchMethodError: org.wicketrad.jpa.propertyeditor.CreateBeanForm.add(Lorg/apache/wicket/ Component;)Lorg/apache/wicket/MarkupContainer; at org .wicketrad .jpa.propertyeditor.CreateBeanForm.init(CreateBeanForm.java:27) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.init(DefaultCreateBeanForm.java:47) at org .wicketrad .jpa .propertyeditor .DefaultCreateBeanForm.init(DefaultCreateBeanForm.java:35) at org.icarbasel.aris.ui.web.pages.ProfilesPage $1.init(ProfilesPage.java:11) at org.icarbasel.aris.ui.web.pages.ProfilesPage.init(ProfilesPage.java: 11) ... 31 more Does anybody know where the problem could lie? Kaspar -- My page has markup div wicket:id=form/div and constructor public ProfilesPage() { BeanForm? form = new DefaultCreateBeanForm(form, new Profile()) { @Override protected void afterSubmit() { System.err.println(Done...); } }; add(form); } The Profile class looks like this: @Table public class Profile implements IdentifiableLong { @Column @Id @GeneratedValue private Long id; @Column(unique = true) private String name; public Long getId() { return id; } public void setId(Long id) { this.id = id; } @FieldOrder(1) @TextField @Length(min = 5, max = 255) @LabelProperty public String getName() { return name; } public void setName(String name) { this.name = name; } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/-wicket-rad--Problem-creating-form-tp22106358p22106869.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket-rad] Problem creating form
On 19.02.2009, at 19:34, wfaler wrote: Hi, Wicket RAD is actually not officially part of Wicket, so the right forum is here: http://www.nabble.com/Wicket-RAD-f35257.html Sorry! I will post a next topic to that forum. However, looking at your code, what version of Wicket are you using, and is it really on the classpath? Wicket (1.4-SNAPSHOT) is running fine and I am using Panel.add() at several other places. Only when I navigate to a page containing a Wicket-RAD form, this message appears. the add call on the line referred to in the stacktrace is actually the add() method on Component, which should be there. Yes, I looked this up in your code, but here I got stuck. I attach my pom.xml; maybe it helps? Thanks, Kaspar -- project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd modelVersion4.0.0/modelVersion groupIdorg.myorg.myproject.ui.web/groupId artifactIdmyproject-web/artifactId packagingwar/packaging version1.0-SNAPSHOT/version namemyproject/name description/description repositories repository idwicketrad/id urlhttp://wicket-rad.sourceforge.net/repo/url releases enabledtrue/enabled /releases snapshots enabledtrue/enabled /snapshots /repository /repositories organization name.../name url... /url /organization dependencies !-- WICKET DEPENDENCIES -- dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version${wicket.version}/version /dependency dependency groupIdorg.apache.wicket/groupId artifactIdwicket-extensions/artifactId version${wicket.version}/version !-- scopecompile/scope -- /dependency dependency groupIdorg.apache.wicket/groupId artifactIdwicket-datetime/artifactId version${wicket.version}/version !-- scopecompile/scope -- /dependency dependency groupIdorg.wicketstuff/groupId artifactIdwicket-contrib-tinymce/artifactId version1.3-SNAPSHOT/version /dependency dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-scriptaculous /artifactId version${wicket.version}/version /dependency dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-prototype/artifactId version${wicket.version}/version /dependency dependency groupIdorg.wicketstuff.jquery/groupId artifactIdwicketstuff-jquery/artifactId version1.3-SNAPSHOT/version /dependency dependency groupIdorg.wicketstuff/groupId artifactIdwicketstuff-rome/artifactId version1.3-SNAPSHOT/version /dependency !-- OPTIONAL dependency groupIdorg.apache.wicket/groupId artifactIdwicket-extensions/artifactId version${wicket.version}/version /dependency -- !-- LOGGING DEPENDENCIES - LOG4J -- dependency groupIdorg.slf4j/groupId artifactIdslf4j-log4j12/artifactId version1.4.2/version /dependency dependency groupIdlog4j/groupId artifactIdlog4j/artifactId version1.2.14/version /dependency !-- JUNIT DEPENDENCY FOR TESTING -- dependency groupIdjunit/groupId artifactIdjunit/artifactId version3.8.2/version scopetest/scope /dependency !-- Persistence -- dependency groupIdorg.wicketrad.jpa/groupId artifactIdwicket-rad-jpa/artifactId
Re: wicket extensions: Palette
I've done it! Two reasons why it didn't work: 1) Select list has to be sub-list of available list (thank you, Igor and Nino) 2) idExpression parameter has not to be null (e.g. new ChoiceRenderer(blah-blah-blah, null) didn't work correctly) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
onclick code generated for image
code from my html page td /audit/app/editAuditProg /audit/images/edit.gif /td wicket generated html td /audit/app/editAuditProg /audit/images/edit.gif /td [/code] wicket generated code for onclick and when user ckicks on the image it takes him to image and not to the page reffered by anchor tagplease help me resolve this -- View this message in context: http://www.nabble.com/onclick-code-generated--for-image-tp22107954p22107954.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AW: AW: Avoid serialization troubles with static members
javac is kinda redundant too. Real men sling raw bytecode. jk On Thu, Feb 19, 2009 at 12:02:36PM -0600, Jeremy Thomerson wrote: vi is not only a tool, but a whole platform, so that would exclude it. Personally, I find that echo import org.apache.wicket.* MyClass.java echo import java.util.* MyClass.java works best. :) j/k j/k -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 10:40 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: so you only use javac, java, and vi? :) -igor On Thu, Feb 19, 2009 at 3:38 AM, Christian Helmbold christian.helmb...@yahoo.de wrote: then I'd recommend using maven (or similar) :-) I try to use only tools I really nead. Sometimes it seems to me that in Java programming most time is spent in frameworks and tools and not in the programming itself. But, yes, I know the JAR hell and time for maven (or Ivy?) has been come to me ... Regards, Christian - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Uploading A File
I'm not sure exactly where this belongs, but I need to upload a file, after checking the example I noticed that it throws an internal error whenever I try to use it... That's not the behavior I hope to emulate... Does anyone have an easy way to get a file upload through wicket? Thanks! Justin -- View this message in context: http://www.nabble.com/Uploading-A-File-tp22108849p22108849.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Yet another Wicket quick start application...
I like the wickethub.org idea! Thank you for your contribution. I'm assuming the site doesn't crawl the Internet looking for Wicket things. If I'm correct, then people have to post there. Which means people have to know about it, both to benefit from it and to contribute to it. I see no mention of it on wicket.apache.org or the Wicket wiki. On Thu, Feb 19, 2009 at 11:03 AM, francisco treacy francisco.tre...@gmail.com wrote: hi richard, part of your concerns are addressed in wickethub. i launched it a few weeks ago but time is scarce to maintain it (anyway, it is open source so anyone can access the code / contribute). there are still issues and lots of things we want to do. i'm thinking over the domain model and this will likely change to making the whole idea more useful. hopefully this will only get better in the near future. francisco -- http://wickethub.org On Thu, Feb 19, 2009 at 2:10 PM, Richard Allen richard.l.al...@gmail.com wrote: True. And I have no problem with that. I'll update the wiki with what I know before the end of the week. However, I believe the good management of projects is in large part what makes them a success. On Wed, Feb 18, 2009 at 11:54 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Most pages you refer to (apart from those that are in the wicket.apache.org style) are WIKI pages. This means *you* can modify them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI. If you want to contribute text to the main wicket site, you can attach it to a JIRA issue. etc. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Uploading A File
Yes - it works well. You didn't provide the error, so of course that means that we can't help you debug it. Even short of that, I'd suspect that if you are running a recent (RC1 / RC2) release of Wicket 1.4, that you need to pass your FileUploadField a model when you instantiate it. FileUploadField fuf = new FileUploadField(file, new Model()); this used to work without the model, but it doesn't now. Please provide more information if this doesn't fix it. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 2:20 PM, walnutmon justin.m.boy...@gmail.comwrote: I'm not sure exactly where this belongs, but I need to upload a file, after checking the example I noticed that it throws an internal error whenever I try to use it... That's not the behavior I hope to emulate... Does anyone have an easy way to get a file upload through wicket? Thanks! Justin -- View this message in context: http://www.nabble.com/Uploading-A-File-tp22108849p22108849.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
image inside anchor tag
I having trouble with using image inside anchor tag , wicket is adding onclick=window.location.href='/audit/images/edit.gif';return false; so when user clicks on the link image is opened and not the link .Please help me resolve this generated code a href=/audit/app/editAuditProg img height=18 alt=Edit width=18 onclick=window.location.href='/audit/images/edit.gif';return false; src=/audit/images/edit.gif/ /a my code a href=/audit/app/editAuditProg img src=/audit/images/edit.gif width=18 height=18 alt=Edit / /a -- View this message in context: http://www.nabble.com/image-inside--anchor-tag-tp22109742p22109742.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WML + Wicket experiences?
it's totally possible. did it at a company last year (but that's proprietary, of course). Cool. Can you give a hint if you could re-use Form components in Wml? go method=post href=??? postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go What is the best way to bind href and the postfields with a wicket form? Or should I build a custom 'wap-form' which supports similar validation? ** Martin Martin Makundi wrote: Hi! There has been some discussion in the past about using Wicket for rendering WML pages: http://cwiki.apache.org/WICKET/mobile-devices.html Is there any such wml+wicket boilerplate/quickstart code available out there or would someone like to post their experiences? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/WML-%2B-Wicket-experiences--tp22076991p22081338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WML + Wicket experiences?
I've never tried it, but I would suspect that I would start by creating something like: public class WapForm extends Form { protected void onComponentTag(final ComponentTag tag) { // copy the code from Form.onComponentTag to here and change the action and tag, etc... } } Form could also be changed to get the kind of tag and the attribute name (action / href) from a method that could be overridden, but that would require a change to core - this method you can do yourself quickly. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:35 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: it's totally possible. did it at a company last year (but that's proprietary, of course). Cool. Can you give a hint if you could re-use Form components in Wml? go method=post href=??? postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go What is the best way to bind href and the postfields with a wicket form? Or should I build a custom 'wap-form' which supports similar validation? ** Martin Martin Makundi wrote: Hi! There has been some discussion in the past about using Wicket for rendering WML pages: http://cwiki.apache.org/WICKET/mobile-devices.html Is there any such wml+wicket boilerplate/quickstart code available out there or would someone like to post their experiences? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/WML-%2B-Wicket-experiences--tp22076991p22081338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
resourcereference and images
In my application all my images are inside Root-folder/images I having trouble using images in my pages In my BasePage.java protected static final ResourceReference EDIT_IMAGE=new ResourceReference(BasePage.class,/images/edit.gif); protected static final ResourceReference DELETE_IMAGE=new ResourceReference(BasePage.class,/images/delete.jpg); not sure whatpath should I give to resourceReference . This BasePage is inside package com.mycompany.web.pages.common I want to leave images in same folder I dont want to put them inside some package please help me. -- View this message in context: http://www.nabble.com/resourcereference-and-images-tp22111380p22111380.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WML + Wicket experiences?
I can actually 'bypass' the form very easily by setting setRenderBodyOnly(true) and overriding the onComponentTagBody with renderComponentTagBody(markupStream, openTag); My concern is on the processing side. How can I trigger/attach a suitable requestListener/IFormSubmittingComponent? Preferably re-using some existing component... go method=post href=??? postfield name=IFormSubmittingComponent value=XXX / postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go ** Martin 2009/2/19 Jeremy Thomerson jer...@wickettraining.com: I've never tried it, but I would suspect that I would start by creating something like: public class WapForm extends Form { protected void onComponentTag(final ComponentTag tag) { // copy the code from Form.onComponentTag to here and change the action and tag, etc... } } Form could also be changed to get the kind of tag and the attribute name (action / href) from a method that could be overridden, but that would require a change to core - this method you can do yourself quickly. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:35 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: it's totally possible. did it at a company last year (but that's proprietary, of course). Cool. Can you give a hint if you could re-use Form components in Wml? go method=post href=??? postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go What is the best way to bind href and the postfields with a wicket form? Or should I build a custom 'wap-form' which supports similar validation? ** Martin Martin Makundi wrote: Hi! There has been some discussion in the past about using Wicket for rendering WML pages: http://cwiki.apache.org/WICKET/mobile-devices.html Is there any such wml+wicket boilerplate/quickstart code available out there or would someone like to post their experiences? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/WML-%2B-Wicket-experiences--tp22076991p22081338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket-rad] Problem creating form
On 19.02.2009, at 19:42, Kaspar Fischer wrote: On 19.02.2009, at 19:34, wfaler wrote: Hi, Wicket RAD is actually not officially part of Wicket, so the right forum is here: http://www.nabble.com/Wicket-RAD-f35257.html Sorry! I will post a next topic to that forum. However, looking at your code, what version of Wicket are you using, and is it really on the classpath? Wicket (1.4-SNAPSHOT) is running fine and I am using Panel.add() at several other places. Only when I navigate to a page containing a Wicket-RAD form, this message appears. the add call on the line referred to in the stacktrace is actually the add() method on Component, which should be there. Yes, I looked this up in your code, but here I got stuck. I have checked out Wicket-RAD trunk from SVN and installed it using 'mvn clean install'. (Looking at the file modification dates in my ~/.m2/repository/org/wicketrad/, the old jars do get overwritten.) But still the same problem. When I look at the pom.xml in a project created with the archetype http://code.google.com/p/wicketrad-archetype/ , I see that there is only a dependency on wicket-rad (and none on wicket itself). Could it be that wicket-rad depends on a fixed version of Wicket? Does it work with Wicket 1.4-SNAPSHOT? Many thanks for any pointers, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WML + Wicket experiences?
Wouldn't you get that automatically using the code I gave below? Form, in it's onComponentTag, generates a URL that is for submitting the form. So, if you use that in the href of your go tag, the form should just work. I'd think, anyway. On Thu, Feb 19, 2009 at 5:05 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I can actually 'bypass' the form very easily by setting setRenderBodyOnly(true) and overriding the onComponentTagBody with renderComponentTagBody(markupStream, openTag); My concern is on the processing side. How can I trigger/attach a suitable requestListener/IFormSubmittingComponent? Preferably re-using some existing component... go method=post href=??? postfield name=IFormSubmittingComponent value=XXX / postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go ** Martin 2009/2/19 Jeremy Thomerson jer...@wickettraining.com: I've never tried it, but I would suspect that I would start by creating something like: public class WapForm extends Form { protected void onComponentTag(final ComponentTag tag) { // copy the code from Form.onComponentTag to here and change the action and tag, etc... } } Form could also be changed to get the kind of tag and the attribute name (action / href) from a method that could be overridden, but that would require a change to core - this method you can do yourself quickly. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 3:35 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: it's totally possible. did it at a company last year (but that's proprietary, of course). Cool. Can you give a hint if you could re-use Form components in Wml? go method=post href=??? postfield name=userId value=$(userId) / postfield name=password value=$(password) / /go What is the best way to bind href and the postfields with a wicket form? Or should I build a custom 'wap-form' which supports similar validation? ** Martin Martin Makundi wrote: Hi! There has been some discussion in the past about using Wicket for rendering WML pages: http://cwiki.apache.org/WICKET/mobile-devices.html Is there any such wml+wicket boilerplate/quickstart code available out there or would someone like to post their experiences? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/WML-%2B-Wicket-experiences--tp22076991p22081338.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com