Re: [Wicket-user] Way to prevent page versioning for a request in 1.3?

2007-04-29 Thread Eelco Hillenius
Try overriding isVersioned (of you page, though it works on components as well) and let it return false. Eelco On 4/27/07, jamieballing [EMAIL PROTECTED] wrote: We are experiencing a problem in our application because we are doing something out of the ordinary. We have an applet on our

Re: [Wicket-user] Way to prevent page versioning for a request in 1.3?

2007-04-29 Thread Matej Knopp
This is wrong. Even if page version increments, the ajax links should be valid. There was a bug in wicket 1.3 where the wicket still allowed you to do unversioned ajax requests, but that's should be gone already. Can you please test it with most recent 1.3? -Matej On 4/27/07, jamieballing [EMAIL

[Wicket-user] Replacing HtmlBodyContainer

2007-04-29 Thread Rüdiger Schulz
Hello everybody, I just updated my application from Wicket 1.2.5 to 1.2.6. The update broke one of my pages, which had a rather special requirement: it needed to use my own implementation of HtmlBodyContainer. The way I did it was like this: public EmailPage() {

Re: [Wicket-user] Replacing HtmlBodyContainer

2007-04-29 Thread Igor Vaynberg
you can most likely move that code to page.onattach() and do Component body=get(BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof MyHtmlBodyContainer)) { remove(BodyOnLoadHandler.BODY_ID); body=null; } } if (body==null) { add(new ...); } -igor On

[Wicket-user] I have separate table files for each county in the USA.

2007-04-29 Thread Malcolm shenick
I will not stay here. There was no fiddling around once the Rodger Young stopped braking. He addressed himself to the doctor, but was replying to me. InWindow Simple Playback in a Window. Find out about Packaging Recommendations. Good relative - a dead relative. She stood upright, her prominent

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-29 Thread D.Alexander
Wicket supports nested forms. The inner form tags are replaced with span elements. This is a component framework, where you expect forms to be able to be nested (form on a reusable panel anyone?). I'm just starting to work on a similar thing: an address form panel to be used in other forms.

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-29 Thread Martijn Dashorst
One note: this is a 1.3 feature so only expect it to work there. What happens with the nested forms is that the buttons stay, and iirc only the inner form is submitted when a button is pressed inside that inner form. I think the discussion never got to a conclusion on what happens when the outer

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-29 Thread Igor Vaynberg
imho all he should do is extend a panel, and make sure that panel is always inside a form. there is no need to have a form to group a few fields together. -igor On 4/29/07, Martijn Dashorst [EMAIL PROTECTED] wrote: One note: this is a 1.3 feature so only expect it to work there. What

Re: [Wicket-user] Replacing HtmlBodyContainer

2007-04-29 Thread Rüdiger Schulz
Hello Igor, thanks for your help, it was a very close hit :) I actually had to put the code into internalOnttatch like this: protected void internalOnAttach() { super.internalOnAttach(); Component body=get(BodyOnLoadHandler.BODY_ID); if (body!=null) { if (!(body instanceof

Re: [Wicket-user] Replacing HtmlBodyContainer

2007-04-29 Thread Igor Vaynberg
well if you look at the code, the way it works is: only do it if it hasnt been done already. so this code only does anything on the first attach, then it becomes a noop. -igor On 4/29/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Hello Igor, thanks for your help, it was a very close hit :) I

Re: [Wicket-user] Replacing HtmlBodyContainer

2007-04-29 Thread Rüdiger Schulz
Ah, you're right :) Here is the check I didn't consider: if (bodyContainer == null) { ... } 2007/4/29, Igor Vaynberg [EMAIL PROTECTED]: well if you look at the code, the way it works is: only do it if it hasnt been done already. so this code only does anything on the first attach, then it

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-29 Thread Jonathan Locke
neato. i did not know that. i vaguely recall doing this once and i recall being really suprised it worked. now i know why! ;-) Martijn Dashorst wrote: On 4/27/07, jan_bar [EMAIL PROTECTED] wrote: I think that you cannot nest form in HTML. You have to nest them with CSS. This will also

Re: [Wicket-user] Nested Forms and onSubmit()?

2007-04-29 Thread Jonathan Locke
well, it depends on what kind of reuse you want. if you have a particularly cool form panel, it might be something that should stand on its own or nest. but i think you're probably right in general. i've got quite a few panels that just hold some fields for inclusion in a form. igor.vaynberg

[Wicket-user] Different JS 'this' object using ajax

2007-04-29 Thread Tauren Mills
Hi, It appears that the javascript this object is different when I hardcode the javascript into the html vs. using an AjaxEventBehavior and appendJavascript. For instance, the this in this refers to the TR which is correct and the selectRow functions works properly: tr

[Wicket-user] Different JS 'this' object using ajax

2007-04-29 Thread Tauren Mills
Hi, It appears that the javascript this object is different when I hardcode the javascript into the html vs. using an AjaxEventBehavior and appendJavascript. For instance, the this in this refers to the TR which is correct and the selectRow functions works properly: tr

[Wicket-user] can be help to anyone looking for rounded corners borders

2007-04-29 Thread atul singh
Hi, I have added a rounded corners border component to wicket-minis jira. Anyone who might need it/or want to contribute/suggest styles for it/suggest more styled borders can have a look . http://wicketstuff.org/jira/browse/WSMINIS-2

[Wicket-user] nice url with submitted form

2007-04-29 Thread Martin Grotzke
hi all, i'm just starting with wicket and have a simple search form, that leads to a SearchResultsPage. the SearchResultsPage is mounted as a bookmarkable page (via mountBookmarkablePage(/search, SearchResultsPage.class);), although the url that is shown then contains s.th. like

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg
no, once the form is submitted the page is no longer bookmarkable and so it will lose any bookmarkable/mounted url. if you want to keep it you can call setresponsepage(page.class, params) in onsubmit(), but in your case that is silly since searchresultspage probably contains the submitted form

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Martin Grotzke
On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote: no, once the form is submitted the page is no longer bookmarkable and so it will lose any bookmarkable/mounted url. if you want to keep it you can call setresponsepage(page.class, params) in onsubmit(), but in your case that is silly

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg
in reality this isnt how its supposed to work. usually you would have something like this: searchpage { private criteria crit; searchpage() { add(new searchform(form, new PropertyModel(this, crit)); add(new resultsview(view, new PropertyModel(this, crit)); } } that way the form

Re: [Wicket-user] Contributing to wicket-contrib-yui

2007-04-29 Thread Joshua Lim
Sure thing, more than happy :) thanks Josh On 4/27/07, Eelco Hillenius [EMAIL PROTECTED] wrote: David and Thomas, you're both in. Make something beautiful :) And Josh, thanks for your previous effort. Hope you don't mind this, and you like anyone else are most welcome to help with the it.

[Wicket-user] Problem with concurren ajax requests on page

2007-04-29 Thread RedFury
Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a

Re: [Wicket-user] Page Map clarification

2007-04-29 Thread Shams Mahmood
I found the problem. It turned out to be a very silly deployment error. We had the same application running at two different contexts. Inside our code we had some static url mappings to one of the contexts. This lead the the user being switched between the urls, and hence different sessions.

Re: [Wicket-user] Way to prevent page versioning for a request in 1.3?

2007-04-29 Thread jamieballing
We are currently using the incubating-beta1 release. I was stepping through the source in a debugger and I'm not sure older versions of the page are preserved in the cache (at least when update by an ajax request). I did a simple test: * I went to a versioned page * clicked an ajax control which