Re: robots.txt

2010-08-10 Thread Per Lundholm
WicketApplication.mountBookmarkablePage(String path, Class page)? /Per On Mon, Aug 9, 2010 at 5:42 PM, Sefa Irken wrote: > Thank you everyone, that works. > > But a bit of curiosity, is there a wicket or servlet way? More clearly, how > can a singe file mounted to a single url ? like  /bob/stati

Re: KonaKart shopping cart integration

2010-08-02 Thread Per Lundholm
When you wrote "shopping cart", I assumed it was only the widget which presents what the customer bought and some mechanism for keeping that in the session. KonaKart seems to be a lot more than that. /Per On Tue, Aug 3, 2010 at 2:35 AM, Steve Coughlan wrote: > I've been looking for a shopping ca

[BLOG] Canned Wicket Test Examples

2010-07-10 Thread Per Lundholm
Hello! Just wanted to honk my horn: three examples of using the built in wicket test facilities to test AJAX enabled controls, the check box, radio group and the drop down. http://blog.crisp.se/perlundholm/2010/06/20/127701780.html /Per --

Re: Inject Dao ( with JPA impl) into Wicket without Spring ?

2010-03-26 Thread Per Lundholm
We have put all lookup in the wicket application class. Thus all pages do: getApplication().getWhatEverService(). I belive this make unit testing a bit easier since you mock the application the same way every time. /Per On Tue, Mar 23, 2010 at 6:05 PM, smallufo wrote: > 2010/3/24 smallufo > >>

Re: Worldwide address form

2010-02-03 Thread Per Lundholm
creating an interface for the data so that a generic > world wide address form could be written to the interface but the > implementation of the interface could be tailored to the way an > individual app stores it's world data. > > > > -Original Message- > >

Re: functional testing

2010-01-28 Thread Per Lundholm
We write tests first and use Wicket's built-in testing. It has some quirks so you may have to spend time with figuring out how to click an AjaxCheckBox, for instance. The tests target the logic of the view, such as "when clicking here, that other thing should be disabled". Good test coverage rea

Re: Help with Wicket Adoption Numbers

2010-01-11 Thread Per Lundholm
Since the PHB like to stay on the safe side of the fence, make them feel safe with Wicket. Tell successtories about Wicket. Tell failstories about other systems. :-) /Per On Mon, Jan 11, 2010 at 10:06 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi Lester, > > Right now I'm in a

Re: building tons of ajax links

2009-12-09 Thread Per Lundholm
... or do not use ajax ... what happens when you click ... are you not taken to a search result ... might as well redraw the page. /Per On Thu, Dec 10, 2009 at 7:47 AM, Douglas Ferguson < doug...@douglasferguson.us> wrote: > I'm supporting some code that builds an ajax link per "tag" aka. tag cl

Re: Hippo's patch for wicket ids

2009-10-15 Thread Per Lundholm
Looks like a patch to make it easier to use Selenium to test your webapplication. Selenium is very fond of id in tags. /Per On Thu, Oct 15, 2009 at 9:58 AM, Daniel Frisk wrote: > Ok, I'm lazy and couldn't decipher that code at a glance. What does it do? > > // Daniel > jalbum.net > > > > On 200

Re: google-sitebricks

2009-09-27 Thread Per Lundholm
It seems to be targetting a different category of webapps: " ... that have a lot of textual content and some components that are inserted or modified by Javascript interactively ... ". That opposed to: " ... web UI design using the abstraction of a desktop UI: Events, components and widgets intera

Re: Date validation in a form

2009-09-24 Thread Per Lundholm
Hi! Don't forget to setLenient false. Hope snippet below is enough. /Per public final class LocalDateFormatValidator extends StringValidator { private static final long serialVersionUID = 1L; private final SimpleDateFormat dateFormat; public LocalDateFormatValidator(Locale locale)

Re: history.go(-1) in wickets?

2009-09-10 Thread Per Lundholm
"page parameters retained"? The parameters of which page? The one you are going back to? "browser back button is not to be used"? The browser has a back button whether you like it or not. Users may not see if you hide it but still press "ALT-LEFT" while cursing over you. The back button can be

Re: How test modal windows with wicket tester?

2009-09-09 Thread Per Lundholm
/** * Execute a close on a modal window. */ private void executeClose() { ModalWindow window = (ModalWindow) tester.getComponentFromLastRenderedPage(MODAL); tester.clickLink(MODAL + ":content:closeOK", true); List behaviors = window.getBehaviors();

Re: cwiki code blocks render poorly on firefox, chrome, safari

2009-08-11 Thread Per Lundholm
The ones working is not using a "code" block. Don't know much about the wiki used, but it seems not to set up the width of textareas, leaving them to default width. /Per On Tue, Aug 11, 2009 at 9:37 PM, Troy Cauble wrote: > I couldn't find a place on the wiki to point this out, so > > FYI,

Re: setResponsePage() Not Working

2009-08-11 Thread Per Lundholm
You shouldn't need to mount anything. Did you try to reconfigure the app server? Typically, "use cookies" instead of "url rewrite"+ On Tue, Aug 11, 2009 at 6:23 PM, Jeff Longland wrote: > In my quest to solve this problem, I'm mounting all my pages using > HybridUrlCodingStrategy to see if that w

Re: setResponsePage() Not Working

2009-08-11 Thread Per Lundholm
Don't know if I am making a fool of myself here but isn't the first "?wicket" part of the jessionid? The jsessionid is generated by the container, right? Try changing the settings for that and see if something becomes different. /Per On Tue, Aug 11, 2009 at 3:28 AM, Jeff Longland wrote: > That'

Re: pannels with diffrent width and height

2009-08-10 Thread Per Lundholm
Hi! Does not the following spread across the window, or what do you mean? col1col2col3 /Per On Mon, Aug 10, 2009 at 2:35 PM, Gerald Fernando < gerald.anto.ferna...@gmail.com> wrote: > i used table but it will not be placed in the full page even i put table > height and width = 100% > i

Re: 1.4 is ready for production?

2009-07-20 Thread Per Lundholm
The site works for me, running FF 3.0.11 on Ubuntu. My browser is currently set to prefer Spanish but that does not apply to all texts, some are still English. Guess that was expected. /Per On Tue, Jul 21, 2009 at 6:22 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Does not h

Re: best or common practice for application plug-ins

2009-07-20 Thread Per Lundholm
Well, plug-ins, are they compile-time or run-time? Sounds like compile-time from your description. Also, from your description, it sounds that it is more than web-tier. Remember Wicket is web-tier only. There are solutions for the server tier for plug-ins. Look att OSGi http://www.osgi.org and E

Re: Bug in modal window.onBeforeRender <-> tests

2009-07-19 Thread Per Lundholm
Was it your intention to attach some code? /Per On Sun, Jul 19, 2009 at 9:59 AM, Martin Makundi wrote: > Hi! > > For some reason ModalWindow assumes request is not ajax even though it > is clicked via executeAjaxEvent: >                if (getWebRequest().isAjax() == false) >                { >  

Possible bug in interaction between FeedbackMessages and FeedbackMessagesModel

2009-07-12 Thread Per Lundholm
Hi! I've bumped into a problem with feedback messages not being rendered and given the warning about it in the log. While tracing down how this really works, it is complicated I think, I bumped into some code that looks a bit nasty to me. It may have effect on my problem. If the getObjcet method

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
a...@gmail.com > > Visit: http://jvdrums.sourceforge.net/ > LinkedIn: http://www.linkedin.com/in/egolan74 > > P  Save a tree. Please don't print this e-mail unless it's really necessary > > > On Sat, Jul 4, 2009 at 1:40 PM, Per Lundholm wrote: > >> Sorry Marti

Re: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
Sorry Martijn but you are so ahead of me that I can't even follow the suggestion you make. However, I just can support you on not using modal windows. We have a back office application written in Swing that use modal windows a lot and it is just getting worse by each feature added. Modal windows

Re: ie6 & HybridUrlCodingStrategy using ajax and an anchor results in a 404

2009-06-30 Thread Per Lundholm
t; problem viewing my website. > > Look here for some stats (of course, this is only one source, I'm sure > you'll be able to find other stats showing other figures) > http://www.w3counter.com/globalstats.php > > /Jörgen > > Per Lundholm skrev: >> >>

Re: ie6 & HybridUrlCodingStrategy using ajax and an anchor results in a 404

2009-06-30 Thread Per Lundholm
No. ;-) /Per On Tue, Jun 30, 2009 at 5:02 PM, Igor Vaynberg wrote: > do we still have to wreck our brains thinking about how to support a > browser released in 2001? > > -igor > > On Tue, Jun 30, 2009 at 2:16 AM, Thijs wrote: >> I have the following setup: >> >> * Page mounted using a HybridUrlC

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-26 Thread Per Lundholm
What do you mean, "not using Maven"? How can you not use Maven? :-) Jokes, aside. If I knew how, I would put it in the central repo, but I guess there are people on this list that are more prominent in that matter. /Per On Fri, Jun 26, 2009 at 9:12 AM, rrmlwt wrote: > Per L

Re: [kind-of-announce] Swit 0.9.0, wicket library for graphics stuff

2009-06-25 Thread Per Lundholm
Well done! +1 for Swit in maven repo. /Per On Fri, Jun 26, 2009 at 7:28 AM, rrmlwt wrote: > Jeremy Thomerson wrote: > >> Ahh... thanks - missed that! >>> >>> Must say a very nice, useful package. regarding creating buttons with >>> images. >>> yes, this is from the sourcecode of AmazonianButton

Re: ModalWindow and IE8 question

2009-06-24 Thread Per Lundholm
r > the cache completely.  I did uncheck the "Preserve Favorites website data" > in the Delete Browsing History dialog. > > Anyway, thanks Matej!  I appreciate your help. > > > > > Matej Knopp-2 wrote: >> >> couldn't it be old javascript file in

Re: ModalWindow and IE8 question

2009-06-23 Thread Per Lundholm
I don't know if it helps, but it works with IE8 on XP so there is something nasty about Vista /Per On Tue, Jun 23, 2009 at 8:17 PM, Flavius wrote: > > I'm starting to get users running Vista with IE8 (8.0.6001.18783) > report that they can't open modal dialog boxes. > > I searched through nabble

Re: TinyMCE bug: http://readystate4.com/2009/05/15/tinymce-typeerror-twindocument-is-null-in-firebug-console/

2009-06-18 Thread Per Lundholm
Possible to use the close-callback of Modalwindow? http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#setCloseButtonCallback(org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.CloseButtonCallback) /Per On Fri, Jun 19, 2009 at 2:45 A

Re: Mysterious NullPointerException

2009-06-18 Thread Per Lundholm
No. ;-) Are you suggesting that the version of Wicket matters? How does the stack dump look in your logs? /Per On Thu, Jun 18, 2009 at 4:25 PM, Jeremy Levy wrote: > I see the following a few times a day, this is with Wicket 1.3.6.  It > results in a 500 being displayed to the user... > > 2009-

Re: default integer form values

2009-06-18 Thread Per Lundholm
What is the initial value of "residueNumber"? /Per On Thu, Jun 18, 2009 at 3:35 PM, Bas Vroling wrote: > I have a form with a textfield bound to an object containing interger > values: > > TextField residueNumber = new TextField( >                                "residueNumber", new > PropertyMod

Re: [OFF TOPIC] Java desktop applications

2009-06-15 Thread Per Lundholm
To clarify: JavaFX is another language, which is what I believe Nino means by "some scripting language". It has some features that makes GUI design easier, such as binding variable to position of a slider. You can skin your JavaFX app with CSS, if you like. It is seamlessly integrated with Java.

Re: [OFF TOPIC] Java desktop applications

2009-06-12 Thread Per Lundholm
GWT is nice until you have too many objects on screen, then performance drops to horrible. What I like about doing HTML is that a lot of the layout problems have been solved. Crude, yes, but solved. Here is some hundreds of JavaFX examples, http://jfxstudio.wordpress.com One is mine :-) /Per O

Re: [OFF TOPIC] Java desktop applications

2009-06-11 Thread Per Lundholm
Hi I second that about JavaFX if youo really mean NICE looking. http://weblogs.java.net/blog/aim/archive/2009/06/insiders_guide.html http://weblogs.java.net/blog/aim/archive/javaone09/TS-5575ExtremeGUI.pdf /Per On Fri, Jun 12, 2009 at 8:38 AM, Jade wrote: > Yes and be aware that netbeans adds

Re: singletons, pools, wicket, web services and architecture

2009-05-28 Thread Per Lundholm
IMHO: Sounds like you need an J2EE application server more than just a servlet container (tomcat) with all integration issues. /Per 2009/5/28 Martijn Dashorst : > Might be a dumb question, but why not make your wicket front end use > the JAX-WS services as well? > > Martijn > > On Thu, May 28, 20

Re: Tips to start writing tests

2009-05-26 Thread Per Lundholm
Hi How about inserting the User object into the session before each test? private WicketTester tester; @Before public void beforeEachTest() { User fakeUser = new User(); tester.setupRequestAndResponse(); MySession wicketSession = (MySession) tester.getWicketSession(); wicke

Re: Any easy way to do client-side javascript-based validation with Wicket?

2009-05-25 Thread Per Lundholm
I assume you have read the parts about validation in Wicket. There are several examples of integrating Wicket with various JavaScript libraries, such as Dojo. /Per 2009/5/25 David Chang : > > > I am now reading the book "Wicket in Action" to learn about Wicket. The more > I read and the more I

Re: Whats wrong with my component?

2009-05-24 Thread Per Lundholm
So the TextArea gets a CompoundPropertyModel that has a MessageVO object. The MessageVO has a method "getLanguage" ? How should the TextArea display the contents of MessageVO? HTH /Per 2009/5/24 HHB : > > Ok, the TextArea has its own model so I passed the model parameter of the >  component co

Re: Storing css and image files

2009-05-24 Thread Per Lundholm
Check out the tag /Per 2009/5/24 Lucas Bonansea : > Hello. >           I'm new to web development and to Wicket. I created an Wicket > project in Eclipse following the instructions in the website, from there and > following the examples I have been able to create a couple of simple web > pages.

Re: 60% waste

2009-05-08 Thread Per Lundholm
Well, strings all over the place, if I get what you mean. But I write the tests first and they define what the paths and ids should be and Wicket is really quick about discovering when the implementation doesn't follow spec (i.e. tests). Doing a small step at a time takes you there faster. "Let'

Re: Tools for Managing a Wicket Project

2009-04-30 Thread Per Lundholm
No tools require an internet connection all the time. The repositories Nexus, Archiva etc are local to your site. They only download from the internet when you ask for something the first time. That is one reason for having a local repository manager. Then you have your personal repository as alwa

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Per Lundholm
+1 for that book but we are reaching beyond the scope of the question. I would prefer that designers and programmers stepped on each others toes all the time rather than working on separate branches. The former is more agile. /Per On Wed, Apr 29, 2009 at 10:21 PM, Brill Pappin wrote: > Heres an

Re: GWT-like

2009-04-29 Thread Per Lundholm
Yeah but I have a really bad experience with GWT. If the number of objects that are on a page goes up, performance decreases drastically due to the use of Javascript. No wonder Google wrote a browser of their own. Take a look at AjaxLazyLoadPanel if it might do the trick for your heavier parts. J

Re: Tools for Managing a Wicket Project

2009-04-29 Thread Per Lundholm
Hi Have you seen the Maven guide? http://www.sonatype.com/books/maven-book/reference/ It presents Nexus instead of Archiva which we use at my current contract. We also use Hudson and it was really easy to setup. You can try it with a simple click on the webstart button here: http://wiki.hudson-c