Re: [Wicket-user] SortableDataProvider, size() & iterator(int first, int count), Correct execution order?

2006-12-08 Thread Igor Vaynberg
well the thing here is expressiveness. the way it is right now was done to avoid api breaks. but if you look at the idataprovider - how do you know that you can make the impl also implement idetachable and that will work? same can be said for models, why have IModel extend IDetachable? it is so t

Re: [Wicket-user] SortableDataProvider, size() & iterator(int first, int count), Correct execution order?

2006-12-08 Thread Johan Compagner
the question is is this really necessary because we have already code that does the detach: "Note that if the IDataProvider implementation implements [EMAIL PROTECTED] IDetachable} * interface, the [EMAIL PROTECTED] IDetachable#detach()} method will be called at the end * of request." So if som

Re: [Wicket-user] WicketFilter

2006-12-08 Thread Eelco Hillenius
If you're not using 2.0 or 1.3 you have to use WicketServlet (as the others said). Otherwise, you're having class path troubles and you have to look at how you set up JBoss. Eelco On 12/8/06, Lost Still Lost <[EMAIL PROTECTED]> wrote: > > Hello, > > I am working on a rather simple example of a

[Wicket-user] PagingNavigator & (lazy) Session

2006-12-08 Thread Korbinian Bachl
Hi, im currently wondering why the PagingNavigator allways issue a session ? (im on wicket 2.0) I mean if i create a mainpage and link to 2 subpages all is fine and no session used. If i embed a PagingNavigator into any page a session will be created on the moment i access that page, however I

Re: [Wicket-user] SortableDataProvider, size() & iterator(int first, int count), Correct execution order?

2006-12-08 Thread Igor Vaynberg
On 12/8/06, Johan Compagner <[EMAIL PROTECTED]> wrote: shouldn't we extend from IDetachable in 1.3? i dont see a problem with that -igor johan On 12/7/06, Igor Vaynberg <[EMAIL PROTECTED] > wrote: > > i guess if you are certain the size never changes this works ok > > -igor > > > On 1

Re: [Wicket-user] How to prevent a complete submit from AjaxFormValidatingBehavior?

2006-12-08 Thread Erik van Oosten
Hello, I found a solution. The following code is actually all that was needed: public class AjaxFormValidatingBehavior extends */AjaxFormComponentUpdatingBehavior /*{ private final Component feedbackPanel; public AjaxFormValidatingBehavior(String event, Component feedbackPanel) {

Re: [Wicket-user] DataView and Ajax

2006-12-08 Thread carbonbasednerd
That did it. Thanks for the help. igor.vaynberg wrote: > > well in that case just do > > new AjaxPagingNavigator() { onajaxevent(target) { > target.add(dataviewparent); > }} > > -igor > > > -- View this message in context: http://www.nabble.com/DataView-and-Ajax-tf2771602.html#a7759052

[Wicket-user] How to prevent a complete submit from AjaxFormValidatingBehavior?

2006-12-08 Thread Erik van Oosten
Hello, I am trying to use the AjaxFormValidatingBehavior like this: AjaxFormValidatingBehavior.addToAllFormComponents(form, "onchange"); but unexpectedly the form is also submitted (and not just validated). Is this intentional, a bug, or am I missing something? Is there a workaround? I am using

Re: [Wicket-user] WicketFilter

2006-12-08 Thread Martijn Dashorst
Except if he is using trunk from wicket-1.x, but there can still be demons. Martijn On 12/8/06, Erik van Oosten <[EMAIL PROTECTED]> wrote: > Hello Yuri, > > Which version of Wicket are you using? > > If it is not Wicket 2.0, you should replace WicketFilter with WicketServlet. > > Regards, > E

Re: [Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Nino Wael
Hmm, it is actually working, and I do agree that you write wouldn't work... This is the output on the html generated by wicket: As you see the \" apparently are escaped to ' when processed by wicket.. Im running on wicket 1.2. About the pattern script, yeah i

Re: [Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Andrew Klochkov
Nino Wael wrote: >type="submit" value="Generer rapport" wicket:id="wordbutton" > onclick="showContent('uglyfix');showContent('uniquename');" /> > How can you run this example with wicket?? It escapes qoutes in a strange wa so you should have the following code i

Re: [Wicket-user] WicketFilter

2006-12-08 Thread Erik van Oosten
Hello Yuri, Which version of Wicket are you using? If it is not Wicket 2.0, you should replace WicketFilter with WicketServlet. Regards, Erik. Lost Still Lost schreef: > Hello, > > I am working on a rather simple example of a wicket-webapplication. > Unfortunately it is not working prop

Re: [Wicket-user] WicketFilter

2006-12-08 Thread Lost Still Lost
Hello, I am working on a rather simple example of a wicket-webapplication. Unfortunately it is not working properly.I got this Exception in JBOSS-4.0.5 10:27:24,546 INFO [[/helloworld]] Marking servlet HelloWorldApplication as unavailable10:27:24,546 ERROR [[/helloworld]] Servlet /helloworld th

Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-08 Thread Nino Wael
With Listchoiec are no longer invoked, I meant listchoice.onchange. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 8. december 2006 12:51 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Help with AjaxFormComponentUpdati

Re: [Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Nino Wael
No true:) Why cant you use ID's? IT is true that forexample dropdown options are created on a specific pattern but it's somewhat easy to create some javascript which adapts that pattern. We use a lot of onchange some which are added in the html at some which are added with the attribute appen

Re: [Wicket-user] Help with AjaxFormComponentUpdatingBehavior

2006-12-08 Thread Nino Wael
As you write ListChoice are no longer invoked. The ajax event are called afaik after all updates of model has occurred. I actually changed my coding style after this and began using abstract models, its actually much easyer coding this way, and all of your components will be ajax prepaered...:)

[Wicket-user] javascript handlers in html - quotes escaping

2006-12-08 Thread Andrew Klochkov
After 2 months working with Wicket I'm still quite impressed by this smart framework, but IMHO the most weak part of it is client-side scripting. So when you want to place a lot of javascript in html, using handlers like onclick, onkeyup etc, without using server at all (no ajax, no server call

Re: [Wicket-user] Drag and drop

2006-12-08 Thread Francis Amanfo
Thanks Martijn. I'll check that out. Francis On 12/8/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote: I think Dojo has that available. see wicket-contrib-dojo on wicket-stuff. Martijn On 12/8/06, Francis Amanfo <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Anyone has a drag and drop wicket compon

Re: [Wicket-user] SortableDataProvider, size() & iterator(int first, int count), Correct execution order?

2006-12-08 Thread Johan Compagner
IDataProvider should just have detach/attach methods But i see this will happen: * TODO 2.0: directly extend [EMAIL PROTECTED] IDetachable} * */ public interface IDataProvider extends Serializable So that you have a detach and an attach that are called before and after the size/iterator So that