Re: [Wicket-user] Possible session issue in my app?

2006-07-14 Thread Igor Vaynberg
storing things in page is fine because page instances are stored in session. this exact problem is why i hated tapestry because there the page objects are pooled and if you are not careful you share user information. in wicket the only point this can happen is the application object because it is a

Re: [Wicket-user] Paging DataView

2006-07-14 Thread Igor Vaynberg
no, but its trivial to build yourself.what there is is a paging datatable with a search toolbar, see the wicket-phonebook example in wicket-stuff.-IgorOn 7/14/06, Michael Welter <[EMAIL PROTECTED]> wrote: I thought I saw a paging DataView with a search box.  Does thiscomponent exist?Thanks,--Micha

Re: [Wicket-user] Possible session issue in my app?

2006-07-14 Thread Julian Klappenbach
Curious: Are you attempting to log into the application using the same computer for both users? What browser are you using? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Moitozo Sent: Friday, July 14, 2006 1:49 PM To: wicket-user@lists.sourceforg

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Justin Lee
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 In a few days (hopefully) i'll have a web enabled version of qwicket that'll generate a zip for you to download and unzip with a complete, ready to use project with spring+hibernate already set up for you. Hopefully that'll get you what you need.

[Wicket-user] Paging DataView

2006-07-14 Thread Michael Welter
I thought I saw a paging DataView with a search box. Does this component exist? Thanks, -- Michael Welter Telecom Matters Corp. Denver, Colorado US +1.303.414.4980 [EMAIL PROTECTED] www.TelecomMatters.net - Using Tomcat

Re: [Wicket-user] Possible session issue in my app?

2006-07-14 Thread Steve Moitozo
Thanks Igor. I was storing some data in the Application object but have now moved everything to the Session object. However, I am still experiencing the same behavior. From what I understand it's OK to store data in pages because they are placed in the user's session. Is this correct? Here is

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Mark Derricutt
I like the idea of this...   one thing i was thinking of the other day (and had seen discussed in passing in the IRC channel) was a maven archetype for wicket that built everything for you, which would generate something like what this gives? MarkOn 7/14/06, Gwyn Evans <[EMAIL PROTECTED]> wrote: I'

Re: [Wicket-user] Javascript behaviour

2006-07-14 Thread Mark Derricutt
What I have in my app is:    header.add(new AttributeModifier("onclick", true, new Model() {    public Object getObject() {    return "toggleVisibleDetails('" + activityDetailsPanel.getMarkupId() + "');";    }    }));and in the relevant html

[Wicket-user] Javascript behaviour

2006-07-14 Thread John Patterson
Hi, I need to add a behaviour to a link so that when it is clicked several other component are made visible. I could do this with an AJAX link but it seems that this might be better acheived with a simple bit of client side script. Is there any existing behaviour to to this sort of thing o

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Igor Vaynberg
btw, have you checked out throttling on ajax calls, that might be a bit smoother then waiting until the user stops typing-IgorOn 7/14/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: thanks :)-IgorOn 7/14/06, Nathan Hamblen < [EMAIL PROTECTED]> wrote: I have it working in two fields, yes. Actually on

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Igor Vaynberg
thanks :)-IgorOn 7/14/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: I have it working in two fields, yes. Actually one quirk: if you type inone field and tab out of it within a half second then the script isgoing to bring you back... it should be checking too see if you're still in it before callin

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Nathan Hamblen
I have it working in two fields, yes. Actually one quirk: if you type in one field and tab out of it within a half second then the script is going to bring you back... it should be checking too see if you're still in it before calling blur & focus. Easy to fix. But I don't see any fundamental prob

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Igor Vaynberg
matej has created the requests-out-of-order-filter so its coming whenever sf.net svn access will be fixed.is that behavior going to work if more then one instance is added?-Igor On 7/14/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: Yay, got it.This _javascript_ blurb will trigger onchange after a h

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Nathan Hamblen
Yay, got it. This JavaScript blurb will trigger onchange after a half-second pause: ---js accessible to page var timerN = 0; var timerElement; function resetTimer(element) { timerElement = element; var n = ++timerN; setTimeout(function() { timerCheck(n); },

Re: [Wicket-user] Possible session issue in my app?

2006-07-14 Thread Igor Vaynberg
are you storing data in the Application object?you should be storing it in the Session object-IgorOn 7/14/06, Steve Moitozo < [EMAIL PROTECTED]> wrote:I have whipped up a shiny new Wicket application and I just noticed something that is a bit of a show stopper for me.If I login as BOB and a friend

[Wicket-user] Possible session issue in my app?

2006-07-14 Thread Steve Moitozo
I have whipped up a shiny new Wicket application and I just noticed something that is a bit of a show stopper for me. If I login as BOB and a friend logs in as LARRY and I click on a link my application thinks I'm LARRY! Have I stored user data in the wrong place? Any ideas? -S2 -- Steve Moitozo

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Gwyn Evans
:-) Ah, I see! No, it's not needed (cue V1.0.2 and a drop to 15KB!) /Gwyn On 14/07/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > Sorry I didn't explain myself properly. I meant the wicket.quickstart > package inside your template zip file. It's dublicate of the > wicket.myproject and it i

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Igor Vaynberg
yeah, we already discussed and agreed on that strategy for the autocomplete, now just gotta find some time for matej to build it :)-IgorOn 7/14/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: I'm not sure that a second request needs to wait for the first tocomplete (serialization). You could timesta

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Nathan Hamblen
I'm not sure that a second request needs to wait for the first to complete (serialization). You could timestamp requests coming in, then ignore responses with outdated timestamps on the client. For some applications that would be more responsive. Nathan Igor Vaynberg wrote: > we dont have support

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Igor Vaynberg
we dont have support for serializing ajax requests yet, its been on my todo list for quiete a while but lately i just havent had much available time. please add an rfe for it.as far as the different throttle behavior i think thats a bit out of our scope. if you want something like that you can impl

Re: [Wicket-user] Setting model values in a TabbedPanel

2006-07-14 Thread Igor Vaynberg
yeah, but see whats happening:TabTestPage1 panel = new TabTestPage1(panelId);AjaxFormValidatingBehavior.addToAllFormComponents(form,"onchange");its the same problem: the panel hasnt been added to the form yet so none of the form components inside the panel have either. i dont really see an easy way

Re: [Wicket-user] Application Navigation Control

2006-07-14 Thread Igor Vaynberg
i agree 100% with the ramblings of this madman btw. i was trying to be helpful and show how it can be done if you really wanted to do it that way.-IgorOn 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: Sorry I couldn't resist, but... JSF's navigation model elegant? Ireally don't see that. Imo

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Frank Bille Jensen
Sorry I didn't explain myself properly. I meant the wicket.quickstart package inside your template zip file. It's dublicate of the wicket.myproject and it isn't used as far as what I can see. Frank On Fri, 2006-07-14 at 16:58 +0100, Gwyn Evans wrote: > Well, the problem has been that the use of t

Re: [Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Gwyn Evans
I don't know if it's technically feasible, but I think you've got the answer with your last sentence - Even if not, I can't believe it's a good idea to trigger a request per-keystroke - how feasible would it be to send only when the char is entered? /Gwyn On 14/07/06, Nathan Hamblen <[EMAIL PROT

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Gwyn Evans
Well, the problem has been that the use of the QS package has drifted away from it's core 'requirement', which is to provide a basic Wicket development environment in a single package, which should be usable without needing any more/other downloads. The idea of the Template package is to try & pro

[Wicket-user] Out-of-oder ajax responses

2006-07-14 Thread Nathan Hamblen
What are people doing to make sure their ajax responses apply to pages in the correct order? I'm using an onkeyup form component updater for a find-as-you-type query a fairly large database. Incorrect results are often rendered because the second-to-last request responds after the actual last reque

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Frank Bille Jensen
On Fri, 2006-07-14 at 14:02 +0100, Gwyn Evans wrote: > Opps - they are in the repo! (Somewhat simplified) there's a typo in > the pom regarding one of the adapters - it should be simple-log-slf4j > rather than simple-log-sl4j (i.e. a missing 'f'). Yeah that helped a lot :) mvn eclipse:eclipse

Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Eelco Hillenius
I think you need to use AjaxFormComponentUpdatingBehavior so that your model will automatically updated. Eelco On 7/14/06, Nino Wael <[EMAIL PROTECTED]> wrote: > > > > Ok, np just switched back to checkbox and wrote this: > > > > > cb_HeleLandet.add(new AjaxEventBehavior("onclick") { > > >

Re: [Wicket-user] help, autocomplete text feild

2006-07-14 Thread Johan Compagner
please give a bit more information.An example of what you exactly do and what goes wrong On 7/13/06, ketan gote < [EMAIL PROTECTED]> wrote:hello freinds we have implemented autocomplete text feild , and we have to implement another _javascript_ file to its also we have to set UTF-8 to it, ie

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
Disableding/Enableing can be done with pull (attributemodifiers on C/D that are looking at A/B)Setting the defaults could be done by push so A/B pushing values ot C/DThat last part could also be one by the backing bean ofcourse. So if you you have a bean where A sets its value on. Then when that va

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Gwyn Evans
On 14/07/06, Frank Bille Jensen <[EMAIL PROTECTED]> wrote: > Nice. I like the mvn approach better, than having a large quickstart > including libraries. > > Any reason why you are using org.grlea.log and friends instead of basic > apache log commons? They are not in maven repository, so it's not >

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
Ok scratch what I send previously. I’ll try to explain more clearly what Im trying to do.   This picture describes show what I have, I’ll now try to describe the flow http://www.badongo.com/pic/237253   This is what I got currently:   The component which contains B are based on the P

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
ok you just want to prefill it everytime the page/textarea is rendered?What happens then to the previous value the user just typed in??If for example you used a normal detachable model (so not readonly)And the first time you load some default stuff. Then a user alters the textarea and submits.Then

Re: [Wicket-user] Wicket-Template

2006-07-14 Thread Frank Bille Jensen
Nice. I like the mvn approach better, than having a large quickstart including libraries. Any reason why you are using org.grlea.log and friends instead of basic apache log commons? They are not in maven repository, so it's not straight forward to use. Frank On Fri, 2006-07-14 at 11:34 +0100, G

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
So heres what I do, code is possibly flawed. I've tried with the abstractmodel instead which works but gets multiple hits pr request which makes it hard to detect if I should repopulate, actually it seems as it hits on modelchanging and onmodelchanged... Basicly what Im trying to do is to have

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Johan Compagner
But what do you set then?another id?You can't set the object really. Because the object is loaded in the load method by i guess an id.So the id is the real object not the thing that you would get through setObject().. johanOn 7/14/06, Nino Wael <[EMAIL PROTECTED]> wrote: That is indeed is suitable,

Re: [Wicket-user] Image processing Error

2006-07-14 Thread Ayodeji Aladejebi
fixed...thanksOn 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: It's annonymous classes biting you. Your instance ofRenderedDynamicImageResource has an implicit reference to Image, whichisn't serializable (and which isn't something you want to keep ascomponent state anyway). To fix, try to mov

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
That is indeed is suitable, but in the example im doing, I use the model in a wicket.markup.html.form.TextArea, which need a model where it can store an object in as well. So I guess I need a loadableDetachableModel which implements Abstractmodel instead of abstractreadonlymodel? Regards Nino

Re: [Wicket-user] Setting model values in a TabbedPanel

2006-07-14 Thread Macrae, Jeremy
Thanks for the advice. I have tried what was suggested and now neither value in the model is updated when switching between the tabs. I'm fairly new to Wicket so I'm probably doing something wrong. Below is some example code which demonstrates the problem - public class TabTestPage extends Authe

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Gwyn Evans
You'd normally set all the internal objects up during the initial load() processing, which is called once at the start of each request. If that's not suitable, you might want to expand on what you're trying to do & during what phase of a request? /Gwyn On 14/07/06, Nino Wael <[EMAIL PROTECTED]>

[Wicket-user] Wicket-Template

2006-07-14 Thread Gwyn Evans
I've added a "Wicket Template" module/package to Wicket-Stuff - (http://sourceforge.net/project/showfiles.php?group_id=134391&package_id=197274) Nothing too dramatic - basically a cut-down version of Quickstart, leaving the Maven2 pom.xml together with a (very) basic WicketApp. It uses the Maven2

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Nino Wael
Hi Eelco It seems as the LoadableDetachableModel do not support setobject? What should I use instead? -regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 14. juli 2006 09:26 To: wicket-user@lists.sourceforge.net Subject:

Re: [Wicket-user] wicket.markup.html.form.CheckBoxvswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Nino Wael
Ok, np just switched back to checkbox and wrote this:       cb_HeleLandet.add(new AjaxEventBehavior("onclick") { protected void onEvent(AjaxRequestTarget target) {   

Re: [Wicket-user] DatePicker winns over setOutputMarkupId(true)?

2006-07-14 Thread Martin Funk
Eelco Hillenius schrieb: >Could you please attach that to a bug report? Thanks, > >Eelco > > 1522442 DatePicker winns over setOutputMarkupId(true)? 2006-07-14 11:55 5 nobo

Re: [Wicket-user] tree model

2006-07-14 Thread Johan Compagner
That looks strange to me.i have used my own implementations. Where does the class cast exactly come from?But still you could use DefaultMutableTreeNode just fine for lazy loading.Just don't give him childeren yet. Do that only when ask for (override the right methods like children() or getChildCoun

Re: [Wicket-user] DatePicker winns over setOutputMarkupId(true)?

2006-07-14 Thread Eelco Hillenius
Could you please attach that to a bug report? Thanks, Eelco On 7/13/06, Martin Funk <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to update a TextField in a Form that is connected to a > DatePicker. But somehow this does not work. > My first impression is that DatePicker winns over the setOutput

Re: [Wicket-user] Image processing Error

2006-07-14 Thread Eelco Hillenius
It's annonymous classes biting you. Your instance of RenderedDynamicImageResource has an implicit reference to Image, which isn't serializable (and which isn't something you want to keep as component state anyway). To fix, try to move the image creation to the render method, so that no references w

[Wicket-user] Image processing Error

2006-07-14 Thread Ayodeji Aladejebi
Eem..can some please helpme out here...I was tryin to do some back end image processing by applying some filtering to my image in wicket..there is a static utility class with this basic routines: public static WebResource adjustImage(URL imageURL, String hex){    BufferedDynamicImageResource bi

Re: [Wicket-user] Application Navigation Control

2006-07-14 Thread Eelco Hillenius
Sorry I couldn't resist, but... JSF's navigation model elegant? I really don't see that. Imo it is in fact one of the best proofs that JSF is ill designed. First of all, there is abstraction. If you want a JSF like navigation model, please go ahead and implement that. A couple of classes are enoug

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Igor Vaynberg
i wanna play with models too, but my wife wont let me :( -Igor On 7/14/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: IModel#getObject is called anytime a component accesses it. Basically,you should never depend on that method getting called a fixed numberof times; it is not designed for that. Typ

Re: [Wicket-user] Mounting the tree component

2006-07-14 Thread Igor Vaynberg
just for the record i was thinking along quiete different lines. i wasnt thinking about the hybrid stuff we talked about i was thinking about simply keeping the mount path prefix in the url once a mount is hit cause it looks prettier and might help out with resource urls. i wasnt thinking about sta

Re: [Wicket-user] wicket.markup.html.include.Include / encodingerror

2006-07-14 Thread Eelco Hillenius
I don't have an IDE here (visiting family, using another laptop) but from the top of my head, Include does not try to do any of the interpretation of xml headers such as Wicket tries to do with markup files. If you need such a thing, a patch is welcome for that (though probably not very easy), or I

Re: [Wicket-user] wicket.markup.html.form.CheckBox vswicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-14 Thread Igor Vaynberg
oops, i thought i fixed that (onchange->onclick) before 1.2 final, but i guess not. until 1.2.1 comes out you are prob then better off using what you have now, or use 1.2 from svn -Igor On 7/13/06, Nino Wael <[EMAIL PROTECTED]> wrote: I switched to the AjaxCheckBox, but my markup

Re: [Wicket-user] Playing with models:)

2006-07-14 Thread Eelco Hillenius
IModel#getObject is called anytime a component accesses it. Basically, you should never depend on that method getting called a fixed number of times; it is not designed for that. Typically if you need to do heavy operations such as loading data from a database, you should use detachable models. A g

Re: [Wicket-user] wicket.markup.html.include.Include / encodingerror

2006-07-14 Thread Nino Wael
Hi Eelco The file does actually get saved without corruption, so it must be the include that gets the input wrong..? Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 14. juli 2006 09:19 To: wicket-user@lists.sourceforge

Re: [Wicket-user] wicket.markup.html.include.Include / encoding error

2006-07-14 Thread Eelco Hillenius
You have to use a reader for that instead of an inputstream. See Java IO's documentation for more on that. Eelco On 7/11/06, Nino Wael <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > Im a little curious about this. I have an file stream which is > delivered(actually a html file) to me, I then writ

Re: [Wicket-user] Page Expired Error on pages containing Link and PagingNavigator

2006-07-14 Thread Eelco Hillenius
We'd need a bit more detail on your setup/ configuration etc. Does the problem occor with all web browsers, or just a particular? Wicket supports using the back button out-of-the-box, and page expiry certainly points to something going wrong in your web app. Eelco On 7/12/06, [EMAIL PROTECTED]

Re: [Wicket-user] Mark up inheritance question

2006-07-14 Thread Eelco Hillenius
Did you try using the markup inheritance facility of Wicket? http://www.wicket-wiki.org.uk/wiki/index.php/Markup_inheritance Eelco On 7/11/06, Jin Zhu <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have a child class B inheriting from a modal window with certain > functionality A. With the excepti