Re: Wicket + Scala + Spring
Has anyone tried out the Scala Wicket Extensions stuff project? http://stackoverflow.com/questions/2104724/your-experience-with-scalawicket/2375052#2375052 Sam Stainsby-2 wrote: > > >> P.S. though one slight difficulty I've run into is the need to translate >> between Scala and Java collections. Perfectly doable, and not a Wicket >> problem, but takes a way some of the elegance of coding purely in Scala. > > I can confirm that Scala 2.8 makes it considerably easier to inter-work > with Java collections. I am also using Scala with Wicket - and loving it. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://old.nabble.com/Wicket-%2B-Scala-%2B-Spring-tp27004463p27772754.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: Announcing: Scala-Wicket Extensions Project
Ok yup - it's on the cards to be removed... cretzel wrote: > > > > Antony Stubbs wrote: >> >> >> Yes, the ⇒ is actually what the "=>" is supposed to be in Scala, and is a >> UTF8 character, which I'm sure would be supported by all modern editors. >> I'm surprised you can't see it properly. What OS and version of Eclipse >> are you viewing them with? I am toying around with ⇒ atm and haven't >> really reached a decision on which I prefer. But if it causes trouble for >> people, and it's an open library, then causing _less_ trouble for people >> is preferable :) >> >> > > I'm having the same problems, in any text editor. > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Announcing%3A-Scala-Wicket-Extensions-Project-tp24975011p25401691.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: Announcing: Scala-Wicket Extensions Project
On 18/08/2009, at 9:30 PM, Jörn Zaefferer wrote: I'll take a look at the archetype. Still, a simple page with some example code would help a lot - Maven archetypes can be quite annoying when the repository isn't directly available. I completely agree, but I don't have time atm to do it. And the samples are available in SVN. Like I said, you are more than welcome to create a new template page in the wiki, and I will happily fill in some detail. If you don't know how to download the code, make sure you have a svn client installed, go to your prompt and type a variant of: svn checkout https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/wicketstuff-core/scala-extensions-parent wick-scala-extensions Then look in the sample directory for the sample project. Also I don't know where to get the test-jars. The test code is all under the src/test dirs of the various projects. The bulk of the test code is in the core project - wicketstuff-core/ scala-extensions-parent/wicket-scala/src/test About that arrow character: Eclipse 3.4.x on Windows XP. Default workspace characterset is set to UTF-8 and usually that works just fine. It probably was only the class file viewer (with attached source) that had troubles displaying the character. Ok, well try looking in the normal text view. But worse, I still don't know how to type that character, which makes it extremely impractical. Ok - to clarify, Scala doesn't mind which notation you use for ⇒. You are free to use "=>" if you wish -they are synonymous. Also note that you don't have to use ⇒ to interact with the WicketScala library code either. Hope that's clarified things! Cheers, Antony. Jörn On Tue, Aug 18, 2009 at 3:40 PM, Antony Stubbs wrote: Not sure how I missed this response Sorry! No there isn't, there's only the source code, the sample app, the archetype and the specification tests. But creating the Wicketstuff page is in the list of things to do, but it's not that close to the front of the queue unfort. If someone else wants to take a crack by my guess! Or even get me started with a template and I can fill in some details... The spec files are in the test-jars, but I guess wicketstuff projects aren't configured to deploy their test jars. Best thing to do is download the source, and have a look at the sample app. You should also be able to use the archetype by using a variation of (taken from the README for the archetype): "To use or test the archetype, run install, then either just run archetype:generate and select it from the list, or run a variant of: mvn archetype:generate -DarchetypeGroupId=org.wicketstuff.scala -DarchetypeArtifactId=wicket-scala-archetype -DgroupId=com.sharca -DartifactId=scalawicket-archetypetest -DarchetypeVersion=1.4- SNAPSHOT" note, if you have the wicketsuff repo in your settings.xml, you probably won't have to install the archetype yourself. The link to Nathan's page was only to give credit for the Fodel where credit was due - not as a source of documentation. Sorry for the confusion. Yes, the ⇒ is actually what the "=>" is supposed to be in Scala, and is a UTF8 character, which I'm sure would be supported by all modern editors. I'm surprised you can't see it properly. What OS and version of Eclipse are you viewing them with? I am toying around with ⇒ atm and haven't really reached a decision on which I prefer. But if it causes trouble for people, and it's an open library, then causing _less_ trouble for people is preferable :) Cheers, Antony. stubbisms.wordpress.com illegalargument.com sharca.com Jörn Zaefferer-2 wrote: Hi Antony, is there a website for the project with some documentation? You mention the specification files, but those aren't included in the SNAPSHOT release. So all I have are some not-so-useful SDocs, your hints here and a link to http://technically.us/code/x/the-escape-hatch, which doesn't help either. Also, when looking at the source files I see a lot of ⇒ icons, which my Eclipse just displays as a little rectangle. That makes it somewhat difficult to use those - could you stick with an ASCII charset? Jörn On Fri, Aug 14, 2009 at 6:53 PM, Antony Stubbs> wrote: Hello People, Today, I am proud to announce that I have now uploaded the first version of the new Scala-Wicket Extensions. The project aims to be a central point for Scala related extensions to the Wicket framework. At the moment, the project consists of an Archetype, Sample application and Core libraries. The core libraries at this point consist of some useful implicit conversation functions (Scala -> Java list conversion, Closure -> Fodel conversion, etc... ScalaWicket.scala) a collection of simple extensions to existing components and the Fodel class.
Re: Announcing: Scala-Wicket Extensions Project
P.s. I know I'm guilty of it too (I forgot again - the rules for reply, reply-all etc differ depending on how the lists are setup), but try to make sure your replies go to both the list, and my email address - that I'm i'm more likely not to miss them. Cheers, Antony. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Job offer
Hi Wayne, What time frame are you looking at for start time? Cheers, Antony Stubbs, sharca.com On 14/08/2009, at 12:02 PM, Wayne Pope wrote: Hello all, We are looking for a long term wicket developer to join our very small company here in Monaco/Nice area. Salary is in the range of 2500 to 4500 a month Euro depending on experience. Starting with a 6 month contract moving to a full time position afterwards. English speaking working environment You'll be working on an online B2B application. Technologies used: Wicket 1.4 Java 6 Guice Maven Warp Hibernate Mysql Lucene search Open office headless Commons Ant Tomcat Linux and Solaris Hosted in the cloud. JQuery XHTML/css Please contact me DIRECTLY if you are interested - NOT THE MAILING LIST! This position is NOT available as a remote/work from home position. many thanks Wayne - 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: Announcing: Scala-Wicket Extensions Project
My pleasure :) I hope some people enjoying using the useful stuff in there and I hope we get some useful contributions to add to the collection.. I'm sure it will evolve over time as I use it more in our company as well. hmm, faster to write yes, but i don't think faster performing. Definitely more refactor safe with the Fodel that's for sure! And it'll be even better once the IDE support gets there... Yes, everyone's really waiting for the IDE support. 2.8 should be out in September/October which promises a new eclipse plugin with far superior functionality, stability and reliability. P.s., to quickly try out the Wicket Extensions, either add the wicketstuff repo to your settings.xml, or install the archetype from source, and run: mvn archetype:generate -DarchetypeGroupId=org.wicketstuff.scala -DarchetypeArtifactId=wicket-scala-archetype -DgroupId=com.sharca -DartifactId=scalawicket-archetypetest -DarchetypeVersion=1.4-SNAPSHOT Check out the sample app and spec tests for other possible uses. Cheers, Antony. stubbisms.wordpress.com illegalargument.com sharca.com Martin Sachs wrote: > > Thanks for that variant of programming wicket-application! > > I like scala and its concepts, very much. Using scala with wicket would > properbly make wicketapplications a little faster, more refactor-safe > and better maintainable. > > Do you have good IDE for scala ? If the IDE (e.g. Plugin for eclipse) is > as well as java-IDE, scala would be the better java. But without IDE, > many enterprises wont use scala. > > Martin > > Antony Stubbs schrieb: >> Hello People, >> >> Today, I am proud to announce that I have now uploaded the first >> version of the new Scala-Wicket Extensions. >> >> The project aims to be a central point for Scala related extensions to >> the Wicket framework. >> >> At the moment, the project consists of an Archetype, Sample >> application and Core libraries. >> >> The core libraries at this point consist of some useful implicit >> conversation functions (Scala -> Java list conversion, Closure -> >> Fodel conversion, etc... ScalaWicket.scala) a collection of simple >> extensions to existing components and the Fodel class. The Fodel class >> allows us to use closures and pass by name parameters in Scala to >> avoid some explicit construction of Models. >> >> For example: >> new SLabel("name", person.name ) >> This actually constructs a Model which just like a Property Model >> looks up and re-evaluates the name property of the Person during each >> render time (i.e. this is a dynamic model, not a static model as it >> may appear to be, or would be if it were Java). >> Also: >> new SPropertyListView[String]("presentations", list, _.add(new >> SLabel("name", "asdp name"))) >> >> There are a whole lot of examples in the Specification files, as the >> whole library as it stands is covered by Specs unit tests. >> >> It also includes SBT (simple build tool) code AND Maven build code >> (take your pick). >> >> I invite all those who are currently using Scala with Wicket to submit >> there odds and ends that make life easy for them - I'm sure there's a >> whole bunch of stuff out there! >> >> Special thanks to Stuq.nl >> >> P.s. it seems wicketstuff team city is stuck, so the SNAPSHOT won't be >> on the Wicket Stuff repo atm, but I'll try and get that sorted out asap. >> >> Maven signature: >> >> org.wicketstuff.scala >> wicket-scala >> 1.4-SNAPSHOT >> >> >> Cheers, >> Antony Stubbs, >> >> sharca.com >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Announcing%3A-Scala-Wicket-Extensions-Project-tp24975011p25025206.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: Announcing: Scala-Wicket Extensions Project
Not sure how I missed this response Sorry! No there isn't, there's only the source code, the sample app, the archetype and the specification tests. But creating the Wicketstuff page is in the list of things to do, but it's not that close to the front of the queue unfort. If someone else wants to take a crack by my guess! Or even get me started with a template and I can fill in some details... The spec files are in the test-jars, but I guess wicketstuff projects aren't configured to deploy their test jars. Best thing to do is download the source, and have a look at the sample app. You should also be able to use the archetype by using a variation of (taken from the README for the archetype): "To use or test the archetype, run install, then either just run archetype:generate and select it from the list, or run a variant of: mvn archetype:generate -DarchetypeGroupId=org.wicketstuff.scala -DarchetypeArtifactId=wicket-scala-archetype -DgroupId=com.sharca -DartifactId=scalawicket-archetypetest -DarchetypeVersion=1.4-SNAPSHOT" note, if you have the wicketsuff repo in your settings.xml, you probably won't have to install the archetype yourself. The link to Nathan's page was only to give credit for the Fodel where credit was due - not as a source of documentation. Sorry for the confusion. Yes, the ⇒ is actually what the "=>" is supposed to be in Scala, and is a UTF8 character, which I'm sure would be supported by all modern editors. I'm surprised you can't see it properly. What OS and version of Eclipse are you viewing them with? I am toying around with ⇒ atm and haven't really reached a decision on which I prefer. But if it causes trouble for people, and it's an open library, then causing _less_ trouble for people is preferable :) Cheers, Antony. stubbisms.wordpress.com illegalargument.com sharca.com Jörn Zaefferer-2 wrote: > > Hi Antony, > > is there a website for the project with some documentation? > > You mention the specification files, but those aren't included in the > SNAPSHOT release. So all I have are some not-so-useful SDocs, your > hints here and a link to > http://technically.us/code/x/the-escape-hatch, which doesn't help > either. > > Also, when looking at the source files I see a lot of ⇒ icons, which > my Eclipse just displays as a little rectangle. That makes it somewhat > difficult to use those - could you stick with an ASCII charset? > > Jörn > > On Fri, Aug 14, 2009 at 6:53 PM, Antony Stubbs > wrote: >> Hello People, >> >> Today, I am proud to announce that I have now uploaded the first version >> of >> the new Scala-Wicket Extensions. >> >> The project aims to be a central point for Scala related extensions to >> the >> Wicket framework. >> >> At the moment, the project consists of an Archetype, Sample application >> and >> Core libraries. >> >> The core libraries at this point consist of some useful implicit >> conversation functions (Scala -> Java list conversion, Closure -> Fodel >> conversion, etc... ScalaWicket.scala) a collection of simple extensions >> to >> existing components and the Fodel class. The Fodel class allows us to use >> closures and pass by name parameters in Scala to avoid some explicit >> construction of Models. >> >> For example: >> new SLabel("name", person.name ) >> This actually constructs a Model which just like a Property Model looks >> up >> and re-evaluates the name property of the Person during each render time >> (i.e. this is a dynamic model, not a static model as it may appear to be, >> or >> would be if it were Java). >> Also: >> new SPropertyListView[String]("presentations", list, _.add(new >> SLabel("name", "asdp name"))) >> >> There are a whole lot of examples in the Specification files, as the >> whole >> library as it stands is covered by Specs unit tests. >> >> It also includes SBT (simple build tool) code AND Maven build code (take >> your pick). >> >> I invite all those who are currently using Scala with Wicket to submit >> there >> odds and ends that make life easy for them - I'm sure there's a whole >> bunch >> of stuff out there! >> >> Special thanks to Stuq.nl >> >> P.s. it seems wicketstuff team city is stuck, so the SNAPSHOT won't be on >> the Wicket Stuff repo atm, but I'll try and get that sorted out asap. >> >> Maven signature: >> >> org.wicketstuff.scala >> wicket-scala >> 1.4-SNAPSHOT
Re: javascript effects before an ajax call
Here's the more readable version - corrected with help form Richard at JWeekend... This is the easiest way to do the animation either side of the Wicket replace function that I know of... If someone would like to wrap this up into a nice behaviour for the Scriptaculous wicketstuff library be my guest :) I probably will eventually if we get back to the project that uses it. <!-- var oldF = Wicket.replaceOuterHtml Wicket.replaceOuterHtml=function(element, text) { var parent = $(element.id).parentNode; // the disappear animation $(element.id).fade({ duration: 0.4, afterFinish: function(effect) { // call replace function oldF(element, text) // render the appear animtion on the replaced element $(element.id).appear({ duration: 0.4}); }}); } --> Cheers, Antony Stubbs, sharca.com On 29/07/2009, at 4:54 AM, Antony Stubbs wrote: I have a workaround and it goes a little something like this: Wicket.replaceOuterHtml=function(element, text) { </tt><pre style="margin: 0em;"> </pre><tt> new $(element.id).fade({ duration: 0.4, afterFinish: </tt><tt>function(effect) { </tt><pre style="margin: 0em;"> if (Wicket.Browser.isIE()) { Wicket.replaceOuterHtmlIE(element, text); </pre><tt> } else if (Wicket.Browser.isSafari() || </tt><tt>Wicket.Browser.isOpera()) { </tt><pre style="margin: 0em;"> Wicket.replaceOuterHtmlSafari(element, text); } else /* GECKO */ { // create range and fragment var range = element.ownerDocument.createRange(); range.selectNode(element); var fragment = range.createContextualFragment(text); element.parentNode.replaceChild(fragment, element); } $(element.id).appear({ duration: 0.4}); }}); } Putting that at the top of the html overrides the wicket function, adds in a javascript effect, then using the onFinish hook, runs the original Wicket code, the precedes with another effect. This makes the effects run immediately after the ajax call has completed... This adds a fade transition every time wicket replaces a dom element. A better version would allow you to do it with some hooks, passing in your transition functions. 2009/7/28 Antony Stubbs (sorry, sent to wrong list before) Is it possible to override certain methods in wicketajax.js ? In order to modify the behaviour of one of the methods. but i'd prefer not to run a patched wicket, or have to run on a copy of the whole wicketajax.js file - but i will if i have to :/ what i want to do is add pre and post hooks processComponent#Wicket.replaceOuterHtml function - as this will solve what I want to do - i.e. run an animation on the element to be replaced, after the ajax call completes, but before the element is replaced. p.s. martijn, is there any info available on the plan for the new ajax system? I just found - there is a post animation hook in Scriptaculous, which I have working to run the ajax request in, however this doesn't quite get there, as there's is of course the delay between when the animation finishes, and when the ajax request actually completes - which is too long. Update: I've tried overriding the js functions like this: function newProcessComponent: function(steps, node) { alert('replaced!'); } Wicket.Ajax.Call.prototype.processComponent = newProcessComponent Wicket.replaceOuterHtml=function() </tt><tt>{alert('replaceOuterHtml');} Wicket.Ajax.Call.prototype.processComponent: </tt><tt>function(steps, node) {{alert('processComponent');} but only the replaceOuterHtml functions works, i think because the there's a difference because processComponent is a member of an object... I need to replace processComponent so that I can have access to the Cheers, Antony Stubbs, sharca.com On 27/07/2009, at 9:31 PM, Martijn Dashorst wrote: Not 100% sure if it's already done, but I've bugged Matej with this request for 1.5's new Ajax implementation. Martijn On Mon, Jul 27, 2009 at 9:40 AM, Antony Stubbs> wrote: Was this ever implemented / solved?: Nov 21, 2006; 07:09am Re: Using Javascript Effects Before An Ajax Call This is possible to do with wicket, however it would require minor enhancement of the ajax processing code. We already have infrastructure for asynchron
Re: Wicket-Scala extensions
Ok for those following this thread - Wicket-Scala Extensions is out! Announcement here: http://www.nabble.com/Announcing:-Scala-Wicket-Extensions-Project-ts24975011.html Cheers, Antony Stubbs, sharca.com On 14/07/2009, at 11:34 AM, Antony Stubbs wrote: omgosh - http://www.footprint.de/fcc/2009/02/london-wicket-presentation/ I've met you! haha. h... Isn't the internet nutty?! On 14/07/2009, at 7:14 PM, Jan Kriesten wrote: Hi Antony, great to see Scala and Wicket getting more popular. :-) I've been using them together quite a while now and am convinced that there are lots of benefits in it! I created a dynamic component (like wicket:component which isn't officially supported) which also works with Ajax. There's also a 'VarModel' which is similar to your Fodel. You'll find the sources here: http://www.footprint.de/fcc/2008/11/some-wicket-scala/ I also use Scala's mixin capabilities to abstract layout information out of the pages/components. E.g. to define cell styles of datatable columns or to format cell output, I have something like: trait Centered[T] extends IStyledColumn[T] { abstract override def getCssClass: String = { val style = super.getCssClass if( style==null ) "columnCentered" else style + " " + "columnCentered" } } trait DateFormat[T] extends PropertyColumn[T] { override protected def createLabelModel( embeddedModel: IModel[T] ): IModel[_] = { val m = super.createLabelModel( embeddedModel ) m.getObject match { case dt: DateTime => VarModel( dt.toString( dateFormatter.withLocale( getLocale ) ) ) case _ => m } } } To create/apply a cell to use this style I just have to apply this trait: val col1 = new PropertyColumn[M]( new Model( "Date" ), COL_DATE, "reg_date" ) with Centered[M] with DateFormat[M] Scala's just great to abstract more between logic and layout. Best regards, --- Jan. - 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
Announcing: Scala-Wicket Extensions Project
Hello People, Today, I am proud to announce that I have now uploaded the first version of the new Scala-Wicket Extensions. The project aims to be a central point for Scala related extensions to the Wicket framework. At the moment, the project consists of an Archetype, Sample application and Core libraries. The core libraries at this point consist of some useful implicit conversation functions (Scala -> Java list conversion, Closure -> Fodel conversion, etc... ScalaWicket.scala) a collection of simple extensions to existing components and the Fodel class. The Fodel class allows us to use closures and pass by name parameters in Scala to avoid some explicit construction of Models. For example: new SLabel("name", person.name ) This actually constructs a Model which just like a Property Model looks up and re-evaluates the name property of the Person during each render time (i.e. this is a dynamic model, not a static model as it may appear to be, or would be if it were Java). Also: new SPropertyListView[String]("presentations", list, _.add(new SLabel("name", "asdp name"))) There are a whole lot of examples in the Specification files, as the whole library as it stands is covered by Specs unit tests. It also includes SBT (simple build tool) code AND Maven build code (take your pick). I invite all those who are currently using Scala with Wicket to submit there odds and ends that make life easy for them - I'm sure there's a whole bunch of stuff out there! Special thanks to Stuq.nl P.s. it seems wicketstuff team city is stuck, so the SNAPSHOT won't be on the Wicket Stuff repo atm, but I'll try and get that sorted out asap. Maven signature: org.wicketstuff.scala wicket-scala 1.4-SNAPSHOT Cheers, Antony Stubbs, sharca.com
Re: Components and nullable data
Absolutely. It's one of wickets many strong points. Regards, Antony Stubbs website: sharca.com On 1/08/2009, at 1:39 AM, Iain Reddick wrote: Thanks for the reply - I think I'm perhaps trying to bend the framework rather than work with it. I suppose I'm really wondering about the following kind of thing, and whether it's worth trying to build similar re-usable components: public class NullableLabel extends Label { private boolean visibleWhenNull = true; ... public boolean isVisible() { if ( getModelObject() != null ) { return true; } else { return visibleWhenNull; } } public void setVisibleWhenNull(...) { ... } } This adds simple, configurable null-aware behaviour to a label. Is this kind of thinking worth pursuing? add(new Link("editgroup", user) { onclick() { ... } isvisible() { return user.getgroup()!=null; } } ? -igor 2009/7/30 Iain Reddick : > Hi all, > > One of the difficulties I am finding with wicket is the best practice when > displaying/using data that is potentially null. > > Example: > > I have a "user" object which has a nullable "group" property. I want to show > a link to the group details page when the "group" property is not null, but > show nothing otherwise (let's keep this simple). > > My issue is that either way, I have to construct the link component and add > it to the page, whether I want it is visible or not. This is tricky at the > best of times, as I must always carry out a lot of "is null" logic. > > The construction issue becomes multiplied if I want the same behaviour on a > stateful page (i.e. the link, etc. can be appropriate for linking to the > group, or be null and not visible and can switch between the two states). > > My question is - am I missing something, or do I just need to have a better > strategy for this type of situation? > > If the answer is the latter, does anyone have any tips and/or components > that would cut down on the extra coding? > > Thanks > > - > 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: javascript effects before an ajax call
I have a workaround and it goes a little something like this: Wicket.replaceOuterHtml=function(element, text) { new $(element.id).fade({ duration: 0.4, afterFinish: function(effect) { if (Wicket.Browser.isIE()) { Wicket.replaceOuterHtmlIE(element, text); } else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) { Wicket.replaceOuterHtmlSafari(element, text); } else /* GECKO */ { // create range and fragment var range = element.ownerDocument.createRange(); range.selectNode(element); var fragment = range.createContextualFragment(text); element.parentNode.replaceChild(fragment, element); } $(element.id).appear({ duration: 0.4}); }}); } Putting that at the top of the html overrides the wicket function, adds in a javascript effect, then using the onFinish hook, runs the original Wicket code, the precedes with another effect. This makes the effects run immediately after the ajax call has completed... This adds a fade transition every time wicket replaces a dom element. A better version would allow you to do it with some hooks, passing in your transition functions. 2009/7/28 Antony Stubbs > (sorry, sent to wrong list before) > Is it possible to override certain methods in wicketajax.js ? In order to > modify the behaviour of one of the methods. > > but i'd prefer not to run a patched wicket, or have to run on a copy of the > whole wicketajax.js file - but i will if i have to :/ > > what i want to do is add pre and post hooks > processComponent#Wicket.replaceOuterHtml function - as this will solve what > I want to do - i.e. run an animation on the element to be replaced, after > the ajax call completes, but before the element is replaced. > > p.s. martijn, is there any info available on the plan for the new ajax > system? > > I just found - there is a post animation hook in Scriptaculous, which I > have working to run the ajax request in, however this doesn't quite get > there, as there's is of course the delay between when the animation > finishes, and when the ajax request actually completes - which is too long. > > Update: > I've tried overriding the js functions like this: > > > > function newProcessComponent: function(steps, node) { > alert('replaced!'); > } > > Wicket.Ajax.Call.prototype.processComponent = newProcessComponent > > > Wicket.replaceOuterHtml=function() {alert( > 'replaceOuterHtml');} > Wicket.Ajax.Call.prototype.processComponent: > function(steps, node) {{alert('processComponent');} > > but only the replaceOuterHtml functions works, i think because the there's > a difference because processComponent is a member of an object... > I need to replace processComponent so that I can have access to the > > Cheers, > Antony Stubbs, > > sharca.com > > On 27/07/2009, at 9:31 PM, Martijn Dashorst wrote: > > Not 100% sure if it's already done, but I've bugged Matej with this > > request for 1.5's new Ajax implementation. > > > Martijn > > > On Mon, Jul 27, 2009 at 9:40 AM, Antony Stubbs > wrote: > > Was this ever implemented / solved?: > > > > > Nov 21, 2006; 07:09am Re: Using Javascript Effects Before An Ajax Call > > This is possible to do with wicket, however it would require minor > > enhancement of the ajax processing code. > > > We already have infrastructure for asynchronously postponing processing > > steps. > > > However, I can't do that right now. Maybe in a week or so. So if anyone > > really needs to pause between executing scripts from "prependJavascript" > > and replacing the elements (which is I understand right this is all > > about), keep bugging me, I will eventually implement that. :) > > > -Matej > > > cygnusx2112 wrote: > > > Thanks for the clarification Igor. I ended up achieving the desired affect > > by > > using an AjaxCallDecarator in combination with a server side pause. > > Basically I was trying to do the following: > > > 1) Run animation effect on element > > 2) Use Ajax request to replace element > > 3) Run another animation effect on the element > > > As you noticed, I needed a way to block so that #2 and #3 would not step > > on > > #1. As a non-Javascript guru I was unable to find a way to block the > > Javascript "thread" without some kind of CPU beating hack loop. However, > > the > > solution I am using seems to work well. > > > In my efforts to accomplish this I have built some pretty interesting > > subclasses of AjaxEventBehavior that might be worth contributing. They > > basically allow you to cleanly add pre/post
javascript effects before an ajax call
Was this ever implemented / solved?: Nov 21, 2006; 07:09am Re: Using Javascript Effects Before An Ajax Call This is possible to do with wicket, however it would require minor enhancement of the ajax processing code. We already have infrastructure for asynchronously postponing processing steps. However, I can't do that right now. Maybe in a week or so. So if anyone really needs to pause between executing scripts from "prependJavascript" and replacing the elements (which is I understand right this is all about), keep bugging me, I will eventually implement that. :) -Matej cygnusx2112 wrote: > Thanks for the clarification Igor. I ended up achieving the desired affect by > using an AjaxCallDecarator in combination with a server side pause. > Basically I was trying to do the following: > >1) Run animation effect on element >2) Use Ajax request to replace element >3) Run another animation effect on the element > > As you noticed, I needed a way to block so that #2 and #3 would not step on > #1. As a non-Javascript guru I was unable to find a way to block the > Javascript "thread" without some kind of CPU beating hack loop. However, the > solution I am using seems to work well. > > In my efforts to accomplish this I have built some pretty interesting > subclasses of AjaxEventBehavior that might be worth contributing. They > basically allow you to cleanly add pre/post visual effects to components > around an Ajax event. > > Regards, > > -MT > > > > > igor.vaynberg wrote: >> >> the effect is clearly executed asynchronously from the rest of the >> javascript "thread" so you need to find a way to block until the effect is >> complete. >> >> -igor >> > ... [show rest of quote] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Wicket-user mailing list wicket-u...@... https://lists.sourceforge.net/lists/listinfo/wicket-user Cheers, Antony Stubbs, sharca.com
Re: Wicket-Scala extensions
omgosh - http://www.footprint.de/fcc/2009/02/london-wicket-presentation/ I've met you! haha. h... Isn't the internet nutty?! On 14/07/2009, at 7:14 PM, Jan Kriesten wrote: Hi Antony, great to see Scala and Wicket getting more popular. :-) I've been using them together quite a while now and am convinced that there are lots of benefits in it! I created a dynamic component (like wicket:component which isn't officially supported) which also works with Ajax. There's also a 'VarModel' which is similar to your Fodel. You'll find the sources here: http://www.footprint.de/fcc/2008/11/some-wicket-scala/ I also use Scala's mixin capabilities to abstract layout information out of the pages/components. E.g. to define cell styles of datatable columns or to format cell output, I have something like: trait Centered[T] extends IStyledColumn[T] { abstract override def getCssClass: String = { val style = super.getCssClass if( style==null ) "columnCentered" else style + " " + "columnCentered" } } trait DateFormat[T] extends PropertyColumn[T] { override protected def createLabelModel( embeddedModel: IModel[T] ): IModel[_] = { val m = super.createLabelModel( embeddedModel ) m.getObject match { case dt: DateTime => VarModel( dt.toString( dateFormatter.withLocale( getLocale ) ) ) case _ => m } } } To create/apply a cell to use this style I just have to apply this trait: val col1 = new PropertyColumn[M]( new Model( "Date" ), COL_DATE, "reg_date" ) with Centered[M] with DateFormat[M] Scala's just great to abstract more between logic and layout. Best regards, --- Jan. - 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-Scala extensions
I'm much more interested in reading the source code, than reading the scaladoc :) you could put it up on git hub privately if you want? On 14/07/2009, at 1:10 PM, Sam Stainsby wrote: Not yet, but I can make it available if there is interest. Antony Stubbs wrote: Just a quick note, is the source available for all this? all I see is svn checkout file:///home/sam/work/svn_repository/uniscala/trunk uniscala on http://uniscala.net/source-repository.html On 14/07/2009, at 12:46 PM, Sam Stainsby wrote: On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs wrote: I'm very interested in people's suggestions of otherways of taking advantage of Scala to make Wicket programming easier. We are using Scala and Wicket intensively (and the DB4O object database as well). One thing we are working on is Wicket form generation, which touches on ideas that are similar to those you have discussed. This is what we can do today: consider this domain class: class MyRectangle(var width:Int, var height:Int) extends Serializable { def area:Double = width*height } we can then do: class MyRectangleSchema extends SimpleFieldsSchema[MyRectangle]( ReadWriteFieldSchema("width", _.width, _.width = _:Int), ReadWriteFieldSchema("height", _.height, _.height = _:Int), ReadOnlyFieldSchema("area", _.area) ) Above we are defining the accessors and mutators for each field except the last which just has an accessor. We could probably use introspection to make this much more succinct, and will likely provide this as an option at some stage. As you see we don't use the JavaBeans conventions as we find they are not very scala-ish, and so fully automatic introspection is problematic. Creating a rectangle and schema first: val rectangle = new MyRectangle(width, height) val schema = new MyRectangleSchema() we use a 'builder' object to create Wicket components: val builder = new ViewBuilder { } We can then create a simple 'view' thus: builder.createView("panel1", schema, rectangle) and a simple form like this: builder.createFormView("panel2", schema, rectangle, new Button("submit") { override def onSubmit = // .. do something ... } ) Note that the above is completely type-safe. You can also mix and match fields from different schemas, and create schemas for aggregate objects by embedding (sub-)schemas inside other schemas. Builders can be overridden to provider custom components for any fields that need them. This part of the project is still half-formed and fairly raw and undocumented. Really only text fields are catered for. The javadoc is here: http://uniscala.net/uniscala-view/scaladocs/index.html http://uniscala.net/uniscala-view-wicket/scaladocs/index.html and is part of a larger project: http://uniscala.net/ Apologies for lack of cross-linking between modules in the scaladoc - I haven't worked out how to do this yet. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Sam Stainsby - Managing Director Sustainable Software Pty Ltd "open knowledge :: social conscience" ABN: 32 117 186 286 WWW: http://sustainablesoftware.com.au/ E-mail: s...@sustainablesoftware.com.au Jabber: sjstain...@jabber.org Tel/Fax: +61 7 3289 5491Mobile: +61 405 380 844 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket-Scala extensions
Just a quick note, is the source available for all this? all I see is svn checkout file:///home/sam/work/svn_repository/uniscala/trunk uniscala on http://uniscala.net/source-repository.html On 14/07/2009, at 12:46 PM, Sam Stainsby wrote: On Tue, 14 Jul 2009 11:38:33 +1200, Antony Stubbs wrote: I'm very interested in people's suggestions of otherways of taking advantage of Scala to make Wicket programming easier. We are using Scala and Wicket intensively (and the DB4O object database as well). One thing we are working on is Wicket form generation, which touches on ideas that are similar to those you have discussed. This is what we can do today: consider this domain class: class MyRectangle(var width:Int, var height:Int) extends Serializable { def area:Double = width*height } we can then do: class MyRectangleSchema extends SimpleFieldsSchema[MyRectangle]( ReadWriteFieldSchema("width", _.width, _.width = _:Int), ReadWriteFieldSchema("height", _.height, _.height = _:Int), ReadOnlyFieldSchema("area", _.area) ) Above we are defining the accessors and mutators for each field except the last which just has an accessor. We could probably use introspection to make this much more succinct, and will likely provide this as an option at some stage. As you see we don't use the JavaBeans conventions as we find they are not very scala-ish, and so fully automatic introspection is problematic. Creating a rectangle and schema first: val rectangle = new MyRectangle(width, height) val schema = new MyRectangleSchema() we use a 'builder' object to create Wicket components: val builder = new ViewBuilder { } We can then create a simple 'view' thus: builder.createView("panel1", schema, rectangle) and a simple form like this: builder.createFormView("panel2", schema, rectangle, new Button("submit") { override def onSubmit = // .. do something ... } ) Note that the above is completely type-safe. You can also mix and match fields from different schemas, and create schemas for aggregate objects by embedding (sub-)schemas inside other schemas. Builders can be overridden to provider custom components for any fields that need them. This part of the project is still half-formed and fairly raw and undocumented. Really only text fields are catered for. The javadoc is here: http://uniscala.net/uniscala-view/scaladocs/index.html http://uniscala.net/uniscala-view-wicket/scaladocs/index.html and is part of a larger project: http://uniscala.net/ Apologies for lack of cross-linking between modules in the scaladoc - I haven't worked out how to do this yet. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket-Scala extensions
I've been playing around with the idea of creating some wicket extensions in Scala for developing wicket with Scala... For example, taking advantage of Scala's functional language, we can mixin the following function and class to make models easier: def f(gtr: => String):Fodel = new Fodel(gtr, null) implicit def func2Fodel1(gtr: => String):Fodel = new Fodel(gtr, null) implicit def func2Fodel2(gtr: () => String):Fodel = new Fodel(gtr(), null) /** * @see http://technically.us/code/x/the-escape-hatch * @author Nathan Hamblen * @author Antony Stubbs */ class Fodel(value: => String, x:(String) => Unit) extends Model[String] { override def getObject:String = value override def setObject(s:String):Unit = x(s) } And then we can substitute read only models with: form.add(new Label("helloworld", f(name))) or form.add(new Label("helloworld3", ()=> name )) or read/write models with: form.add(new TextField("name", f(name, name = _) ) ) name = _ is short hand for x => name = x and if we want something even easier, with a simple custom component: class SLabel(id:String, gtr: => String) extends Label[String](id, new Fodel(gtr, null)) we can write: form.add(new SLabel("helloworld2", name)) instead of form.add(new Label("helloworld", new PropertyModel[String](this, "name"))) All the inline single statement functions you see here can also be used for longer code blocks as well. Is there any interest in things like this? I was thinking about putting it up on git-hub. I'm very interested in people's suggestions of otherways of taking advantage of Scala to make Wicket programming easier. One thing I'd love to solve, but don't think you with Scala - there's no concept of properties yet unfortunately, so there's no nice read/ write model solution. Regards, Antony Stubbs Talk to me about Wicket, Spring, Maven consulting, small scale outsourcing to Australasia and India and Open Source development! Check out the Spring Modules fork at http://wiki.github.com/astubbs/spring-modules ! We've just done the first release of the project in over a year! Website: http://sharca.com Blog: http://stubbisms.wordpress.com Linked In: http://www.linkedin.com/in/antonystubbs Podcast: http://www.illegalargument.com
Re: unit test of AjaxLazyLoadPanel and ModalWindow
done, and improved, with junit test :) https://issues.apache.org/jira/browse/WICKET-2306 igor.vaynberg wrote: > > maybe you should paste it into a jira issue so we can commit it into code. > > -igor > > On Thu, May 28, 2009 at 7:36 PM, Antony Stubbs > wrote: >> >> And here's a nicer version to add to your library: >> >> >> /** >> * Triggers an {...@link AjaxLazyLoadPanel} to fetch it's contents. >> * >> * @param wc the {...@link WicketTester} to execute the behaviour ( >> {...@link >> WicketTester#executeBehavior} ). >> * @param container contains the {...@link AjaxLazyLoadPanel} to trigger >> */ >> private void executeAjaxLazyLoadPanel(final WicketTester wc, Panel >> container) { >> container.visitChildren( AjaxLazyLoadPanel.class, new >> IVisitor() { >> >> �...@override >> public Object component(AjaxLazyLoadPanel component) { >> List behaviors = component.getBehaviors(); >> // get the AbstractAjaxBehaviour which is responsible for >> // getting the contents of the lazy panel >> AbstractAjaxBehavior b = (AbstractAjaxBehavior) >> behaviors.get( 0 ); >> // tell wicket tester to execute it :) >> wc.executeBehavior( b ); >> // continue with visitation rights, or not, i don't care >> return CONTINUE_TRAVERSAL; >> } >> } ); >> } >> >> >> Antony Stubbs wrote: >>> >>> And boom! Thanks for the inspiration Frank! >>> >>> final WicketTester wc = constructBasicPanel(); >>> wc.debugComponentTrees(); >>> wc.dumpPage(); >>> // delicious is the constructed panel, which contains a >>> AjaxLazyLoadPanel... >>> // visit it's children, looking for the AjaxLazyLoadPanel >>> delicious.visitChildren( AjaxLazyLoadPanel.class, new >>> IVisitor(){ >>> >>> @Override >>> public Object component(AjaxLazyLoadPanel component) { >>> // get the AbstractAjaxBehaviour which is responsible for getting the >>> contents of the lazy panel >>> List behaviors = component.getBehaviors(); >>> final AbstractAjaxBehavior b; >>> b = (AbstractAjaxBehavior) behaviors.get( 0 ); >>> // tell wicket tester to execute it :) >>> wc.executeBehavior( b ); >>> // continue with visitation rights, or not, i don't care >>> return null; >>> }} ); >>> >>> wc.debugComponentTrees(); >>> wc.dumpPage(); >>> // and volah, your lazy panel is now replaced with the contents :) >>> wc.assertComponent( >>> "panel:lazy:content:repeaterContainer:bookmarks:1", Item.class ); >>> wc.assertInvisible( "panel:lazy:content:noBookmarks" ); >>> >>> Let me know what you think or if you have any improvements! >>> >>> >>> Antony Stubbs wrote: >>>> >>>> Thanks for the info Frank. Any tips on how to do so? >>>> >>>> >>>> Frank Bille wrote: >>>>> >>>>> On Thu, Apr 24, 2008 at 8:10 PM, qk wrote: >>>>>> 1. after the page was rendered using WicketTester.startPage(), the >>>>>> "real" >>>>>> content (the one that returned by getLazyLoadComponent()) was not >>>>>> loaded by >>>>>> default. I always got an empty panel. Is there a way that I can have >>>>>> the >>>>>> "real" content rendered? >>>>> >>>>> Wicket tester doesn't parse javascript, so it can't execute the ajax >>>>> callback. You have to do that yourself. >>>>> >>>>> Frank >>>>> >>>>> - >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> >> - >> ___ >> >> http://stubbisms.wordpress.com http://stubbisms.wordpress.com >> -- >> View this message in context: >> http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773356.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 > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23845062.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: Restarting AjaxLazyLoadingPanel
Yeah that's what I thought. And I tried it, but visually nothing happened. I'll give it another shot. Sent from my iPhone http://friendfeed.com/astubbs On 31/05/2009, at 7:15 AM, Igor Vaynberg wrote: you can just replace the entire panel with a new instance. -igor On Sat, May 30, 2009 at 3:11 AM, Antony Stubbs > wrote: We use AjaxLazyLoadingPanel, and want to be able to trigger the process of showing the indicator, and requesting the panels contents with a separate Ajax request, after the first complete render has finished. I.e. do the whole process over and over, without having to reload the entire page. I came up with this, which I was surprised actually worked first try :) gotta love Wicket. But perhaps there's a better way to do it ? A simpler way? Something I'm missing? I tried simply replacing the lazy loading panel with a new instance of one but that didn't seem to have an effect - I think the magic is in the adding a new AbstractAjaxBehaviour on each request. import org.apache.wicket.Component; import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel; import org.apache.wicket.markup.html.IHeaderResponse; /** * An {...@link AjaxLazyLoadPanel} extension which allows it to * {...@link #restart(AjaxRequestTarget)} the process of showing the loading * indicator, then load it's contents using a separate Ajax request. * * @author Antony Stubbs */ abstract public class ReloadingAjaxLazyPanel extends AjaxLazyLoadPanel { private static final long serialVersionUID = 1L; public ReloadingAjaxLazyPanel(String id) { super( id ); } /** * Causes the {...@link AjaxLazyLoadPanel} to re-display the loading indicator, * then in a seperate ajax request, get it's contents. * * @param target */ public void restart(AjaxRequestTarget target) { target.addComponent( this ); // replace panel contents with loading icon Component loadingComponent = getLoadingComponent( "content" ); this.replace( loadingComponent ); // add ajax behaviour to install call back loadingComponent.add( new AbstractDefaultAjaxBehavior() { private static final long serialVersionUID = 1L; @Override protected void respond(AjaxRequestTarget target) { Component component = ReloadingAjaxLazyPanel.this.getLazyLoadComponent( "content" ); ReloadingAjaxLazyPanel.this.replace( component.setRenderBodyOnly( true ) ); target.addComponent( ReloadingAjaxLazyPanel.this ); // setState((byte)2); } @Override public void renderHead(IHeaderResponse response) { super.renderHead( response ); response.renderOnDomReadyJavascript( getCallbackScript().toString() ); } } ); } } As you can see, there is duplication from AjaxLazyLoadingPanel - which would need re-factoring in order to remove. - no problem there. But also, because the setState method is private, I can't use that state system. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs - 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: localisation - specify fallback locale
Ok, answered my own question: ComponentStringResourceLoader dutchFallbackResourceLoader = new ComponentStringResourceLoader(){ @Override public String loadStringResource(Class clazz, String key, Locale locale, String style) { return super.loadStringResource( clazz, key, new Locale("nl"), style ); } }; getResourceSettings ().addStringResourceLoader( dutchFallbackResourceLoader ); You could also implement a getFallbackLocale() for your application class if you tended to change it. So - when using this you don't need a *.prop file - instead you can have a _en and a _nl and then specify "nl" as your 'fallback' locale. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs On 30/05/2009, at 11:44 PM, Antony Stubbs wrote: I would like to keep all our languages in specific files *_lang.properties - and not have a *.properties file - i.e. mypanel_en.prop mypanel_nl.prop and not have a mypanel.prop. and if someone comes to the site with fr as their locale, is there already an option for me to specify that the fallback locale should be nl? (yes, i know about the mypanel.properties being the default - but it doesnt seem right to me to not specify the language of that file in the file name). Or do I need to application.init() { getresourcesettings().setlocalizer(...); } ? Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs
localisation - specify fallback locale
I would like to keep all our languages in specific files *_lang.properties - and not have a *.properties file - i.e. mypanel_en.prop mypanel_nl.prop and not have a mypanel.prop. and if someone comes to the site with fr as their locale, is there already an option for me to specify that the fallback locale should be nl? (yes, i know about the mypanel.properties being the default - but it doesnt seem right to me to not specify the language of that file in the file name). Or do I need to application.init() { getresourcesettings().setlocalizer(...); } ? Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs
Restarting AjaxLazyLoadingPanel
We use AjaxLazyLoadingPanel, and want to be able to trigger the process of showing the indicator, and requesting the panels contents with a separate Ajax request, after the first complete render has finished. I.e. do the whole process over and over, without having to reload the entire page. I came up with this, which I was surprised actually worked first try :) gotta love Wicket. But perhaps there's a better way to do it ? A simpler way? Something I'm missing? I tried simply replacing the lazy loading panel with a new instance of one but that didn't seem to have an effect - I think the magic is in the adding a new AbstractAjaxBehaviour on each request. import org.apache.wicket.Component; import org.apache.wicket.ajax.AbstractDefaultAjaxBehavior; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel; import org.apache.wicket.markup.html.IHeaderResponse; /** * An {...@link AjaxLazyLoadPanel} extension which allows it to * {...@link #restart(AjaxRequestTarget)} the process of showing the loading * indicator, then load it's contents using a separate Ajax request. * * @author Antony Stubbs */ abstract public class ReloadingAjaxLazyPanel extends AjaxLazyLoadPanel { private static final long serialVersionUID = 1L; public ReloadingAjaxLazyPanel(String id) { super( id ); } /** * Causes the {...@link AjaxLazyLoadPanel} to re-display the loading indicator, * then in a seperate ajax request, get it's contents. * * @param target */ public void restart(AjaxRequestTarget target) { target.addComponent( this ); // replace panel contents with loading icon Component loadingComponent = getLoadingComponent( "content" ); this.replace( loadingComponent ); // add ajax behaviour to install call back loadingComponent.add( new AbstractDefaultAjaxBehavior() { private static final long serialVersionUID = 1L; @Override protected void respond(AjaxRequestTarget target) { Component component = ReloadingAjaxLazyPanel.this.getLazyLoadComponent( "content" ); ReloadingAjaxLazyPanel .this.replace( component.setRenderBodyOnly( true ) ); target.addComponent( ReloadingAjaxLazyPanel.this ); // setState((byte)2); } @Override public void renderHead(IHeaderResponse response) { super.renderHead( response ); response.renderOnDomReadyJavascript( getCallbackScript().toString() ); } } ); } } As you can see, there is duplication from AjaxLazyLoadingPanel - which would need re-factoring in order to remove. - no problem there. But also, because the setState method is private, I can't use that state system. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs
Re: [announce] Wicket 1.4-rc4 released
Is it just me, or is there no rc4 tag in svn? I only see rc3. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs On 12/05/2009, at 6:13 AM, Jeremy Thomerson wrote: The Apache Wicket team is proud to announce the availability of the fourth release candidate for the newest version of Wicket - 1.4. A lot of bugs have been squashed and several improvements implemented. If you are already using earlier versions of 1.4, it is recommended you update to Wicket 1.4-rc4 at your earliest convenience. Eager people click here to download the distribution, others can read further: http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc4 We thank you for your patience and support. - The Wicket Team Apache Wicket Apache Wicket is a component oriented Java web application framework. With proper mark-up/logic separation, a POJO data model, and a refreshing lack of XML, Apache Wicket makes developing web-apps simple and enjoyable again. Swap the boilerplate, complex debugging and brittle code for powerful, reusable components written with plain Java and HTML. You can find out more about Apache Wicket on our website: http://wicket.apache.org This release This release is the fourth release candidate for the Wicket 1.4 product. This release fixes several bugs and adds some minor improvements. You can find out about the changes at the bottom of this announcement. Migrating from 1.2 If you are coming from Wicket 1.3, you really want to read our migration guide, found on the wiki: http://cwiki.apache.org/WICKET/migrate-14.html Downloading the release: You can download the release from the official Apache mirror system, and you can find it through the following link: http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc4/ For the Maven and Ivy fans out there: update your pom's to the following, and everything will be downloaded automatically: org.apache.wicket wicket 1.4-rc4 Substitute the artifact ID with the projects of your liking to get the other projects. Please note that we don't prescribe a Logging implementation for SLF4J. You need to specify yourself which one you prefer. Read more about SLF4J here: http://slf4j.org Validating the release The release has been signed by Jeremy Thomerson, your release manager for today. The public key can be found in the KEYS file in the download area. Download the KEYS file only from the Apache website. http://www.apache.org/dist/wicket/1.4-rc4/KEYS Instructions on how to validate the release can be found here: http://www.apache.org/dev/release-signing.html#check-integrity Reporting bugs In case you do encounter a bug, we would appreciate a report in our JIRA: http://issues.apache.org/jira/browse/WICKET The distribution In the distribution you will find a README. The README contains instructions on how to build from source yourself. You also find a CHANEGELOG-1.4 which contains a list of all things that have been fixed, added and/or removed since the 1.4 branch was created. Release Notes - Wicket - Version 1.4-RC4 ** Bug * [WICKET-1960] - AutoCompleteTextField - gives a type mismatch error on IE - version wicket-1.4-rc1 * [WICKET-2241] - Guice integration doesn't honour optional bindings * [WICKET-2250] - IOptionRenderer getModel(Object value) should change to getModel(T value) * [WICKET-2251] - LoadableDeatachableModel onDetach() invoked after nulling the model ** New Feature * [WICKET-2255] - Simple changes for datepicker/datefield Release Notes - Wicket - Version 1.4-RC3 ** Bug * [WICKET-1673] - Toggling visibility on nested Borders breaks page markup * [WICKET-1861] - Inevitable UnknownSizeException with HTTPS * [WICKET-2000] - AjaxRequestTarget escapes ] to ]^ * [WICKET-2005] - pb to access to this on event onchange on the AutoCompleteTextField * [WICKET-2015] - Empty File Upload field breaks validation of other fields in WicketTester. * [WICKET-2022] - wicket fails on WebLogic 9.2 clustered * [WICKET-2024] - AutoComplete ShowListOnFocusGain not working * [WICKET-2049] - beforeRender not called for behaviour added to ComponentTag * [WICKET-2060] - Invalid javascript when setStripJavascriptCommentsAndWhitespace is enabled * [WICKET-2061] - interceptContinuationURL with umlauts not encoded * [WICKET-2071] - Wicket-Examples Nested example fails with a NPE * [WICKET-2077] - SerializationChecker issue * [WICKET-2079] - Component Use Check always fails for visible components inside an invisible border body * [WICKET-2083] - NPE when clearing DateTimeField * [WICKET-2086] - setOutputMarkupContainerClassName() ... and wrong render mode in IE7 * [WICKET-2087] - typo in SpringBeanLocator.java * [WICKET-2088] - ApacheLicenceHeaderTests fail after projects' metadata created by Eclipse * [WICKET-2091] - Error feedback is hidden by lower level messages * [WICKET-2092] - SignInPanel IllegalArgumentException exception * [WICKET-2093] - SubmitLink.onSubmit() is n
Re: unit test of AjaxLazyLoadPanel and ModalWindow
And here's a nicer version to add to your library: /** * Triggers an {...@link AjaxLazyLoadPanel} to fetch it's contents. * * @param wc the {...@link WicketTester} to execute the behaviour ( {...@link WicketTester#executeBehavior} ). * @param container contains the {...@link AjaxLazyLoadPanel} to trigger */ private void executeAjaxLazyLoadPanel(final WicketTester wc, Panel container) { container.visitChildren( AjaxLazyLoadPanel.class, new IVisitor() { @Override public Object component(AjaxLazyLoadPanel component) { List behaviors = component.getBehaviors(); // get the AbstractAjaxBehaviour which is responsible for // getting the contents of the lazy panel AbstractAjaxBehavior b = (AbstractAjaxBehavior) behaviors.get( 0 ); // tell wicket tester to execute it :) wc.executeBehavior( b ); // continue with visitation rights, or not, i don't care return CONTINUE_TRAVERSAL; } } ); } Antony Stubbs wrote: > > And boom! Thanks for the inspiration Frank! > > final WicketTester wc = constructBasicPanel(); > wc.debugComponentTrees(); > wc.dumpPage(); > // delicious is the constructed panel, which contains a > AjaxLazyLoadPanel... > // visit it's children, looking for the AjaxLazyLoadPanel > delicious.visitChildren( AjaxLazyLoadPanel.class, new > IVisitor(){ > > @Override > public Object component(AjaxLazyLoadPanel component) { > // get the AbstractAjaxBehaviour which is responsible for getting the > contents of the lazy panel > List behaviors = component.getBehaviors(); > final AbstractAjaxBehavior b; > b = (AbstractAjaxBehavior) behaviors.get( 0 ); > // tell wicket tester to execute it :) > wc.executeBehavior( b ); > // continue with visitation rights, or not, i don't care > return null; > }} ); > > wc.debugComponentTrees(); > wc.dumpPage(); > // and volah, your lazy panel is now replaced with the contents :) > wc.assertComponent( > "panel:lazy:content:repeaterContainer:bookmarks:1", Item.class ); > wc.assertInvisible( "panel:lazy:content:noBookmarks" ); > > Let me know what you think or if you have any improvements! > > > Antony Stubbs wrote: >> >> Thanks for the info Frank. Any tips on how to do so? >> >> >> Frank Bille wrote: >>> >>> On Thu, Apr 24, 2008 at 8:10 PM, qk wrote: >>>> 1. after the page was rendered using WicketTester.startPage(), the >>>> "real" >>>> content (the one that returned by getLazyLoadComponent()) was not >>>> loaded by >>>> default. I always got an empty panel. Is there a way that I can have >>>> the >>>> "real" content rendered? >>> >>> Wicket tester doesn't parse javascript, so it can't execute the ajax >>> callback. You have to do that yourself. >>> >>> Frank >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773356.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: unit test of AjaxLazyLoadPanel and ModalWindow
And boom! Thanks for the inspiration Frank! final WicketTester wc = constructBasicPanel(); wc.debugComponentTrees(); wc.dumpPage(); // delicious is the constructed panel, which contains a AjaxLazyLoadPanel... // visit it's children, looking for the AjaxLazyLoadPanel delicious.visitChildren( AjaxLazyLoadPanel.class, new IVisitor(){ @Override public Object component(AjaxLazyLoadPanel component) { // get the AbstractAjaxBehaviour which is responsible for getting the contents of the lazy panel List behaviors = component.getBehaviors(); final AbstractAjaxBehavior b; b = (AbstractAjaxBehavior) behaviors.get( 0 ); // tell wicket tester to execute it :) wc.executeBehavior( b ); // continue with visitation rights, or not, i don't care return null; }} ); wc.debugComponentTrees(); wc.dumpPage(); // and volah, your lazy panel is now replaced with the contents :) wc.assertComponent( "panel:lazy:content:repeaterContainer:bookmarks:1", Item.class ); wc.assertInvisible( "panel:lazy:content:noBookmarks" ); Let me know what you think or if you have any improvements! Antony Stubbs wrote: > > Thanks for the info Frank. Any tips on how to do so? > > > Frank Bille wrote: >> >> On Thu, Apr 24, 2008 at 8:10 PM, qk wrote: >>> 1. after the page was rendered using WicketTester.startPage(), the >>> "real" >>> content (the one that returned by getLazyLoadComponent()) was not >>> loaded by >>> default. I always got an empty panel. Is there a way that I can have >>> the >>> "real" content rendered? >> >> Wicket tester doesn't parse javascript, so it can't execute the ajax >> callback. You have to do that yourself. >> >> Frank >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23773322.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: unit test of AjaxLazyLoadPanel and ModalWindow
Thanks for the info Frank. Any tips on how to do so? Frank Bille wrote: > > On Thu, Apr 24, 2008 at 8:10 PM, qk wrote: >> 1. after the page was rendered using WicketTester.startPage(), the >> "real" >> content (the one that returned by getLazyLoadComponent()) was not loaded >> by >> default. I always got an empty panel. Is there a way that I can have the >> "real" content rendered? > > Wicket tester doesn't parse javascript, so it can't execute the ajax > callback. You have to do that yourself. > > Frank > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p23756926.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: non-existent Springbean lazy beans only work when name specified
Sorry, not sure if I was clear enough? I know it's to wire by type, we want that. But the SpringBeanInjector is requesting a name be generated for our 'type' injected bean, which is causing a problem. We are _not_ relying on succesful injection of beans of the wrong type - unless you consider the lazy target to be null being the wrong type. And like I said, our code _isn't_ using those other beans. The only bean we are actually using, we _do_ insert into the MockAppContext, we just aren't inserting all the rest - and one those happens to be nameless and is the only one causing a problem. Your valid test setups are what i already described when I discussed work around - one work around we already are avoiding Spring and using our own ComponentInjector, and the other is that we _do_ add a mock implementation of the missing bean that gets injected by type. What I would like addressed is the inconsistent treatment of named vs nameless injection - one effectively make sure a registered bean of the required type exists (nameless), and one does not (named). They would both effectively break the same way if code actually tried to use the beans that don't exist, even if it were declared as named. Does that clarify some what? Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs On 7/05/2009, at 11:41 AM, Marat Radchenko wrote: Your setup seems to be broken. That's the whole point of nameless @SpringBean/@Resource/@Autowire - to find beans by _type_, not name. Relying on successful injection of beans of wrong type is a bad idea IMO. It'll break as soon as smth in your code tries to invoke that bean. I'd even say that allowing injection of bean of wrong type (when name-based injection is used) is a bug. I see to valid setups for tests: 1. Completely avoid SpringBeanInjector and inject mock objects manually. 2. Setup Spring context with mock object and allow SpringBeanInjector to inject them wherever is needed (that's what we use for our project). 2009/5/7 Antony Stubbs : I think I've found a potential bug/ area for improvement. We are setting up pure unit tests for a component, and in this test case, although the component declares several @SpringBean's, only 1 is used. Our tests all work fine when we run them against our "test" spring context, but I wanted to do something more isolated... So, in our custom injector, we only inject the, let's call it, TemplatesDao object. The other 'dao's or whatever, remain un-attended to. This runs fine, in one case, where we specify the names of the beans - i.e. @SpringBean(name="templateDao"), @SpringBean(name="peopleDao"), etc, where we ignore the peopleDao bean for example. The fields are all set to lazy proxy's, and the actual resolution of the bean only happens on first access - so, our peopleDao is never looked up (which wouldn't work, because it's not there), and our templateDao get's looked up successfully. However, if we do not specify the name of the bean - i.e. with have another bean @SpringBean of type RoomsDao. When the wicket code goes to setup this field's lazy initialiser, it fails. It turns down the wrong road at: SpringBeanLocator: singletonCache = Boolean.valueOf(getSpringContext().isSingleton(getBeanName())); which leads to the: String[] names = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz); This of course calls the getBeanName(). And because we didn't specify a name, the injector tries to ask Spring for it - which of course doesn't work, because no bean of that type actually exists in the conext. IMO the treatment of named vs unnamed @SringBeans is thus sort of inconsistent, and would be useful for us to be able to not worry about unnamed bean types not existing. Is there a way to avoid this call into the Spring context? One of the work arounds we can use for this, is to add a mock implementation of that class into the test application context, so spring is able to find a bean of that type. But I'd prefer not to have to :) The other work around, is to not use the SpringComponentInjector, and instead setup our own ComponentInjector which only cares about the one panel we're testing: @Override public void onInstantiation(Component component) { if (component instanceof ProfileDetailPanel) { ProfileDetailPanel p = (ProfileDetailPanel) component; p.setProfileManager( mockProfileManager ); } } I wanted to get some thoughts, before I posted a Jira. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs - 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
non-existent Springbean lazy beans only work when name specified
I think I've found a potential bug/ area for improvement. We are setting up pure unit tests for a component, and in this test case, although the component declares several @SpringBean's, only 1 is used. Our tests all work fine when we run them against our "test" spring context, but I wanted to do something more isolated... So, in our custom injector, we only inject the, let's call it, TemplatesDao object. The other 'dao's or whatever, remain un-attended to. This runs fine, in one case, where we specify the names of the beans - i.e. @SpringBean(name="templateDao"), @SpringBean(name="peopleDao"), etc, where we ignore the peopleDao bean for example. The fields are all set to lazy proxy's, and the actual resolution of the bean only happens on first access - so, our peopleDao is never looked up (which wouldn't work, because it's not there), and our templateDao get's looked up successfully. However, if we do not specify the name of the bean - i.e. with have another bean @SpringBean of type RoomsDao. When the wicket code goes to setup this field's lazy initialiser, it fails. It turns down the wrong road at: SpringBeanLocator: singletonCache = Boolean.valueOf(getSpringContext().isSingleton(getBeanName())); which leads to the: String[] names = BeanFactoryUtils.beanNamesForTypeIncludingAncestors(ctx, clazz); This of course calls the getBeanName(). And because we didn't specify a name, the injector tries to ask Spring for it - which of course doesn't work, because no bean of that type actually exists in the conext. IMO the treatment of named vs unnamed @SringBeans is thus sort of inconsistent, and would be useful for us to be able to not worry about unnamed bean types not existing. Is there a way to avoid this call into the Spring context? One of the work arounds we can use for this, is to add a mock implementation of that class into the test application context, so spring is able to find a bean of that type. But I'd prefer not to have to :) The other work around, is to not use the SpringComponentInjector, and instead setup our own ComponentInjector which only cares about the one panel we're testing: @Override public void onInstantiation(Component component) { if (component instanceof ProfileDetailPanel) { ProfileDetailPanel p = (ProfileDetailPanel) component; p.setProfileManager( mockProfileManager ); } } I wanted to get some thoughts, before I posted a Jira. Regards, Antony Stubbs, NZ http://friendfeed.com/astubbs
Selenium-ide support
I've read the selenium threads on here but i'm interested in the current state of play. Does anyone have a setup where you can use selenium-ide to record tests and play them back without having to modify them? this is in respect to the whole id generation thing. selenium-ide only seems to use the id to find components. i'm not talking about selenium-rc hand coding etc... I've seen the wicket-bench support: http://www.laughingpanda.org/~inhuman/wicket-bench/docs/features-0.5.html Regards, Antony Stubbs, NZ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Apache Pivot vs Wicket
Anyone checked out Apache Pivot yet? http://incubator.apache.org/pivot/ It seems similar to Wicket - but I don't see any sine of a "model" type of thing to compare with... Anyone got a comparison? Regards, Antony Stubbs, NZ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: VOTE: Rename Apache Wicket to Apache WicketFX
LOL omg I was so fooled...! Hmm I do hope this is a joke though! Sent from my iPhone On 2/04/2009, at 2:38 AM, Thies Edeling wrote: +1 but only because it's april fool's day :) Martijn Dashorst wrote: The Wicket PMC has discussed the following action. Because I think it is prudent that the Wicket community keeps evolving with the state of Java, I've created a board resolution to rename Wicket to WicketFX (thanks Igor for the suggestion!) WHEREAS, the Board of Directors deems it to be in the best interests of the Foundation and the Apache Wicket community to rename Apache Wicket to Apache WicketFX to get presentation slots at the JavaOne conference, and make it easier to obtain JSR status. NOW, THEREFORE, BE IT RESOLVED, that the project formerly known as the "Apache Wicket" project, be and hereby is renamed to "Apache WicketFX"; and be it further RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to submit or propose new presentations and tutorials to the JavaOne Conference concerning Wicket and FX; and be it further RESOLVED, that the Apache WicketFX PMC be and hereby is responsible to submit the Apache WicketFX project to the JCP and obtain JSR status; and be it further RESOLVED, that the original Apache Wicket PMC be and hereby is dissolved of its responsibilities for this day, April 1st, 2009. [ ] +1, accept above resolution [ ] -1, don't accept above resolution, because ... This vote runs for just today, otherwise we won't be able to get it accepted by the board this month. Martijn - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: deploy:deploy timeout
lol omg i really am half asleep. Jeremy Thomerson-5 wrote: > > Have you tried posting this to a maven list? > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Mar 24, 2009 at 9:31 PM, Antony Stubbs > wrote: > >> >> apologies for the half assed title - must have been distracted >> >> >> Antony Stubbs wrote: >> > >> > Is there a way to set the timeout for the deploy plugin? I seem to >> suffer >> > from a very slow connection to my target server, and it keeps timing >> out. >> > I need to set the time out to about 2 minutes :-/ >> > >> >> >> - >> ___ >> >> http://stubbisms.wordpress.com http://stubbisms.wordpress.com >> -- >> View this message in context: >> http://www.nabble.com/deploy%3Adeploy-tp22693871p22694130.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 >> >> > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694553.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: deploy:deploy timeout
apologies for the half assed title - must have been distracted Antony Stubbs wrote: > > Is there a way to set the timeout for the deploy plugin? I seem to suffer > from a very slow connection to my target server, and it keeps timing out. > I need to set the time out to about 2 minutes :-/ > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22694130.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
deploy:deploy
Is there a way to set the timeout for the deploy plugin? I seem to suffer from a very slow connection to my target server, and it keeps timing out. I need to set the time out to about 2 minutes :-/ - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/deploy%3Adeploy-tp22693871p22693871.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-171] Tiles 2 + Spring management interface
Would you care to back up that bold statement with some reasoning? Regards, Antony Stubbs, NZ On 6/03/2009, at 8:39 AM, Karl W wrote: Dave Stick with Spring MVC, stable, flexible, huge community. Also, with the new Spring Webflow/Spring Faces modules it makes JSF more manageable. Wicket is not currently a commercially viable Framework, and never will be. Karl On 05/03/2009 23:16, "Daves" wrote: I've used Spring MVC on a bunch of other projects and it's worked OK. So I guess the answer is that I'm comfortable with it. I've never used Wicket, why do you think it's a better option? Dave 2009/3/5 Antony Stubbs How did you decide on Spring MVC? Use Wicket. Regards, Antony Stubbs, NZ On 5/03/2009, at 11:37 PM, Daves wrote: Hi David Thanks - I've downloaded the source and I'll take a look. cheers Dave 2009/3/5 David Santoro Hi Dave, I have an ongoing project (University) developed with Spring MVC and Tiles 2. It something very simple but it could help you to start. The source code is visible here, you will need maven to build. http://github.com/soulnafein/lesshassles/ Cheers, David 2009/3/5 Karl W Hi Dave I have a full set of application code that you can have for a project I did about 18 months ago. Regards Karl On 05/03/2009 17:01, "Daves" http://dave.snow...@gmail.com > > wrote: Hi folks I'm going to be starting on a new project soon based on Spring MVC. We have a requirement to be able to compose output from multiple components so we are planning to use Tiles 2. Although Spring supports Tiles 2 the documentation is a little sketchy and I wondered if anyone on the list had used Spring MVC & Tiles2 together and had any advice to share. Also, Is anyone aware of a web-based user interface for managing Tiles2 configuration? Another requirement we have is for a web based management interface - I haven't found anything yet but if anyone here knows anything please shout before I spend some time rolling my own. thanks! Dave -- Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (java-...@meetup.com <http://java-...@meetup.com > ) This message was sent by Daves (dave.snow...@gmail.com <http://dave.snow...@gmail.com > ) from LJC - London Java Community <http://www.meetup.com/Londonjavacommunity/ > . To learn more about Daves, visit his/her member profile <http://www.meetup.com/Londonjavacommunity/members/4448264/ > To unsubscribe or to update your mailing list settings, click here <http://www.meetup.com/account/comm/ > Meetup Support: supp...@meetup.com <http://supp...@meetup.com> 632 Broadway, New York, NY 10012 USA -- Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (java-...@meetup.com) This message was sent by Karl W (karl.wid...@c4k.com) from LJC - London Java Community <http://www.meetup.com/Londonjavacommunity/> . To learn more about Karl W, visit his/her member profile <http://www.meetup.com/Londonjavacommunity/members/5737154/ > To unsubscribe or to update your mailing list settings, click here <http://www.meetup.com/account/comm/ > Meetup Support: supp...@meetup.com 632 Broadway, New York, NY 10012 USA -- Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (java-...@meetup.com) This message was sent by David Santoro (soulnaf...@gmail.com) from LJC - London Java Community <http://www.meetup.com/Londonjavacommunity/ > . To learn more about David Santoro, visit his/her member profile <http://www.meetup.com/Londonjavacommunity/members/8584827/ > To unsubscribe or to update your mailing list settings, click here <http://www.meetup.com/account/comm/ > Meetup Support: supp...@meetup.com 632 Broadway, New York, NY 10012 USA -- Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (java-...@meetup.com) This message was sent by Daves (dave.snow...@gmail.com) from LJC - London Java Community <http://www.meetup.com/Londonjavacommunity/> . To learn more about Daves, visit his/her member profile <http://www.meetup.com/Londonjavacommunity/members/4448264/ > To unsubscribe or to update your mailing list settings, click here <http://www.meetup.com/account/comm/ > Meetup Support: supp...@meetup.com 632 Broadway, New York, NY 10012 USA -- Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (java-...@meetup.com) This message was sent by Daves (dave.snow...@gmail.com) from LJC - London Java Community <http://www.meetup.com/Londonjavacommunity/> . To learn more about Daves, visit his/her member profile <http://www.meetup.
Re: initial GMap2 bounds question
Thanks guys! patched - http://wicketstuff.org/jira/browse/WSGMAPP-7 Martin Funk-3 wrote: > > Sven Meier wrote: >> Regretfully there's no direct API call in GMap2 supporting your case. >> >> Here's a description how to do it with Javascript only: >>http://econym.googlepages.com/basic14.htm >> >> We could make up a function that hides the details: >> >>GMap2#fitMarkers(List) >> >> Martin, what do you think? > Sounds fine by me. > We even have an (quite old) jira issue on this. > http://wicketstuff.org/jira/browse/WSGMAPP-7 > > mf >> >> Sven >> >> Doug Leeper schrieb: >>> Lets say I have two GLatLng Points, i.e. Chicago and Indianapolis. I >>> would >>> like to have the map be centered between these points and bounded to >>> show >>> these points. >>> >>> What is the best way to do this? >>> >> >> >> - >> 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 > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/initial-GMap2-bounds-question-tp19883071p22259983.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: gmap2 and helper classes / methods?
patched - http://wicketstuff.org/jira/browse/WSGMAPP-7 Nino.Martinez wrote: > > Hmmm, I got so far: > > public boolean isWithInBounds(GLatLngBounds bounds, GLatLng point) { > > //if (pointlat < maxY && pointlat > minY && pointlng > minX && > pointlng < maxX) { //execute script } > > > if (bounds.getSW().getLat() < point.getLat() > && bounds.getSW().getLng() < point.getLng() > && bounds.getNE().getLat() > point.getLat() > && bounds.getNE().getLng() > point.getLng()) { > return true; > } > > return false; > } > > But im pretty sure that it's faulty. When I discovered spartial > hibernate, which can be used with JPA. And in my case it's just what I > need. And JTS( http://www.vividsolutions.com/jts/main.htm ) that > provides more than enough for me... So if anything should be done it > should be either direct integration between JTS and gmap or helper > classes that will translate from gmap to JTS... I will think on if this > could be something that the openlayers integration should support.. > > Martin Funk wrote: >> 2008/11/12 Nino Saturnino Martinez Vazquez Wael >> >> >>> Hi >>> >>> I seem to be lacking some helper methods for finding out if a glatlng >>> are >>> in a gbounds etc.. Are there someone out there who has implemented >>> anything >>> or do I need to roll my own, and if the latter I guess I should provide >>> a >>> patch? >>> >> >> go ahead and commit something, >> I'll be happy to unclutter. >> >> mf >> >> >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/gmap2-and-helper-classes---methods--tp20468014p22259981.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: GMap2 (wicket-contrib-gmap2) and autozoom with getBoundsZoomLevel
patched - http://wicketstuff.org/jira/browse/WSGMAPP-7 ryantxu wrote: > > Strangely I needed to get this to work just yesterday! > > I was able to hack it by letting GMap2.java take a list of strings it > will output at the end of getJSinit() > > GLatLngBounds bounds = new GLatLngBounds(sw, ne); > gmap.appendInitJS( "var xxx = "+bounds.getJSconstructor()+";\n" ); > > gmap > .appendInitJS > ( gmap > .getJSinvoke > ( "setZoom( "+gmap.getJSinvoke( "map.getBoundsZoomLevel(xxx)-1 )" ) ) ); > > kinda hacky, but it works! > > ryan > > > On Sep 10, 2008, at 7:08 AM, normanr wrote: > >> >> With we, I meant my colleagues and me. And for us, I think it's >> enough to >> calculate a ZoomLevel passed to the map, that all GLatLngs given are >> visible >> on this map. So yes it's more like the link you posted Martin. >> >> Regards, >> >> norman >> >> Martin Funk-3 wrote: >>> >>> normanr wrote: Not right now Martin, but i think that we'll need to do it. But I can't promise ;( >>> who is it that you mean by 'we'? >>> >>> I've been rolling the thoughts about a possible implementation in my >>> head this afternoon, but didn't get to a reasonable answer yet. >>> I might not have understood the use case yet. Implementing the >>> methods >>> 'getBoundsZoomLevel(bounds) & extend(point)' in a way that the server >>> could ask for their execution, while being in a request/response >>> cycle, >>> and also receive their outcome might be not so easy to implement >>> nor to >>> use. >>> >>> If the use is closer to what is described in >>> http://econym.googlepages.com/basic14.htm it might be easier. >>> Here the server would be enabled to place a call to the map which re >>> zooms and slips it, so that some given points would show up. Later >>> on it >>> would be informed about the border and the zoomlevel of the map. >>> I think that's easier to implement. >>> >>> mf >>> Btw.: I can't promis anything either ;-) Martin Funk-3 wrote: > Don't know what bit me there, > I have to apologize. > > You don't happen to have any ideas molded in code on that, do you? > > mf > > normanr wrote: > >> http://wicketstuff.org/jira/browse/WSGMAPP-7 says implemented in >> Rev >> 3416. >> But I don't find anything like that, neither in the HEAD nor the >> comment >> for REV 3416. Is it gone or has it never been in svn? >> >> >> >> Martin Funk-3 wrote: >> >> >>> Hi Marko, >>> >>> 2008/2/3, Marko Taipale : >>> >>> Hi, I am about to do a feature to my wicket app containing gmap. There are several markers on the map and the map will autozoom & center according to those marker positions. Now I am wondering if there is upcoming support for getBoundsZoomLevel(bounds) & extend(point)* ? >>> There shure is. It already has its own feature request. >>> http://wicketstuff.org/jira/browse/WSGMAPP-7 >>> >>> Back to serious: >>> I think its a reasonable request, but I can't tell you when >>> it'll be >>> implemented. If you can come up with some code you feel >>> confident with >>> you >>> are welcome to attach ist to the Issue. Or, if you are really >>> confident >>> about your code ask for commit access to wicket-stuff. >>> >>> Thnx, >>> >>> Martin >>> >>> Or has anybody already written >>> >>> an app with such a feature / component and could even pass the code - I'm feeling lazy ;). Thanks, - Marko *see http://code.google.com/apis/maps/documentation/reference.html#GMap2and example at http://econym.googlepages.com/basic14.htm -- View this message in context: http://www.nabble.com/GMap2-%28wicket-contrib-gmap2%29-and-autozoom-with-getBoundsZoomLevel-tp15252786p15252786.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 >>> >>> >>> >> >> -- >> View this message in co
Re: GSoC ideas for 09
286 Portlet support has already been finished. Cheers, Tony. On 25/02/2009, at 2:20 PM, C. Bergström wrote: Peter Thomas wrote: On Wed, Feb 25, 2009 at 1:26 AM, "C. Bergström" >wrote: Hi Everyone! A year ago I bugged dashorst about why Wicket didn't participate in the 08 GSoC.. This year I've been brainstorming on ideas and want to see what others think could be useful projects for Wicket. A few ideas: - proper comet support - a comprehensive admin / debug console (jmx, view session size, page maps, html validator etc) - portlet support (JSR 286) - tool to migrate JSF apps to Wicket (heh heh) - better IDE plugin Good ideas Peter Dare I stir up trouble and add - client cypher session state.. (Would be great for load balancing and numerous other things.. yes I know this would be tough) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is wicket:extend strictly required if including entire html child?
That's a pity - in my situation I would like the absence of the wicket:extend tag to mean the child wants to be completely encapsulated by it's parent. It's useful because you can have your java class extend a parent without having to modify the html, in my case the grand parent has the important html that I want included in all children, but that means i have to put the extend tag into all the children, instead of just one place - the parent. igor.vaynberg wrote: > > no it is not. not including wicket:extend means the child wants to > completely override the markup of the parent. > > -igor > > On Fri, Dec 12, 2008 at 5:13 AM, Antony Stubbs > wrote: >> >> Is it possible to use markup inheritance without having to use >> in the children? I'd like to be able to use MI without >> the >> children html knowing. Just extending the super component should be >> enough >> in a lot of situations. Particularly when extending panels which are >> naughty >> and don't have tags, and dont have any html which shouldn't >> be >> in the result. >> >> I.e. can we have wicket default to simply effectively wrapping the entire >> html contents in if there is no extend tag? >> >> - >> ___ >> >> http://stubbisms.wordpress.com http://stubbisms.wordpress.com >> -- >> View this message in context: >> http://www.nabble.com/Is-wicket%3Aextend-strictly-required-if-including-entire-html-child--tp20975395p20975395.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 > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Is-wicket%3Aextend-strictly-required-if-including-entire-html-child--tp20975395p21129599.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
Is wicket:extend strictly required if including entire html child?
Is it possible to use markup inheritance without having to use in the children? I'd like to be able to use MI without the children html knowing. Just extending the super component should be enough in a lot of situations. Particularly when extending panels which are naughty and don't have tags, and dont have any html which shouldn't be in the result. I.e. can we have wicket default to simply effectively wrapping the entire html contents in if there is no extend tag? - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Is-wicket%3Aextend-strictly-required-if-including-entire-html-child--tp20975395p20975395.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: [OT] wicket users around the world
Auckland, New Zealand. Currently working in The Netherlands, but currently in Ukraine for a week, working on portal 2 spec implementation in Wicket. :) Martin Sachs wrote: > > Berlin, Germany > > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p20971601.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: Default Focus Behavior?
Why not put this code into Wicket? jwcarman wrote: > > On 3/11/08, Martijn Dashorst <[EMAIL PROTECTED]> wrote: >> I suggest wiki. >> > > Done: > > http://cwiki.apache.org/confluence/display/WICKET/Request+Focus+on+a+Specific+Form+Component > > I'm happy now. My work (no matter how trivial) may help someone > someday! :) I don't have time to do so now, but I might add in some > examples on how to do focus on errors, etc. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Default-Focus-Behavior--tp15934889p20790155.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-spring dependency in maven repository
I've opened a jira issue https://issues.apache.org/jira/browse/WICKET-1913 Erik van Oosten wrote: > > Doug Donohoe wrote: >> I'm using wicket-spring-annot and ran into a small problem with maven >> dependencies. The wicket-spring-annot project depends on wicket-spring. >> >> > > This has come up a number of times already. Hopefully not as often in > the future as it is now also on the wiki :) > http://cwiki.apache.org/WICKET/spring.html > > Regards, > Erik. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/wicket-spring-dependency-in-maven-repository-tp16764208p2034.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: A wicket gathering?
Amsterdam +1! :) Martin Funk-3 wrote: > >> >> the london guys are already crouching together at google regularly. i´d >> love frankfurt :) > > Yeah, I wouldn't mind that either :-) > Though I think Wickets center of gravity on the continent is closer to > Amsterdam. > And I'm not sure if Frankfurts places to hold a conference at, are as nice > as Amsterdams places. > > mf > >> >> >> -- >> >> THOMAS DAILY GmbH >> Adlerstraße 19 >> 79098 Freiburg >> Deutschland >> T + 49 761 3 85 59 0 >> F + 49 761 3 85 59 550 >> E [EMAIL PROTECTED] >> www.thomas-daily.de >> >> Geschäftsführer/Managing Directors: >> Wendy Thomas, Susanne Larbig >> Handelsregister Freiburg i.Br., HRB 3947 >> >> Registrieren Sie sich unter http://morningnews.thomas-daily.de für die >> kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages >> morgens um 9:00 in Ihrer Mailbox. >> >> Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um >> 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach >> 16:00 >> Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion >> lautet [EMAIL PROTECTED] >> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/A-wicket-gathering--tp19967487p19970774.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of Wicket and Groovy?
Ah yes - It was committed, but the first comment line didn't summarise the commit. This is the big commit: > Author: Antony Stubbs <[EMAIL PROTECTED](none)> 2008-03-20 17:24:53 > Committer: Antony Stubbs <[EMAIL PROTECTED](none)> 2008-03-20 17:24:53 > Parent: e7d957ba2dd793898dae1828e1c683bb7635db76 (updated wicket > dependency) > Child: bd620b84e0f99b27e2d68ac51fbfdfd18fe1866a (removed duplicate > classpath) > Branches: remotes/origin/wicket1.3Compilecompat, wicket1.3Compilecompat > Follows: > Precedes: > > Changed maven module layout to make more sense > - renamed module dirs to match module names > Changed import and other wicket references to match org.apache.wicket > package name > Using with 0.9 version of m2elcipse plugin > Updated version of wicket dependency > Got rid of repeated info from poms > > Signed-off-by: Antony Stubbs <[EMAIL PROTECTED]> > Antony Stubbs wrote: > > I started working on the builder a wee back, and intend on bringing it up > to spec. > > The only work I had done so far was making it compile compatible with > Wicket 1.3 and cleaning up the Maven stuff. > > I forked it to github here: > http://github.com/astubbs/wicket-contrib-groovy/commits/wicket1.3Compilecompat > > I may have forgotten to commit my latest changes... > > Let me know if you have any problems cloning or viewing the site. > > > Eelco Hillenius wrote: >> >>> A quick Google showed me that some work has been done with Groovy >>> (wicket-contrib-groovy) and the WicketBuilder by Kevin Galligan. >>> However, >>> Kevin seems to have moved on to Seam and wicket-contrib-groovy seems to >>> be >>> no longer supported. >> >> I couldn't find that he moved on, but it is possible the project isn't >> maintained anymore. However, the integration is pretty simple to >> achieve, and it might even be best for your case to build a set of >> utilities (as that's pretty much what you need to make the integration >> work if I understand it correctly) that suit your needs. >> > > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Status-of-Wicket-and-Groovy--tp17710986p17745525.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of Wicket and Groovy?
I started working on the builder a wee back, and intend on bringing it up to spec. The only work I had done so far was making it compile compatible with Wicket 1.3 and cleaning up the Maven stuff. I forked it to github here: http://github.com/astubbs/wicket-contrib-groovy/commits/wicket1.3Compilecompat I may have forgotten to commit my latest changes... Let me know if you have any problems cloning or viewing the site. Eelco Hillenius wrote: > >> A quick Google showed me that some work has been done with Groovy >> (wicket-contrib-groovy) and the WicketBuilder by Kevin Galligan. >> However, >> Kevin seems to have moved on to Seam and wicket-contrib-groovy seems to >> be >> no longer supported. > > I couldn't find that he moved on, but it is possible the project isn't > maintained anymore. However, the integration is pretty simple to > achieve, and it might even be best for your case to build a set of > utilities (as that's pretty much what you need to make the integration > work if I understand it correctly) that suit your needs. > - ___ http://stubbisms.wordpress.com http://stubbisms.wordpress.com -- View this message in context: http://www.nabble.com/Status-of-Wicket-and-Groovy--tp17710986p17745477.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vote] Release 1.4 with only generics and stop support for 1.3
+1 Most people who use Wicket, I imagine, would be pretty up to date. -- View this message in context: http://www.nabble.com/-vote--Release-1.4-with-only-generics-and-stop-support-for-1.3-tp16090054p16136628.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Inter web-module class dependencies
Is it possible for one war to use classes in another war? So far my googling says no: http://www.ibm.com/developerworks/websphere/library/techarticles/0112_deboer/deboer.html "The only restriction to this otherwise simple solution is that, since Web modules are not structured with classes at their root, other modules can never depend on classes from within Web modules. In other words, no modules may use the manifest to depend on classes from within a Web module." Is there another way other than using the manifest file? Editing the "J2EE Module Dependencies" only let's you add jar files, which supports the above statement. Why? - i have a legacy struts app and i would like to make a wicket war which uses the struts' app's backend which is burried in the struts war file. The other option could be to add a wicket servlet catching a different sub-url say /wicket/* - but not sure if that would work, and i'd like to keep the wicket app separate if possible. -- View this message in context: http://www.nabble.com/Inter-web-module-class-dependencies-tf4388432.html#a12511971 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WTP - pulishing changes to Websphere causes WicketRuntimeException
Sorry - should also add - I'm running on a 1.3 snapshot and the relevant block of code in wicket is: class ContextParamWebApplicationFactory lines 61 to 81 protected WebApplication createApplication(final String applicationClassName) { try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); if (loader == null) { loader = getClass().getClassLoader(); } final Class applicationClass = loader.loadClass(applicationClassName); if (WebApplication.class.isAssignableFrom(applicationClass)) { // Construct WebApplication subclass return (WebApplication)applicationClass.newInstance(); } else { throw new WicketRuntimeException("Application class " + applicationClassName + " must be a subclass of WebApplication"); } } Antony Stubbs wrote: > > My simple application is publishing through eclipse wtp (rational > application developer). Changing a .java file triggers RAD's hot code > replace and it works. However, changing an html file which requires > re-publishing and then refreshing the page causes the below > WicketRuntimeException. Restarting the containing EAR application (rad, > right click on EAR under 'server' view, restart - or stop & start in admin > console) seems to fix the problem. > > Any idea's on how to get publish working? Anyone else using wicket under > wtp with was? or other servers? > > It seems that the JVM thinks that > WebApplication.class.isAssignableFrom(applicationClass) is no longer true. > Same thing for wicket.Page as well. > > [5/09/07 20:25:05:765 NZST] 0033 ServletWrappe E SRVE0100E: Did not > realize init() exception thrown by servlet quickstart: > org.apache.wicket.WicketRuntimeException: Application class > wicket.quickstart.QuickStartApplication must be a subclass of > WebApplication > at > org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:78) > at > org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:51) > at > org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:419) > at > org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:148) > at javax.servlet.GenericServlet.init(GenericServlet.java:256) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190) > at > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142) > at > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150) > at > com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99) > at > com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:767) > at > com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:447) > at > com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:284) > at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:273) > at > com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88) > at > com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157) > at > com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655) > at > com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608) > at > com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333) > at > com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312) > at > com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129) > at > com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl.startModule(ApplicationMgrImpl.java:1779) > at > com.ibm.ws.runtime.component.ApplicationMgrImpl._startModule(ApplicationMgrImpl.java:1727) >
WTP - pulishing changes to Websphere causes WicketRuntimeException
My simple application is publishing through eclipse wtp (rational application developer). Changing a .java file triggers RAD's hot code replace and it works. However, changing an html file which requires re-publishing and then refreshing the page causes the below WicketRuntimeException. Restarting the containing EAR application (rad, right click on EAR under 'server' view, restart - or stop & start in admin console) seems to fix the problem. Any idea's on how to get publish working? Anyone else using wicket under wtp with was? or other servers? It seems that the JVM thinks that WebApplication.class.isAssignableFrom(applicationClass) is no longer true. Same thing for wicket.Page as well. [5/09/07 20:25:05:765 NZST] 0033 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet quickstart: org.apache.wicket.WicketRuntimeException: Application class wicket.quickstart.QuickStartApplication must be a subclass of WebApplication at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:78) at org.apache.wicket.protocol.http.ContextParamWebApplicationFactory.createApplication(ContextParamWebApplicationFactory.java:51) at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:419) at org.apache.wicket.protocol.http.WicketServlet.init(WicketServlet.java:148) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:190) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:317) at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1142) at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:150) at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99) at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:767) at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:447) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:284) at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:273) at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:88) at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157) at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:655) at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:608) at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:333) at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:549) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1312) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1129) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startModule(ApplicationMgrImpl.java:1779) at com.ibm.ws.runtime.component.ApplicationMgrImpl._startModule(ApplicationMgrImpl.java:1727) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:62) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:265) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1089) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:971) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802) at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1080) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118) at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:973) at com.ibm.ws.management.application.sync.StartDeploymentTask.startDeployment(StartDeploymentTask.java:196
Re: Wicket capability for LARGE forms
Ah yes, DataTable, I see, like a data grid... And what about changing the fields to enabled / disabled? Staying within Wicket I suppose the nicest way would be ajax onChange behaviour on the initial drop down box? Eelco Hillenius wrote: > > On 8/29/07, Antony Stubbs <[EMAIL PROTECTED]> wrote: >> >> I have a couple of pages with _very large forms_, that are also modified >> dynamically to set which fields are editable using javascript, dependant >> on >> the value of a drop down list. Please see the example image attached. And >> that's only the first page >> the application is in - *gasp* - struts. >> I love what I've seen so far with Wicket, but I'm unsure what it's like >> to >> use compared to say, Stripes, Struts 2, Click, Tapestry etc when it comes >> to >> very large forms. >> being that setting up each field in wicket is kinda verbose... > > Yeah, you definitively should not just add all these examples by hand :) > > What you do is e.g. use a DataTable component. The data provider would > return the rows, and you define the columns on that data table. Rest > should be straightforward. Don't forget to set the itemReuseStrategy > if you're working inside a form (e.g. to use ReuseIfModelsEqual). > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Wicket-capability-for-LARGE-forms-tf4351285.html#a12399482 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket capability for LARGE forms
I have a couple of pages with _very large forms_, that are also modified dynamically to set which fields are editable using javascript, dependant on the value of a drop down list. Please see the example image attached. And that's only the first page the application is in - *gasp* - struts. I love what I've seen so far with Wicket, but I'm unsure what it's like to use compared to say, Stripes, Struts 2, Click, Tapestry etc when it comes to very large forms. being that setting up each field in wicket is kinda verbose... What are people's experiences? How do you find Wicket to use in very large forms? Thoughts? Ideas? Alternatives? (disclaimer - I've only written one page in Wicket, and that was just playing around with Ajax (NCE!! :))) http://www.nabble.com/file/p12398507/bigForm.png -- View this message in context: http://www.nabble.com/Wicket-capability-for-LARGE-forms-tf4351285.html#a12398507 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is Wicket a proper framework for a Webshop ?
For the record I completely agree with you :) I'm in the process of slapping the developers around here, trying to get them to wake up. Senior dev's recommending struts 1 for gods sake... now that's what i call afraid of change It's out of ignorance, and their unwillingness to see what else is out there. Eelco Hillenius wrote: > >> If you're looking for a good action oriented framework - check out >> Stripes - >> I hear it's very good at what it does. >> The other alternative is Struts 2, but I hear people prefer Stripes. >> Spring MVC seems to be getting a little behind... > > imho any action oriented/ model 2 framework doesn't help you much, > whether you are using Ajax or not. There are no facilities for reuse, > the abstraction (simply request/ response) is too shallow to manage > complexity, they encourage procedural programming, etc. If you /must/ > use a model 2 framework, Stripes seems to be the best choice. Though I > would just pick a component oriented framework like Wicket or GWT. Not > that my opinion would surprise anyone I bet :) > > Eelco > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Is-Wicket-a-proper-framework-for-a-Webshop---tf4341788.html#a12380239 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is Wicket a proper framework for a Webshop ?
If you're looking for a good action oriented framework - check out Stripes - I hear it's very good at what it does. The other alternative is Struts 2, but I hear people prefer Stripes. Spring MVC seems to be getting a little behind... neekibo wrote: > > Hi all Wicket-users! > > I am new to web development and so to Wicket. I'm searching for a/the > suitable framework for my case. > > So here a few constrains: > - A webshop with lots of products and categories > - Integration with SpringCore and Hibernate > - Ajax-Magic for a fast responding UI and Drag'n'Drop > > And a few misgivings: > 1.) A component framework is overhead for a webshop (mostly simple > db-read-access operations without a state). A request/response-driven > framework fits better in this context. > 2.) I need standard back and forth browser behaviour. Is this easy to > achieve (with ajax in mind) ? > 3.) Security: I need to easy code "sign in" and secure the payment > process (ssl over http is guess) > 4.) Performance/Scalability. I know, in general the DB is the bottleneck > but ... compared to action-based frameworks. I read somewhere that Wicket > is much faster that JSF, so this seems good to me. > > So these are just a few thoughts, I'm a new to this topic, so pardon me if > something is wrong. In the moment my alternative is SpringMVC. But the > concepts of Wicket appeals to me. Especially the complete lack of JSPs. > > Thanks in advance > Paul > -- View this message in context: http://www.nabble.com/Is-Wicket-a-proper-framework-for-a-Webshop---tf4341788.html#a12378677 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]