Re: robots.txt

2010-08-10 Thread Per Lundholm
WicketApplication.mountBookmarkablePage(String path, ClassT page)? /Per On Mon, Aug 9, 2010 at 5:42 PM, Sefa Irken sefair...@gmail.com 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 ?

Re: KonaKart shopping cart integration

2010-08-03 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 steve_cough...@yahoo.com.au wrote: I've been

[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 small...@gmail.com wrote:

Re: Worldwide address form

2010-02-03 Thread Per Lundholm
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- From: Per Lundholm [mailto:per.lundh...@gmail.com] Sent: Friday, 29 January 2010 8:26

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

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 cloud.

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 dan...@jalbum.net wrote: Ok, I'm lazy and couldn't decipher that code at a glance. What does it do? // Daniel jalbum.net

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

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-11 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); ListIBehavior behaviors =

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

2009-08-12 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 troycau...@gmail.com wrote: I couldn't find a place on the wiki to point this

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

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 jeff.longl...@gmail.comwrote: In my quest to solve this problem, I'm mounting all my pages using

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? html head /head body table style=width: 100% trtd style=border-width: 2px; border-style: solidcol1/tdtd style=border-width: 2px; border-style: solidcol2/tdtd style=border-width: 2px; border-style: solidcol3/td/tr /table

Re: 1.4 is ready for production?

2009-07-21 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

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

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 Makundimartin.maku...@koodaripalvelut.com wrote: Hi! For some reason ModalWindow assumes request is not ajax even though it is clicked via executeAjaxEvent:                if (getWebRequest().isAjax() ==

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

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: Detaching and ModalWindow causes race condition

2009-07-04 Thread Per Lundholm
/ 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 per.lundh...@gmail.com wrote: Sorry Martijn but you are so ahead of me that I can't even follow the suggestion you make

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 Vaynbergigor.vaynb...@gmail.com 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, Thijsvonk.th...@gmail.com wrote: I have the following setup: *

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

2009-06-30 Thread Per Lundholm
to have 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: No. ;-) /Per On Tue, Jun 30, 2009 at 5:02 PM, Igor

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

2009-06-26 Thread Per Lundholm
Well done! +1 for Swit in maven repo. /Per On Fri, Jun 26, 2009 at 7:28 AM, rrmlwtrrm...@gmail.com 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: [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, rrmlwtrrm...@gmail.com wrote: Per Lundholm

Re: ModalWindow and IE8 question

2009-06-24 Thread Per Lundholm
A reset button! Should we laugh or cry? :-/ /Per On Tue, Jun 23, 2009 at 10:26 PM, Flaviusflav...@silverlion.com wrote: I cleared all cache and it still wasn't prompting the modal window. What I did do was go and reset IE8 by going to tools - Internet Options - Advanced tab and pressing the

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

2009-06-19 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

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 Vrolingbvrol...@cmbi.ru.nl wrote: I have a form with a textfield bound to an object containing interger values: TextFieldInteger residueNumber = new TextFieldInteger(                                

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 Levyjel...@gmail.com 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

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
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, Jadejada...@gmail.com wrote: Yes and be aware

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

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

2009-05-29 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 martijn.dasho...@gmail.com: Might be a dumb question, but why not make your wicket front end use the JAX-WS services as well? Martijn

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();

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 david_q_zh...@yahoo.com: I am now reading the book Wicket in Action to learn about Wicket. The more I

Re: Storing css and image files

2009-05-24 Thread Per Lundholm
Check out the tag wicket:link /Per 2009/5/24 Lucas Bonansea lucas.bonan...@gmail.com: 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

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 hubaghd...@yahoo.ca: Ok, the TextArea has its own model so I passed the model parameter of the

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.

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

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:

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.

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 br...@pappin.ca