Re: resource reference vs resource

2007-08-07 Thread Kent Tong
Matej Knopp matej.knopp at gmail.com writes: basically, there are two kinds of resources in wicket. One is application-scope resources, that don't need the context of a page (javascriptps, css...) and the other is component resources, which kind of belong to a component - so they have access

Re: resource reference vs resource

2007-08-08 Thread Kent Tong
Matej Knopp matej.knopp at gmail.com writes: Yeah, ResourceReference is like global resource factory. That is for resources that don't belong to any component/page (they can't touch any component instance while they are served). However, I don't understand why we should not just use static

Re: Caching the context path

2007-08-16 Thread Kent Tong
David Leangen wicket at leangen.net writes: Well... the end goal is to use the URL as the controlling input for the branding of my application. So I have a BrandingService with something like: Branding getBranding( String url ); Have you considered using mod_rewrite (in Apache) to convert

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: i really dont think this is breaking encapsulation. i will concede that there is one case where it can break encapsulation and that is when you start out with what is publically accessible and then later you change your mind and make it completely private, but forget

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: cmon, there are plenty of things you can abuse in wicket, or any other framework. that is just the nature of the beast. as framework developers we put out features and hope that our users know how to use them responsibly. we cannot continuously cater to newbie users,

Re: Re[2]: Alternative to Wicket data binding

2007-08-28 Thread Kent Tong
igor.vaynberg wrote: yeah, but you are forgetting that you will also need the compound variant, blah blah. before you know it you have replicated a bunch of the hierarchy. like i said, lets have a vote, propose as many variants of this as you want and we can see where it goes/what

Re: Append anchor to form redirect URL?

2007-09-04 Thread Kent Tong
Jeremy Thomerson-3 wrote: Is there a way to append an anchor to the URL generated for the SubmitLink? Try: form.add(new AttributeModifier(action, null) { protected String newValue(String currentValue, String

Re: FeedbackPanel + Link problem

2007-09-05 Thread Kent Tong
fero wrote: I found what was wrong but I can not explain it In markup of LabelLink I had wicket:panel button wicket:id=id id=idlabel wicket:id=id/label/button /wicket:panel When I changed button tags to a it was working, but I want my links to look like buttons

Re: AjaxFallbackLink inside ListView

2007-09-06 Thread Kent Tong
pokkie wrote: My question is, how do I use this information to get the selected entity which represents a row in my listView? Try: public class Test extends WebPage { public Test() { ListString list = Arrays.asList(new String[] { a, b, c });

Re: AjaxFallbackLink inside ListView

2007-09-06 Thread Kent Tong
pokkie wrote: Worked like a charm, thanks Kent. You the same Kent Tong that wrote a online Tapestry book? Yep. -- View this message in context: http://www.nabble.com/AjaxFallbackLink-inside-ListView-tf4389622.html#a12534270 Sent from the Wicket - User mailing list archive

Re: CompressedResourceReference: cannot serve static .html-files but .htm-files [SOLVED but needs JAVADOC comments]

2007-09-08 Thread Kent Tong
pixotec wrote: YOU GUESS WHAT?!! I JUST RENAMED THE FILE TO dialogTable.htm AND NOW IT IS WORKING!! it is the fact of not being able to serve html-files! I think this fact should be documented in the JAVADOC of the Resource-classes! Just upgrade to the latest v1.3 beta and this

Re: Calling all translators - UrlValidator translation

2007-09-08 Thread Kent Tong
Alastair Maw-2 wrote: The English in question is: '${input}' is not a valid URL. The Traditional Chinese (zh_TW) version is: UrlValidator='${input}'\u4e0d\u662f\u4e00\u500b\u5408\u6cd5\u7684URL\u3002 The Simplified Chinese (zh_CN) version is:

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Jason Mihalick wrote: However, if I try to move my pages under WEB-INF, wicket has a problem loading resources that are bound via the org.apache.wicket.markup.html.include.Include class. In my case, I have several static pages that I want to load dynamically which are located in my

Re: AjaxRequestTarget null... in onClick of AjaxFallbackLink

2007-09-08 Thread Kent Tong
John Carlson-5 wrote: I get the following error output in the console when I click on the link on the actual page... INFO - uestTargetResolverStrategy - component not enabled or visible, redirecting to calling page, component: null It probably means the your container which contains

Re: How to force a delete (from disk) of the session from the session store?

2007-09-08 Thread Kent Tong
Chris Lintz wrote: Hi, When a user logouts of the site, i want to kill the session and have it be removed from disk immediately. I have extended WebSession properly, but no methods on the WebSession class seem to do the trick for me. Is there a way to to trigger the removal of the

Re: Two small questions

2007-09-08 Thread Kent Tong
Sebastiaan van Erk wrote: Ok, to answer my own question, it seems that ExternalLink does not have the ability to be disabled like Link. Looks like a bug to me. I'd suggest that you submit a JIRA issue at http://issues.apache.org/jira/browse/WICKET -- View this message in context:

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Jason Mihalick wrote: Thank you for the suggestion. This looks like it ought to work fine for exploded WARs, but it seems like it would be a problem when then app is deployed in a WAR. Is there any way to do this that will work when the app is deployed in a WAR archive? Or is there

Re: Using Include and placing pages under WEB-INF

2007-09-08 Thread Kent Tong
Thanks, yes, my solution was close to this, but I opted instead to subclass the Include class. I think the solution that you propose below may cause wicket to create an absolute URL to the HTML files under the WEB-INF dir which will be inaccessible by the browser. /quote No. The URL is never

Re: Adding an image in imageMap?

2007-09-08 Thread Kent Tong
bhupat parmar wrote: hi i have to add an iamge in my ImageMap.RectangleLink which is not predefined THE IMAGE IS LOADED from database? You can try using an AttributeModifier to modify the src attribute of the tag. You can subclass ResourceReference to load the image from your DB and

Re: Wicket Validation Error

2007-09-08 Thread Kent Tong
spencer.c wrote: StringValidator.maximum=${label} must be no longer than ${maximum} characters. sendForm.senderField.Required=You must provide your email address to proceed. Try: sendForm.senderField.StringValidator.maximum=${label} must be no longer than ${maximum} characters.

Re: Wicket Web Beans 1.0-rc1 Released

2007-09-12 Thread Kent Tong
Hi Dan, It looks very powerful! BTW, why chose to use a config file (beanprops) instead of Java code? I think doing in Java for everything other than the standard web stuff (HTML/CSS/js) is a basic principle of Wicket. -- View this message in context:

Re: compressing resources which are not in the classpath

2007-09-15 Thread Kent Tong
Andrew Klochkov wrote: Hi! How to compress resources (css, java scripts) which are lying not in the classpath but in /css and /js in the webapp context folder? How can I create a CompressedResourceReference to such a resource? Try: public class MyApp extends WebApplication {

Re: wicket doesn't show its debugging?

2007-09-15 Thread Kent Tong
Potje rode kool wrote: I used the log config files from the wicket example that comes with wicket (apache-wicket-1.3.0-beta3) and set it to debug. Any idea what I am missing to see the debugging of Wicket for the org.apache.wicket.util.resource package? Are you sure you're using the

Re: Number of available parameters in IndexedParamUrlCodingStrategy

2007-09-16 Thread Kent Tong
james yong wrote: I am using IndexedParamUrlCodingStrategy. Is there is a good way to check the number of available parameters? Currently i have to use getString(0), getString(1) etc. to check for null before I arrived at the size of the available parameters. Have you tried:

Re: compressing resources which are not in the classpath

2007-09-17 Thread Kent Tong
Andrew Klochkov wrote: Wow, Kent, thanks a lot for the code!! I wonder shouldn't something like this be in the framework core? I simply adapted the code from the CompressedPackageResource. As reusable components should have their resources bundled with them in the classpath,

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
JohnSmith333 wrote: I have use a Palette with DropDownChoice. I want to change the DropDownChoice's selected value and then update the Palette's lists. And when I click the Palette's value ,I hope to save the change result. But it's not work normally. Could anyone kind to help me? Thanks!

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
Helo! Kent Thanks for your help. But I still have the same question. That's if I choice A with select A1 to selectedList and then choice B with selected nothing to selectedList. It's ok when I choice A again and see the A1 at selectedList. But if I choice A with select A1 to selectedList and

Re: Question about use Palette with DropDownChoice

2007-09-17 Thread Kent Tong
Yes,sir. I have run the code more three times before. Maybe it's because I run the code with wicket 1.2.6 and wicket-extensions-1.2.6 and jdk 1.4.12. Really I don't know what happen! Thank's your help again. Thanks! Then try using 1.3 beta3. -- View this message in context:

Re: Testing wicket 1.3

2007-09-18 Thread Kent Tong
Nino.Martinez wrote: I was wondering how I should be testing with wicket. I've created the bbcodecomponent, I have a bbcodeLabel. And I would like to write a test for that. I can see that I can't use the assertLabel as that just gets modelObjectToString, in the bbcodeLabel some

Re: Setting focus to a TextField

2007-09-21 Thread Kent Tong
Doug Leeper wrote: I know this is probably one of the most trivial things to do...but I am stumped. No example that I found on the Wicket example site has shown this. I know that AjaxRequestTarget#focusComponent plays a part in this but not sure how. Could someone post a quick code

Re: How to add RadioGroup column to DataTable?

2007-09-21 Thread Kent Tong
igor.vaynberg wrote: heh, there is something wrong doesnt really give me any context to help you :) i would guess you need to put the radiogroup around the entire datatable. At least make sure there is a form component enclosing the RadioGroup. -- View this message in context:

Re: CheckGroup form submission bug

2007-09-21 Thread Kent Tong
Nick Busey wrote: So I've got what appears to be a very strange bug. I have a CheckGroup with a ListView of Checks among other things. Everything seems to work fine if you render the form and submit it without any errors the first time. However, if you hit any errors (like not selecting

Re: Versioning Problems With DataTable, Spring Hibernate

2007-09-21 Thread Kent Tong
carloc wrote: public CCTIDetachableModel extends Loadable DetachableModel { private String id; private Integer version; private Dao dao; public Object load() { MyObject myobj = dao.get(id); if (version == null) { version = myobj.getVersion(); } else if

Re: Custom AjaxFormSubmitBehavior

2007-09-21 Thread Kent Tong
NateBot2000 wrote: I created an extension of AjaxSubmitLink that accepts a static html form id string as an argument (AjaxFormSubmitBehavior forces setOutputMarkupId on the Form by default). In so doing, I extended AjaxFormSubmitBehavior... and then I add this custom behavior to my custom

Re: Can't access Javascript/CSS when in servletMode

2007-09-21 Thread Kent Tong
Adam Koch wrote: In fact, I couldn't get the JS/CSS in any way when using the servlet. I tried putting the JS in my app.war in these directories: / (root) /classes/com/.../someJS.js /WEB-INF/classes/com/.../someJS.js (same directory as Class and html) Are you mapping the Wicket servlet

Re: Howto handle exceptions?

2007-09-22 Thread Kent Tong
Newgro wrote: is there a wicket way for handling exceptions? I call my beans from my controller which manages the wicket-view (Panel, Page ...). Some exceptions i want to handle in the controller. But sometimes there are NPEs or IAEs. I would like to send them all to an error page, but

Re: ExternalLink documentation enhancement

2007-09-22 Thread Kent Tong
Chris Colman wrote: I would have thought that an external link without any protocol prefix should always default to an absolute link to an http:// page and not a relative link from the current page. Being an external link, by definition, it could never be a relative link from the current

Re: Label associated with an open/close tag

2007-09-24 Thread Kent Tong
Gwyn wrote: Please raise an issue - https://issues.apache.org/jira/browse/WICKET Feel free to have a go at a patch, as that'll help it's chances of getting done! Done (https://issues.apache.org/jira/browse/WICKET-1004). No time to make a patch though... -- View this message in context:

Re: Ajax Problem on Page with IFRAME

2007-09-24 Thread Kent Tong
SantiagoA wrote: Sorry, doesn´t work for me either. The Problem is, that the refreshing in the main-page does not work, if the particular Panel is active. The inputs and the ajax are nested in the main page, the panel shows a readonly Iframe with no inputs. Sorry that I don't

Re: Ajax Problem on Page with IFRAME

2007-09-25 Thread Kent Tong
SantiagoA wrote: I have a mainpage with some inputfields with ajax in, a submitbutton and a TabbePanel with three panels. The panels are for output only. one of the panels holds an Iframe. But if the panel with the Iframe is active, means the Tab for the panel was clicked, none of the

Re: Need combo to determine action but validation fails

2007-09-25 Thread Kent Tong
Francisco Diaz Trepat - gmail wrote: What it is happening is that because of some fields are invalid (Empty) I cannot get to the selected option of the DropDownChoice, and by that change part of the form. Try: private void showHideDetailsOnForm(AjaxRequestTarget target) {

Re: Can't access Javascript/CSS when in servletMode

2007-09-26 Thread Kent Tong
Adam Koch wrote: It is mapped to an app and not to the root. The directories I listed are in the war file, but I tried to access them with http://localhost/myapp/ ... Then I'd suggest you: 1) deploy your app in Tomcat to see if it works. 2) file a jira issue and upload a bare minimal

Re: substitute same value in several places

2007-09-28 Thread Kent Tong
Peter Dotchev wrote: I'd like to use the same value in several places of a page, e.g. two labels with same content. Let's say I want to substitute the same property using CompoundPropertyModel. Try: public class Home extends WebPage { private String l1 = abc; public

Re: Reach into a component to change XML attribute

2007-09-29 Thread Kent Tong
Sam Hough wrote: I'm full of cold so probably being very thick but that doesn't work for RepeatingView does it as it implies notification of objects being attached to a parent :( It looks very clever but I'm not having one of those god that is so simple why didn't I think of that

Re: Reach into a component to change XML attribute

2007-09-30 Thread Kent Tong
Sam Hough wrote: Your still breaking my requirement that this behaviour is encapsulated within MyFancyRepeatingView ;) I really do appreciate all your code and I think I'm learning a lot even if I sound horribly ungrateful. I'm warming to every child component having a special behaviour

Re: How do I change the label/text for the wizard buttons?

2007-09-30 Thread Kent Tong
lizz wrote: How do I change the label on the previous, next and finish buttons in the wizard? I would like to change the label of the FinishButton to save. In your .properties file, add: org.apache.wicket.extensions.wizard.next=Proceed org.apache.wicket.extensions.wizard.previous=Go

Re: How do I force evaluate in a Wizard steps condition to run?

2007-09-30 Thread Kent Tong
lizz wrote: A parameter in my wizard step decides whether the next step is valid or not. The end user can change this parameter and I therefore need to be able to reevaluate the next wizard steps when this is changed. I use ICondition and I guess there is a way for me to force the

Re: Wicket menu with submenu dialog window

2007-10-01 Thread Kent Tong
lizz wrote: Has anyone made a menu (with menu items and submenus) in wicket? I would like a menu that looks more or less like the Swing JMenu. I saw a reference to http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-extensions-menubar/ but didn’t find that project.

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: I have three wizard steps A, B and C In step B I have a drop down choice. Whether step c is valid or not depends on the selection in the drop down choice in step B. Everytime the user changes the selection in the drop down choice the wizard must be updated (the evaluate

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: I really dont want to add more steps that the ones I already have. for the case when step c is no longer valid I woild like the next button to be disabled and the finish button to be enabled. Isn't there a method for updating the button panel? As I said, you can enable

Re: hide/show components - role based

2007-10-01 Thread Kent Tong
Juan Gabriel Arias wrote: Im trying to dinamically show or hide html components, like links, buttons, etc. something like: public class MyPage { public MyPage() { Link myLink = ...; MetaDataRoleAuthorizationStrategy.authorize(myLink, RENDER, role1,role2); } } -- View

Re: Page.detachModels() not working like it used to

2007-10-02 Thread Kent Tong
Dan Syrstad-2 wrote: Nope. I tried detach() too and that doesn't work - the test still fails. I had to write my own method which was basically was a copy of the old Page.detachModels() code. The thing is that In beta3, Page now just acts like a Component as far as detachModels() is

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
, ...) { protected boolean wantOnSelectionChangedNotifications() { return true; } protected void onSelectionChanged(Object newSelection) { recommendationForm.clearInput(); } }; -- Kent Tong Wicket tutorials

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
it. By checking the output you can be sure that the model was once attached. -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Page.detachModels%28%29-not-working-like-it-used-to-tf4549247.html#a13057290 Sent from

Re: Page.detachModels() not working like it used to

2007-10-05 Thread Kent Tong
Dan Syrstad-2 wrote: Your page code is almost exactly the same as mine. However, your HTML does not look correct - it has no tag with a wicket:id in it. So maybe your component never rendered. No, your mail client has stripped the code. Let me show you the code again: lt;htmlgt;

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-05 Thread Kent Tong
Fabio Fioretti wrote: The ListChoice uses the same AbstractModel on which the panel inside the form builds its CompoundPropertyModel (see my previous posts): when user's selection changes, the AbstractModel correctly replaces its object with the newly selected instance and the form gets

Re: Form.onComponentTagBody()

2007-10-05 Thread Kent Tong
to do the layout. See http://www.quirksmode.org/css/forms.html for a simple example. -- Kent Tong Free tutorials on Wicket at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Form.onComponentTagBody%28%29-tf4575419.html#a13070025 Sent from the Wicket - User

Re: hot redeploy of java classes

2007-10-05 Thread Kent Tong
Artur W. wrote: I tried to do the same in tomcat 5.5. I added autoDeploy=true to the host but it doesn't work. Anyone has any idea how to force tomcat to do that? You need reloadable in Context, not autoDeploy. There is step-by-step in my free tutorial (see my signature below). -- Kent

Re: Ajax dropdownchoice doesn't work after submit

2007-10-05 Thread Kent Tong
() method. I'm doing something wrong? There is another way to do it? Am I missing something here? You should call: setResponsePage(page); //page.render(); -- Kent Tong Free tutorials on Wicket at http://www.agileskills2.org/EWDW -- View this message in context

Re: CompoundPropertyModel stops working when form validation fails.

2007-10-08 Thread Kent Tong
it is clear only when the form is submitted and validation is passed successfully. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/CompoundPropertyModel-stops-working-when-form-validation-fails

Re: Empty ListChoice

2007-10-12 Thread Kent Tong
; } }; - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Empty-ListChoice-tf4604759.html#a13172939 Sent from the Wicket - User mailing list archive at Nabble.com

Re: Validating a NonZero Values and Validators Project in General

2007-10-12 Thread Kent Tong
. If you insist on using a pre-built validator, try PatternValidator([+|-]?(\\d)*[1-9](\\d)*) but then the model has to be a String, not a number. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Validating

Re: Empty ListChoice

2007-10-12 Thread Kent Tong
it should be easier than this. Does ListChoice *intentionally* not allow for an empty list? I expected to find something like allowEmpty(boolean)...but no dice. Have you tried my code? The list has no selectable entry. - -- Kent Tong Wicket tutorials freely available at http

Wicket tutorials updated for beta4

2007-10-12 Thread Kent Tong
Hi, I've updated my free Wicket tutorials to beta4. They're available at http://www.agileskills2.org/EWDW/index.html - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Wicket-tutorials-updated

Re: Locale change on Image with Resource results in broken images

2007-10-13 Thread Kent Tong
if the Image(String id, Resource imageResource) constructor was used. This indeed looks like a bug to me. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Locale-change-on-Image-with-Resource-results

Re: Ajax paging navigation link exception

2007-10-13 Thread Kent Tong
in hierarchy starting from [MarkupContainer [Component id = pageLink, page = No Page, path = 0:pageLink.AjaxPagingNavigationLink]] Are you using the latest v1.3? - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http

Re: Configuring DatePicker

2007-10-13 Thread Kent Tong
); } }); - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/Configuring-DatePicker-tf4616962.html#a13195942 Sent from the Wicket - User mailing list archive at Nabble.com

Re: RFE: DataTable colgroup

2007-10-13 Thread Kent Tong
browsers don't support it due to an alleged contradiction between HTML4 and CSS (see https://bugzilla.mozilla.org/show_bug.cgi?id=915#c27). - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW -- View this message in context: http://www.nabble.com/RFE%3A-DataTable

Re: facebook support

2007-11-08 Thread Kent Tong
Matt Jensen-2 wrote: I am working on this, though I'm trying to leave the door open to also supporting MySpace in the future. I have not done much yet--and nothing Wicket-specific--but I do plan to include a Wicket module. Have you considered Google's OpenSocial API? - -- Kent

small library to unit test Wicket pages

2009-11-08 Thread Kent Tong
. -- Kent Tong Useful FREE software at http://www2.cpttm.org.mo/cyberlab/freeware - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Can i convince WicketTester to click a label?

2009-11-18 Thread Kent Tong
://wicketpagetest.sourceforge.net for more info. - -- Kent Tong Wicket tutorials freely available at http://www.agileskills2.org/EWDW Axis2 tutorials freely available at http://www.agileskills2.org/DWSAA -- View this message in context: http://old.nabble.com/Can-i-convince-WicketTester-to-click-a-label

Re: Wicket tester test coverage

2009-11-24 Thread Kent Tong
tool) has covered all my pages as well (more deeply). What you need is TDD. Once you adopt TDD, you will have every page tested. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) -- View this message in context: http://old.nabble.com/Wicket-tester

Re: Wicket tester test coverage

2009-11-25 Thread Kent Tong
that it may be pointless to test the position or the color of a button in automated tests. On the other hand, functionality of GUI can definitely be tested. For example, I am writing a Wicket application with TDD (sort of) with the library shown in my signature. It is working very well. - -- Kent Tong

Re: Wicket tester test coverage

2009-11-25 Thread Kent Tong
Pierre Goupil wrote: I use it, and what I'm looking for is a mean to ensure my test coverage. If you're using TDD, you will have developed the page and the unit test for that page at the same time and by definition you won't have a page that is not tested. - -- Kent Tong Better way

Re: Wicket tester test coverage

2009-11-27 Thread Kent Tong
would fear the time needed for proper testing quite hard to justify. Am i wrong here ? I test my code based on risk. If it is the code that is frequently use, has a high impact if it breaks, or is likely to contain bugs, I'll test it more thoroughly. - -- Kent Tong Better way to unit test

Re: Canoo WebTest

2009-12-11 Thread Kent Tong
events. Take a look at http://wicketpagetest.sourceforge.net which allows you to test AJAX. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) -- View this message in context: http://old.nabble.com/Canoo-WebTest-tp26724748p26755311.html Sent from

Re: unit test of AjaxLazyLoadPanel and ModalWindow

2009-12-16 Thread Kent Tong
/examples.html which supports AJAX without any special work by you. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) -- View this message in context: http://old.nabble.com/unit-test-of-AjaxLazyLoadPanel-and-ModalWindow-tp16851306p26809771.html Sent from

Re: Testing AjaxSubmitLink#onSubmit() with WicketTester @L

2009-12-28 Thread Kent Tong
alecswan1 wrote: So, how do I test AjaxSubmitLink#onSubmit(AjaxRequestTarget target, Form form) method? You may try using http://wicketpagetest.sourceforge.net/ to test it instead. It supports real AJAX. - -- Kent Tong Better way to unit test Wicket pages (http

Re: Testing AjaxSubmitLink#onSubmit() with WicketTester @L

2009-12-29 Thread Kent Tong
to sleep() method is used to simulate a slow responding method. It is not needed at all. The detection is done by selenium.waitForCondition(some javascript). - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://http

Re: Testing AjaxSubmitLink#onSubmit() with WicketTester @L

2009-12-29 Thread Kent Tong
of the expected behavior that is specific to the function concerned. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org) -- View this message in context: http://old.nabble.com/Re%3A

Re: Wicket and Spring - mocking a particular bean when Wicket is in development mode?

2010-01-08 Thread Kent Tong
it can't be used in system tests. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org) -- View this message in context: http://old.nabble.com/Wicket-and-Spring---mocking-a-particular-bean

Announce: wicket page test 1.1.0 available

2010-01-16 Thread Kent Tong
Dear all, wicket page test allows you to unit test Wicket pages including its AJAX functionality. Major enhancements in 1.1.0: * It now supports Google Guice along with the existing support for Spring (Thanks to our new member developer, Andy Chu). * It is now organized in modules so that you

Re: functional testing

2010-01-24 Thread Kent Tong
For functional testing, I'd suggest Selenium. For unit testing of Wicket pages, I'd suggest Wicket Page Test (http://wicketpagetest.sourceforge.net). - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://http

Re: Wicket, Spring 3 and UnitTesting

2010-01-29 Thread Kent Tong
Jochen Mader-2 wrote: Just figured out how to do UnitTesting with Spring 3 and Wicket. An alternative is to use http://wicketpagetest.sourceforge.net. It works fine with Spring 3.0 without changing any of your code. - -- Kent Tong Better way to unit test Wicket pages (http

Re: How to write a testcase for CheckGroupSelector.

2010-02-06 Thread Kent Tong
vermas wrote: How to write a testcase for CheckGroupSelector. Try http://wicketpagetest.sourceforge.net/ which supports execution of Javascript in the tests. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF

Re: Can't get FormTester.submitLink to work (required testfield always missing)

2010-03-04 Thread Kent Tong
jn73 wrote: My problem is that even when i set a value on the RequiredTextField the form submission is failing - because of that the required field is missing. Please try http://wicketpagetest.sourceforge.net. It should work. - -- Kent Tong Better way to unit test Wicket pages (http

Re: Wicket tests without FormTester

2010-03-04 Thread Kent Tong
alexander.elsholz wrote: exists a possibility to test, for example a dropdownchoice without formtester? Try http://wicketpagetest.sourceforge.net which should work fine. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2

Announce: wicket page test 1.2 is now available

2010-03-06 Thread Kent Tong
Dear all, Wicket page test allows you to unit test Wicket pages easily including its AJAX functionality. Major enhancements in 1.2 is that now you can wait for the completion of Ajax easily, without writing any Javascript. For example, in a test case, do something like: WicketSelenium

Re: Configure wicketpagetest to multi eclipse project layout

2010-03-10 Thread Kent Tong
of how to make it take effect, see the Overriding web.xml example at http://wicketpagetest.sourceforge.net/examples.html. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org) -- View this message

Re: FormTester - submitting more than once

2010-03-12 Thread Kent Tong
://wicketpagetest.sourceforge.net/ - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org) -- View this message in context: http://old.nabble.com/FormTester---submitting-more-than-once-tp27873217p27874748.html

Re: FormTester - submitting more than once

2010-03-12 Thread Kent Tong
Tony Wu-5 wrote: Any way to do it without running Selenium? Not that I know of. What's the problem of running Selenium? - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org) -- View

Wicket page test 1.3 is now available

2010-03-26 Thread Kent Tong
Dear all, Wicket page test 1.3 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Provide a generic starter page to launch another page whose

Re: FormTester with dynamic fields

2010-04-11 Thread Kent Tong
://wicketpagetest.sourceforge.net. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org) -- View this message in context: http://old.nabble.com/FormTester-with-dynamic-fields-tp28193951p28207809.html Sent from the Wicket

WICKET-2832

2010-04-13 Thread Kent Tong
Dear all, Any idea on https://issues.apache.org/jira/browse/WICKET-2832 ? If it is fine, I may take some time to create submit a patch. -- Kent Tong Case studies on ITIL, Linux, OpenOffice and Extreme Programming at http://www2.cpttm.org.mo/cyberlab

Re: WICKET-2832

2010-04-13 Thread Kent Tong
wicket=//my-component-id. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://agileskills2.org) -- View this message in context: http://old.nabble.com/WICKET-2832-tp28228278p28237092.html Sent from the Wicket

my book updated for Wicket 1.4.x

2010-04-16 Thread Kent Tong
Hi, I've updated my book for Wicket 1.4.x. You may check it out or download the first two chapters at http://agileskills2.org/EWDW - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: WicketTester fails with a custom WebRequestCodingStrategy

2010-04-24 Thread Kent Tong
Hi Martin, You may take a look at http://wicketpagetest.sourceforge.net/ which will work for your case. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: using selenium

2010-04-28 Thread Kent Tong
Hi Joe, Take a look at http://wicketpagetest.sourceforge.net which allows you to locate an html element with something like wicket=//myTextField -- Kent Tong Case studies on ITIL, Linux, OpenOffice and Extreme Programming at http://www2.cpttm.org.mo/cyberlab

Wicket page test 1.4 is now available

2010-04-30 Thread Kent Tong
Dear all, Wicket page test 1.4 is now available. It is a library allowing you to unit test your Wicket pages easily, supporting AJAX and Javascript without changes to your pages. New features implemented in this version: * Provide a super easy way to locate a DOM element with the Wicket ID. For

Re: Testing wicket pages in isolation (wickettester)

2010-05-13 Thread Kent Tong
Hi Vincent, You can use a page navigator interface. See the example Checking if a Wicket page is passing the correct data to the next page on http://wicketpagetest.sourceforge.net/examples.html -- Kent Tong, Msc, PMP, CISSP, ITIL Foundation Senior manager of IT dept, CPTTM Authorized training

  1   2   >