Simulate DropDownChoice selection

2008-10-06 Thread Aleksandr Nikiforov
Hi all, I have a couple of DropDownChoices and I want to test their behaviour using WicketTester, is it possible to somehow simulate that user has made selection in ddc? Regards, Aleksandr - To unsubscribe, e-mail: [EMAIL

Re: AjaxFallbackDefaultDataTable with ajax lazy loading - sorting and paging throws an IllegalStateException

2008-10-06 Thread Igor Vaynberg
if i were you i would read the exception message, it is telling you exactly what is going wrong...if you showed some code or provided a quickstart we can help further. -igor On Mon, Oct 6, 2008 at 12:04 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Anybody? Guys please help me with this one.

RE: AjaxFallbackDefaultDataTable with ajax lazy loading - sorting and paging throws an IllegalStateException

2008-10-06 Thread Yazeed Isaacs
Hi Igor Here is the java code: add(new AjaxButton(ajaxSubmitButton, this) { protected void onSubmit(AjaxRequestTarget target, Form form) { AjaxLazyLoadPanel transactions = new AjaxLazyLoadPanel( transactions) {

Re: AjaxFallbackDefaultDataTable with ajax lazy loading - sorting and paging throws an IllegalStateException

2008-10-06 Thread Igor Vaynberg
read the message! remove setRenderBodyOnly(false); -igor On Mon, Oct 6, 2008 at 12:41 AM, Yazeed Isaacs [EMAIL PROTECTED] wrote: Hi Igor Here is the java code: add(new AjaxButton(ajaxSubmitButton, this) { protected void onSubmit(AjaxRequestTarget target, Form form) {

Re: AjaxFallbackDefaultDataTable with ajax lazy loading - sorting and paging throws an IllegalStateException

2008-10-06 Thread Ernesto Reinaldo Barreiro
The problem is, as Igor pointed, you cannot re-render a component via AJAX if it has set setRenderBodyOnly(true)... Why? div wicket:id=testAjax pContent.../p /div will be renderend as pContent.../p instead of div id=someid pContent.../p /div So, there is no way wicket AJAX js can replace

Serializing model. DetachedModel or not

2008-10-06 Thread jensiator
Hello Im working on a Pageable dataview using SortableDataProvider and I have trouble to find out how It should be done regarding memory use versus database requests. I've looked on the repeaters live action and read the model chapter in wicket in action. 1. If I dont use the

Re: Nice urls in markup

2008-10-06 Thread Liz Huber
That is the intention, the fallback links only work when javascript is enabled. According to the book wicket in action the intention of a fallback link is, that it acts like a usual link, if java script is disabled. Or did I get this wrong? I think you should mount your pages like this:

Re: Nice urls in markup

2008-10-06 Thread Igor Vaynberg
ajax fallback links are callback links, you cannot override their generated url in markup without rolling your own urlcodingstrategy. only bookmarkable page links generate bookmarkable (mounted) urls. -igor On Thu, Sep 25, 2008 at 4:48 AM, Liz Huber [EMAIL PROTECTED] wrote: I'm trying to

Re: Serializing model. DetachedModel or not

2008-10-06 Thread Igor Vaynberg
what exactly loads twice? dataview only makes two queries: one for the size of the dataset and one for the window of data it is going to render. -igor On Mon, Oct 6, 2008 at 1:07 AM, jensiator [EMAIL PROTECTED] wrote: Hello Im working on a Pageable dataview using SortableDataProvider and I

Re: Simulate DropDownChoice selection

2008-10-06 Thread Nino Saturnino Martinez Vazquez Wael
use form tester... Aleksandr Nikiforov wrote: Hi all, I have a couple of DropDownChoices and I want to test their behaviour using WicketTester, is it possible to somehow simulate that user has made selection in ddc? Regards, Aleksandr

Re: Having Wicket append #someanchor

2008-10-06 Thread Nino Saturnino Martinez Vazquez Wael
Could you add it to the wiki? http://cwiki.apache.org/WICKET/ kan wrote: I've made custom url coding strategy which finds key named # in PageParameters and encodes it as anchor part (opaque part). 2008/10/2 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: I would probably just do a

Re: Having Wicket append #someanchor

2008-10-06 Thread kan
I've made custom url coding strategy which finds key named # in PageParameters and encodes it as anchor part (opaque part). 2008/10/2 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: I would probably just do a simple javascript and make a headercontribution... But I guess it's not really

HTTPS and FileUpload

2008-10-06 Thread Uwe Schäfer
hi i think i hit a bug within wicket (or maybe it is a bug within the appserver?). i have a FileUpload on a wicket form and everything is smooth, _until_ it is taken to https. it looks like in https, the request does not (at least in caucho resin) tell the size of the request. This means

Re: Simulate DropDownChoice selection

2008-10-06 Thread Edward Yakop
On Mon, Oct 6, 2008 at 3:11 PM, Aleksandr Nikiforov [EMAIL PROTECTED] wrote: Hi all, I have a couple of DropDownChoices and I want to test their behaviour using WicketTester, is it possible to somehow simulate that user has made selection in ddc? WicketTester tester = ...; // If ajax drop

Newbie Question, Very Basic Model Use

2008-10-06 Thread walnutmon
After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to work with local variables... as an example... new CheckBox(toggleSomething, new PropertyModel(someObject, toggleableProperty)); works beautifully...

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Serkan Camurcuoglu
Model assigns a new object as the model object, and I think java.lang.Boolean is immutable so it can't change after it's constructed anyway. So instead of checking the value of toggleableObject I think you can check myCheckbox.getModelObject() == Boolean.TRUE etc.. Ryan Gravener wrote: If

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Ryan Gravener
If you would like the property model to work with local variables do new propertymodel(this,property) On 10/6/08, walnutmon [EMAIL PROTECTED] wrote: After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to work

Modeless Window (real or div)

2008-10-06 Thread Francisco Diaz Trepat - gmail
Hi I need to build a pop-up modal window on my application. I wanted to see if I could get some recomendations or comments. Obviously I need not to re-enter username and password and work on the same session. It could be a div element like the Wicket Dialog, or a real new window. Thoughts?

Re: Newbie Question, Very Basic Model Use

2008-10-06 Thread Martijn Dashorst
see the models page on the wiki and read the javadoc for CompoundPropertyModel Martijn On Mon, Oct 6, 2008 at 3:26 PM, walnutmon [EMAIL PROTECTED] wrote: After using property models, it's nice to have automatic binding to variables in objects... However, I can't seem to get the same thing to

Re: Having Wicket append #someanchor

2008-10-06 Thread kan
http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-Howtoadd%23anchor(opaque)topageurl%3F 2008/10/6 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: Could you add it to the wiki? http://cwiki.apache.org/WICKET/ kan wrote: I've made custom url coding strategy which finds key

Re: Serializing model. DetachedModel or not

2008-10-06 Thread jensiator
Hi Igor If the sortabledataprovider calls the db to get the window of data, and the detached model (set in the dataproviders model method) calls the db in the load method to get the data from a private transient id. Will not the database be called twice for every record/row in the dataset? The

Wicket Security

2008-10-06 Thread Marc Ende
Hi, I'd like to integrate security in my wicket application. I've seen a tutorial regarding jaas, ldap etc. (http://blog.xebia.com/2008/05/08/wicket-jboss-jaas-ldap/) and I've found swarm. In the repositories I had found wicket-security. While reading the tutorial I've found that the

How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Seven Corners
I have a form whose submission can possibly generate exceptions. I would like to expose the exception text in the FeedbackPanel. How can I do this? I've tried getting the FeedbackMessagesModel and doing a setObject() on that but it's not accepting a String, a FeedbackMessages List, or a new

Re: How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Ryan Gravener
In your catch clause in onsubmit, call error(e.getMessage()) Ryan Gravener http://twitter.com/ryangravener On Mon, Oct 6, 2008 at 2:32 PM, Seven Corners [EMAIL PROTECTED]wrote: I have a form whose submission can possibly generate exceptions. I would like to expose the exception text in

Re: How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Serkan Camurcuoglu
you can use the info, warn, error or fatal methods of component to generate feedback messages.. usually you can just write: catch (Exception e) { error(e.getMessage()); } Seven Corners wrote: I have a form whose submission can possibly generate exceptions. I would like to expose the

force page reload

2008-10-06 Thread francisco treacy
hi, i'm integrating a wicket application with an online payment system provided by a bank. i have a wicket stateful page (ie shows visa / mastercard icons) which links to the bank app's payment page. depending on the transaction, the bank sends us back a result code in an encrypted http url

Non-modal ModalWindow ?

2008-10-06 Thread Cédric Thiébault
Is there an equivalent of the ModalWindow but non-modal, ie without a mask that prevent user from interacting the rest of page ? Thanks! Cedric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: How to expose regular exception message in FeedbackPanel?

2008-10-06 Thread Shelah Horvitz
Thank you. I can't believe you got back to me so fast! This is a slick solution. I appreciate it. From: Serkan Camurcuoglu [EMAIL PROTECTED] Sent: Monday, October 06, 2008 2:36 PM To: users@wicket.apache.org Subject: Re: How to expose regular exception

Re: Non-modal ModalWindow ?

2008-10-06 Thread Daan van Etten
Yes, it's called a DIV. Regards, Daan On 6 okt 2008, at 21:08, Cédric Thiébault wrote: Is there an equivalent of the ModalWindow but non-modal, ie without a mask that prevent user from interacting the rest of page ? Thanks! Cedric

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
I made my component a subclass of FormComponentPanel and overrode convertInput(). However when form containing this formComponentPanel is submitted, panel's convertInput method is never called. As result panel displays correctly, but changes are lost on submission. Any ideas? -

Re: Serializing model. DetachedModel or not

2008-10-06 Thread Igor Vaynberg
the loadabledetachablemodel is initialized with the object itself eg new contactdetachablemodel(contact) so during that initial request the model has the object already loaded by the dataprovider i suggest instead of making assumptions you try to write some code and see how it works -igor On

Auto-Reload in Wicket

2008-10-06 Thread cnoleherzer
I'm new to Wicket and i found that Wicket doesn't auto reload if i changed my java code, i must relaunch jetty after some changes. Is there some way to make Wicket auto-reloadable? I also use Spring in my project. -- View this message in context:

Intermittently not updating TextField

2008-10-06 Thread Seven Corners
I have a form where one of my text fields intermittently doesn't update when I change the model, even though I add the component to the AJAX target. Most of the time it works. When you add a few fields to the ListChoice, this is where things get dicey. Here's the scenario: you have a

Re: Auto-Reload in Wicket

2008-10-06 Thread landry soules
If you use Eclipse, and built your application with the quick start Maven archetype, all you have to do is right-click on the Start class, and select debug asJava application, to start your app in auto reloading mode. cnoleherzer wrote: I'm new to Wicket and i found that Wicket doesn't auto

RE: force page reload

2008-10-06 Thread Serkan Camurcuoglu
If I understood you correctly, I've done something like this to show a different page depending on a url parameter. You should override the newRequestCycleProcessor() method of your application class, and return a different request target from the resolve method. Here I return a

Re: Non-modal ModalWindow ?

2008-10-06 Thread Cédric Thiébault
A ModalWindows is not just a DIV with a mask... I need all the ModalWindow logic (show/hide, drag, resize, etc.) but not the mask. Cedric On Mon, Oct 6, 2008 at 3:30 PM, Daan van Etten [EMAIL PROTECTED] wrote: Yes, it's called a DIV. Regards, Daan On 6 okt 2008, at 21:08, Cédric

Re: Non-modal ModalWindow ?

2008-10-06 Thread Daan van Etten
You could check the ModalWindow in wicket-extensions. It contains a file called modal.js. In that file you can find the following function: /** * Creates the mask accordingly to the settings. */ createMask: function() { if (this.settings.mask

Re: Custom Radio component with children?

2008-10-06 Thread Igor Vaynberg
paste some code -igor On Mon, Oct 6, 2008 at 12:35 PM, dukehoops [EMAIL PROTECTED] wrote: I made my component a subclass of FormComponentPanel and overrode convertInput(). However when form containing this formComponentPanel is submitted, panel's convertInput method is never called. As

Re: Unable to add a Form to a ModalWindow opened from within another ModalWindow

2008-10-06 Thread Nick Zimmerman
As an update to my question, I have been able to add a Form to a Page based ModalWindow that was opened from another Page based ModalWindow. The top ModalWindow can now be moved beyond the confines of the parent ModalWindow. The problem still exists when trying to add a Form to a Panel based

Re: Need help regarding Base Page refresh.

2008-10-06 Thread ravichand
Have the same problem. Can any one help -- View this message in context: http://www.nabble.com/Need-help-regarding-Base-Page-refresh.-tp19602473p19846169.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
Sure, here it is below. Test selects a non-default value from 'publicLocationChoices' drop down. Problems are: -on form submit, LocationSelectionPanel.convertInput() is not called (have breakpoint there) -in debugger, I can see dropDown's rawInput changing on form submit, but model's object

Re: Need help regarding Base Page refresh.

2008-10-06 Thread Igor Vaynberg
is it really so hard to google refresh parent window from child window wow -igor On Mon, Oct 6, 2008 at 1:50 PM, ravichand [EMAIL PROTECTED] wrote: Have the same problem. Can any one help -- View this message in context:

Re: Custom Radio component with children?

2008-10-06 Thread Igor Vaynberg
does this work without wickettester? -igor On Mon, Oct 6, 2008 at 2:24 PM, dukehoops [EMAIL PROTECTED] wrote: Sure, here it is below. Test selects a non-default value from 'publicLocationChoices' drop down. Problems are: -on form submit, LocationSelectionPanel.convertInput() is not called

Wicket on Tomcat?

2008-10-06 Thread Vernon
I just dip into Wicket. I notice that Wicket setup exclusively with Jetty, for example, the quick start page http://wicket.apache.org/quickstart.html. Can I create an Eclipse project for TC instead of Jetty?

Re: Wicket on Tomcat?

2008-10-06 Thread Jeremy Thomerson
Yes - it's a regular web app, and you build it into a regular war just like normal. Most of my production applications are deployed with Tomcat. But the development with Jetty in Eclipse is very simple and convenient since you can run the start class in debug mode, and it will start an embedded

Re: Custom Radio component with children?

2008-10-06 Thread dukehoops
It is not easy for me to check whether this component functions outside of test harness at the moment (dependency issues) but I will do so tomorrow. In the mean time, debugging the unit test further I can tell that: radioGroup and DropDownChoices are the only components that get called by

Re: Wicket on Tomcat?

2008-10-06 Thread Vernon
Thanks for your quick response. How I shall take actions then? Sorry for this dumb question. - Original Message From: Jeremy Thomerson [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Monday, October 6, 2008 4:42:22 PM Subject: Re: Wicket on Tomcat? Yes - it's a regular web

Patch for ModalWindow?

2008-10-06 Thread rmorrisey
wicket 1.3.4 I have a small addition to ModalWindow that I think would be useful as a patch. Please tell me what you think. The idea is hook in an IAjaxCallDecorator on the WindowClosedCallback request (before WindowClosedCallback.onClose() finished and repaints the page containing the

Re: force page reload

2008-10-06 Thread John Krasnay
On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy wrote: thanks for your help, serkan. cool, this works. as a workaround nevertheless: -i wouldn't want my app to check every single request the existence of a parameter which i am going to use in only *one* page anyway -what if i

Re: HTTPS and FileUpload

2008-10-06 Thread Igor Vaynberg
hmm, create a jira issue. mabe if you override getmaxsize on the form and return -1 or null -indicating you dont care, we should not error out -igor On Mon, Oct 6, 2008 at 4:10 AM, Uwe Schäfer [EMAIL PROTECTED] wrote: hi i think i hit a bug within wicket (or maybe it is a bug within the

Re: Wicket on Tomcat?

2008-10-06 Thread Igor Vaynberg
use maven archetype to create a quickstart mvn package take the generated war and drop it into tomcat -igor On Mon, Oct 6, 2008 at 5:59 PM, Vernon [EMAIL PROTECTED] wrote: Thanks for your quick response. How I shall take actions then? Sorry for this dumb question. - Original Message

Re: force page reload

2008-10-06 Thread Jeremy Thomerson
I'd wholeheartedly agree with the panel solution. Either one would work, but I think the panel is really good. -- Jeremy Thomerson http://www.wickettraining.com On Mon, Oct 6, 2008 at 9:53 PM, John Krasnay [EMAIL PROTECTED] wrote: On Mon, Oct 06, 2008 at 07:36:03PM -0200, francisco treacy

Re: Nice urls in markup

2008-10-06 Thread Jeremy Thomerson
fallback links do this: generate normal HREF for non-ajax (or JS disabled) requests add an onclick handler that handles the request via AJAX if possible, and then returns false if JS was enabled. this causes the normal HREF url to never be visited. hope this helps. -- Jeremy Thomerson

Re: which browser is preferrable for Wicket 1.3

2008-10-06 Thread Timo Rantalaiho
On Mon, 06 Oct 2008, Nino Saturnino Martinez Vazquez Wael wrote: Yes since the browsers support their own subset of commands. And have differences in the DOM tree and javascript event propagation. - To unsubscribe, e-mail:

Re: Having Wicket append #someanchor

2008-10-06 Thread Nino Saturnino Martinez Vazquez Wael
:) kan wrote: http://cwiki.apache.org/confluence/display/WICKET/FAQs#FAQs-Howtoadd%23anchor(opaque)topageurl%3F 2008/10/6 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]: Could you add it to the wiki? http://cwiki.apache.org/WICKET/ kan wrote: I've made custom url coding

Re: Modeless Window (real or div)

2008-10-06 Thread Nino Saturnino Martinez Vazquez Wael
Why not use wicket modal window, and just override css? Francisco Diaz Trepat - gmail wrote: Hi I need to build a pop-up modal window on my application. I wanted to see if I could get some recomendations or comments. Obviously I need not to re-enter username and password and work on the same