Re: [Wicket-user] More on refreshing page contents

2006-08-27 Thread Roman Mandeleil
No it return me to not found component in the response -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004446 Sent from the Wicket - User forum at Nabble.com. - Using

Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-27 Thread Igor Vaynberg
try the latest 1.2 from svn or wait for the official 1.2.2 tomorrow-IgorOn 8/26/06, Koji Lin [EMAIL PROTECTED] wrote:No i didnt change the example.i just put the wicket-examples-1.2.1.war into my tomcatand just runs the

Re: [Wicket-user] More on refreshing page contents

2006-08-27 Thread Igor Vaynberg
calling textarea.setOutputMarkupId(true) will cause the proper id attribute output to the component.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote:No it return me to not found component in the response --View this message in context:

Re: [Wicket-user] More on refreshing page contents

2006-08-27 Thread Igor Vaynberg
no, it should append id=foo to textarea tag - what you are doing now manually.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote:I have tried it but it doesn't work, should setOutputMarkupId(true)cause some output in the ajax debug window ?--View this message in context:

Re: [Wicket-user] More on refreshing page contents

2006-08-27 Thread Roman Mandeleil
Ok, now it works, the problem was that I should call setOutputMarkupId on the parent FORM object too. Thanks -- View this message in context: http://www.nabble.com/Refreshing-page-contents-tf1367256.html#a6004517 Sent from the Wicket - User forum at Nabble.com.

Re: [Wicket-user] More on refreshing page contents

2006-08-27 Thread Igor Vaynberg
not unless you are adding the form to the ajax target.standard behaviors that update the form will make that call themselves.-IgorOn 8/26/06, Roman Mandeleil [EMAIL PROTECTED] wrote: Ok, now it works, the problem was that I should call setOutputMarkupId on theparent FORM object too.Thanks--View

Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-27 Thread Matej Knopp
Great, the latest doesn't seem to work in IE either. Martijn, are you listening? We need to postpone the release a bit. -Matej Igor Vaynberg wrote: try the latest 1.2 from svn or wait for the official 1.2.2 tomorrow -Igor On 8/26/06, *Koji Lin* [EMAIL PROTECTED] mailto:[EMAIL

Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-27 Thread Matej Knopp
Hmm.. The bug is fixed, we've been adding paging navigator to response even if the parent container has already been added. -Matej Matej Knopp wrote: Great, the latest doesn't seem to work in IE either. Martijn, are you listening? We need to postpone the release a bit. -Matej Igor

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Martijn Dashorst
I also read your blog, and it sounds very interesting. Just a quick question (probably should've done so on the blog though): Does it hold that after getting a book and author from the results that: aBook.getAuthor() == anAuthor and/or aBook.getAuthor().equals(anAuthor) ? Martijn On

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Martijn Dashorst
I understand your position... Shades is your hobby, pet project and it would be nice that people find it helpful. I think there is a market for it, as other people have come to the same conclusion. At my company at least I and a collegue of mine are very interested in trying out

[Wicket-user] How to set AjaxCallDecorator globally ?

2006-08-27 Thread Ingram Chen
Hi all, I have some general AjaxCallDecorators: such as show busy, red Loading... message orhandling ajax failure. I can subclass each Ajax* component and override getAjaxCallDecorator()but this way becomes annoy when more components are developed. And some core ajax components are composited, I

[Wicket-user] Fwd: Re: refreshing the contents of page back

2006-08-27 Thread Jaime De La Jara
I´m sorry if I didnt explain the problem clearly, what I´m saying is that in the case of the phonebook app when I add a new contact in the EditContact page and the ListContacts is redisplayed the last name of the new contact is not added to the list of unique last names, so it seems that the model

[Wicket-user] Eclipse plugins - Hibernate tools / Wicket Bench conflict

2006-08-27 Thread Jan Mikkelsen
Has anyone experienced problems with the Hibernate tools plugin after installing Wicket Bench? In my case, the Hibernate tools plugin seems to have disappeared. And I have tried -clean. Any ideas? - Using Tomcat but need to

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Geoff hendrey
Ohh my god yes I ran into all these problems in JDOMax, and they are all solved in Shades. I won't drop the name, but some very influential person on EJB and JDO specs now believe that exposing object identity in the form of API's was a mistake. I agree -- you will notice shades has no

[Wicket-user] Fom validation

2006-08-27 Thread p.jasson
How can I add an validator to a non FormComponent Component? I have my own component derived from Panel and i would like to add validation to it. I would really appreciate if somebody will give me an example. Thanks -- View this message in context:

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Matej Knopp
And how is caching done if you can't query objects by identity? Or does this question make even sense? -Matej Geoff hendrey wrote: Ohh my god yes I ran into all these problems in JDOMax, and they are all solved in Shades. I won't drop the name, but some very influential person on

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Geoff hendrey
aBook and anAuthor are RecordCandidate instances. RecordCandidates are not pojo's, just structures used to represent the data behind a pojo, for the purpose of forming a query. aBook.getAuthor() would not compile because RecordCandidate has no getAuthor method. -geoff --- Martijn Dashorst

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Geoff hendrey
Most ORMS have 2 kinds of L1 caching: 1) caching of compiled queries 2) caching of POJOs, where the cache is keyed by identity Shades does (1). Shades does not do (2). I found that the L1 cache was actually redundant. Why? Because most modern frameworks, like Wicket, take the pojo, and hold

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Matej Knopp
I was more concerned about second level cache. When using loadable detachable models it is possible to hold only object id in session, loading the entire object on the beginning on request. In this scenario second level cache really helps. I think this is feature that lot of people would be

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Geoff hendrey
No doubt L2 caching can speed up apps. Most databases implement caching already. With L2 cache comes another set of problems, and when you get deep enough into them, you may wish you had not used the L2 cache, but simply relied on effective caching in the database. On the other hand, many L2

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Matej Knopp
I haven't profiled L2 caching done by database, if someone has I'd really be interested in results. Anyway, I wouldn't use WeakReference for caching, SoftReference seems to be better alternative. -Matej Geoff hendrey wrote: No doubt L2 caching can speed up apps. Most databases implement

Re: [Wicket-user] Fom validation

2006-08-27 Thread Igor Vaynberg
by default it can only be added to form components but there are things you can use a visitor - here is some pseudo codeinterface IValidateable { void validate(); }class MyForm extends Form { void validate() { super.validate(); visit(IValidatable.class, new IVisitor() { Object visit(Component c)

[Wicket-user] wicket:head in page template...

2006-08-27 Thread Erik Brakkee
Hi, In some of the documentation it is mentioned that wicket:head is not supposed to be used in pages (e.g. http://www.wicket-wiki.org.uk/wiki/index.php/Including_CSS_resources). However, if I use markup inheritance for all my pages, then the base markup will contain a head section. This head

Re: [Wicket-user] Fwd: Re: refreshing the contents of page back

2006-08-27 Thread Igor Vaynberg
ah, thats a bug :)mind filing a report/patch?-IgorOn 8/27/06, Jaime De La Jara [EMAIL PROTECTED] wrote:I´m sorry if I didnt explain the problem clearly, what I´m saying is that in the case of the phonebook app when I add a new contact in the EditContact page and the ListContacts is redisplayed

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Igor Vaynberg
afaik it should be ok, where does it say otherwise?-IgorOn 8/27/06, Erik Brakkee [EMAIL PROTECTED] wrote:Hi,In some of the documentation it is mentioned that wicket:head is not supposed to be used in pages(e.g.http://www.wicket-wiki.org.uk/wiki/index.php/Including_CSS_resources).However, if I use

Re: [Wicket-user] library example using Shades for O/R mapping

2006-08-27 Thread Geoff hendrey
the spec says: When instances are queried, navigated to, or modified, instantiation of instances and their fields and garbage collection of unreferenced instances occurs without any explicit control So that means that whatever implementation is used to map between identity and Object, it can't

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Eelco Hillenius
Thanks for finding that, that WIKI page was wrong. When I wrote it, I didn't think about markup inheritance. Using wicket:head with base pages/ markup inheritance is perfectly alright. I updated the WIKI page. Eelco On 8/27/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, In some of the

[Wicket-user] Wicket 1.2.2 available

2006-08-27 Thread Martijn Dashorst
The Wicket team is proud to announce the availability of Wicket 1.2.2, the second maintenance release for Wicket 1.2.This release contains several bug fixes, and some major improvements by receiving backported components from our 2.0 branch, most notably: modal window support and a fully

Re: [Wicket-user] Fwd: Re: refreshing the contents of page back

2006-08-27 Thread Jaime De La Jara
Ok.Jaime.Igor Vaynberg [EMAIL PROTECTED] wrote: ah, thats a bug :)mind filing a report/patch?-IgorOn 8/27/06, Jaime De La Jara [EMAIL PROTECTED] wrote:I´m sorry if I didnt explain the problem clearly, what I´m saying is that in the case of the phonebook app when I add a new contact in the

[Wicket-user] set attributes of HTML tag of page ?

2006-08-27 Thread ali
Hi everyone. i want set dir on tag html of page ? it's seem that AttributeModifier or onComponentTagBody only work on components has a related tag . page component is root Wicket know it relate to html but i know how set ? very thanks for best your java web framework. -- Using Opera's

Re: [Wicket-user] Fom validation

2006-08-27 Thread p.jasson
thanks. it's working, but like this, i always have to overide the Form.validate() and it won't work with normal Form. What do you think about this solution: class MyComponent extends Panel { private IFormValidator formValidator; setValidation(...){ formValidator = new IFormValidator(){

Re: [Wicket-user] Wicket 1.2.2 available

2006-08-27 Thread Matej Knopp
Martijn Dashorst wrote: o Wicket Extensions - Backported AJAX header contribution code from 2.0. Just a very minor detail. AJAX header contribution is part of core, not extensions (have I put it to wrong changes.xml?). -Matej Have fun! - The Wicket Team -- Download

[Wicket-user] New subversion repository structure

2006-08-27 Thread Martijn Dashorst
All, We have had a long and interesting discussion about what to do with our releases and our repository. As you know, we are working in a forked mode: wicket 2.0 is under active development, and we also provide support for wicket 1.2 (1.2.2 has just been released), and will start work on 1.3

Re: [Wicket-user] wicket:head in page template...

2006-08-27 Thread Erik Brakkee
Igor Vaynberg wrote: afaik it should be ok, where does it say otherwise? Well, on the wiki it said today: " If you are authoring a page, you don't need (and shouldn't use) wicket:head tags but instead put it in the page's head section directly.". But Eelco edited the wiki page today, and

Re: [Wicket-user] Fom validation

2006-08-27 Thread Igor Vaynberg
the problem with that is that once you added the form validator there is no way to remove it - so things like switching forms around that add their form validators will not work.also because you are doing it in onbeforerender() means you will be adding the form validator multiple times. yes it

Re: [Wicket-user] set attributes of HTML tag of page ?

2006-08-27 Thread Eelco Hillenius
You can just attach a Wicket component to the html tag, no problem. WebMarkupContainer html = new WebMarkupContainer(html); html.add(new AttributeModifier(dir, true, myModel)); add(html); or in 2.0 WebMarkupContainer html = new WebMarkupContainer(this, html); html.add(new AttributeModifier(dir,

Re: [Wicket-user] Dynamic Images

2006-08-27 Thread Igor Vaynberg
sounds like what you need is to stream the file to the output stream when the browser requests the image.easiest way to do this imho is the following (pseudocode)/** resource that can read a file given a name */ class FileResource extends Resource { private final String pathToFile; public

Re: [Wicket-user] can'nt checkout wicket from svn

2006-08-27 Thread ali
i try several times. but still success. please guide me. -- On Sun, 27 Aug 2006 03:33:25 +0430, Eelco Hillenius [EMAIL PROTECTED] wrote: Maybe try again a -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Re: [Wicket-user] can'nt checkout wicket from svn

2006-08-27 Thread Igor Vaynberg
today we restructured our repo, the new url is https://svn.sourceforge.net/svnroot/wicket/branches/wicket-1.2.x/wicket-parent/ -IgorOn 8/27/06, ali [EMAIL PROTECTED] wrote: i try several times. but still success. please guide me.--On Sun, 27 Aug 2006 03:33:25 +0430, Eelco Hillenius[EMAIL

Re: [Wicket-user] border and panel and MI

2006-08-27 Thread Igor Vaynberg
borders are used to wrap _arbitrary_ sets of componentspanels are used to embed _specific_ components-IgorOn 8/27/06, ali [EMAIL PROTECTED] wrote: FAQ : what is actually usecase of border ? please give me some examplei thinkborder used to decorate components other than page nad panel becuase MI