Re: threading issues - continued

2007-09-21 Thread Sam Hough
Thanks Eelco, https://issues.apache.org/jira/browse/WICKET-994 Have you had a chance to reproduce it? We tested with a few browsers but all in the same server env, although hard to see what difference that would make. Eelco Hillenius wrote: On 9/20/07, Sam Hough [EMAIL PROTECTED] wrote:

Re: Setting focus to a TextField

2007-09-21 Thread Raluca Macovei
If you need to change focus from the server side: textField.add(new AjaxFormComponentUpdatingBehavior(onblur) { @Override protected void onUpdate(AjaxRequestTarget target) { target.addComponent(MyPanel.this);

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: threading issues - continued

2007-09-21 Thread Matej Knopp
Hi, I'm unable to reproduce this with latest trunk. I believe this has been already fixed by delaying the actual form serialization until the previous request finishes. Can you please test this with latest trunk? Unfurtunately, there are no current snapshots available so you'd have to build it

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: threading issues - continued

2007-09-21 Thread Matej Knopp
Btw., did you clean browser cache after updating wicket? There's chance that you have old javascript code still in browser cache. Also part of the fix is in wicket-ajax.js, line 950: submitForm: function(form, submitButton) { var body = function() { var s =

Re: threading issues - continued

2007-09-21 Thread Sam Hough
Doh. Owe you a pint. My build from trunk didn't work because I had wrong version of logger... So I was running older code that was hanging about. Can't break it now :) Many thanks. If you are in London lots of nice warm English beer waiting for you! -- View this message in context:

LinkTree lazy loading possible?

2007-09-21 Thread pixotec
I want to use LinkTree to represent a very very large hierarchy (the loading of the whole thing is expensive...). Is there an AJAX way of loading the children of a node just when clicking on the plus-icon for expanding? -- View this message in context:

Re: LinkTree lazy loading possible?

2007-09-21 Thread Matej Knopp
Heh, sorry, didn't read the entire question. This seems to be the right approach. -Matej On 9/21/07, swaroop belur [EMAIL PROTECTED] wrote: Initially when building the tree , just add a single child node to each first level of nodes u show You can mark this node as a indicator node or a

Re: LinkTree lazy loading possible?

2007-09-21 Thread swaroop belur
Initially when building the tree , just add a single child node to each first level of nodes u show You can mark this node as a indicator node or a busy node - this will allow the + sign to come up for the actual node. When u click on the + sign , representing the actual node , just remove the

Re: threading issues - continued

2007-09-21 Thread Matej Knopp
So you tried it with latest trunk and it still doesn't work for you? I used FF2/IE7 on Vista. -Matej On 9/21/07, Sam Hough [EMAIL PROTECTED] wrote: Still doesn't work for me. Can you give me a pointer to which change should fix things? What browser/OS did you use? Did you let the form get

Re: LinkTree lazy loading possible?

2007-09-21 Thread Matej Knopp
Well, actually, I'm not sure how this would work, as you'd have to load the children asynchronously and then update the tree. That certainly isn't a trivial thing. I guess it would be better to replace the link with an indicatingajaxlink or something like that. -Matej On 9/21/07, swaroop belur

[RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
This is about how wicket generates dynamically markupID. I have, for instance, the following markup component: input wicket:id=quantity.noOfUnits / The generated markupId for this component looks like the following: quantity.noOfUnits1232 . I suggest to escape any css valid specifiers from

Re: [RFE] getMarkupId()

2007-09-21 Thread Matej Knopp
Can you please submit a bug report. -Matej On 9/21/07, Alex Objelean [EMAIL PROTECTED] wrote: This is about how wicket generates dynamically markupID. I have, for instance, the following markup component: input wicket:id=quantity.noOfUnits / The generated markupId for this component

Re: LinkTree lazy loading possible?

2007-09-21 Thread Ian Godman
I am doing the same thing. I have it working except for one problem. The loading works fine but so far I have not found a way to make the tree update its display when an item is added to the data. If nothing new is added to the dataset then every thing works fine. The main issue I found was

Re: [RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
JIRA issue created: https://issues.apache.org/jira/browse/WICKET-995 WICKET-995 Matej Knopp-2 wrote: Can you please submit a bug report. -Matej On 9/21/07, Alex Objelean [EMAIL PROTECTED] wrote: This is about how wicket generates dynamically markupID. I have, for instance, the

Re: best practice

2007-09-21 Thread Sam Hough
Thanks Martijn, I'll have a proper look when the project manager is away. Only just realised that WebMarkupContainer is meant for direct use, the name through me off for some reason. I've been doing all sort of things to make chunks of HTML conditional. Martijn Dashorst wrote: I learnt a

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
When is the killer case for using id? Alex Objelean wrote: My personal opinion is that switching from id to class is not such a good idea, simply because the ID attributes guaranties (of course you can create two elements with same ID, but it is not the same as with class attribute) the

Re: [RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
In my application I extensively use the component generated id to perform some DOM updates on the client side, also for client-side validation. Also getting a DOM element by its ID is the fastest method comparing with finding it using it's css class. Sam Hough wrote: When is the killer

Re: [RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
My personal opinion is that switching from id to class is not such a good idea, simply because the ID attributes guaranties (of course you can create two elements with same ID, but it is not the same as with class attribute) the unicity of the element, also you can find the element from js using

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
So you use it just because of the performance of the browser DOM? Not because it has to be unique? Are you using Ajax? ie forced to do setOutputMarkupId? We are and that is probably the biggest reason we are trying to avoid them. Alex Objelean wrote: In my application I extensively

Re: [RFE] getMarkupId()

2007-09-21 Thread Matej Knopp
I dont' understand. You rely on the way how wicket generates IDs? Then your code is bound to break. If you really need a wicket component's id in javascript, you either override getMarkupId(), or pass the Id using javascript (e.g. label component assigning another component's id into javascript

Re: [RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
Performance on the client side is very important when you are working with very large DOM (complex applications). The responsiveness of the application is very important in this cases. Yes, I'm using ajax. I don't find it as a big drawback to set the outputMarkupId to true when I need

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
What do you do about components in RepeatingView? (with numeric ids) So do you just make sure all your wicket ids are universally unique? So none that are just form, label, button etc? I quite like using button if only one within the container... What if you want to use the same component

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
We are going to stop using ids and move over to class as it make re-use easier and avoids a number of wicket problems with ids... The HTML monkey is not happy though. He reminds me of the Family Guy screaming monkey today. Alex Objelean wrote: This is about how wicket generates dynamically

Re: [RFE] getMarkupId()

2007-09-21 Thread Alex Objelean
Currently wicket guaranties unicity of the ID by appending a incremented number: markupId = getId() + page.getAutoIndex(); You will never have two wicket components with the same markupID. Sam Hough wrote: What do you do about components in RepeatingView? (with numeric ids) So do you

Re: EmailAddressValidator Issue

2007-09-21 Thread Al Maw
Ayodeji Aladejebi wrote: Isnt [EMAIL PROTECTED] not a valid email address, the Wicket EmailAddressValidator rejects it someone tell me that is not a valid email address That's not a valid e-mail address. ;-) Wicket is designed to cater for public web sites. On a public web site you most

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
I was doing SomeComponent(String id...) { super(id); setMarkupId(id); setOutputMarkupId(true); setOutputMarkupPlaceholderTag(true); } So we could know before runtime what the id would be. Obviously this sucks because RepeatingView breaks it (so added regexp hack) and id passed to

EmailAddressValidator Issue

2007-09-21 Thread Ayodeji Aladejebi
Isnt [EMAIL PROTECTED] not a valid email address, the Wicket EmailAddressValidator rejects it someone tell me that is not a valid email address

Re: EmailAddressValidator Issue

2007-09-21 Thread Frank Bille
I can't remember of the top of my head, but there is also the RfcCompliantEmailAddressValidator[1], which validates an email address according to the RFC. Frank [1]:

Re: [RFE] getMarkupId()

2007-09-21 Thread Sam Hough
Oooh. Interesting. I'll see if the html monkey likes it. Thanks. Alex Objelean wrote: Yes, I do rely on wicket generated ID. But it will never break because the javascript code which use these ID is supplied with generated id. For instance: function

Re: Keep inserted data on AjaxTabbedPanel tab switching.

2007-09-21 Thread Igor Vaynberg
you have to override newlink on the tabbedpanel and return a submitlink instead also, really, for situations like this it doesnt make sense to use a server-side panel. use client side tabs like what jquery provides instead - it works much better with forms. -igor On 9/21/07, Fabio Fioretti

Re: [RFE] getMarkupId()

2007-09-21 Thread Ryan Sonnek
On 9/21/07, Matej Knopp [EMAIL PROTECTED] wrote: I dont' understand. You rely on the way how wicket generates IDs? Then your code is bound to break. If you really need a wicket component's id in javascript, you either override getMarkupId(), or pass the Id using javascript (e.g. label

JSP embedded in Wicket page, loaded in a popup window

2007-09-21 Thread ChuckDeal
I have successfully used Al Maw's technique for embedding legacy jsp content into a wicket page. When loading the page into the browser via address bar or another link, it seems to work great. However, if I attempt to load the page in a popup window the relative paths get broken. I can't seem

Re: [RFE] getMarkupId()

2007-09-21 Thread Igor Vaynberg
even with wicket2 getting the id from html...repeaters would break since the id in the html is static, but for repeaters it needs to be unique...unless you want all your items/rows to have the same id. -igor On 9/21/07, Sam Hough [EMAIL PROTECTED] wrote: I was doing SomeComponent(String

Re: JSP embedded in Wicket page, loaded in a popup window

2007-09-21 Thread Al Maw
ChuckDeal wrote: I have successfully used Al Maw's technique for embedding legacy jsp content into a wicket page. When loading the page into the browser via address bar or another link, it seems to work great. However, if I attempt to load the page in a popup window the relative paths get

Re: [RFE] getMarkupId()

2007-09-21 Thread Igor Vaynberg
you can, but then good luck making sure they are unique... -igor On 9/21/07, Ryan Sonnek [EMAIL PROTECTED] wrote: On 9/21/07, Matej Knopp [EMAIL PROTECTED] wrote: I dont' understand. You rely on the way how wicket generates IDs? Then your code is bound to break. If you really need a

Re: EmailAddressValidator Issue

2007-09-21 Thread Ayodeji Aladejebi
its not even intranet, i was testing somewhere on my desktop offline (no internet) and I have apache JAMES for testing my mailing functions. for which Outlook and JavaMail were confortably routing the emails thru properly anyway its not an issue, i disabled the validator for the test thanks On

Re: [RFE] getMarkupId()

2007-09-21 Thread Matej Knopp
Yeah, if you do that then you have to make sure that it won't break when you e.g. put the component to page twice. -Matej On 9/21/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can, but then good luck making sure they are unique... -igor On 9/21/07, Ryan Sonnek [EMAIL PROTECTED] wrote:

Possible to validate file size prior to sending?

2007-09-21 Thread spencer.c
I have a form with a FileUploadField, where the maximum file size is fairly large (100-200MB). I set the maximum size using the form's: setMaxSize(Bytes.megabytes(200)); This works fine, as the form only gets processed when the file is under that size. However, if the file is over that size,

scaffolding in wicket

2007-09-21 Thread Otan
Many frameworks have this feature because it truly speed up development of a page especially the one which is commonly found in administration pages. Can we have this feature in wicket too?

StringResourceModel.toString()

2007-09-21 Thread Jan Kriesten
hi, there seems to be a change in the current trunk to StringResourceModel.toString() - which before returned the localized String. now it returns some 'useful' information like StringResourceModel[key:CONTENTTYPE:date.published.description,default:null,params:] hmm. why was that changed?

Re: Maven advice appreciated

2007-09-21 Thread Martijn Dashorst
Use the dependencies report. It gives you exactly which dependency comes from where. I think it also generates which dependencies are dupes. mvn site should create such a report iirc. Maybe you also need to specify the report, but I'm a bit rusty on that part. Another goldmine is: mvn

Re: ANN: beturtle.com launched

2007-09-21 Thread Martijn Dashorst
Looks great and congrats! Martijn On 9/21/07, Joe Toth [EMAIL PROTECTED] wrote: Hi Everyone, We just launched http://beTurtle.com/ - A 'green' social networking site. If your interested in healthy living, sustainable practices, have 'green' questions or just want to make some new friends,

Re: scaffolding in wicket

2007-09-21 Thread Gerolf Seitz
there is a crud panel in the wicketstuff repository made by igor. you can checkout the source here: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-crud/ Gerolf On 9/21/07, Otan [EMAIL PROTECTED] wrote: Many frameworks have this feature because it truly speed

Re: Embedding wicket in jsp error

2007-09-21 Thread hillj2
I tried implementing the solution from your blog, and after a long struggle I finally got it working. . .or so I thought. Now my wicket links are throwing page expired errors. Maybe it has to do with the fact that the way I had to set it up, the pages with embedded JSP are running under the old

Re: Maven advice appreciated

2007-09-21 Thread mchack
Just discovered the reporting thanks. I will also try the effective pom report. Sounds cool. -Mike Martijn Dashorst wrote: Use the dependencies report. It gives you exactly which dependency comes from where. I think it also generates which dependencies are dupes. mvn site should create

Re: ANN: beturtle.com launched

2007-09-21 Thread Per Newgro
Nice layout, but only with firefox. It looks horrible with konquerrer. Sorry to say that. But hope you interessted in it :-). Cheers Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Embedding wicket in jsp error

2007-09-21 Thread Martijn Dashorst
On 9/21/07, hillj2 [EMAIL PROTECTED] wrote: Also are there any other issues with using HttpSessionStore besides losing back button support? Since I'm already forced to use ONE_PASS_RENDER (for now), I've already lost that support (haven't I?). ONE_PASS_RENDER does not kill back button

Re: Embedding wicket in jsp error

2007-09-21 Thread Eelco Hillenius
My mistake. I noticed there was a typo in my newSessionStore() declaration which caused it not to be called (obviously). One of the better additions to the JDK in my opinion were the @Override tags. If you use those (and e.g. use your IDE's autocomplete function) you would have avoided this in

Re: ANN: beturtle.com launched

2007-09-21 Thread Jonathan Locke
super nice! i love turtles. WeaZeLb0y wrote: Hi Everyone, We just launched http://beTurtle.com/ - A 'green' social networking site. If your interested in healthy living, sustainable practices, have 'green' questions or just want to make some new friends, stop on by. Let us know what

Re: Embedding wicket in jsp error

2007-09-21 Thread hillj2
Martijn Dashorst wrote: ONE_PASS_RENDER does not kill back button support, but does provoke that blasted repost on back button for form submissions. So it prevents the double submit problem. Right, of course. I knew that. :) Martijn Dashorst wrote: The HttpSessionStore is the

Failing test org.apache.wicket.markup.html.image.ImageTest

2007-09-21 Thread Martin Funk
Hi, am I the only one catching this on a mvn clean install? [...] [surefire] Running org.apache.wicket.markup.html.image.ImageTest [surefire] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,055 sec FAILURE !! [...] According to svn the ImageTest.java wasn't touched for over three

Re: Failing test org.apache.wicket.markup.html.image.ImageTest

2007-09-21 Thread Gwyn Evans
Hi, I'm not 100% sure, but after a quick look, I'd say that it's possible that the following fix changed the test return. Cross-posted to dev@ to see if anyone's got any comments... Revision: 575980 Author: ivaynberg Date: 15/09/2007 22:09:08 Message: WICKET-974: Image#getResource always

RE: Wicket consulting/contracting/outsourcing

2007-09-21 Thread Chris Colman
Hi, Can anyone provide me with pointers to individuals or companies providing Wicket consulting/contracting or outsourced personnel? We can provide those services but we're based in Sydney, Australia. Maybe that's not such a problem with us all living together in this global village

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: Minneapolis Wicket Users Group

2007-09-21 Thread Dan Syrstad
On 9/21/07, Craig Lenzen [EMAIL PROTECTED] wrote: Any interest in a Wicket User Group meeting in Minneapolis? Count me in! Register here, http://cwiki.apache.org/WICKET/community-meetups.html http://cwiki.apache.org/WICKET/community-meetups.html

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

Best approach for list items: discrete markup or panels?

2007-09-21 Thread Chris Colman
I have a number of pages that display a list of items and am wondering about the best approach to implementing them in Wicket. To date I have created a single panel that contains the list and the markup for that panel holds the discrete markup elements for the fields in each item of the list.

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