Re: Wicket meetup in Amsterdam news
Hi, If interest is there I could present something based on my 'Real World Scala and Wicket' I held last week in London. Yes please! I hope there will be enough registrations to our session so we can make it. I added a 'Practical Scala + Wicket' presentation. I'm looking forward to see you all! :-) Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Intellij Idea Plugin Bounty
Also make sure you have the Wicket DTD loaded in Intellij. Regards, Erik. i got the dtd, but where exactly in intellij can you associate the wicket dtd with xhtml. setup external resource did not work. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Intellij Idea Plugin Bounty
i got the dtd, but where exactly in intellij can you associate the wicket dtd with xhtml. setup external resource did not work. to be more precise, i get autocompletion only for 3 attributes, not for wicket:xxx tags.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket at ApacheCon EU'09 in Amsterdam
Bill Joy from Sun once said: innovation happens elsewhere. I think that the where elsewhere isn't, it is the JCP. Standardization is just antithetical to innovation. Once something is fixed in brick/mortar how can you innovate? Wicket is very comfortably located elsewhere. Martijn On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we like the agility that the independence from any sort of a standard offers us. -igor On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org wrote: Judging by the responses (or the lack thereof), It seems as though there isn't enough support from the Wicket community to push for something like this :( -Original Message- From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas Mäder Sent: Thursday, February 12, 2009 12:57 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I totally agree that the JSR process is horrid. However, Wicket could really use some more corporate credibility (which a JSR would provide). The problem, I guess is that there are simply no corporate interests behind Wicket that would push the agenda. What wicket need is some evangelism, but I guess all the core people have real jobs. What we need is less talks titled why wicket is cool and more cut your development costs in two with Wicket. From experience, I am totally convinced that you can save 50% off your development costs if you switch to wicket (from just about any other framework), however, I've yet to find a contracting job here in Zürich where wicket is asked for (it's JSF, or even Struts). Thomas On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.comwrote: And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that are discussed over and over. Hmm On 12/02/2009, Hoover, William whoo...@nemours.org wrote: Just out of curiosity... Are there any plans to push a JSR that Wicket could follow. I think there would be a lot more acceptance of Wicket if this was to happen :o) -Original Message- From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On Behalf Of Martijn Dashorst Sent: Wednesday, February 11, 2009 5:33 PM To: users@wicket.apache.org Subject: Wicket at ApacheCon EU'09 in Amsterdam We're happy to announce a lot of Wicket involvement at the upcoming ApacheCon in Amsterdam (23-27 March 2009) First of all we have 2 training sessions available: - Introduction to Wicket by Martijn Dashorst on Mon 23 March (http://tinyurl.com/aceu09wicket1) - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2) Both courses are hosted by core members. Martijn has co-authored Wicket in Action and Timo has been involved with WicketTester and JDave. There is no better team to get you and your team up to speed with the finest Java web framework available and start cranking out fully tested applications. Martijn will also present Wicket in Action during the normal conference days. A quick introduction to Wicket's core features in just one hour. But attending the conference will give you much more: over 60 sessions covering your favorite Apache projects. Amsterdam is great, but Wicket meetups in Amsterdam are even better! We're attempting to schedule a Wicket meetup during the conference at the conference floor. Details will follow soon. Read more about ApacheCon EU 2009 here: http://www.eu.apachecon.com/c/aceu2009/ See you in Amsterdam! 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch - 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 -- 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.
Re: Wicket at ApacheCon EU'09 in Amsterdam
and what would a wicket standard give you? Except that those idiotic managers then say its standardized.. now you can use it why is that is a standard for ever? dont think so everything dies. But would it run on more platforms? Would we have multiply implementations? Because thats most of the time a JCP/JSR does, it doesnt have an implementation, what wicket is, but a description/interfaces what an implementation should do.. johan On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst martijn.dasho...@gmail.comwrote: Bill Joy from Sun once said: innovation happens elsewhere. I think that the where elsewhere isn't, it is the JCP. Standardization is just antithetical to innovation. Once something is fixed in brick/mortar how can you innovate? Wicket is very comfortably located elsewhere. Martijn On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we like the agility that the independence from any sort of a standard offers us. -igor On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org wrote: Judging by the responses (or the lack thereof), It seems as though there isn't enough support from the Wicket community to push for something like this :( -Original Message- From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas Mäder Sent: Thursday, February 12, 2009 12:57 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I totally agree that the JSR process is horrid. However, Wicket could really use some more corporate credibility (which a JSR would provide). The problem, I guess is that there are simply no corporate interests behind Wicket that would push the agenda. What wicket need is some evangelism, but I guess all the core people have real jobs. What we need is less talks titled why wicket is cool and more cut your development costs in two with Wicket. From experience, I am totally convinced that you can save 50% off your development costs if you switch to wicket (from just about any other framework), however, I've yet to find a contracting job here in Zürich where wicket is asked for (it's JSF, or even Struts). Thomas On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.com wrote: And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that are discussed over and over. Hmm On 12/02/2009, Hoover, William whoo...@nemours.org wrote: Just out of curiosity... Are there any plans to push a JSR that Wicket could follow. I think there would be a lot more acceptance of Wicket if this was to happen :o) -Original Message- From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On Behalf Of Martijn Dashorst Sent: Wednesday, February 11, 2009 5:33 PM To: users@wicket.apache.org Subject: Wicket at ApacheCon EU'09 in Amsterdam We're happy to announce a lot of Wicket involvement at the upcoming ApacheCon in Amsterdam (23-27 March 2009) First of all we have 2 training sessions available: - Introduction to Wicket by Martijn Dashorst on Mon 23 March (http://tinyurl.com/aceu09wicket1) - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2) Both courses are hosted by core members. Martijn has co-authored Wicket in Action and Timo has been involved with WicketTester and JDave. There is no better team to get you and your team up to speed with the finest Java web framework available and start cranking out fully tested applications. Martijn will also present Wicket in Action during the normal conference days. A quick introduction to Wicket's core features in just one hour. But attending the conference will give you much more: over 60 sessions covering your favorite Apache projects. Amsterdam is great, but Wicket meetups in Amsterdam are even better! We're attempting to schedule a Wicket meetup during the conference at the conference floor. Details will follow soon. Read more about ApacheCon EU 2009 here: http://www.eu.apachecon.com/c/aceu2009/ See you in Amsterdam! 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch
Re: Problem with multiple AjaxLazyLoadPanel and DynamicImageResource
Thanks for making this example. I've tried it and it fails as expected. Let's see if it serves to find the bug. -Félix Sergio García wrote: igor.vaynberg wrote: create a quickstart and attach it to a jira issue so we can take a look. -igor I've created a quickstart with page and panel code.+ https://issues.apache.org/jira/browse/WICKET-2100 https://issues.apache.org/jira/browse/WICKET-2100 Thankyou so much -- View this message in context: http://www.nabble.com/Problem-with-multiple-AjaxLazyLoadPanel-and-DynamicImageResource-tp21939285p21993005.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: Correct way to deal with serialization and casting
Ok, feedback on my own problem. It seems that if you create a private variable and assign an IModel to it, then access it from within the onClick() method in a listview, that it doesn't always work. You have to explicitly add the model to the Link constructor for this to work. It seems that the approach below doesn't always work in wicket. Thanks for the feedback so far. Pieter On Thu, Feb 12, 2009 at 11:20 PM, pieter claassen pie...@claassen.co.ukwrote: Just to make sure I understand this correctly. 1. Line 2: By storing an IModel mywebmodel that nulls the object reference onDetach(), on my webpage, is ok for serialiazation? 2. Line 8: When I cast the IModel to MyObject, is there a way to make this more safe at compile time? 3. Line 8: object is a database object in a field on MyObject. The fact that I assign a reference to it in a local variable, does that mean this object is going to be serialized with the page? What is actually being serialized (the java, the html, bytecode?) 4. Line 9: Rather than call EditWebPage with a generic IModel and do the runtime cast thing, I subclassed IModel into a number of webmodels such as ObjectModel implements IModel. This creates more programming work but at least provides some type safety during compile time. Is this the recommended way to go or is there a better way? 1 public class MyWebPage extends WebPage{ 2 private final IModel mywebmodel; 3 public MyWebPage(IModel model){ 4 mywebmodel=model; 5 setModel(new CompoundPropertyModel(mywebmodel); 6 add(new Link(edit){ 7public void onClick(){ 8 MyObject object=(MyObject) mywebmodel.getModelObject().getChild(); 9 setResponsePage(new EditWebPage(new IModel(object))); 10} 11 } 12} 13}
Re: Wicket at ApacheCon EU'09 in Amsterdam
Hi all I'm new to this list (and Wicket), and was interested in this discussion. On 12/02/2009, at 11:32 PM, Hoover, William wrote: Just out of curiosity... Are there any plans to push a JSR that Wicket could follow. I think there would be a lot more acceptance of Wicket if this was to happen :o) It might be interesting to examine this idea in the context of OSGi. OSGi is a standard for componentisation and packaging and component lifecycle management that has it roots in embedded devices, and incorporates a whole range of further standards related to this type of platform. It grew out of efforts that were mostly independent of Sun, and has continued to evolve as a standard in a separate organisation to the JSR process. It now has a JSR (277), but the OSGi specifications evolve separately of this original JSR. It has multiple implementations (Felix, Equinox, Knopflerfish, etc). Its flexibility in its design (extender bundles, manifest extensions, whiteboard model, etc assist this) has led to many addons that build upon it such as Spring DM, iPOJO, etc. In the next version of the specification many of these community ideas will be incorporated back into the main specifications. The Core OSGi specification doesn't add much to the language, but its Compedium specifications, which build upon the Core spec, provide everything from configuration management, device resolution, to user administration and logging. Sun were looking at using it in Java 7 in order to modularise the JVM, a similar goal to the Apache Harmony project IIRC. They have since dropped this goal and have revived JSR 294 for modularisation. OSGi continues to move along alone and gain its own popularity without the JSR/JCP process. Sun's attitude seems to be to just ignore OSGi (a form of NIH syndrome?). IMHO what this means for Wicket is: unless it provides a small base for lots of extra functionality to be built upon, its just going to get mired in the politics of the JSR/JCP process and not really achieve anything. It will probably end up being shunned as a competitor to JSF and left unresolved. It may be better for Wicket to look at managing its own APIs so there is less breakage between versions (note: I've only begun using Wicket recently so I'm not trying to suggest this is the case) and that versions are clearly delineated in terms of API compatibility between them. It could try and elevate the Wicket extensions to be more tightly managed within the Wicket project, and seek from time to time to incorporate these back in into the Wicket mainline. In this way, Wicket becomes standardised but still maintains the freedom to innovate more quickly. Wicket seems to be tightly modularised enough (or able to modularised) that using Wicket as a base to grow new and interesting functionality whilst maintaining a stable core seems feasible. Cheers Chris --- Christopher Armstrong carmstrong at fastmail com au. Christopher Armstrong carmstr...@fastmail.com.au - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
Hi, i think the manual page of sl4j http://www.slf4j.org/manual.html makes it very clear, just read the small red part. As for the wicket homepage, this would fit into the wiki if it's not already there. But since wicket uses maven and most projects that use wicket also use it, missing jars are an issue of the past (well, it's missing dependencies now ;) ). If you can I'd suggest you use maven as your build and dependency management tool for your project. Martin 2009/2/13 M Goodell li...@pdc4u.com: Whoo-H!!! That worked. Thank you! Should that be made more clear on the Wicket home page or did I miss something on the SLF4J page? Again . . . Thank you! M. Goodell -Original Message- From: Martin Voigt [mailto:martin.vo...@artnology.com] Sent: Thursday, February 12, 2009 3:53 PM To: users@wicket.apache.org; li...@pdc4u.com Subject: Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory It looks like your missing the slf4j-api.jar. slf4j-log4j12-1.5.6.jar is just the glue to make slf4j use log4j. Martin 2009/2/12 M Goodell li...@pdc4u.com: Hello, I am in the process of evaluating Wicket for an upcoming project and in the process of writing some proof of concept code. Or trying to anyway. The problem I am having is that I keep getting the exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory after deploying and attempting to run the application. According to the Wicket quick start all I need to do is: You cannot use Wicket without adding an SLF4J logging implementation to your classpath. Most people use log4j. If you do, just include slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you want to use commons-logging or JDK14 logging or something else, please see the SLF4J site for more information. The following jars are on my classpath: - log4j-1.2.15.jar - slf4j-log4j12-1.5.6.jar - wicket-1.3.5.jar - wicket-auth-roles-1.3.5.jar - wicket-datetime-1.3.5.jar - wicket-extensions-1.3.5.jar - wicket-guice-1.3.5.jar - wicket-ioc-1.3.5.jar - wicket-jmx-1.3.5.jar - wicket-objectsizeof-agent-1.3.5.jar - wicket-spring-1.3.5.jar - wicket-spring-annot-1.3.5.jar Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23 and JDK 5 Am I missing jar a jar file(s) here that is not mentioned in the docs? I have tried to find the correct jar from the SLF4J distro but still no luck. Any suggestions are welcome!!! Thank you! M. Goodell NetBeans stack trace: SEVERE: Exception starting filter WicketApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:208) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon fig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36 35) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java: 213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at
Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
It looks like your missing the slf4j-api.jar. slf4j-log4j12-1.5.6.jar is just the glue to make slf4j use log4j. Martin 2009/2/12 M Goodell li...@pdc4u.com: Hello, I am in the process of evaluating Wicket for an upcoming project and in the process of writing some proof of concept code. Or trying to anyway. The problem I am having is that I keep getting the exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory after deploying and attempting to run the application. According to the Wicket quick start all I need to do is: You cannot use Wicket without adding an SLF4J logging implementation to your classpath. Most people use log4j. If you do, just include slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you want to use commons-logging or JDK14 logging or something else, please see the SLF4J site for more information. The following jars are on my classpath: - log4j-1.2.15.jar - slf4j-log4j12-1.5.6.jar - wicket-1.3.5.jar - wicket-auth-roles-1.3.5.jar - wicket-datetime-1.3.5.jar - wicket-extensions-1.3.5.jar - wicket-guice-1.3.5.jar - wicket-ioc-1.3.5.jar - wicket-jmx-1.3.5.jar - wicket-objectsizeof-agent-1.3.5.jar - wicket-spring-1.3.5.jar - wicket-spring-annot-1.3.5.jar Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23 and JDK 5 Am I missing jar a jar file(s) here that is not mentioned in the docs? I have tried to find the correct jar from the SLF4J distro but still no luck. Any suggestions are welcome!!! Thank you! M. Goodell NetBeans stack trace: SEVERE: Exception starting filter WicketApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:208) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon fig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36 35) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java: 213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSer verInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1397) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:815) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:344) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
Re: AbstractAjaxTimerBehavior / Firefox / Page constructor
if that happens then the newWindowBrowser detection is enabled and executed. This makes sure that a new tab or browser window (but same session) will have there own pagemap On Thu, Feb 12, 2009 at 18:45, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Thomas Mäder escreveu: Why don't you put a breakpoint in the constructor and see let us know what you find out? Is the constructor called through the same stack trace twice? The constructor is called by the filter, it's another request from the browser. The first URL is the entered one, and the second has a new parameter about wicket pagemap. The page is a bookmarkable. I haven't succeed to debug with Firebug. Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: HTML can't reference a component (Label) multiple times?
99.99% of the time this is an error: a component is referenced multiple times in markup. Therefore we don't allow one component to be rendering in multiple places. For that 0.01% of useful cases, it is not too difficult to just add the label component twice. Martijn On Thu, Feb 12, 2009 at 8:54 PM, Phil Grimm phil.gr...@gmail.com wrote: Guys, If I need to reference a Label multiple times on the page. Is there a better way than creating multiple redundant but distinct labels? Is this the only option? add(new Label(authorName1)); add(new Label(authorName2)); add(new Label(authorName3)); span wicket:id=authorName1/span span wicket:id=authorName2/span span wicket:id=authorName3/span This (non-one-to-one) usage... add(new Label(authorName)); span wicket:id=authorName/span span wicket:id=authorName/span ... causes error: WicketMessage: The component [Component id = author.name] has the same wicket:id as another component already added at the same level Phil -- Phil Grimm Mobile: (858) 335-3426 Skype: philgrimm336 -- 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: AbstractAjaxTimerBehavior / Firefox / Page constructor
Johan Compagner escreveu: if that happens then the newWindowBrowser detection is enabled and executed. This makes sure that a new tab or browser window (but same session) will have there own pagemap I have getPageSettings().setAutomaticMultiWindowSupport(true). But why AbstractAjaxTimerBehavior would cause a redirection (I see the new url with the wicket:pageMapName/wicket-N in the browser). And each time I enter in the page, N is incremented. May be something wrong on wicket javascripts? Adriano - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Model on Select
After switching from Select and SelectOption to DropDownChoice it works. Maybe there is a problem with my Select code or there is a wicket bug. // Mathias -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p21994805.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: Adding/Replacing links in Panels
Hi, I guess there could be other ways to do this better. Try using break after each case. switch( comp ){ case ROLE: break; } If you don't use break the link will be added twice -- View this message in context: http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21994847.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: Tabbed Page
The problem is. My case is that I have a Base Page from where all other page inherit a common layout. This base page have an AjaxTab. This ajax tab component have its tabs. Each of these tabs have a getPanel method and the returned panel have another Ajax Tab. Should I have a markup html for each Panel class? On Wed, Feb 11, 2009 at 11:43 AM, Thomas Mäder thomas.mae...@devotek-it.chwrote: What's the problem? A TabbedPanel is a Panel, so you can return it from ITabl.getPanel(). Thomas On Wed, Feb 11, 2009 at 12:21 PM, Daniel Ferreira Castro dfcas...@gmail.com wrote: Is it possible to have other tabbed pannels inside a tabbed panel? Imagine the example http://wicketstuff.org/wicket13/ajax/tabbed-panel.1 If I click on first tab, instead of showing This is tab-panel 1 it would show, or at least I would like to, show another tabbed panel with tabs and those would have panels. Is it possible? how? -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch -- 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
Re: Tabbed Page
I am trying to figure out what tag is beeing expected... This is my base page markup !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html wicket:head /wicket:head body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div div class=spacer/div wicket:child/ /body /html This is my basepage implementation public class BasePage extends WebPage { private final ListITabtabs = new ArrayListITab(); public BasePage() { inicializaComponentes(); add(new AjaxTabbedPanel(tabs, tabs)); } @SuppressWarnings(unchecked) private void inicializaComponentes(){ tabs.add(new CadastroTab(new Model (Cadastro))); } } This is the implementation of CadastroTab public class CadastroTab extends AbstractTab { private static final long serialVersionUID = 4682446014181156021L; public CadastroTab(IModelString id) { super(id); // TODO Auto-generated constructor stub } @Override public Panel getPanel(String arg0) { // TODO Auto-generated method stub Panel painel = new CadastroPanel(arg0); return painel; } } This is the markup of CadastroPainel !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html This is the Implementation of CadastroPanel public class CadastroPanel extends Panel { private static final long serialVersionUID = 4682446014181156004L; private final ListITab tabs = new ArrayListITab(); public CadastroPanel(String id) { super(id); inicializaTabs(); add(new AjaxTabbedPanel(Cadastro, tabs)); // TODO Auto-generated constructor stub } private void inicializaTabs() { tabs.add(new AbstractTab(new Model(Categoria)) { public Panel getPanel(String panelId) { return new CadastroCategoriaPanel(panelId); } }); } } And the last part if the Markup of CadastroCategoriaPanel and its markup public class CadastroCategoriaPanel extends Panel { private static final long serialVersionUID = 4682446014181156010L; public CadastroCategoriaPanel(String id) { super(id); // TODO Auto-generated constructor stub } } ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; wicket:panel br/ This is tab-panel 3 /wicket:panel /html The error that I get is this WicketMessage: Tag expected [markup = file:/E:/Daniel/Projetos/ecommFwkBackOffice/target/classes/com/jasp/ecommfwk/pages/common/layout/panels/CadastroPanel.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html, index = 5, current = [Raw markup]] Root cause: org.apache.wicket.markup.MarkupException: Tag expected [markup = file:/E:/Daniel/Projetos/ecommFwkBackOffice/target/classes/com/jasp/ecommfwk/pages/common/layout/panels/CadastroPanel.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html, index = 5, current = [Raw markup]] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:465) at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:668) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at
Re: Adding/Replacing links in Panels
personally I'm no fan of conditional adding components with the same id. e.g. if (user.isSignedIn() { add(new SignedInPanel(foo)); else { add(new SignedOutPanel(foo)); } I rather add all panels and make them invisible or visible add(new SignedInPanel(foo).setVisible(user.isSignedIn()); // or override isvisible if that may change ... add(new SignedOutPanel(bar).setVisible(!user.isSignedIn()); this way you always know which panels are added to the page and what they are ... regards, Michael ashtek wrote: Hey All, I apologize for the long content - I have a navigation bar on the side that contains links to add Users, Permissions, Roles, etc... When a user clicks on a navigation link (say Users), a Users home page is displayed that contains a link to add users, and a list of all available users. The link to add users is a panel that contains wicket:link td # Add Users /td /wicket:link In each of the home pages I add the panel like this - On the User home page I add, add(new AddPanel(addPanel, AddPanel.USER)); On the Roles home page I add, add(new AddPanel(addPanel, AddPanel.ROLES)); And this is what I have in the AddPanel.class public AddPanel(String id, int addWhat) { super(id); switch (addWhat) { case USER: add(new BookmarkablePageLink(addLink, EditUsers.class)); case ROLES: case PERMISSIONS: add(new BookmarkablePageLink(addLink, EditPermissions.class)); default: } The Problem is, when I click on the Users homepage, and then I click on the Permissions home page, I get an error saying addLink already exists in the markup. Is there a better way to handle links than this? Thanks! - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21995364.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 at ApacheCon EU'09 in Amsterdam
totally against pushing wicket as a standard / jsr. it has already been stated by some of you, but i'd like to highlight the fact that bureaucracy goes against flexibility. instead of having wicket to change to please management, why don't we push to have more managers that think out-of-the-box and choose wicket for its actual strengths rather than because it wears a jcp badge? francisco -- http://wickethub.org On Fri, Feb 13, 2009 at 10:10 AM, Johan Compagner jcompag...@gmail.com wrote: and what would a wicket standard give you? Except that those idiotic managers then say its standardized.. now you can use it why is that is a standard for ever? dont think so everything dies. But would it run on more platforms? Would we have multiply implementations? Because thats most of the time a JCP/JSR does, it doesnt have an implementation, what wicket is, but a description/interfaces what an implementation should do.. johan On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst martijn.dasho...@gmail.comwrote: Bill Joy from Sun once said: innovation happens elsewhere. I think that the where elsewhere isn't, it is the JCP. Standardization is just antithetical to innovation. Once something is fixed in brick/mortar how can you innovate? Wicket is very comfortably located elsewhere. Martijn On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we like the agility that the independence from any sort of a standard offers us. -igor On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org wrote: Judging by the responses (or the lack thereof), It seems as though there isn't enough support from the Wicket community to push for something like this :( -Original Message- From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas Mäder Sent: Thursday, February 12, 2009 12:57 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I totally agree that the JSR process is horrid. However, Wicket could really use some more corporate credibility (which a JSR would provide). The problem, I guess is that there are simply no corporate interests behind Wicket that would push the agenda. What wicket need is some evangelism, but I guess all the core people have real jobs. What we need is less talks titled why wicket is cool and more cut your development costs in two with Wicket. From experience, I am totally convinced that you can save 50% off your development costs if you switch to wicket (from just about any other framework), however, I've yet to find a contracting job here in Zürich where wicket is asked for (it's JSF, or even Struts). Thomas On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.com wrote: And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that are discussed over and over. Hmm On 12/02/2009, Hoover, William whoo...@nemours.org wrote: Just out of curiosity... Are there any plans to push a JSR that Wicket could follow. I think there would be a lot more acceptance of Wicket if this was to happen :o) -Original Message- From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On Behalf Of Martijn Dashorst Sent: Wednesday, February 11, 2009 5:33 PM To: users@wicket.apache.org Subject: Wicket at ApacheCon EU'09 in Amsterdam We're happy to announce a lot of Wicket involvement at the upcoming ApacheCon in Amsterdam (23-27 March 2009) First of all we have 2 training sessions available: - Introduction to Wicket by Martijn Dashorst on Mon 23 March (http://tinyurl.com/aceu09wicket1) - Behavior-Driving Your Apache Wicket Application by Timo Rantalaiho on Tue 24 March (http://tinyurl.com/aceu09wicket2) Both courses are hosted by core members. Martijn has co-authored Wicket in Action and Timo has been involved with WicketTester and JDave. There is no better team to get you and your team up to speed with the finest Java web framework available and start cranking out fully tested applications. Martijn will also present Wicket in Action during the normal conference days. A quick introduction to Wicket's core features in just one hour. But attending the conference will give you much more: over 60 sessions covering your favorite Apache projects. Amsterdam is great, but Wicket meetups in Amsterdam are even better! We're attempting to schedule a Wicket meetup during the conference at the conference floor. Details will follow soon. Read more about ApacheCon EU 2009 here: http://www.eu.apachecon.com/c/aceu2009/ See you in Amsterdam! Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Adding/Replacing links in Panels
Yes, but in my case, I dont need separate panels (the only variable being the link, and everything else remains constant). I might then as well include the markup in each of the files. Michael Sparer wrote: personally I'm no fan of conditional adding components with the same id. e.g. if (user.isSignedIn() { add(new SignedInPanel(foo)); else { add(new SignedOutPanel(foo)); } I rather add all panels and make them invisible or visible add(new SignedInPanel(foo).setVisible(user.isSignedIn()); // or override isvisible if that may change ... add(new SignedOutPanel(bar).setVisible(!user.isSignedIn()); this way you always know which panels are added to the page and what they are ... regards, Michael ashtek wrote: Hey All, I apologize for the long content - I have a navigation bar on the side that contains links to add Users, Permissions, Roles, etc... When a user clicks on a navigation link (say Users), a Users home page is displayed that contains a link to add users, and a list of all available users. The link to add users is a panel that contains wicket:link td # Add Users /td /wicket:link In each of the home pages I add the panel like this - On the User home page I add, add(new AddPanel(addPanel, AddPanel.USER)); On the Roles home page I add, add(new AddPanel(addPanel, AddPanel.ROLES)); And this is what I have in the AddPanel.class public AddPanel(String id, int addWhat) { super(id); switch (addWhat) { case USER: add(new BookmarkablePageLink(addLink, EditUsers.class)); case ROLES: case PERMISSIONS: add(new BookmarkablePageLink(addLink, EditPermissions.class)); default: } The Problem is, when I click on the Users homepage, and then I click on the Permissions home page, I get an error saying addLink already exists in the markup. Is there a better way to handle links than this? Thanks! -- View this message in context: http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21995664.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: Adding/Replacing links in Panels
Thanks Mathias. That was it. :) The links render properly now. -- View this message in context: http://www.nabble.com/Adding-Replacing-links-in-Panels-tp21989041p21995675.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
What's your take on handling markup in properties, html, wicket
Hi, Just wondering how this should be handled without DRY. In many scenarios we have multiple languages that should have the same markup but different text. This could be handled by using variation and put every language in an own html file like myWicketPage_style_en.html. However, this is not the optimal way and I don't think variation is made for this either. It would be very annoing having 14 different html files if we have 14 different languages that we should support. Sometimes the languages should look different ( not the same look. Different positioning of elements ) and here we could use variation. As far as I'm concerned this is not the right way of handling look and feel. Different css should be used instead and then place position, coloring of the markup in a css. The html file should be the same and the css should handle the layout. Take a look at http://www.csszengarden.com/ http://www.csszengarden.com/ Every time I'm dealing with multiple languages the user wants bold, italic, color in the text. Many times a list will appear just containing text. ( Nothing to do with extracting data from database and let wicket handle it ) This could be added in a properties file but then we would have bold tags, italic and style tags in the properties file. If something should change we need to go thru 14 properties files to change the markup in the properties. Let's say we have the following text in many different languages. Some markup is changed so you know what I mean. boldWelcome to our company/boldbrbrHere is some long text.ullisome [BOLD]text[/BOLD]/liliother text/li/ul Now imaging this text to be very long. Now, my question is this. How do you handle tagged markup for different languages without repeating markup tags. * Variation and the text in the html file. * different properties file with markup in it * Other technique? -- View this message in context: http://www.nabble.com/What%27s-your-take-on-handling-markup-in-properties%2C-html%2C-wicket-tp21995782p21995782.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: Model on Select
Mathias P.W Nilsson wrote: The first time my web container is loaded and I access the page all dropdowns and Select are set according to the values that my class has( new CompoundPropertyModel( new Model( myClass ) ) ). When returning to this page a second time the Select is not set. I have tried all that I can come up with. I have a similar problem with the Select component. Everything works as expected until there is a validation error on the form submit. If this happens the Select components will display a None value in my case, so i have to re-select items again. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p21996211.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 at ApacheCon EU'09 in Amsterdam
I hear the arguments and I completely agree with the notion that innovation usually happens elsewhere and a JSR/JCP would slow that process down. I just want to objectively view the other side of the spectrum :o) From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. My hope is that the Wicket community can be as open-minded to this notion as they are to the open source code they represent :o) -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 4:10 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam and what would a wicket standard give you? Except that those idiotic managers then say its standardized.. now you can use it why is that is a standard for ever? dont think so everything dies. But would it run on more platforms? Would we have multiply implementations? Because thats most of the time a JCP/JSR does, it doesnt have an implementation, what wicket is, but a description/interfaces what an implementation should do.. johan On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst martijn.dasho...@gmail.comwrote: Bill Joy from Sun once said: innovation happens elsewhere. I think that the where elsewhere isn't, it is the JCP. Standardization is just antithetical to innovation. Once something is fixed in brick/mortar how can you innovate? Wicket is very comfortably located elsewhere. Martijn On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we like the agility that the independence from any sort of a standard offers us. -igor On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org wrote: Judging by the responses (or the lack thereof), It seems as though there isn't enough support from the Wicket community to push for something like this :( -Original Message- From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas Mäder Sent: Thursday, February 12, 2009 12:57 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I totally agree that the JSR process is horrid. However, Wicket could really use some more corporate credibility (which a JSR would provide). The problem, I guess is that there are simply no corporate interests behind Wicket that would push the agenda. What wicket need is some evangelism, but I guess all the core people have real jobs. What we need is less talks titled why wicket is cool and more cut your development costs in two with Wicket. From experience, I am totally convinced that you can save 50% off your development costs if you switch to wicket (from just about any other framework), however, I've yet to find a contracting job here in Zürich where wicket is asked for (it's JSF, or even Struts). Thomas On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.com wrote: And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that are discussed over and over. Hmm On 12/02/2009, Hoover, William whoo...@nemours.org wrote: Just out of curiosity... Are there any plans to push a JSR that Wicket could follow. I think there would be a lot more acceptance of Wicket if this was to happen :o) -Original Message- From: martijn.dasho...@gmail.com [mailto:martijn.dasho...@gmail.com] On Behalf Of Martijn Dashorst Sent: Wednesday, February 11, 2009 5:33 PM To: users@wicket.apache.org Subject: Wicket at ApacheCon EU'09 in Amsterdam We're happy to announce a lot of Wicket involvement at the upcoming ApacheCon in Amsterdam (23-27 March 2009) First of all we have 2 training sessions available: - Introduction to Wicket by Martijn Dashorst on Mon 23 March
Setting TreeState in new page
I have a LinkTree where each node contains links to pages, and each of these pages derives from the same base class, so they all contain that LinkTree. When a user drills down into the tree on one page and then clicks a link for another page, I'd like the new page we go to to open the tree to its state in the last page. I can save the TreeState to the session and retrieve it in the new page, but that's not the problem. Right now, in the new page, the new tree displays collapsed. When you leave your constructor, only the topmost tree node has been constructed. The node I want to drill down to isn't created until you click on a junction link. I could have designed this where the application has only one URL and only the right-hand panel changes as you click through AjaxLinks -- and I had that working with a minimum of trouble, but then I learned I have a requirement that each view of the system -- i.e., where the right-hand panel shows different content -- must correspond to a bookmarkable link. This requirement also eliminates the option of using frames wherein the navigation tree stays the same and the part that's supposed to change, the right-hand panel, is the target of the links. So how do I open up my tree when I get to the new page? Thanks for your help. -- View this message in context: http://www.nabble.com/Setting-TreeState-in-new-page-tp21996538p21996538.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
How to get a reference to the holding page from a panel
Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks, Pieter
Re: Wicket at ApacheCon EU'09 in Amsterdam
I am not sure what you would like to standardize. Given your JPA example, I would guess that you want to push a JSR for a web framework or something. But there is already something like that: JSF. Just let Wicket be Wicket and instead of changing Wicket (and it's community) in the wrong way, let's try to change the views of corporate managers in the right way. As Thomas said earlier What we need is less talks titled 'why wicket is cool' and more 'cut your development costs in two with Wicket' . And I do not think that the lack of support for pushing a JSR has anything to do with a lack of open-mindedness... Hoover, William wrote: I hear the arguments and I completely agree with the notion that innovation usually happens elsewhere and a JSR/JCP would slow that process down. I just want to objectively view the other side of the spectrum :o) From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. My hope is that the Wicket community can be as open-minded to this notion as they are to the open source code they represent :o) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Intellij Idea Plugin Bounty
Andreas Petersson wrote: Also make sure you have the Wicket DTD loaded in Intellij. i got the dtd, but where exactly in intellij can you associate the wicket dtd with xhtml. setup external resource did not work. Sorry, I can't look it up at home. Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket at ApacheCon EU'09 in Amsterdam
this has nothing to do with being open-minded. i'm pretty sure that most non-trivial projects out there using jpa with hibernate implementation can go through a big pain if they ever decide to change jpa vendor. now that you talk about jpa, this is an example of how backward a spec can be: jpa 2.0 draft is only now addressing criteria, when we should be including statically-typed queries and so on (ala linq / quaere / jaqu). granted the process might bring some benefit to wicket, but there are way too many disadvantages, imo. and i don't really see how wicket could become a sort of standard that gets different implementations. anyway, i think we've got waaay out of topic =) francisco -- http://wickethub.org On Fri, Feb 13, 2009 at 2:36 PM, Hoover, William whoo...@nemours.org wrote: I hear the arguments and I completely agree with the notion that innovation usually happens elsewhere and a JSR/JCP would slow that process down. I just want to objectively view the other side of the spectrum :o) From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. My hope is that the Wicket community can be as open-minded to this notion as they are to the open source code they represent :o) -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 4:10 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam and what would a wicket standard give you? Except that those idiotic managers then say its standardized.. now you can use it why is that is a standard for ever? dont think so everything dies. But would it run on more platforms? Would we have multiply implementations? Because thats most of the time a JCP/JSR does, it doesnt have an implementation, what wicket is, but a description/interfaces what an implementation should do.. johan On Fri, Feb 13, 2009 at 10:00, Martijn Dashorst martijn.dasho...@gmail.comwrote: Bill Joy from Sun once said: innovation happens elsewhere. I think that the where elsewhere isn't, it is the JCP. Standardization is just antithetical to innovation. Once something is fixed in brick/mortar how can you innovate? Wicket is very comfortably located elsewhere. Martijn On Thu, Feb 12, 2009 at 10:05 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: we like the agility that the independence from any sort of a standard offers us. -igor On Thu, Feb 12, 2009 at 12:01 PM, Hoover, William whoo...@nemours.org wrote: Judging by the responses (or the lack thereof), It seems as though there isn't enough support from the Wicket community to push for something like this :( -Original Message- From: tomlist0...@gmail.com [mailto:tomlist0...@gmail.com] On Behalf Of Thomas Mäder Sent: Thursday, February 12, 2009 12:57 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I totally agree that the JSR process is horrid. However, Wicket could really use some more corporate credibility (which a JSR would provide). The problem, I guess is that there are simply no corporate interests behind Wicket that would push the agenda. What wicket need is some evangelism, but I guess all the core people have real jobs. What we need is less talks titled why wicket is cool and more cut your development costs in two with Wicket. From experience, I am totally convinced that you can save 50% off your development costs if you switch to wicket (from just about any other framework), however, I've yet to find a contracting job here in Zürich where wicket is asked for (it's JSF, or even Struts). Thomas On Thu, Feb 12, 2009 at 6:36 PM, Johan Compagner jcompag...@gmail.com wrote: And then come into the horrible voting/administive stuff? Long Release cycles that are controlled, features that
Re: Wicket at ApacheCon EU'09 in Amsterdam
From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. look hibernate is an implementation of a persistence.. And they adapted (and where involved) into the specifications yes Ok now translate that to wicket.. What is wicket an implementation of? a webframework? ahh.. tapestry is also a webframework and struts is also a webframework They all implement the standard webframework spec.. which is the servlet spec.. So JPA Spec == Servlet Spec Hibernate == Wicket TopLink == Tapestry So wicket is already in the JSR/JCP ! we are an enhancement/implementation of the servlet spec :) ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and tomcat ;) not the thing you would build on top of that again But then if you have wicket,tapestry and struts (and x and y) and then you want to define a Web Framework spec that all of them can adapt to what would that then be? What would that then gain? Would that mean that tapestry components/pages could run inside wicket? It is just not as easy to do as with a persistence spec. Which is pretty easy because so many things kind of already work the same way before they where under the same spec.. web frameworks differ quite a bit johan
Re: Wicket at ApacheCon EU'09 in Amsterdam
Hi, I can't really think of any specification which would make sense to build - there is just no need for that IMHO. If managers need something like that - there's JSF. And knowledge is growing that JSF isn't the ultimate answer. There are other open source projects embraced by managers as well without being an official standard - else why would there be so many Struts applications out there?! Also, Wicket does support a standard, which makes it quite valuable: Portlets! Does Tapestry do that? Best regards, --- Jan. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket at ApacheCon EU'09 in Amsterdam
I agree that we need to change the views of corporate managers in the right way by illustrating the cost savings achieved though a reduction in development time. At the same time, I don't believe that this will change the Wicket community in the wrong way (which is a highly subjective statement). I'm only presenting the alternative viewpoint. It is possible that a standard could potentially inhibit progression due to contrasting viewpoints within the community, but it is also equally possible that it could lead to a value-added aspect by introducing a broader input base to the Wicket community that could speed progression (Hibernate/JPA is an example of this). There is always a possibility that progress can be slowed as the number of members increase because there are more viewpoints to be examined/debated. I think that there is a higher probability that the community will grow if such a standard were to be adopted. Just because there is already a specification for a web framework (JSF) that does not constitute abandoning a standard approach. Look at JAX-WS vs JAX-RS. They accomplish many of the same objectives, but they both are part of the proposed profile stack (http://www.theserverside.com/tt/articles/article.tss?l=JavaEE6Overview) . A Wicket implementation could orchestrate a refreshing alternative approach to JSF in the same manner that it does today. When I referred to open-mindedness I was referring to being open-minded to the ideas behind the push... I didn't necessary intended to imply that anyone would not be open-minded if they did not support a JSR :o) -Original Message- From: Dave Schoorl [mailto:mailli...@cyber-d.com] Sent: Friday, February 13, 2009 9:21 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I am not sure what you would like to standardize. Given your JPA example, I would guess that you want to push a JSR for a web framework or something. But there is already something like that: JSF. Just let Wicket be Wicket and instead of changing Wicket (and it's community) in the wrong way, let's try to change the views of corporate managers in the right way. As Thomas said earlier What we need is less talks titled 'why wicket is cool' and more 'cut your development costs in two with Wicket' . And I do not think that the lack of support for pushing a JSR has anything to do with a lack of open-mindedness... Hoover, William wrote: I hear the arguments and I completely agree with the notion that innovation usually happens elsewhere and a JSR/JCP would slow that process down. I just want to objectively view the other side of the spectrum :o) From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. My hope is that the Wicket community can be as open-minded to this notion as they are to the open source code they represent :o) - 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 at ApacheCon EU'09 in Amsterdam
Unfortunately, those 'idiotic managers' (and I'm not disagreeing with you) hold the purse strings. The move to Apache was a big step towards acceptance by the business types. If you try to sell a new technology with a weird name to your manager, it's not helping that there are just some guys from the internet behind this (let's not argue whether that really matters or not, it's just about the impression it gives). Let's just say this: there are at least two angles to selling a particular technology: the business angle and the technical merits. While the technical merits of Wicket are evangalized, the business case is less promoted. Thomas PS: Just for the record, I'm totally opposed to starting a wicket JSR. On Fri, Feb 13, 2009 at 10:10 AM, Johan Compagner jcompag...@gmail.comwrote: and what would a wicket standard give you? Except that those idiotic managers then say its standardized.. now you can use it why is that is a standard for ever? dont think so everything dies. But would it run on more platforms? -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch
Re: How can I clear the value of an AutoCompleteTextField
target.appendJavascript(String.format(document.getElementById(%s).value = '', tagsTextfield.getMarkupId()));does not clear the text field. Any idea how to do this? Hbiloo On Thu, Feb 12, 2009 at 10:15 PM, Azzeddine Daddah waarhei...@gmail.comwrote: This is what I've till now. Clearing the text field does not work: private void addTagsPart(final Recipe recipe) { final WebMarkupContainer tagsContainer = new WebMarkupContainer(tagsContainer); final TagsAutoCompleteTextField tagsTextfield = new TagsAutoCompleteTextField(tags, new ModelTag()); add(tagsTextfield); tagsTextfield.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { String inputValue = tagsTextfield.getValue(); if (StringUtils.isNotBlank(inputValue)) { String[] splittedInputValues = StringUtils.split(inputValue, ,); for (String value : splittedInputValues) { recipe.addTag(new Tag(value)); } } } }); add(new IndicatingAjaxLinkString(addTagLink) { @Override public void onClick(AjaxRequestTarget target) { target.addComponent(tagsContainer); target.appendJavascript(String.format(document.getElementById(%s).value = '', tagsTextfield.getMarkupId())); target.appendJavascript(new Effect.Shake($(' + tagsContainer.getMarkupId() + '));); } }); tagsContainer.add(new ListViewTag(tags, new PropertyModelListTag(recipe, tags)) { @Override protected void populateItem(ListItemTag item) { Tag tag = item.getModelObject(); item.add(new Label(tag, tag.getName())); } }); tagsContainer.setOutputMarkupId(true); add(tagsContainer); } ... private class TagsAutoCompleteTextField extends AutoCompleteTextFieldTag { public TagsAutoCompleteTextField(String id, final IModelTag model) { super(id, model, new AbstractAutoCompleteTextRendererTag() { @Override protected String getTextValue(Tag tag) { return tag.getName(); } }); } @SuppressWarnings(unchecked) @Override protected IteratorTag getChoices(String input) { if (StringUtils.isBlank(input)) return Collections.EMPTY_LIST.iterator(); ListTag choices = new ArrayListTag(10); ListTag tags = RecipeService.getInstance().getAllPersistentTags(); for (Tag tag : tags) { if (tag.getName().toUpperCase().startsWith(input.toUpperCase())) { choices.add(tag); if (choices.size() == 10) break; } } return choices.iterator(); } } Regards, Hbiloo On Thu, Feb 12, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: If you copy-paste your code here we can probably dig into it better ... ** Martin 2009/2/12 Azzeddine Daddah waarhei...@gmail.com: Thanks guys for the quick replay. Martin: What I want to do is to select a value from the auto complete text field, and when clicking the Add button, the selected value should be added to the tagsContainer (which is in fact a div that wraps the added values) and cleared from the text field. Luca: I've tried your suggestion but it didn't help. I've also tried to clear the text field using Javascript target.appendJavascript(String.format(document.getElementById('%s').value = '', auto.getOutputMarkupId())); but it also didn't work. Are there any other suggestions ways to implement this? Kind Regards Hbiloo On Thu, Feb 12, 2009 at 11:24 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Also depending on your situation, clearInput might be necessary? ** Martin 2009/2/12 Luca Provenzani eufor...@gmail.com: i think you can put the field of the model/bean of the form to empty and then call target.addComponet(tagsContainer); what kind of effect do you want? If you need to call javascript you can use target.appendJavaScript()... Luca 2009/2/12 Azzeddine Daddah waarhei...@gmail.com Hello everyone, Could someone please tell me how I can clear the selected value of an AutoCompleteTextField. I've an AutoCompleteTextField and a link which should clear the value of the text field after clicking it. I would also do some effects after clearing this value. Below my code: final AutoCompleteTextFieldString auto = new AutoCompleteTextFieldString(auto, new ModelString()) ... form.add(auto); form.add(new
How to access ListItem from ListView from AjaxLink?
I would like to add an attribute to the ListItem element in the markup (basically change the class style) on click of the link. Below is my snippet. Any insight on how I can accomplish this? Thanks in advance! ListView lv = new ListView(tabListView, tabList) { protected void populateItem(ListItem item) { AjaxLink ajaxLink = new AjaxLink(tabLink, item.getModel()) { public void onClick(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class, on)); // want to do this but do not have access to item object from inner class -- ideas for this? . . . -- View this message in context: http://www.nabble.com/How-to-access-ListItem-from-ListView-from-AjaxLink--tp21998739p21998739.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 at ApacheCon EU'09 in Amsterdam
First of all, thank you for entertaining this idea :o) See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 9:38 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? Answer: They do not have multiple implementations now, but they could potentially have them in the future. It would mean that other communities could follow a standard and mangement could be satisfied that Wicket has the backing of a recognized standard. There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? Answer: I agree that other frameworks that have a standard have been disastrous as far as portability between implementations (such as the loosly organized JSF specification), but the locking I'm referring to is in realation to the vendor (Wicket in this case) from a business standpoint. I for one do not have an issue with being tightly coupled to Wicket, but I can see why managment may have an issue with it. A question we need to ask ourselves from a management standpoit is if for whatever reason we had to migrate from Wicket to another framework, what revenue impact would that have on our organization in doing so? If we chose a standards base solution would this minimize the risk due to multiple vendor offerings? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Answer: This is a preliminary concept, but the Swing-like architecture for the web could be a starting point? Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. look hibernate is an implementation of a persistence.. And they adapted (and where involved) into the specifications yes Ok now translate that to wicket.. What is wicket an implementation of? a webframework? ahh.. tapestry is also a webframework and struts is also a webframework They all implement the standard webframework spec.. which is the servlet spec.. So JPA Spec == Servlet Spec Hibernate == Wicket TopLink == Tapestry So wicket is already in the JSR/JCP ! we are an enhancement/implementation of the servlet spec :) ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and tomcat ;) not the thing you would build on top of that again But then if you have wicket,tapestry and struts (and x and y) and then you want to define a Web Framework spec that all of them can adapt to what would that then be? What would that then gain? Would that mean that tapestry components/pages could run inside wicket? It is just not as easy to do as with a persistence spec. Which is pretty easy because so many things kind of already work the same way before they where under the same spec.. web frameworks differ quite a bit Answer: Ironically, the same argument that Wicket follows the Servlet specification is the same one I used in some of the dicusssions with my colleagues ;o) I think there is a lot to gain in standardizing a Swing-like architecture such as Wicket. The answer to your question is the same reason why Wicket prides itself as a truly decoupled solution that facilitates a true MVC2 model. As stated previously, it would also gain more corporate acceptance. I think that web framework only differs from other tiers because noone has come to the table with a more viable solution than JSP/JSF in the
Re: Wizard Custom Layout example
simply subclass wizard and provide your own markup. -igor On Thu, Feb 12, 2009 at 11:57 PM, John Armstrong siber...@gmail.com wrote: Hi WicketFolk, Can anyone point me to a relatively complete example of an Wizard implementation with custom layout? I'm fairly new to the framework and this would help me out quite a bit as the default table based structure is causing my designer to get a bit crazy.. API says : This default implementation should be useful for basic cases, if the layout is exactly what you need. If you want to provide your own layout and/ or have more or less components (e.g. you want to additionally provide an overview component), you can override this class and add the components you want yourself using methods like newButtonBar(String) et-cetera. If someone points me to one I'll generalize it and update the wiki for future generations. Thanks John- - 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: What's your take on handling markup in properties, html, wicket
Create a panel with just the markup you need and switch them out with the isvisible based on the current language needed? Similar to the post for Re: Adding/Replacing links in Panels by Michael Sparer below. I use WebMarkupContainer, but I only have two states. 14 may get a little messy Warren Mathias P.W Nilsson wrote: Hi, Just wondering how this should be handled without DRY. In many scenarios we have multiple languages that should have the same markup but different text. This could be handled by using variation and put every language in an own html file like myWicketPage_style_en.html. However, this is not the optimal way and I don't think variation is made for this either. It would be very annoing having 14 different html files if we have 14 different languages that we should support. Sometimes the languages should look different ( not the same look. Different positioning of elements ) and here we could use variation. As far as I'm concerned this is not the right way of handling look and feel. Different css should be used instead and then place position, coloring of the markup in a css. The html file should be the same and the css should handle the layout. Take a look at http://www.csszengarden.com/ http://www.csszengarden.com/ Every time I'm dealing with multiple languages the user wants bold, italic, color in the text. Many times a list will appear just containing text. ( Nothing to do with extracting data from database and let wicket handle it ) This could be added in a properties file but then we would have bold tags, italic and style tags in the properties file. If something should change we need to go thru 14 properties files to change the markup in the properties. Let's say we have the following text in many different languages. Some markup is changed so you know what I mean. boldWelcome to our company/boldbrbrHere is some long text.ullisome [BOLD]text[/BOLD]/liliother text/li/ul Now imaging this text to be very long. Now, my question is this. How do you handle tagged markup for different languages without repeating markup tags. * Variation and the text in the html file. * different properties file with markup in it * Other technique? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What's your take on handling markup in properties, html, wicket
Ideally the markup should stay in the markup file and the text in that markup that needs to be localized would be localized via wicket:message and a properties file. In cases like below, you would break the text into properties-localized hunks and into panels with multiple markup localization files where markup is truly being localized (you have little other choice if the styling needs to be localized). How that's split up is up to you. In the example you gave, maybe: boldwicket:message key=welcome//boldbrbrwicket:messsage key=longText/ div wicket:id=bulletPanel/ welcome=Welcome to our company longText=Here is some long text BulletPanel.html_en wicket:panel ullisome [BOLD]text[/BOLD]/liliother text/li/ul /wicket:panel i would generally try to avoid putting much markup in properties files since that's a surprising use of properties files. Mathias P.W Nilsson wrote: Hi, Just wondering how this should be handled without DRY. In many scenarios we have multiple languages that should have the same markup but different text. This could be handled by using variation and put every language in an own html file like myWicketPage_style_en.html. However, this is not the optimal way and I don't think variation is made for this either. It would be very annoing having 14 different html files if we have 14 different languages that we should support. Sometimes the languages should look different ( not the same look. Different positioning of elements ) and here we could use variation. As far as I'm concerned this is not the right way of handling look and feel. Different css should be used instead and then place position, coloring of the markup in a css. The html file should be the same and the css should handle the layout. Take a look at http://www.csszengarden.com/ http://www.csszengarden.com/ Every time I'm dealing with multiple languages the user wants bold, italic, color in the text. Many times a list will appear just containing text. ( Nothing to do with extracting data from database and let wicket handle it ) This could be added in a properties file but then we would have bold tags, italic and style tags in the properties file. If something should change we need to go thru 14 properties files to change the markup in the properties. Let's say we have the following text in many different languages. Some markup is changed so you know what I mean. boldWelcome to our company/boldbrbrHere is some long text.ullisome [BOLD]text[/BOLD]/liliother text/li/ul Now imaging this text to be very long. Now, my question is this. How do you handle tagged markup for different languages without repeating markup tags. * Variation and the text in the html file. * different properties file with markup in it * Other technique? -- View this message in context: http://www.nabble.com/What%27s-your-take-on-handling-markup-in-properties%2C-html%2C-wicket-tp21995782p2245.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: What's your take on handling markup in properties, html, wicket
We use a combination of the following for that sort of l10n/i18n. 1. wicket:message 2. A Label with a StringResourceModel, and setEscapeModelStrings(true) 3. Fragments Scott On Fri, Feb 13, 2009 at 8:16 AM, Warren Bell warrenbe...@gmail.com wrote: Create a panel with just the markup you need and switch them out with the isvisible based on the current language needed? Similar to the post for Re: Adding/Replacing links in Panels by Michael Sparer below. I use WebMarkupContainer, but I only have two states. 14 may get a little messy Warren Mathias P.W Nilsson wrote: Hi, Just wondering how this should be handled without DRY. In many scenarios we have multiple languages that should have the same markup but different text. This could be handled by using variation and put every language in an own html file like myWicketPage_style_en.html. However, this is not the optimal way and I don't think variation is made for this either. It would be very annoing having 14 different html files if we have 14 different languages that we should support. Sometimes the languages should look different ( not the same look. Different positioning of elements ) and here we could use variation. As far as I'm concerned this is not the right way of handling look and feel. Different css should be used instead and then place position, coloring of the markup in a css. The html file should be the same and the css should handle the layout. Take a look at http://www.csszengarden.com/ http://www.csszengarden.com/ Every time I'm dealing with multiple languages the user wants bold, italic, color in the text. Many times a list will appear just containing text. ( Nothing to do with extracting data from database and let wicket handle it ) This could be added in a properties file but then we would have bold tags, italic and style tags in the properties file. If something should change we need to go thru 14 properties files to change the markup in the properties. Let's say we have the following text in many different languages. Some markup is changed so you know what I mean. boldWelcome to our company/boldbrbrHere is some long text.ullisome [BOLD]text[/BOLD]/liliother text/li/ul Now imaging this text to be very long. Now, my question is this. How do you handle tagged markup for different languages without repeating markup tags. * Variation and the text in the html file. * different properties file with markup in it * Other technique? - 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: Correct way to deal with serialization and casting
if you add a private variable that is imodel you have to detach it yourself, perhaps that is your problem. you do this by overriding ondetach() { field.detach(); super.ondetach(); } -igor On Fri, Feb 13, 2009 at 1:36 AM, pieter claassen pie...@claassen.co.uk wrote: Ok, feedback on my own problem. It seems that if you create a private variable and assign an IModel to it, then access it from within the onClick() method in a listview, that it doesn't always work. You have to explicitly add the model to the Link constructor for this to work. It seems that the approach below doesn't always work in wicket. Thanks for the feedback so far. Pieter On Thu, Feb 12, 2009 at 11:20 PM, pieter claassen pie...@claassen.co.ukwrote: Just to make sure I understand this correctly. 1. Line 2: By storing an IModel mywebmodel that nulls the object reference onDetach(), on my webpage, is ok for serialiazation? 2. Line 8: When I cast the IModel to MyObject, is there a way to make this more safe at compile time? 3. Line 8: object is a database object in a field on MyObject. The fact that I assign a reference to it in a local variable, does that mean this object is going to be serialized with the page? What is actually being serialized (the java, the html, bytecode?) 4. Line 9: Rather than call EditWebPage with a generic IModel and do the runtime cast thing, I subclassed IModel into a number of webmodels such as ObjectModel implements IModel. This creates more programming work but at least provides some type safety during compile time. Is this the recommended way to go or is there a better way? 1 public class MyWebPage extends WebPage{ 2 private final IModel mywebmodel; 3 public MyWebPage(IModel model){ 4 mywebmodel=model; 5 setModel(new CompoundPropertyModel(mywebmodel); 6 add(new Link(edit){ 7public void onClick(){ 8 MyObject object=(MyObject) mywebmodel.getModelObject().getChild(); 9 setResponsePage(new EditWebPage(new IModel(object))); 10} 11 } 12} 13} - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
even if you do not use maven it is very easy to use it to discover all the needed dependencies a maven project needs using mvn dependency:tree -igor On Fri, Feb 13, 2009 at 1:55 AM, Martin Voigt martin.vo...@artnology.com wrote: Hi, i think the manual page of sl4j http://www.slf4j.org/manual.html makes it very clear, just read the small red part. As for the wicket homepage, this would fit into the wiki if it's not already there. But since wicket uses maven and most projects that use wicket also use it, missing jars are an issue of the past (well, it's missing dependencies now ;) ). If you can I'd suggest you use maven as your build and dependency management tool for your project. Martin 2009/2/13 M Goodell li...@pdc4u.com: Whoo-H!!! That worked. Thank you! Should that be made more clear on the Wicket home page or did I miss something on the SLF4J page? Again . . . Thank you! M. Goodell -Original Message- From: Martin Voigt [mailto:martin.vo...@artnology.com] Sent: Thursday, February 12, 2009 3:53 PM To: users@wicket.apache.org; li...@pdc4u.com Subject: Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory It looks like your missing the slf4j-api.jar. slf4j-log4j12-1.5.6.jar is just the glue to make slf4j use log4j. Martin 2009/2/12 M Goodell li...@pdc4u.com: Hello, I am in the process of evaluating Wicket for an upcoming project and in the process of writing some proof of concept code. Or trying to anyway. The problem I am having is that I keep getting the exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory after deploying and attempting to run the application. According to the Wicket quick start all I need to do is: You cannot use Wicket without adding an SLF4J logging implementation to your classpath. Most people use log4j. If you do, just include slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you want to use commons-logging or JDK14 logging or something else, please see the SLF4J site for more information. The following jars are on my classpath: - log4j-1.2.15.jar - slf4j-log4j12-1.5.6.jar - wicket-1.3.5.jar - wicket-auth-roles-1.3.5.jar - wicket-datetime-1.3.5.jar - wicket-extensions-1.3.5.jar - wicket-guice-1.3.5.jar - wicket-ioc-1.3.5.jar - wicket-jmx-1.3.5.jar - wicket-objectsizeof-agent-1.3.5.jar - wicket-spring-1.3.5.jar - wicket-spring-annot-1.3.5.jar Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23 and JDK 5 Am I missing jar a jar file(s) here that is not mentioned in the docs? I have tried to find the correct jar from the SLF4J distro but still no luck. Any suggestions are welcome!!! Thank you! M. Goodell NetBeans stack trace: SEVERE: Exception starting filter WicketApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:208) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon fig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36 35) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:457) at
Re: Wicket at ApacheCon EU'09 in Amsterdam
swing like? are there multiply implementations for swing? Can i choose one from Sun and one from X? or better said are there any desktop UI frameworks that do have multiply implementations (for the same platform??) not that i know of . There could be a reason for that so your managers just want to program against interfaces.. And be able to drop it into any container i dont see the point. That makes testing only more horrible, every container has its own bugs and slightly different behaviors... Does anybody here on the list made a application using JPA persistence and the first against hibernate and then when it was finished swapped it for something else? johan On Fri, Feb 13, 2009 at 16:59, Hoover, William whoo...@nemours.org wrote: First of all, thank you for entertaining this idea :o) See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 9:38 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? Answer: They do not have multiple implementations now, but they could potentially have them in the future. It would mean that other communities could follow a standard and mangement could be satisfied that Wicket has the backing of a recognized standard. There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? Answer: I agree that other frameworks that have a standard have been disastrous as far as portability between implementations (such as the loosly organized JSF specification), but the locking I'm referring to is in realation to the vendor (Wicket in this case) from a business standpoint. I for one do not have an issue with being tightly coupled to Wicket, but I can see why managment may have an issue with it. A question we need to ask ourselves from a management standpoit is if for whatever reason we had to migrate from Wicket to another framework, what revenue impact would that have on our organization in doing so? If we chose a standards base solution would this minimize the risk due to multiple vendor offerings? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Answer: This is a preliminary concept, but the Swing-like architecture for the web could be a starting point? Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. look hibernate is an implementation of a persistence.. And they adapted (and where involved) into the specifications yes Ok now translate that to wicket.. What is wicket an implementation of? a webframework? ahh.. tapestry is also a webframework and struts is also a webframework They all implement the standard webframework spec.. which is the servlet spec.. So JPA Spec == Servlet Spec Hibernate == Wicket TopLink == Tapestry So wicket is already in the JSR/JCP ! we are an enhancement/implementation of the servlet spec :) ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and tomcat ;) not the thing you would build on top of that again But then if you have wicket,tapestry and struts (and x and y) and then you want to define a Web Framework spec that all of them can adapt to what would that then be? What would that then gain? Would that mean that tapestry components/pages
Re: HTML can't reference a component (Label) multiple times?
not to mention it doesnt make sense for a lot of usecases, eg setoutputmarkupid() if you call it then the two rendered components will have the same markup id - whoops. which means this will break javascript, ajax, etc, etc. -igor On Fri, Feb 13, 2009 at 2:59 AM, Martijn Dashorst martijn.dasho...@gmail.com wrote: 99.99% of the time this is an error: a component is referenced multiple times in markup. Therefore we don't allow one component to be rendering in multiple places. For that 0.01% of useful cases, it is not too difficult to just add the label component twice. Martijn On Thu, Feb 12, 2009 at 8:54 PM, Phil Grimm phil.gr...@gmail.com wrote: Guys, If I need to reference a Label multiple times on the page. Is there a better way than creating multiple redundant but distinct labels? Is this the only option? add(new Label(authorName1)); add(new Label(authorName2)); add(new Label(authorName3)); span wicket:id=authorName1/span span wicket:id=authorName2/span span wicket:id=authorName3/span This (non-one-to-one) usage... add(new Label(authorName)); span wicket:id=authorName/span span wicket:id=authorName/span ... causes error: WicketMessage: The component [Component id = author.name] has the same wicket:id as another component already added at the same level Phil -- Phil Grimm Mobile: (858) 335-3426 Skype: philgrimm336 -- 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Model on Select
whenever a listview contains form components you have to call setreuseitems(true). its in the javadoc, it has been mentioned on this list a thousand times. its probably on the wiki page somewhere. -igor On Thu, Feb 12, 2009 at 3:09 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: Hi, I'm using CompoundPropertyModel on a form. When using with SelectOption I can't set the selected index. The none select option is there to add a none to the list. How can I set the selected option in the listview? Any Pointers? materialCategoryInformation = new Select(materialCategoryInformation ); materialCategoryInformation.add(new SelectOption(none, new Model(/*NULL*/))); materialCategoryInformation.setRequired(true); materialCategoryInformation.setOutputMarkupId( true ); ListView materialCategoryList = new ListView( materialCategoryList , materialCategoryModel ){ private static final long serialVersionUID = 1L; @Override protected void populateItem( final ListItem item ){ item.setRenderBodyOnly( true ); final CodedChainInformation codedInformation = (CodedChainInformation) item.getModelObject(); SelectOption option = new SelectOption( option , new Model( (Serializable) item.getModelObject() )){ private static final long serialVersionUID = 1L; @Override protected void onComponentTagBody( MarkupStream markupStream, ComponentTag tag ){ String name = codedInformation.getName(); if( ! codedInformation.isSeparator() ) name = nbsp;nbsp; + name; replaceComponentTagBody(markupStream, tag, name ); } }; item.add( option ); if( codedInformation.isSeparator() ){ option.add( new SimpleAttributeModifier( class , separator )); }else{ option.add( new SimpleAttributeModifier( class , sub ) ); } } }; -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p21973981.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: Tabbed Page
inside your first level tab that will contain other tabbed panel you need div wicket:id=innerTabs/div for the inner panel to attach to. -igor On Fri, Feb 13, 2009 at 4:18 AM, Daniel Ferreira Castro dfcas...@gmail.com wrote: I am trying to figure out what tag is beeing expected... This is my base page markup !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html wicket:head /wicket:head body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div div class=spacer/div wicket:child/ /body /html This is my basepage implementation public class BasePage extends WebPage { private final ListITabtabs = new ArrayListITab(); public BasePage() { inicializaComponentes(); add(new AjaxTabbedPanel(tabs, tabs)); } @SuppressWarnings(unchecked) private void inicializaComponentes(){ tabs.add(new CadastroTab(new Model (Cadastro))); } } This is the implementation of CadastroTab public class CadastroTab extends AbstractTab { private static final long serialVersionUID = 4682446014181156021L; public CadastroTab(IModelString id) { super(id); // TODO Auto-generated constructor stub } @Override public Panel getPanel(String arg0) { // TODO Auto-generated method stub Panel painel = new CadastroPanel(arg0); return painel; } } This is the markup of CadastroPainel !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html This is the Implementation of CadastroPanel public class CadastroPanel extends Panel { private static final long serialVersionUID = 4682446014181156004L; private final ListITab tabs = new ArrayListITab(); public CadastroPanel(String id) { super(id); inicializaTabs(); add(new AjaxTabbedPanel(Cadastro, tabs)); // TODO Auto-generated constructor stub } private void inicializaTabs() { tabs.add(new AbstractTab(new Model(Categoria)) { public Panel getPanel(String panelId) { return new CadastroCategoriaPanel(panelId); } }); } } And the last part if the Markup of CadastroCategoriaPanel and its markup public class CadastroCategoriaPanel extends Panel { private static final long serialVersionUID = 4682446014181156010L; public CadastroCategoriaPanel(String id) { super(id); // TODO Auto-generated constructor stub } } ?xml version=1.0 encoding=UTF-8? html xmlns=http://www.w3.org/1999/xhtml; wicket:panel br/ This is tab-panel 3 /wicket:panel /html The error that I get is this WicketMessage: Tag expected [markup = file:/E:/Daniel/Projetos/ecommFwkBackOffice/target/classes/com/jasp/ecommfwk/pages/common/layout/panels/CadastroPanel.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html, index = 5, current = [Raw markup]] Root cause: org.apache.wicket.markup.MarkupException: Tag expected [markup = file:/E:/Daniel/Projetos/ecommFwkBackOffice/target/classes/com/jasp/ecommfwk/pages/common/layout/panels/CadastroPanel.html !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 META HTTP-EQUIV=CACHE-CONTROL CONTENT=NO-CACHE html body div wicket:id=tabs class=tabpanel[tabbed panel will be here]/div /body /html, index = 5, current = [Raw markup]] at org.apache.wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:465) at org.apache.wicket.markup.MarkupStream.getTag(MarkupStream.java:269) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:639) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at org.apache.wicket.Component.renderComponent(Component.java:2596) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1521) at org.apache.wicket.Component.render(Component.java:2421) at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1399) at org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1586) at org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:668) at org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) at
Re: How to get a reference to the holding page from a panel
make the panel an anonymous or inner class of the page and use MyPage.this. -igor On Fri, Feb 13, 2009 at 6:14 AM, pieter claassen pie...@claassen.co.uk wrote: Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks, Pieter - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to access ListItem from ListView from AjaxLink?
final ListItem item -igor On Fri, Feb 13, 2009 at 7:36 AM, moontz bmun...@yahoo.com wrote: I would like to add an attribute to the ListItem element in the markup (basically change the class style) on click of the link. Below is my snippet. Any insight on how I can accomplish this? Thanks in advance! ListView lv = new ListView(tabListView, tabList) { protected void populateItem(ListItem item) { AjaxLink ajaxLink = new AjaxLink(tabLink, item.getModel()) { public void onClick(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class, on)); // want to do this but do not have access to item object from inner class -- ideas for this? . . . -- View this message in context: http://www.nabble.com/How-to-access-ListItem-from-ListView-from-AjaxLink--tp21998739p21998739.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 access ListItem from ListView from AjaxLink?
i tried that before. did not work. no compile or runtime errors, but the source did not show the change. im thinking, since its an ajax link and because only the target panel refreshes, the change to the link is not applied because the actual link is not refreshed. only the other panel is. in which case i would need to append javascript. i was hping there was a pure wicket solutioin though without using JS. igor.vaynberg wrote: final ListItem item -igor On Fri, Feb 13, 2009 at 7:36 AM, moontz bmun...@yahoo.com wrote: I would like to add an attribute to the ListItem element in the markup (basically change the class style) on click of the link. Below is my snippet. Any insight on how I can accomplish this? Thanks in advance! ListView lv = new ListView(tabListView, tabList) { protected void populateItem(ListItem item) { AjaxLink ajaxLink = new AjaxLink(tabLink, item.getModel()) { public void onClick(AjaxRequestTarget target) { item.add(new SimpleAttributeModifier(class, on)); // want to do this but do not have access to item object from inner class -- ideas for this? . . . -- View this message in context: http://www.nabble.com/How-to-access-ListItem-from-ListView-from-AjaxLink--tp21998739p21998739.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/How-to-access-ListItem-from-ListView-from-AjaxLink--tp21998739p22001477.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: Model on Select
That may be the case but I have already tried that and it does not solve my problem. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001539.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
Reg Radio button
Hi All I have a Radio button group For eg imagine Country: - USA - UK - etc If one of the country is selected i want to write logic( if any one of the option is selected.) which method i have to override for this.( For eg if we have a link then we override the method onClick() and if it is a form we override onSubmit() ).. Thanks Swapna
Re: Model on Select
then you are more then welcome to provide a quickstart attached to a jira issue. -igor On Fri, Feb 13, 2009 at 9:50 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: That may be the case but I have already tried that and it does not solve my problem. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001539.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: Model on Select
Thanks anyway for your time, but I think I will stick to DropDownChoice for now. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001718.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: Wizard Custom Layout example
Thanks Igor, I am already subclassing the wizard so that I can dynamically add steps based on entities in the object. I also have overridden the newButton(string) etc but the more subtle interactions are not clear to me. For example, I override newButtonBar(string). I get the basic table markup with my panel injected but now I need to dig in and locate how wicket is expecting the next/prev/finish/cancel buttons to be presented and provide ID's for those etc. Its not a huge problem and it will only take a few hours to dig through the resources and see what is expected. I was just hoping for a canned example. Sounds like that doesn't exist so I'll spend some time and create one. Thanks! John- On Fri, Feb 13, 2009 at 8:03 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: simply subclass wizard and provide your own markup. -igor On Thu, Feb 12, 2009 at 11:57 PM, John Armstrong siber...@gmail.com wrote: Hi WicketFolk, Can anyone point me to a relatively complete example of an Wizard implementation with custom layout? I'm fairly new to the framework and this would help me out quite a bit as the default table based structure is causing my designer to get a bit crazy.. API says : This default implementation should be useful for basic cases, if the layout is exactly what you need. If you want to provide your own layout and/ or have more or less components (e.g. you want to additionally provide an overview component), you can override this class and add the components you want yourself using methods like newButtonBar(String) et-cetera. If someone points me to one I'll generalize it and update the wiki for future generations. Thanks John- - 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: Reg Radio button
in your form.onsubmit() you can check the value of the model - which will give you the selected option. -igor On Fri, Feb 13, 2009 at 9:54 AM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have a Radio button group For eg imagine Country: - USA - UK - etc If one of the country is selected i want to write logic( if any one of the option is selected.) which method i have to override for this.( For eg if we have a link then we override the method onClick() and if it is a form we override onSubmit() ).. Thanks Swapna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket at ApacheCon EU'09 in Amsterdam
I see that pushing for a Wicket standard is futile, but I will make one last attempt to answer some of your questions... See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 12:17 PM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam swing like? are there multiply implementations for swing? Can i choose one from Sun and one from X? or better said are there any desktop UI frameworks that do have multiply implementations (for the same platform??) not that i know of . There could be a reason for that Answer: Swing-like is referring to the programming model style- not the actual Swing framework (thus the word like :o). However, there could very well be other implementations for Swing, but that is another topic altogether. One of the reasons why you don't see multiple implementations of Swing is that it is part of Sun's Java Foundation Classes (JFC)- web frameworks are not ;o) so your managers just want to program against interfaces.. And be able to drop it into any container i dont see the point. That makes testing only more horrible, every container has its own bugs and slightly different behaviors... Answer: The reasoning that every container has its own bugs and slightly different behaviors is the very reason why management may want the flexibility to change implementations (the purpose for the standard in the first place). One implementation may not implement some features as well as others. Does anybody here on the list made a application using JPA persistence and the first against hibernate and then when it was finished swapped it for something else? Answer: It is highly plausible that a switch would be made from one JPA implementation to another. I know of companies that have switched from Hiberante to OpenJPA to do just that. Other reasons may include, but are not limited to: better support from one vendor to the next, discounted support through partner programs, light-weight implementation, etc. On Fri, Feb 13, 2009 at 16:59, Hoover, William whoo...@nemours.org wrote: First of all, thank you for entertaining this idea :o) See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 9:38 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? Answer: They do not have multiple implementations now, but they could potentially have them in the future. It would mean that other communities could follow a standard and mangement could be satisfied that Wicket has the backing of a recognized standard. There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? Answer: I agree that other frameworks that have a standard have been disastrous as far as portability between implementations (such as the loosly organized JSF specification), but the locking I'm referring to is in realation to the vendor (Wicket in this case) from a business standpoint. I for one do not have an issue with being tightly coupled to Wicket, but I can see why managment may have an issue with it. A question we need to ask ourselves from a management standpoit is if for whatever reason we had to migrate from Wicket to another framework, what revenue impact would that have on our organization in doing so? If we chose a standards base solution would this minimize the risk due to multiple vendor offerings? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Answer: This is a preliminary concept, but the Swing-like architecture for the web could be a starting point? Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement
Re: AbstractAjaxTimerBehavior / Firefox / Page constructor
That settings just triggers some code that checks if the pagemap name is equal to the window name if that isnt the case then it does a redict to a new page so that every browser window has its own pagemap Why do you have that setting enabled? With the disk store it is not really needed anymore On 13/02/2009, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Johan Compagner escreveu: if that happens then the newWindowBrowser detection is enabled and executed. This makes sure that a new tab or browser window (but same session) will have there own pagemap I have getPageSettings().setAutomaticMultiWindowSupport(true). But why AbstractAjaxTimerBehavior would cause a redirection (I see the new url with the wicket:pageMapName/wicket-N in the browser). And each time I enter in the page, N is incremented. May be something wrong on wicket javascripts? Adriano - 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 at ApacheCon EU'09 in Amsterdam
I do think that pushing a JSR for Wicket will have a negative influence on the spirit of Wicket and it's community due to the politics involved with a JSR. Politics are so not the Wicket way. This is what I mean with the wrong way and yes, that is mighty subjective. I also expect there will not be enough support from other parties to participate in a JSR (again, highly subjective), because there is nothing for them to gain. Which I believe is one of your main arguments: there will not be a broader input base. But I think Wicket receives enough input since the Wicket developers see what is happening in other projects around them and they take that with them. And without enough support, the JSR will be dropped and I think that in the corporate eye, Wicket will turn into 'that project that didn't make the JSR', and wide adoption will be even further away. But again, without a concrete proposal, I have no idea what the specification request would describe and what the scope of such a JSR would be. Could you elaborate on that? Maybe that clears things up for me. BTW, I think not that Hibernate has grown as a result of the JPA-standard, but that the Java EE standard has grown a a result of the emerging of ORM-tools (like Hibernate, Toplink etc.) and other popular application stacks, like Spring etc. The quality of Hibernate would have increased without the JPA-spec anyway (and ofcourse, there was - and there still is - enough opportunity to improve). Hoover, William wrote: I agree that we need to change the views of corporate managers in the right way by illustrating the cost savings achieved though a reduction in development time. At the same time, I don't believe that this will change the Wicket community in the wrong way (which is a highly subjective statement). I'm only presenting the alternative viewpoint. It is possible that a standard could potentially inhibit progression due to contrasting viewpoints within the community, but it is also equally possible that it could lead to a value-added aspect by introducing a broader input base to the Wicket community that could speed progression (Hibernate/JPA is an example of this). There is always a possibility that progress can be slowed as the number of members increase because there are more viewpoints to be examined/debated. I think that there is a higher probability that the community will grow if such a standard were to be adopted. Just because there is already a specification for a web framework (JSF) that does not constitute abandoning a standard approach. Look at JAX-WS vs JAX-RS. They accomplish many of the same objectives, but they both are part of the proposed profile stack (http://www.theserverside.com/tt/articles/article.tss?l=JavaEE6Overview) . A Wicket implementation could orchestrate a refreshing alternative approach to JSF in the same manner that it does today. When I referred to open-mindedness I was referring to being open-minded to the ideas behind the push... I didn't necessary intended to imply that anyone would not be open-minded if they did not support a JSR :o) -Original Message- From: Dave Schoorl [mailto:mailli...@cyber-d.com] Sent: Friday, February 13, 2009 9:21 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam I am not sure what you would like to standardize. Given your JPA example, I would guess that you want to push a JSR for a web framework or something. But there is already something like that: JSF. Just let Wicket be Wicket and instead of changing Wicket (and it's community) in the wrong way, let's try to change the views of corporate managers in the right way. As Thomas said earlier What we need is less talks titled 'why wicket is cool' and more 'cut your development costs in two with Wicket' . And I do not think that the lack of support for pushing a JSR has anything to do with a lack of open-mindedness... Hoover, William wrote: I hear the arguments and I completely agree with the notion that innovation usually happens elsewhere and a JSR/JCP would slow that process down. I just want to objectively view the other side of the spectrum :o) From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new
Re: Model on Select
use the quickstart maven2 archetype to generate a basic project. add code to it that replicates your problem. zip it up and attach it to a jira issue. -igor On Fri, Feb 13, 2009 at 10:05 AM, Mathias P.W Nilsson math...@snyltarna.se wrote: OK, How does that work. Do I extract vital parts or do I make an small test project? -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22001847.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: What's your take on handling markup in properties, html, wicket
It would be a lot of split ups in the properties files and a lot of wicket:message but I guess it is the best way when separation markup from pure text. This is always a problem. I'm dealing with the same concern when a user want's to add html markup to a news that is saved in the database. The best way would be to always have pure text and then some aspects on marking it up but I don't see how that could be accomplished. -- View this message in context: http://www.nabble.com/What%27s-your-take-on-handling-markup-in-properties%2C-html%2C-wicket-tp21995782p22001969.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: Model on Select
Hi again, I created a small project with wicket extension and here it worked fine, even if I used setReuseItems( false ). So the problem must be in my code somewere. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22002751.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: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
A lot of folks say they want to avoid the overhead that maven provides, but now that I'm used to maven I don't know what I would do without it. I use it for ALL projects big and small. On Fri, Feb 13, 2009 at 12:19 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: even if you do not use maven it is very easy to use it to discover all the needed dependencies a maven project needs using mvn dependency:tree -igor On Fri, Feb 13, 2009 at 1:55 AM, Martin Voigt martin.vo...@artnology.com wrote: Hi, i think the manual page of sl4j http://www.slf4j.org/manual.html makes it very clear, just read the small red part. As for the wicket homepage, this would fit into the wiki if it's not already there. But since wicket uses maven and most projects that use wicket also use it, missing jars are an issue of the past (well, it's missing dependencies now ;) ). If you can I'd suggest you use maven as your build and dependency management tool for your project. Martin 2009/2/13 M Goodell li...@pdc4u.com: Whoo-H!!! That worked. Thank you! Should that be made more clear on the Wicket home page or did I miss something on the SLF4J page? Again . . . Thank you! M. Goodell -Original Message- From: Martin Voigt [mailto:martin.vo...@artnology.com] Sent: Thursday, February 12, 2009 3:53 PM To: users@wicket.apache.org; li...@pdc4u.com Subject: Re: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory It looks like your missing the slf4j-api.jar. slf4j-log4j12-1.5.6.jar is just the glue to make slf4j use log4j. Martin 2009/2/12 M Goodell li...@pdc4u.com: Hello, I am in the process of evaluating Wicket for an upcoming project and in the process of writing some proof of concept code. Or trying to anyway. The problem I am having is that I keep getting the exception: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory after deploying and attempting to run the application. According to the Wicket quick start all I need to do is: You cannot use Wicket without adding an SLF4J logging implementation to your classpath. Most people use log4j. If you do, just include slf4j-log4j12.jar on your classpath to get Wicket to use log4j too. If you want to use commons-logging or JDK14 logging or something else, please see the SLF4J site for more information. The following jars are on my classpath: - log4j-1.2.15.jar - slf4j-log4j12-1.5.6.jar - wicket-1.3.5.jar - wicket-auth-roles-1.3.5.jar - wicket-datetime-1.3.5.jar - wicket-extensions-1.3.5.jar - wicket-guice-1.3.5.jar - wicket-ioc-1.3.5.jar - wicket-jmx-1.3.5.jar - wicket-objectsizeof-agent-1.3.5.jar - wicket-spring-1.3.5.jar - wicket-spring-annot-1.3.5.jar Bear in mind that this is a NetBeans 6.5 project using apache-tomcat-5.5.23 and JDK 5 Am I missing jar a jar file(s) here that is not mentioned in the docs? I have tried to find the correct jar from the SLF4J distro but still no luck. Any suggestions are welcome!!! Thank you! M. Goodell NetBeans stack trace: SEVERE: Exception starting filter WicketApplication java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.wicket.protocol.http.WicketFilter.clinit(WicketFilter.java:76) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces sorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc torAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter Config.java:208) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil terConfig.java:302) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon fig.java:78) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:36 35) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
Re: Setting TreeState in new page
Never mind, I figured it out. Caching the TreeState didn't get me there because it didn't contain the information I needed. I had to do my own bookkeeping, but overriding LinkTree.newTreeState() was ultimately where things got set aright. -- View this message in context: http://www.nabble.com/Setting-TreeState-in-new-page-tp21996538p22003438.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: FormTester selectMultiple CheckBoxMultipleChoice help
On Wed, 11 Feb 2009, ray bon wrote: I am trying to test the case where a user is changing the set of checked options for a CheckBoxMultipleChoice. When using FormTester.selectMultiple the new values are added rather than replacing the existing values. ... How do I get FormTester to unselect values? Sounds like a fair enough feature, could you please add a Jira issue? Meanwhile you can do formTester.setValue(checkBoxMultipleChoice, ); in between to get the values reset. E.g. this works in FormTesterTest as far as I can tell: public void testSelectingMultipleCheckboxesAfterSubmitResetsPreviousSelections() { assertBooksEquals(new Book[0], choicePage.checkBoxMultipleChoice); formTester.selectMultiple(checkBoxMultipleChoice, new int[] { 1, 0, 3 }); formTester.submit(); assertBooksEquals(new Book[] { books[0], books[1], books[3] }, choicePage.checkBoxMultipleChoice); formTester = tester.newFormTester(choiceForm); formTester.setValue(checkBoxMultipleChoice, ); formTester.selectMultiple(checkBoxMultipleChoice, new int[] { 2 }); formTester.submit(); assertBooksEquals(new Book[] { books[2] }, choicePage.checkBoxMultipleChoice); } I know I can look at the source code and extend this class, but this seems like an awkward solution for what appears to me to be a very common use case. I don't think that it's so common, though. With WicketTester tests, it's more normal to have the very small and focused and not submit different selections. If you're doing something on each selection, it should typically be Ajax and then you should be doing executeAjaxEvent()s anyway. Best wishes, Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
On Thu, 12 Feb 2009, Martin Makundi wrote: 1. I have a form 2. The form has checkboxes 3. The form has other fields The checkboxes are used to disable specific fields in the form. Whenever the user changes the checkbox state, I want to use AjaxEventBehavior or similar to update the form components dependent on the particular checkbox (just to set them enabled/disabled). If you repaint the component from the server, and want to retain its input, you have to submit to the server and store it to the model (with a suitable *submittingbehavior) so that it will have the correct value on the repaint. Because the Ajax response content always comes directly from the server it has only access to submitted data. So, if you have one checkbox that toggles several input elements, you must use a behavior that submits the whole form. Another option is to do it purely on the client side -- toggle the input DOM element properties with javascript attached on the correct event handler (onclick I think?) of the checkboxes. Your favourite Javascript library (e.g. http://acko.net/files/jQuery%20-%2023%20March%202007.pdf ) can come handy there. 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
Re: create custom feedback panel list
On Fri, 13 Feb 2009, Christoph Grün wrote: How can I create a custom ComponentFeedbackPanel so that I the html markup is customized (without ulli)? KoolFeedbackPanel.java: public class KoolFeedbackPanel extends ComponentFeedbackPanel { public KoolFeedbackPanel(String id, Component filter) { super(id, filter); } } KoolFeedbackPanel.html: html xmlns:wicket body wicket:panel div wicket:id=feedbackul class=feedbackPanel div wicket:id=messages class=errorlevel span wicket:id=message class=errorlevelA message/span /div /div /wicket:panel /body /html 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
Re: Intellij Idea Plugin Bounty
On Fri, 13 Feb 2009, Andreas Petersson wrote: i got the dtd, but where exactly in intellij can you associate the wicket dtd with xhtml. setup external resource did not work. I've done something like this in the HTML files html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=enbody If you have better ideas, they are most welcome. 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
Re: Intellij Idea Plugin Bounty
I'm working on an intention that will insert that into the root markup element. On Fri, Feb 13, 2009 at 12:55 PM, Timo Rantalaiho timo.rantala...@ri.fiwrote: On Fri, 13 Feb 2009, Andreas Petersson wrote: i got the dtd, but where exactly in intellij can you associate the wicket dtd with xhtml. setup external resource did not work. I've done something like this in the HTML files html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd; xml:lang=en lang=enbody If you have better ideas, they are most welcome. 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 -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com
Re: FormTester selectMultiple CheckBoxMultipleChoice help
Timo Rantalaiho wrote: Sounds like a fair enough feature, could you please add a Jira issue? Meanwhile you can do formTester.setValue(checkBoxMultipleChoice, ); in between to get the values reset. I have submitted a Jira issue http://issues.apache.org/jira/browse/WICKET-2104 WICKET-2104 with a solution that allows a choice between toggle or append. I tried the setValue() but IIRC, it manipulated the model. I only want the set of checkboxes to change on the form and be committed on submit. At present we are in non AJAX phase. -- View this message in context: http://www.nabble.com/FormTester-selectMultiple-CheckBoxMultipleChoice-help-tp21971209p22004857.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 at ApacheCon EU'09 in Amsterdam
Hmm... some time ago (approx 1,5 year ) was attempts to marry JBoss Seam and Wicket. Was it successful? May be this is an example, why wicket should to be treated as a standard? Oleg On Fri, Feb 13, 2009 at 4:59 PM, Hoover, William whoo...@nemours.orgwrote: First of all, thank you for entertaining this idea :o) See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 9:38 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? Answer: They do not have multiple implementations now, but they could potentially have them in the future. It would mean that other communities could follow a standard and mangement could be satisfied that Wicket has the backing of a recognized standard. There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? Answer: I agree that other frameworks that have a standard have been disastrous as far as portability between implementations (such as the loosly organized JSF specification), but the locking I'm referring to is in realation to the vendor (Wicket in this case) from a business standpoint. I for one do not have an issue with being tightly coupled to Wicket, but I can see why managment may have an issue with it. A question we need to ask ourselves from a management standpoit is if for whatever reason we had to migrate from Wicket to another framework, what revenue impact would that have on our organization in doing so? If we chose a standards base solution would this minimize the risk due to multiple vendor offerings? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Answer: This is a preliminary concept, but the Swing-like architecture for the web could be a starting point? Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. look hibernate is an implementation of a persistence.. And they adapted (and where involved) into the specifications yes Ok now translate that to wicket.. What is wicket an implementation of? a webframework? ahh.. tapestry is also a webframework and struts is also a webframework They all implement the standard webframework spec.. which is the servlet spec.. So JPA Spec == Servlet Spec Hibernate == Wicket TopLink == Tapestry So wicket is already in the JSR/JCP ! we are an enhancement/implementation of the servlet spec :) ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and tomcat ;) not the thing you would build on top of that again But then if you have wicket,tapestry and struts (and x and y) and then you want to define a Web Framework spec that all of them can adapt to what would that then be? What would that then gain? Would that mean that tapestry components/pages could run inside wicket? It is just not as easy to do as with a persistence spec. Which is pretty easy because so many things kind of already work the same way before they where under the same spec.. web frameworks differ quite a bit Answer: Ironically, the same argument that Wicket follows the Servlet specification is the same one I used in some of the dicusssions with my colleagues ;o) I think there is a lot to gain in standardizing a Swing-like architecture such as Wicket. The
Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
If you repaint the component from the server, and want to retain its input, you have to submit to the server and store it to the model (with a suitable *submittingbehavior) so that it will have the correct value on the repaint. Yes, this is what I am trying to do, but disabling and enabling a textfield ends up clearing its value too if I use AjaxFormSumitBehavior. Don't know why. Another option is to do it purely on the client side -- I feel it is more consistent to use just plain Wicket. ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
On Fri, 13 Feb 2009, Martin Makundi wrote: Yes, this is what I am trying to do, but disabling and enabling a textfield ends up clearing its value too if I use AjaxFormSumitBehavior. Don't know why. Maybe a conversion error that prohibits updating the model? Though in the case of validation or conversion errors the erroneous input could be preserved... but maybe the Ajax update gets it from the model anyway? 0) raw input 1) convert - if succeeds, convertedInput 2) validate - if succeeds, model Do you have a feedback panel on the page? By debugging Form.process() you can probably see easily what's going on. I feel it is more consistent to use just plain Wicket. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. Best wishes, Timo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket at ApacheCon EU'09 in Amsterdam
how will having wicket as a standard help this? look at spring, it is no jsr but a lot of projects integrate with it, and it in return integrates with other projects. anyways, there is already a start of wicket seam support by the seam folks. http://in.relation.to/Bloggers/SeamlessWicket -igor On Fri, Feb 13, 2009 at 1:05 PM, Oleg Taranenko taranenko.for...@googlemail.com wrote: Hmm... some time ago (approx 1,5 year ) was attempts to marry JBoss Seam and Wicket. Was it successful? May be this is an example, why wicket should to be treated as a standard? Oleg On Fri, Feb 13, 2009 at 4:59 PM, Hoover, William whoo...@nemours.orgwrote: First of all, thank you for entertaining this idea :o) See comments below... -Original Message- From: Johan Compagner [mailto:jcompag...@gmail.com] Sent: Friday, February 13, 2009 9:38 AM To: users@wicket.apache.org Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam From a developers point-of-view standardization can often be a thorn in our side, but for management it can offer a vendor-independent/implementation-independent solution. Maintaining/upgrading infrastructure is difficult, expensive and time consuming. From the point-of-view of management a standard can often minimize the risk of vender lock-in. But the examples you gave me have multiply implementations. But wicket doesnt have multiply implementations, what would that mean? That we have IComponent, IRequestCycle, ISession and IApplication and so on? And that IBM would make its own implementation of all the components including the base? And JBoss and X and Y? Answer: They do not have multiple implementations now, but they could potentially have them in the future. It would mean that other communities could follow a standard and mangement could be satisfied that Wicket has the backing of a recognized standard. There is no vendor locking for wicket.. (and all other open source web frameworks by the way) what is the locking? Answer: I agree that other frameworks that have a standard have been disastrous as far as portability between implementations (such as the loosly organized JSF specification), but the locking I'm referring to is in realation to the vendor (Wicket in this case) from a business standpoint. I for one do not have an issue with being tightly coupled to Wicket, but I can see why managment may have an issue with it. A question we need to ask ourselves from a management standpoit is if for whatever reason we had to migrate from Wicket to another framework, what revenue impact would that have on our organization in doing so? If we chose a standards base solution would this minimize the risk due to multiple vendor offerings? And wicket runs pretty much on all simple servlet containers.. Some bugs in some not counting... So give me a concreet example what a standardized wicket would look like. What vendor-independent/implementation-independent solutions there would be then.. Answer: This is a preliminary concept, but the Swing-like architecture for the web could be a starting point? Another thing to consider is that a broader multi-community involvement could also bread innovation. There may be other innovators from other communities that may have valuable input that could improve Wicket in ways that may have not been previously considered. IMHO, the biggest argument for JSR/JCP is that there is often a broader involvement in the process. Hibernate, for instance, was in a similar position a few years back when they introduced a new persistence concept. They have since become heavily involved in the JPA specification process. When I first worked with Hibernate, like many, I was very impressed (similar to the first time I worked with Wicket :o), but looking back at how Hiberante initially did things to how they do them now there are some huge improvements due to the JPA specification. look hibernate is an implementation of a persistence.. And they adapted (and where involved) into the specifications yes Ok now translate that to wicket.. What is wicket an implementation of? a webframework? ahh.. tapestry is also a webframework and struts is also a webframework They all implement the standard webframework spec.. which is the servlet spec.. So JPA Spec == Servlet Spec Hibernate == Wicket TopLink == Tapestry So wicket is already in the JSR/JCP ! we are an enhancement/implementation of the servlet spec :) ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and tomcat ;) not the thing you would build on top of that again But then if you have wicket,tapestry and struts (and x and y) and then you want to define a Web Framework spec that all of them can adapt to what would that then be? What would that then gain? Would that mean that tapestry components/pages could run inside wicket? It is just not as easy to do as with a persistence spec. Which is pretty easy
RadioGroup in a DataTable?
Is it possible to have a RadioGroup in a DataTable. I am trying to display a list of items from the database and I want the user to only select one of these items. There could be a lot of items so I am letting the user filter the values by using a FilterForm and a DataTable. Any ideas? Thanks, Josh -- View this message in context: http://www.nabble.com/RadioGroup-in-a-DataTable--tp22005040p22005040.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: RadioGroup in a DataTable?
put the table into the radiogroup. -igor On Fri, Feb 13, 2009 at 1:21 PM, jchappelle jchappe...@4redi.com wrote: Is it possible to have a RadioGroup in a DataTable. I am trying to display a list of items from the database and I want the user to only select one of these items. There could be a lot of items so I am letting the user filter the values by using a FilterForm and a DataTable. Any ideas? Thanks, Josh -- View this message in context: http://www.nabble.com/RadioGroup-in-a-DataTable--tp22005040p22005040.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
How to setResponsePage across frame based on Ajax
Dear expert, I extend the nested tree example in wicket. In Tree class, I override onNodeLinkClicked() method to setResponsePage, when I click on the tree node. I works fine to get the response page for the current frame. but I also want to update the frame outside the current frame, It will not work, because the onNodeLinkClicked(AjaxRequestTarget target, javax.swing.tree.TreeNode node) is based on Ajax, it cannot update the frame outside, only if I refresh the browser. Is there any way to accomplish this? Best regards, /Mo -- View this message in context: http://www.nabble.com/How-to-setResponsePage-across-frame-based-on-Ajax-tp22005602p22005602.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: Model on Select
oh oh they are on to us! -igor On Fri, Feb 13, 2009 at 2:00 PM, Martin Voigt martin.vo...@artnology.com wrote: This is the reason they *always* want a quickstart ;) 2009/2/13 Mathias P.W Nilsson math...@snyltarna.se: Hi again, I created a small project with wicket extension and here it worked fine, even if I used setReuseItems( false ). So the problem must be in my code somewere. -- View this message in context: http://www.nabble.com/Model-on-Select-tp21973981p22002751.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
how to create a link that goes to an anchor on a page
Hi, I have PageA and I want to create a link that takes me to an anchor on page B like so: Any content So the link should look like PageB#label. How can I do this with BookmarkablePageLink (or any link)? I can set page parameters but it doesn't seem like that does what I need. Thanks, Jason -- View this message in context: http://www.nabble.com/how-to-create-a-link-that-goes-to-an-anchor-on-a-page-tp22006232p22006232.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 get a reference to the holding page from a panel
Actually I also find that using getPage() on beforeRender() to get the page is ok as long as do deal with any problems in case you cannot get the page. Pieter On Fri, Feb 13, 2009 at 6:34 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: make the panel an anonymous or inner class of the page and use MyPage.this. -igor On Fri, Feb 13, 2009 at 6:14 AM, pieter claassen pie...@claassen.co.uk wrote: Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks, Pieter - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to get a reference to the holding page from a panel
I have a simmilar situation where I want to put a panel nested in a panel nested in a page. The panel that is nested in the page stays the same for many different pages, but the panel nested into the panel changes. Would you do an anonymous panel class within an anonymous panel class within the page so that you can do the same type of referencing MyPage.this? Or is there a better way of doing this? Actually I also find that using getPage() on beforeRender() to get the page is ok as long as do deal with any problems in case you cannot get the page. Pieter On Fri, Feb 13, 2009 at 6:34 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: make the panel an anonymous or inner class of the page and use MyPage.this. -igor On Fri, Feb 13, 2009 at 6:14 AM, pieter claassen pie...@claassen.co.uk wrote: Is there a simple answer for how to get a reference from a panel to the holding page that is available at compile time (something other than getPage() on beforeRender())? Thanks, Pieter - 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
Anyone have idea on ofbiz framework
Hi Anyone have any idea on ofbiz framework Thanks Swapna On Fri, Feb 13, 2009 at 10:04 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: in your form.onsubmit() you can check the value of the model - which will give you the selected option. -igor On Fri, Feb 13, 2009 at 9:54 AM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have a Radio button group For eg imagine Country: - USA - UK - etc If one of the country is selected i want to write logic( if any one of the option is selected.) which method i have to override for this.( For eg if we have a link then we override the method onClick() and if it is a form we override onSubmit() ).. Thanks Swapna - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Anyone have idea on ofbiz framework
http://lmgtfy.com/?q=ofbizl=1 On Fri, Feb 13, 2009 at 3:20 PM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi Anyone have any idea on ofbiz framework Thanks Swapna On Fri, Feb 13, 2009 at 10:04 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: in your form.onsubmit() you can check the value of the model - which will give you the selected option. -igor On Fri, Feb 13, 2009 at 9:54 AM, Swapna Rachamalla swapna.rachama...@gmail.com wrote: Hi All I have a Radio button group For eg imagine Country: - USA - UK - etc If one of the country is selected i want to write logic( if any one of the option is selected.) which method i have to override for this.( For eg if we have a link then we override the method onClick() and if it is a form we override onSubmit() ).. Thanks Swapna - 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
Accessing IFrame field from parent
I have a page and an IFrame is this page. I try to access in javascript, from the parent page, a field from the Iframe page. But firefox gives me a security exception. I understands that the URI of the IFrame and of the parent page are not the same, and that is why I get this exception. The paretn page is bookmarkable, and I could not have the IFrame page to be bookmarkable in order to have it having a sub URI with regard to the parent page. Is it possible to have control on the URI of an IFrame? Thank you for your attention. Alexandre -- View this message in context: http://www.nabble.com/Accessing-IFrame-field-from-parent-tp22007523p22007523.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 create a link that goes to an anchor on a page
Label label = new Label(label, TEST); Link yourLink = new Link(foo) { public void onClick() { /* do something */ } }; yourLink.setAnchor(label); voila! -- Jeremy Thomerson http://www.wickettraining.com On Fri, Feb 13, 2009 at 4:37 PM, novotny novo...@gridsphere.org wrote: Hi, I have PageA and I want to create a link that takes me to an anchor on page B like so: Any content So the link should look like PageB#label. How can I do this with BookmarkablePageLink (or any link)? I can set page parameters but it doesn't seem like that does what I need. Thanks, Jason -- View this message in context: http://www.nabble.com/how-to-create-a-link-that-goes-to-an-anchor-on-a-page-tp22006232p22006232.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: AbstractAjaxTimerBehavior / Firefox / Page constructor
Have you made sure that you don't have any img src= ... / in your code? This has been known to cause similar behavior. On Thu, Feb 12, 2009 at 11:45 AM, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Thomas Mäder escreveu: Why don't you put a breakpoint in the constructor and see let us know what you find out? Is the constructor called through the same stack trace twice? The constructor is called by the filter, it's another request from the browser. The first URL is the entered one, and the second has a new parameter about wicket pagemap. The page is a bookmarkable. I haven't succeed to debug with Firebug. Adriano - 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: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
Maybe a conversion error that prohibits updating the model? I do not want to update the model. I want defaultFormProcessing=false with the particular ajax event. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. The functionality is already in Wicket because wantOnSelectionChangedNotifications=true works (non-ajax). If it does not yet exist for Ajax, I would like someone to guide me and I could maybe code it myself. ** Martin - 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: Checkbox OnChangeAjaxBehavior with defaultFormProcessing=false??
I could actually hack this feature by adding an AjaxButton onto the page which has defaultFormProcessing=false and then hide that button using css/style and always invoke that button when a checkbox is clicked. But it would be betterto just make sure Wicket supports such events for FormComponents. ::: Maybe a conversion error that prohibits updating the model? I do not want to update the model. I want defaultFormProcessing=false with the particular ajax event. In a way, yes, but sometimes purely client-side stuff can be easier purely on the client-side. The functionality is already in Wicket because wantOnSelectionChangedNotifications=true works (non-ajax). If it does not yet exist for Ajax, I would like someone to guide me and I could maybe code it myself. ** Martin - 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