Re: [Wicket-user] Multiple form component validation, validate two or more fields that are related

2006-06-08 Thread Nick Heudecker
Generally I'd implement IFormValidator, but things like:AndValidator(IValidator, IValidator) and OrValidator(IValidator, IValidator)would be interesting.On 6/8/06, Christopher Derek Curry [EMAIL PROTECTED] wrote: Hi,Can anyone provide a simple example on how to do Multiple form component

[Wicket-user] Jasper Report

2006-06-08 Thread gangadhar
Hi All we are devloping web application using wicket ,jasper report, hibernate I want to know how to call jasper reports in wicket Thankas Gangadhar ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Jasper Report

2006-06-08 Thread Matej Knopp
There is jasper report integration project in wicket-stuff. I just don't know if it's up-to-date with 1.2. -Matej [EMAIL PROTECTED] wrote: Hi All we are devloping web application using wicket ,jasper report, hibernate I want to know how to call jasper reports in wicket Thankas

[Wicket-user] How to use frames

2006-06-08 Thread Дмитрий
Hi! How to use frames in Wicket application? I try write code how discibed in wiki, but all frames show only home page. (If page with frames set as a home page beautiful fractal shown to me, but this not that I want.) Dmitry. ___ Wicket-user

Re: [Wicket-user] Jasper Report

2006-06-08 Thread Martijn Dashorst
You only have to update the wicket dependency, the code is 1.2 compliant... I'll try to create a release of the project soon.MartijnOn 6/8/06, Matej Knopp [EMAIL PROTECTED] wrote:There is jasper report integration project in wicket-stuff. I just don't know if it's up-to-date with 1.2.-Matej[EMAIL

Re: [Wicket-user] WicketTester broken on 1.2?

2006-06-08 Thread Johan Compagner
you still need to create a request cycle:public WebRequestCycle createRequestCycle()right after you create the response/requests objects.jOn 6/8/06, Michael Day [EMAIL PROTECTED] wrote: I had created a bug report for it with a code sample, but I'll pasteanother sample here:public class

Re: [Wicket-user] PageLink wanting to check model before allowingpopup

2006-06-08 Thread Nino Wael
Thanks, the latter is precisely what I needed(I set/unset the popup settings). Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: 7. juni 2006 20:47 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] PageLink

Re: [Wicket-user] Multiple form component validation, validate two or more fields that are related

2006-06-08 Thread Johan Compagner
if you have nice default validators that could be usefull to many please make a patch.johanOn 6/8/06, Nick Heudecker [EMAIL PROTECTED] wrote:Generally I'd implement IFormValidator, but things like: AndValidator(IValidator, IValidator) and OrValidator(IValidator, IValidator)would be interesting.On

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Johan Compagner
If you say that you don't want sessionids in all (or most) bookmarkable linksmake your own: WebRequestCodingStrategyoverride the method: protected CharSequence encode(RequestCycle requestCycle, IBookmarkablePageRequestTarget requestTarget)and copy the complete code of that method. but don't

Re: [Wicket-user] Wicket

2006-06-08 Thread Nino Wael
Hi Gangadhar Im using this to attach a word document WebResponse response = (WebResponse) getResponse(); response.setContentType(application/msword); // response.setHeader(Content-disposition, attachment; filename= // + Example.doc;); // when set header is added

Re: [Wicket-user] Multiple form component validation, validate two or more fields that are related

2006-06-08 Thread Martijn Dashorst
Take a look at the EqualInputValidator and EqualPasswordInputValidator. These extend AbstractFormValidator which implements IFormValidator.You add the validator instance to your form instead of an input field. MartijnOn 6/8/06, Christopher Derek Curry [EMAIL PROTECTED] wrote: Hi,Can anyone provide

Re: [Wicket-user] PageLink wanting to check model beforeallowingpopup and info

2006-06-08 Thread Nino Wael
Unsetting/setting the popup settings work just fine:) However im also giving the user some feedback based on finding of the model. Im using the info(string) method to do this. But it does not seem to work when used from the onRender method of the pagelink? Regards Nino -Original

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Timo Stamm
John Patterson schrieb: Currently, I am considering either apache url rewriting to remove all session ids from non-conversational pages or hacking wicket to disable url encoding for all pages that do not absolutely require a session. Are you sure this issue is that important? In my

Re: [Wicket-user] Wicket

2006-06-08 Thread Timo Stamm
Gangadhar Vibhute schrieb: I want to use following methods of servlets in wicket how to use it response.getWriter() ServletOutputStream ouputStream =response.getOutputStream(); A major achievement of Wicket is that you *don't* have to use these. What do you want to accomplish? I am sure we

Re: [Wicket-user] Coding Authentification, Databinding and Role-related application behaviour

2006-06-08 Thread Martijn Dashorst
The problem is that the wicket-auth-roles package assumes you subclass AuthenticatedWebApplication as your application class. If you want to reuse that, you'll have to subclass the AuthenticatedWebApplication and the AuthenticatedSession. No spring can fix that.MartijnOn 6/8/06, Mark Derricutt

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Igor Vaynberg
All my pages which should be indexed by bots require no conversation state to be storedand would all be bookmarkable. Would it be possible to have common pages (or page components) stored in the application scope instead? They could then have their rendered content cached too. i dont think so,

Re: [Wicket-user] Binding package resources recursively

2006-06-08 Thread Frank Bille Jensen
On Wed, 2006-06-07 at 21:12 -0700, Aaron Hiniker wrote: OK, so what could cause this to not work?? I have an image sitting in my war dir, I try to access it using the url scheme you provided, and I get this: 19:32:05,723 ERROR [SharedResourceRequestTarget] shared resource

Re: [Wicket-user] Wicket

2006-06-08 Thread Igor Vaynberg
getResponse().write(foo)getResponse().getOutputStream()-IgorOn 6/7/06, Gangadhar Vibhute [EMAIL PROTECTED] wrote:Hi All I want to use following methods of servlets in wicket how to use it response.getWriter() ServletOutputStream ouputStream =response.getOutputStream();

[Wicket-user] Connecting to a document fragment through a PageLink

2006-06-08 Thread Scott Sauyet
I would like my PageLink to connect to a specific location in the called page, e.g., to http://localhost:8080/myapp/?path=1#my-fragment Is this doable? I've been away from Wicket for a little while and think I've forgotten something simple. -- Scott

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Juergen Donnerstag
Is that true? You can tell Wicket not to print the tag. Using a Label to replace the tag body and disableing printing the tag itself should do it. Juergen On 6/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: no, this is not possible because wicket components can only be xml/html tags. you have

[Wicket-user] Obtaining the form for ajax in wicket.extensions.wizard.Wizard.java

2006-06-08 Thread JoseLuis Casas
Hello!I'm using the wizard component in wicket-extensions which I find veryconvenient for my project. In several of my wizard steps I need to add ajax behaviors, the problemis that I need a reference to the containing form as in: public AjaxSubmitButton(java.lang.String id,

[Wicket-user] Javadoc

2006-06-08 Thread Otan
Hola,Please make the Javadoc more informative. The Wicket Example is fine and I always learn from it, but, I think the example is limited; so, the Javadoc is the one I look into most of the time.I think it's Ok if the Javadoc of some classes and methods are completely blank; the class and method

Re: [Wicket-user] Javadoc

2006-06-08 Thread Martijn Dashorst
Please be more precise on *WHERE* you miss some javadoc. IIRC *ALL* components have usage documentation. I find personally the Javadoc documentation of Wicket above the average you will find for any open source project. MartijnOn 6/8/06, Otan [EMAIL PROTECTED] wrote: Hola,Please make the Javadoc

Re: [Wicket-user] WicketTester broken on 1.2?

2006-06-08 Thread Michael Day
I've tried that. It doesn't fix the problem. Also most tests in wicket core don't do that... Anyway, here is the code with that method: public class IndexedParamTest extends TestCase { public IndexedParamTest(String name) { super(name); } public void testPage() throws

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread John Patterson
On 8 Jun 2006, at 05:10, Johan Compagner wrote: Or make your own buffered response object (WebApplication.newWebResponse()) and override in the response object the public CharSequence encodeURL(CharSequence url) but then you have to analize the url and know which one you want to

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread John Patterson
On 8 Jun 2006, at 01:43, Timo Stamm wrote: Are you sure this issue is that important? In my experience, Google does index pages with a session id parameter in the URL. The session id is stripped in the search result URL, so I don't see any problems. See the quotes in my previous post from

Re: [Wicket-user] Binding package resources recursively

2006-06-08 Thread Eelco Hillenius
You can use additional paths too though. Like: http://localhost:8080/wicket-examples/forminput/resources/wicket.extensions.markup.html.datepicker.DatePickerSettings/style/aqua/active-bg.gif (/style/aqua/active-bg.gif is relative to DatePickerSettings class). Eelco On 6/7/06, Frank Bille Jensen

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Johan Compagner
you could return your own versions of ISessionStorethat pretty much doesn't do anything..Dont know if that always works..johanOn 6/8/06, John Patterson [EMAIL PROTECTED] wrote: On 8 Jun 2006, at 05:10, Johan Compagner wrote: Or make your own buffered response object

Re: [Wicket-user] navigation links not session depending

2006-06-08 Thread Martijn Dashorst
Use bookmarkable links. There is a great series of articles available on Wicket at JavaLobby, and a couple of them address the issue of links. You can find the links on our wiki (http://wicketframework.org/wiki) Martijn Dashorst On 6/6/06, Stefan Groschupf [EMAIL PROTECTED] wrote: Hi, I'm

Re: [Wicket-user] WicketTester broken on 1.2?

2006-06-08 Thread Johan Compagner
ahh the problem is that your HomePage is not directly rendered because you mount the homepagethen this code is encountered: BookmarkablePageRequestTarget homepageTarget = new BookmarkablePageRequestTarget( homePageClass, parameters); IRequestCodingStrategy requestCodingStrategy =

Re: [Wicket-user] WicketTester broken on 1.2?

2006-06-08 Thread Johan Compagner
fixed it by creating a new cycle right before the page is created with newPage()On 6/8/06, Michael Day [EMAIL PROTECTED] wrote:I've tried that.It doesn't fix the problem.Also most tests inwicket core don't do that... Anyway, here is the code with that method: public class IndexedParamTest extends

[Wicket-user] Can't resolve shared resource cookies.js

2006-06-08 Thread Saioa Arrizabalaga
Hi, I am trying to make it work the HelloWorld example, using Wicket (1.2) + OSGi (Knopflerfish 1.3.4). Unfortunately, I get a WicketRuntimeException when WebPage tries to resolve the cookies.js resource (below the complete stack trace). If I comment in the WebPage code where the call to this

Re: [Wicket-user] Obtaining the form for ajax in wicket.extensions.wizard.Wizard.java

2006-06-08 Thread Eelco Hillenius
On 6/8/06, JoseLuis Casas [EMAIL PROTECTED] wrote: Hello! I'm using the wizard component in wicket-extensions which I find very convenient for my project. Good to hear :) In several of my wizard steps I need to add ajax behaviors, the problem is that I need a reference to the containing

Re: [Wicket-user] Javadoc

2006-06-08 Thread Eelco Hillenius
I am sure that the maintainers would be happy to have patches against the javadoc where changes need to be made. Patches++. Eelco ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Can't resolve shared resource cookies.js

2006-06-08 Thread Eelco Hillenius
Could you please try against current trunk? Just this weekend I got rid of the need to preregister shared resources. Also, you might have to set another IClassResolver in IApplicationSettings for OSGi. I don't know the exact details on that, but there are enough people on this list that do work

Re: [Wicket-user] Can't resolve shared resource cookies.js

2006-06-08 Thread Johan Compagner
i wouldn't test against current trunk .johanOn 6/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Could you please try against current trunk? Just this weekend I got rid of the need to preregister shared resources.Also, you might have to set another IClassResolver inIApplicationSettings for

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Igor Vaynberg
i was referring to this:script type=text/_javascript_alert( 'span wicket:id=valuevalue/span' );/script will that work? ive tried it before and it didnt parse that portion, maybe because i had comments after script tag...-IgorOn 6/8/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Is that true?

Re: [Wicket-user] Javadoc

2006-06-08 Thread Igor Vaynberg
yes, patches++ !!-IgorOn 6/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I am sure that the maintainers would be happy to have patches against the javadoc where changes need to be made. Patches++.Eelco___Wicket-user mailing

Re: [Wicket-user] Can't resolve shared resource cookies.js

2006-06-08 Thread Eelco Hillenius
heh, sorry. That'll only work if you're at 2.0 already. But you probably are working at 1.2, so you need the latest code of the 1_2 branch. Or wait for 1.2.1 Eelco On 6/8/06, Johan Compagner [EMAIL PROTECTED] wrote: i wouldn't test against current trunk . johan On 6/8/06, Eelco

Re: [Wicket-user] AJAX within a Border gives an error

2006-06-08 Thread Juergen Donnerstag
A junit test case or at least a quickstart would make much easier for us to validate. Juergen On 6/8/06, Andrew Berman [EMAIL PROTECTED] wrote: I have a case where the hierarchy is set up like this: Border - WebMarkupContainer

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Juergen Donnerstag
Yes you are right. Everything in between script and /script is ignored. We do not interpret it at all. Juergen On 6/8/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i was referring to this: script type=text/javascript alert( 'span wicket:id=valuevalue/span' ); /script will that

[Wicket-user] wicket-phonebook

2006-06-08 Thread middledot
It looks as if wicket-phonebook has been updated to run under wicket-2.0. I've just svn'ed it and it does not compile under 1.2 It has other goodies in the constructors. How can I get hold of wicket-2.0 so that I can experiment with it, etc. Les -- View this message in context:

Re: [Wicket-user] AJAX within a Border gives an error

2006-06-08 Thread Andrew Berman
Ok, I'll see if I can find some time to whip something upOn 6/8/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:A junit test case or at least a quickstart would make much easier for us to validate.JuergenOn 6/8/06, Andrew Berman [EMAIL PROTECTED] wrote: I have a case where the hierarchy is set

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Johan Compagner
and that is pretty much impossible because there can be just code like:for(var i=0 i 10; i ++)that will kill every xml parser...johanOn 6/8/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: Yes you are right. Everything in between script and /script isignored. We do not interpret it at

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Aaron Hiniker
what about CDATA? script ![CDATA[ for( int i = 0; i 10; i++ ) { alert( ']]span wicket:id=valuespan![CDATA['); } ]] /script Ugly yes, but at least it could provide an option to keep the code in one place and use wicket for writing the values Aaron On Thu, 2006-06-08 at 21:00 +0200,

Re: [Wicket-user] Binding package resources recursively

2006-06-08 Thread Aaron Hiniker
Grabbed a 1.2 snapshot and, of course, it works now! (Doh!) Thanks! Aaron On Wed, 2006-06-07 at 21:44 -0700, Eelco Hillenius wrote: After looking at the code, it seems that this error message should not include the class name in the message. I've checked the .war deployment I have

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Eelco Hillenius
I think using a TextTemplate (see wicket-extensions, package wicket.extensions.util.resource) is a neater way to go. Eelco On 6/8/06, Aaron Hiniker [EMAIL PROTECTED] wrote: what about CDATA? script ![CDATA[ for( int i = 0; i 10; i++ ) { alert( ']]span

Re: [Wicket-user] wicket-phonebook

2006-06-08 Thread Gwyn Evans
Hmm, that's a pain - you're right... You can get the 1.2 version as https://svn.sourceforge.net/svnroot/wicket-stuff/tags/WICKET_1_2/wicket-phonebook wicket-phonebook or even as a download from SF - See http://wicket-stuff.sourceforge.net/wicket-phonebook/, but unfortunately, there's no 1.2

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Igor Vaynberg
+1On 6/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I think using a TextTemplate (see wicket-extensions, packagewicket.extensions.util.resource) is a neater way to go.EelcoOn 6/8/06, Aaron Hiniker [EMAIL PROTECTED] wrote:what about CDATA?script![CDATA[for( int i = 0; i 10; i++ ) {alert(

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Aaron Hiniker
I agree for the most part, and I am using TextTemplate in my current scenarios.. I'm just suggesting another option that could be made available that integrates a little nicer with wicket's models. Aaron On Thu, 2006-06-08 at 12:37 -0700, Igor Vaynberg wrote: +1 On 6/8/06,

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Eelco Hillenius
Yeah. Though the slippery slope is that is comes darn close to page scripting :) Eelco On 6/8/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I agree for the most part, and I am using TextTemplate in my current scenarios.. I'm just suggesting another option that could be made available that

Re: [Wicket-user] wicket-phonebook

2006-06-08 Thread Gwyn Evans
OK, download from https://svn.sourceforge.net/svnroot/wicket-stuff/branches/WICKET_1_2/wicket-phonebook to get a 1.2 version of the latest, which includes both Hibernate and IBATIS options. I should say I'm not an IBATIS expert, so could have missed something subtle, but it appears to be working

[Wicket-user] logout using BASIC authentication

2006-06-08 Thread Flavia Paganelli
Hi! I've been searching the list for an answer to this but couldn't find it. I found several discussions about similar topics but not an answer to this. I want to implement logout when using BASIC authentication. Invalidating the session (Session.invalidate()) does not seem to work because the

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Igor Vaynberg
not even that, we have an xml parser, even if we read whatever is inside script as cdata we cannot place components there because cdata doesnt contain tags.-IgorOn 6/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Yeah. Though the slippery slope is that is comes darn close to page scripting

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Aaron Hiniker
in the example I provided, the CDATA's are opened/closed around the _javascript_ code only, the wicket tag is not in the CDATA On Thu, 2006-06-08 at 13:10 -0700, Igor Vaynberg wrote: not even that, we have an xml parser, even if we read whatever is inside script as cdata we cannot place

Re: [Wicket-user] writing inside script tags or javascript 'quotes'

2006-06-08 Thread Aaron Hiniker
I haven't tested, but I would imagine that if you include the script tags within the CDATA, that the following construct would work: ![CDATA[ script for( int i = 0; i 10; i++ ) { alert( ']]span wicket:id=valuespan![CDATA['); } /script ]] as the xml parser would never see the script

Re: [Wicket-user] CheckGroup/Check path value

2006-06-08 Thread Sven Meier
Yes, the value of the checkbox doesn't matter, as long as the input name is unique. Sven Timo Stamm wrote: Johan Compagner schrieb: what whould happen if you have a checkgroup inside a listview again? how would you differentiate the 2 or 3 checkgroups values? You don't have to. The

[Wicket-user] AJAX IE errors

2006-06-08 Thread Aaron Hiniker
I am using AjaxFallbackLink to update components. In FF everything works fine, however in IE there are problems. The AJAX call executes (log statements are output from the server), but when it comes back to the client for updating I am getting the following error: ajax-response . this all

Re: [Wicket-user] AJAX IE errors

2006-06-08 Thread Igor Vaynberg
ie throws that stupid and useless error when you try to update certain elements on the page like thead, tbody, tr, some others.what element are you trying to update?-Igor On 6/8/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I am using AjaxFallbackLink to update components. In FF everything

Re: [Wicket-user] Dependency Injection vs Service Locator

2006-06-08 Thread David Leangen
Ben, Check out the Pax project at OPS4J. http://www.ops4j.org Cheers, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Fortuna Sent: 6 June 2006 22:56 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Dependency Injection

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread John Patterson
On 8 Jun 2006, at 09:52, Johan Compagner wrote: you could return your own versions of ISessionStore that pretty much doesn't do anything.. Dont know if that always works.. Thanks, I think I will try this approach and see what happens! I will be building a new site in the next month or two

Re: [Wicket-user] AJAX IE errors

2006-06-08 Thread Aaron Hiniker
ahhh.. I'm trying to update a tr that must be it! Aaron On Thu, 2006-06-08 at 15:05 -0700, Igor Vaynberg wrote: ie throws that stupid and useless error when you try to update certain elements on the page like thead, tbody, tr, some others. what element are you trying to

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Eelco Hillenius
I'm just about to check in changes that - finally - lets Wicket defer session creation until it is actually needed. The change is done for 2.0/ trunk, but we're currently voting on whether it is worth an API break. IBehavior has one additional method. If you haven't been reading the API docs not

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread John Patterson
On 8 Jun 2006, at 18:17, Eelco Hillenius wrote: I'm just about to check in changes that - finally - lets Wicket defer session creation until it is actually needed. The change is done for 2.0/ trunk, but we're currently voting on whether it is worth an API break. IBehavior has one additional

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Michael Day
I thought that was the point of 2.0--to break the API for a better product. =D Michael Day On Jun 8, 2006, at 6:17 PM, Eelco Hillenius wrote: I'm just about to check in changes that - finally - lets Wicket defer session creation until it is actually needed. The change is done for 2.0/

Re: [Wicket-user] Session ids and search engine bots

2006-06-08 Thread Eelco Hillenius
Yeah, it's in 2.0. We're having the - heated - discussion about backporting it so that it will be available in 1.2. Eelco On 6/8/06, Michael Day [EMAIL PROTECTED] wrote: I thought that was the point of 2.0--to break the API for a better product. =D Michael Day On Jun 8, 2006, at 6:17 PM,