Re: [Wicket-user] How to reload page from within ajax call

2006-10-17 Thread Erik van Oosten
Have you tried something like the following? new AjaxFallBackLink(id) { public void onClick(AjaxTargetRequest target) { page.replace(changedComponent); if (target != null) { target.addComponent(changedComponent); } } } Regards, Erik. De Soca schreef: Hello

[Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Hi all,I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. greets,Ted - Using Tomcat but need to do more? Need to support web services,

Re: [Wicket-user] How to reload page from within ajax call

2006-10-17 Thread Frank Bille
Hmm, which browser(s) are you using? You could also take a look at this site to see the browsers that *has* been tested with our AJAX implementation: http://www.wicket-wiki.org.uk/wiki/index.php/FAQs#Which_browsers_have_been_tested_with_Wicket_AJAXFrankOn 10/17/06, De Soca [EMAIL PROTECTED]

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I

Re: [Wicket-user] Netscape 8.1.2 problems

2006-10-17 Thread Matej Knopp
Strange. It seems that getResponseHeader throws an exception in netscape if the requested header is not there. I added a try/catch block there so it should work now. -Matej Allen James wrote: Has anyone run into issues using AJAX behaviour with Netscape 8.1.2 using the Firefox rendering

Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.

2006-10-17 Thread Matej Knopp
Well, it seems like a bug, the question is how to fix it? The problem is that rendered() should be called after component is rendered. But we do call it even after header is rendered, because we need to do some cleanup there. So for 2.0 I think we need something like IBehavior.cleanup() - where

Re: [Wicket-user] Wicket 2.0: Adding a component via ajax that contributes javascript (like AutoCompleteTextField) doesn't work correctly in Firefox

2006-10-17 Thread Matej Knopp
It fails to execute because the header javascript is executed before the elements are inserted to DOM. The solution would be not to render the javascript to head, question is how to determine whether header is being rendered or not. -Matej Caleb Land wrote: For some reason if the javascript

Re: [Wicket-user] Move to Apache: Namespace?

2006-10-17 Thread Juergen Donnerstag
The reason why this is relevant is because we determine the namespace from this statement. Meaning xmlns:wicket=http://wicket.sourceforge.net/ is our current default. But xmlns:xxx=http://wicket.sourceforge.net/ will change Wickets namespace to xxx. So instead of wicket:id you can write xxx:id.

Re: [Wicket-user] wicket-contrib-data-ejb3

2006-10-17 Thread Eelco Hillenius
No plans from the core devs. But anyone from the list of wicket-stuff committers could take it up if they like. Eelco On 10/17/06, cowwoc [EMAIL PROTECTED] wrote: Hi, There exists a module called wicket-contrib-data-hibernate-3.0. Are there plans for releasing

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
Igor, Thanks for the reply and the suggestion to just extend AbstractBehavior. That definitely does work better. Now, however, it looks like the URL I'm generating (using Component.urlFor(Class, PageParameters)) isn't working out quite right. The generated ondblclick attribute is:

Re: [Wicket-user] Move to Apache: Namespace?

2006-10-17 Thread Martijn Dashorst
and 1.3? Martijn On 10/17/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: The reason why this is relevant is because we determine the namespace from this statement. Meaning xmlns:wicket=http://wicket.sourceforge.net/ is our current default. But xmlns:xxx=http://wicket.sourceforge.net/ will

Re: [Wicket-user] wicket-contrib-data-ejb3

2006-10-17 Thread Martijn Dashorst
And since you now have an underused, working sf.net account... :-) (underused because the security breach was a couple of months ago ;-) Martijn On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: No plans from the core devs. But anyone from the list of wicket-stuff committers could take it

Re: [Wicket-user] deprecated methods in current SVN version

2006-10-17 Thread Eelco Hillenius
Don't worry too much about them. Most of those deprecation warnings are there to help people migrate to 2.0. They will be supported for 1.2.x and 1.3.x. Usually the deprecation javadoc tag will say what the replacement is. Though there are/ have been a few tags where the lazy bum dev who put it

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?greetsTed2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? As I already think I have answered you on the Jackrabbit list: the JCR Session is better fitted to

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Oh yeah Sorry, i did't realize that it was you. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?As I

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Oh yeah Sorry, i did't realize that it was you. Oh yes that's me everywhere :-D. ./alex -- .w( the_mindstorm )p. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
It could be easy to keep a reference, else we have to work with or something like it, because if you have create a session everytime you need it, your performance is shot to hell2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Do you even need to keep a reference to it? Get a session when you need

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh. If a session is thread bound (though I wouldn't see the

[Wicket-user] 希望合作!

2006-10-17 Thread 陈小姐
您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; 互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广 告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付 款的方式与贵司合作! 联系人:陈小姐 电话 :13510678960 - Using Tomcat but need to do more? Need to support

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
I really want it to be threadsafe, but at this point i don't have a good picture of how that is done.2006/10/17, Alexandru Popescu [EMAIL PROTECTED]:On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get

[Wicket-user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Manuel Barzi
:? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; 互惠互益以解贵司业务运作`补帐`作帐的燃眉之急;提供如下票据服务:★普通商品/运输/广 告/建筑安装/服务业等各种发票可以向外提供,税率为1-2%;并可上网查询或税务验证后付 款的方式与贵司合作! 联系人:陈小姐 电话 :13510678960 -

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some

[Wicket-user] Re: [Wicket-user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Eelco Hillenius
That's our localization test of the email list ;) Eelco On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote: :? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好! 因我司进项较多及受多家企业与公司的委托:将每个月余额的些票据向外提供; - Using Tomcat but need

[Wicket-user] Re: [Wicket-user] Re: [Wicket -user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Manuel Barzi
hon! da isu zu mit su bi shi kawa zaki dae wo! ya ta... ;) On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: That's our localization test of the email list ;) Eelco On 10/17/06, Manuel Barzi [EMAIL PROTECTED] wrote: :? On 10/17/06, 陈小姐 [EMAIL PROTECTED] wrote: 您好!

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds on to. If it does hold on to resources directly, a pool

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
It is going to be a first version of the CMS, so we can change it later.I'll take a look at the article. Thanks2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.That

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh.

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Exactly my point :-). And yes, JCR Sessions are not thread-safe so inmany cases (and as a best practice) you need to make sure it isthread-confined. ./alex--.w( the_mindstorm )p.I just asked that on the JackRabbit userlist, as you know, and i got a completely different answer

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
You are right, i did you a transientrepository. So when i use a different one, the performance should be better? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Exactly my point :-). And yes, JCR Sessions are not thread-safe so in many cases (and as a best practice) you need to make sure it is thread-confined. ./alex -- .w( the_mindstorm )p. I just asked that on the JackRabbit userlist, as

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, i did you a transientrepository. So when i use a different one, the performance should be better? Maybe you should start trying things by your own, as long as it looks you don't believe most of the answers you are getting on

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learningWicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06,

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learning Wicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. And

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
You're absolutely right Eelco, we are starting with the Design, so you'll see it soon.Than it can be judged by you all, LOL - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly

Re: [Wicket-user] Role authorization per page

2006-10-17 Thread ChuckDeal
OK, so narrowing down my thought process... Attempting to play with the application or Session AuthorizationStrategy doesn't seem to be a good idea because it I would need to somehow inject the current page into the Authorization Process. So, I am back to adding the AuthorizationStrategy to

[Wicket-user] Re: [Wicket-user] Re: [Wicket-user] Re : [Wicket-user] Re: [Wicket-user] 希望合作!

2006-10-17 Thread Gwyn Evans
Babel Fish says... Hello! Because I take charge of the income to be more and many enterprises and company's request: Provides each month remaining sum bill to outside; The reciprocal benefit mutually benefits by Xie Guisi the service operates ` to make up account ` to make the account the urgent

[Wicket-user] How to test validators?

2006-10-17 Thread Erik van Oosten
Hello, I wrote a custom validator for Dutch burger service numbers. However, whatever I try, I can't seem to be able to write a JUnit test for the onValidate method. An abstract of the code is included below. I tried using EasyMock to mock the form component. However this is not possible

Re: [Wicket-user] ajax refresh on date picker

2006-10-17 Thread Martijn Dashorst
and to add to the confusion, 1.x will first become 1.2.3 as soon as we fix those damn bugs. 1.3 (or 1.2.4) will follow quickly. Martijn On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Yeah, sorry, I meant 1.x. -Matej Pierre-Yves Saumont wrote: Hi Matej, I suppose 1.3 is current

Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.

2006-10-17 Thread Igor Vaynberg
why not do the cleanup in detach() ?-IgorOn 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how to fix it?The problem is that rendered() should be called after component isrendered. But we do call it even after header is rendered, because weneed to do some

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Igor Vaynberg
this has nothing to do with popup settings. if you have a bookmarkable page - which looks like you do because you are using that urlfor variant you must provide either the default constructonr () or since you are using parameters a (PageParemeters params) constructor. -igprOn 10/17/06, Karl M.

Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.

2006-10-17 Thread Matej Knopp
Well, as far as I can see there's only detachModels in IBehavior. Is this the place? -Matej Igor Vaynberg wrote: why not do the cleanup in detach() ? -Igor On 10/17/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Well, it seems like a bug, the question is how

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Joe Toth
Do you plan on using Spring?If so, spring modules support JCR.https://springmodules.dev.java.net/docs/reference/0.6/html/jcr.html The sub projects wicket-spring and wicket-spring-annot make injecting spring managed beans into your pages EXTREMELY easy. If you ever used spring to manage anything

Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.

2006-10-17 Thread Igor Vaynberg
im not sure why we have detachModel() as opposed to detach() maybe we should just add detach(), it seems logical to me-IgorOn 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote:Well, as far as I can see there's only detachModels in IBehavior. Is this the place?-MatejIgor Vaynberg wrote: why not do the

Re: [Wicket-user] Netscape 8.1.2 problems

2006-10-17 Thread Frank Bille
I can see that the Gecko version used is 1.7.5 which AFAIR corresponds to FireFox 1.0 which I don't think works with our AJAX at the moment. Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED] wrote: Strange. It seems that getResponseHeader throws an exception in netscape if the requested header

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
2006/10/17, Pierre-Yves Saumont [EMAIL PROTECTED]: Hi Ted,Unless you already found them, you might be interested by these articles: http://www.onjava.com/pub/a/onjava/2006/10/04/what-is-java-content-repository.html?page=1http://www-128.ibm.com/developerworks/java/library/j-jcr/ Pierre-Yves I

Re: [Wicket-user] Netscape 8.1.2 problems

2006-10-17 Thread Matej Knopp
I don't know if ff 1.0 works, but Netscape 8.1.2 does, after I fixed it :) Frank Bille wrote: I can see that the Gecko version used is 1.7.5 which AFAIR corresponds to FireFox 1.0 which I don't think works with our AJAX at the moment. Frank On 10/17/06, Matej Knopp [EMAIL PROTECTED]

Re: [Wicket-user] IBehavior#rendered() is called twice when a component that has that behavior is rendered via AJAX.

2006-10-17 Thread Matej Knopp
Okay. For 2.0 we can have detach(Component component).. or maybe componentDetached(Component component), and we can call the cleanup() from there. I wouldn't mind. But what to do for 1.2? One solution would be to call cleanup() from AbstractBehavior.detachModel(), the only thing that bothers

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Frank Bille
Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associated with a form and then, using the FormTester, submit the form and check the messages. A more easy sollution is to, in your test, subclass your validator and

Re: [Wicket-user] Netscape 8.1.2 problems

2006-10-17 Thread Frank Bille
Hurray. then we can (perhaps) update the faq to also include Netscape 8.1.2. Allen, if you're in the mood for it you are very welcome to try to test the AJAX examples out (with latest 1.x branch) and if it works we would appreciate if you update the FAQ :) Frank On 10/17/06, Matej Knopp [EMAIL

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Igor Vaynberg
in 2.0 the validators are decoupled so it should be trivial to test them fwiw :)-IgorOn 10/17/06, Frank Bille [EMAIL PROTECTED] wrote:Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associatedwith a form and then,

[Wicket-user] Ajax refresh feedback

2006-10-17 Thread Marc-Andre Houle
I have checked what is avalaible from the Ajax exemple and I also searched the API to see if there is something to make the browser make a little feedback during an ajax call.I want the browser to react like if something is happening during an ajax Call. The fact is : when the server is loaded and

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Marc-Andre Houle
I was looking at Gmail and I think my example is bad. I think I just said another stupid thing and gmail is actually changing all the page.Anyway, the question is the same, is there a way to make a feedback for all ajax call. On 10/17/06, Marc-Andre Houle [EMAIL PROTECTED] wrote: I have checked

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Igor Vaynberg
yesyou need to write your own _javascript_ - wicket has hooks thereseeWicket.Ajax.registerPre/PostCallHandlerandWicket.Ajax.registerFailureHandlerin wicket-ajax.jsyou can use those to toggle visibility of some page-wide loading... indicator -IgorOn 10/17/06, Marc-Andre Houle [EMAIL PROTECTED]

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Marc-Andre Houle
Thanks, it is what I was looking for. I'm not sure I am ready to dive directly into _javascript_ like that, but to know it is possible is interesting.Thanks a lot for the quick answer.Marc On 10/17/06, Igor Vaynberg [EMAIL PROTECTED] wrote: yesyou need to write your own _javascript_ - wicket has

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Igor Vaynberg
there is really nothing to itsomewhere in body havediv wicket:id=ajaxindicator style=display:none;LOADING.../divand before your body tag havescript Wicket.Ajax.registerPreCallHandler(function() { document.getElementById(ajaxindicaotor).styles.display=;

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Erik van Oosten
Frank Bille wrote: Just of the top of my head I have two surgestions. One is to Do the full association of the validator to a field which is then associated with a form and then, using the FormTester, submit the form and check the messages. That looks like a bit of overkill. But thanks for

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Erik van Oosten
Nice improvement. Erik. Igor Vaynberg wrote: in 2.0 the validators are decoupled so it should be trivial to test them fwiw :) -Igor -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - Using Tomcat but

Re: [Wicket-user] Wicket-CMS Templates

2006-10-17 Thread Martijn Dashorst
Perhaps we need to define the problem better... A typical article has an author, date written, date last modified, tags, content, summary, keywords, title, subtitle, etc. Some people like to show everything on their blogs, so you get in a Wicket template: div wicket:id=article h1

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Frank Bille
On 10/17/06, Erik van Oosten [EMAIL PROTECTED] wrote: A more easy sollution is to, in your test, subclass your validator and override error() in that and check if that is invoked correctly.This is not possible as all the error methods are final. Hmm are you sure of that?

Re: [Wicket-user] How to test validators?

2006-10-17 Thread Erik van Oosten
Yes you are right. The error methods are final on FormComponent not in AbstractValidator. Thanks Frank, Erik. Frank Bille schreef: On 10/17/06, *Erik van Oosten* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: A more easy sollution is to, in your test, subclass your

[Wicket-user] adding class to listview

2006-10-17 Thread Ryan Sonnek
I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template:ol !-- want to add a class=foo to this li! -- li wicket:id=itemtext goes here/li /olcode:populateItem(Item item) { //how to add a

Re: [Wicket-user] adding class to listview

2006-10-17 Thread Igor Vaynberg
item.add(new SimpleAttributeModifier(class, foo));-IgorOn 10/17/06, Ryan Sonnek [EMAIL PROTECTED] wrote:I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template:ol !-- want to add a

Re: [Wicket-user] adding class to listview

2006-10-17 Thread Eelco Hillenius
item.add(new SimpleAttributeModifier(class, foo)); ? Eelco On 10/17/06, Ryan Sonnek [EMAIL PROTECTED] wrote: I'm using a listview to output an ordered list. I would like to add a class to my li programatically. I don't see a way to do that using the ListView simple template: ol !--

[Wicket-user] Safari yes, Firefox no

2006-10-17 Thread Michael Welter
This is a very strange problem. In Firefox, the page display is more or less normal. However, if I display the source, I see the Page Expired source. Clicking on any of the links on the page takes me to the Page Expired page. Using Safari, I don't have this problem. Has anyone seen this

Re: [Wicket-user] Safari yes, Firefox no

2006-10-17 Thread Nick Heudecker
What version of Firefox are you using?On 10/17/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem.In Firefox, the page display is more orless normal.However, if I display the source, I see the Page Expired source.Clicking on any of the links on the page takes me to the

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Pierre-Yves Saumont
I found there are sevral things that I missed with Ajax links: indicating that some activity is occuring, preventing the user to click several times on the link, and warning the user if something is going wrong (most often, the session has expired). So I extended AjaxLink : public abstract

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
Wow, that was idiotic of me. I somehow got it stuck in my head that the page I was linking to was bookmarkable-- it's not. Is there a way to have _javascript_ open a popup to a page that is not bookmarkable? Looking through the Wicket source I don't see anything quite as simple as

Re: [Wicket-user] Ajax refresh feedback

2006-10-17 Thread Igor Vaynberg
too bad you are blocking the entire window.wicket has ajax channels with different channel modes such as queue/disregard. that way you can disable certain groups of components only by assigning them to the same ajax channel. -IgorOn 10/17/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I found

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Igor Vaynberg
if its not bookmarkable then you can just put that code into attribute modifier and attach it to the link. js poupup settings generates should work fine there.-IgorOn 10/17/06, Karl M. Davis [EMAIL PROTECTED] wrote: Wow, that was idiotic of me. I somehow got it stuck in my head that the

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Igor Vaynberg
erm, the problem is the url - if the page is not bookmarkable you cannot create a url to it without having a page instance. that would be bad cause you would be precreating the page instance so you have its url available in the page that calls it. what is the usecase? does the link do something

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Karl M. Davis
Igor, I'm trying to have a Label (not a link) that opens a popup when double-clicked. -- Karl From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Tuesday, October 17, 2006 4:53 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Open Popup

Re: [Wicket-user] Open Popup via Ajax

2006-10-17 Thread Igor Vaynberg
easiest thing to do is probably to reuse Link as it is.abstract class MyLabel extends Panel {MyLabel(String id, IModel model) { Link link=new Link(link) { onclick() { MyLabel.this.onclick(); }} link.add(new SimpleAttributeModifier(ondblclick, this.onclick(););

Re: [Wicket-user] Safari yes, Firefox no

2006-10-17 Thread Michael Welter
Firefox v1.5.0.7 Nick Heudecker wrote: What version of Firefox are you using? On 10/17/06, *Michael Welter* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: This is a very strange problem. In Firefox, the page display is more or less normal. However, if I display the source,

[Wicket-user] Programatically access to CSS

2006-10-17 Thread wicketmarsh
Hi everybody, I have my .css file in web context directory i.e webapp/style/abc.css since this .css is used by plain html and wicket , i can't place it in my wicket webpages directory. I want to access this .css file in my webpage. i know , we can access is using HeaderContributor.forCss(Class

Re: [Wicket-user] Programatically access to CSS

2006-10-17 Thread Igor Vaynberg
the best way is to build the path manually by doing /+contextpath+/style/abc.css you can get the contextpath from the httpservletrequest object ((WebRequest)getRequest()).getHttpServletRequest().getContextPath() -IgorOn 10/17/06, wicketmarsh [EMAIL PROTECTED] wrote: Hi everybody,I have my .css

Re: [Wicket-user] Safari yes, Firefox no

2006-10-17 Thread Iman Rahmatizadeh
Can you refresh the page ? Does it bring up the Page Expired again ? Try it with ie. I guess that shouldn't have any problems as well. On 10/18/06, Michael Welter [EMAIL PROTECTED] wrote: This is a very strange problem. In Firefox, the page display is more or less normal. However, if I

[Wicket-user] they'll cashmere

2006-10-17 Thread Roland Harmon
The drug-resistant strains, which are virtually untreatable, already have killed people in the United States and Eastern Europe. This agreement represents another positive step in preventing Michigan children from becoming addicted to tobacco. Cosgrove III, Governor Jon S. Currently, the site

[Wicket-user] Where can i find hibernate integration example

2006-10-17 Thread ying lcs
Hi, Can you pleaes tell me where i can find wicket andhibernate integration example ? Thank you. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated

Re: [Wicket-user] Where can i find hibernate integration example

2006-10-17 Thread Igor Vaynberg
we have wicket-phonebook in wicket-stuff project on sf.net in svn. it is wicket+spring+hibernate.if you want just wicket+hibernate google databinder-igor On 10/17/06, ying lcs [EMAIL PROTECTED] wrote: Hi,Can you pleaes tell me where i can find wicket andhibernateintegrationexample ?Thank