[Wicket-user] How to use AuthenticatedWebApplication together with AnnotSpringWebAppli

2006-06-09 Thread itsliang
I'd like to use annotation for spring in my wicket application, and I know I can get that working by extending AnnotSpringWebApplication. I would also like to use wicket auth roles as well, and it can be done by extending AuthenticatedWebApplication. But what if I want to use both of them

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

2006-06-09 Thread Johan Compagner
how ugly is thatAnd what does the alert alerts you? As far as i can see it really doesn't know that it also should print ']] _javascript_ just sees that as a string.johan On 6/8/06, Aaron Hiniker [EMAIL PROTECTED] wrote: I haven't tested, but I would imagine that if you include the

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

2006-06-09 Thread Juergen Donnerstag
I think we should keep it (the parser) simple. To me it has always be an advantage of Wicket that it is not only easy to use but its internals are in general (not always ofcourse) not complicated as well. We have 2+ solutions for the problem mentioned ealier and such a request hasn't been raised

[Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Stefan Kanev
Hi. Is there a quick way to implement the sorting of the DataTable with AJAX, or should I go rewriting everything from the OrderByLink to the HeadersToolbar? ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Juergen Donnerstag
Isn't one of the ajax examples a sortable, pageable list? On 6/9/06, Stefan Kanev [EMAIL PROTECTED] wrote: Hi. Is there a quick way to implement the sorting of the DataTable with AJAX, or should I go rewriting everything from the OrderByLink to the HeadersToolbar?

[Wicket-user] PageLink onClick, never gets called?

2006-06-09 Thread Nino Wael
Hi Im a little curious since I recall doing this earlier.. Now it seems that PageLink onClick never gets called why is that? See snip below Html: INPUT type=submit wicket:id=openword value=Aring;ben i word / Java snip: myReport = new PageLink(openword, new IPageLink()

Re: [Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Stefan Kanev
I don't see an AJAX sortable example with the DataTable component (Wicket extensions). Can you point me to it, if I have missed it, please? ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net

Re: [Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Juergen Donnerstag
I've no access to it right now. Wicket-examples contains AJAX examples and I thought it contains a simple pageable and sortable list as well. Might be though that I'm mistaken and it is only pageable. Juergen On 6/9/06, Stefan Kanev [EMAIL PROTECTED] wrote: I don't see an AJAX sortable example

Re: [Wicket-user] wicket-phonebook

2006-06-09 Thread middledot
thanks Gwyn for your help. I'm quite happy to get the latest branch as it will allow me to see what's coming up on the wicket menu Les -- View this message in context: http://www.nabble.com/wicket-phonebook-t1756767.html#a4794747 Sent from the Wicket - User forum at Nabble.com.

Re: [Wicket-user] PageLink onClick, never gets called?

2006-06-09 Thread Nino Wael
I guess the real question dwelve. Reason why I tried to use the onclick is that I have some infos in the onRender function of the link, this code does get run. But it seems that the infos just dosent get rendered, if I refresh the page they do get shown. So why would that be, because they cant

Re: [Wicket-user] logout using BASIC authentication

2006-06-09 Thread Eelco Hillenius
AFAIK, the principal does stay in the current request, but won't be in the next. So what you need to do is invalidate the session, and then render another page (like Login or something) with setResponse page. Another option is to throw a RestartResponseException to immediately break off any

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

2006-06-09 Thread Eelco Hillenius
Hi Scott, It's doable, but not implemented as something standard in Wicket. There is a feature request for it here: http://sourceforge.net/tracker/index.php?func=detailaid=1491239group_id=119783atid=684978 Basically, you can make a custom link that reads the href attribute (href=#anAnchor), and

Re: [Wicket-user] Url for resource

2006-06-09 Thread Eelco Hillenius
Is there simpler way to get the URL? Yep. Pre-regestering resources is not necesarry in trunk (2.0) and current 1.2 (to be released as 1.2.1... it's not in 1.2 yet), so this should do the trick: final CharSequence url = urlFor(new PackageResourceReference(Link.class, testForm.swf)); BTW,

Re: [Wicket-user] How to use AuthenticatedWebApplication together with AnnotSpringWebAppli

2006-06-09 Thread Igor Vaynberg
there was a thread very recently ( 2 days ago? ) about the same thing, please search the list.-IgorOn 6/9/06, itsliang [EMAIL PROTECTED] wrote:I'd like to use annotation for spring in my wicket application, and I know I can get that working by extending AnnotSpringWebApplication. I would alsolike

Re: [Wicket-user] How to use AuthenticatedWebApplication together with AnnotSpringWebAppli

2006-06-09 Thread Eelco Hillenius
It's something we might solve a bit neater sometime, but currently, I would recommend just extending AnnotSpringWebApplication, and then copying from AuthenticatedWebApplication the things you are interested in. The easiest way to go is just copy AuthenticatedWebApplication to your own project,

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

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: Basically, you can make a custom link that reads the href attribute (href=#anAnchor), and that appends that attribute to the URL. Something like this: Thank you. I will take a look at it as soon as I can. Your code doesn't work out of the box for me, as I'm right now

Re: [Wicket-user] Sortable DataTable with AJAX

2006-06-09 Thread Igor Vaynberg
yep, we dont have support for that yet. datatable and friends were built way before we had ajax support. what we need to do is create an ajaxified order by link and create factory on the headerstoolbar to generate links just like the tabbedpanel does. this is a bit of work and i dont know if

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

2006-06-09 Thread Eelco Hillenius
I think it is quite easy? If we implement that feature request it would be easier as it would be build in. But so many hours in a day... I actually forgot part of the code: new Link(mylink) { protected CharSequence getURL() { String anchor = getMarkupAttributes().getString(href);

[Wicket-user] Loading Tree component images

2006-06-09 Thread Paulo Sérgio Medeiros
Hi,Im trying to use the tree component ... everthing seems to be ok (on the content side), except that minus and plus images aren't loading on the browser ...the location created by Wicket is: http://localhost:8080/Mapeador/mapeador/resources/wicket.markup.html.tree.Tree/minus.gifand this location

Re: [Wicket-user] Loading Tree component images

2006-06-09 Thread Eelco Hillenius
What version of Wicket are you using? We just changed resource loading this weekend, so it might be worth trying the current code in the 1.2 branch Eelco On 6/9/06, Paulo Sérgio Medeiros [EMAIL PROTECTED] wrote: Hi, Im trying to use the tree component ... everthing seems to be ok (on the

[Wicket-user] Help: problem with wicket-phonebook 1.2

2006-06-09 Thread qzheng
Hi, I am new to wicket. I just downloaded wicket-phonebook 1.2. When I started jetty, I get the following exceptions: 2006-06-09 17:04:50,968 ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error

Re: [Wicket-user] Loading Tree component images

2006-06-09 Thread Paulo Sérgio Medeiros
1.2 release, but not current, from cvs ... is this really a bug? i thought that it was something that i've been missing in my configuration. Actually i develop my wicket application using Eclipse 3.1.2 and tomcat 5.5.17 ... i don't know if this is important but i use wicket as a jar, i was

Re: [Wicket-user] Loading Tree component images

2006-06-09 Thread Eelco Hillenius
Well, it should work alright for you. But of course we had a good reason to change the resource loading; besides being extra work which makes it harder to write components, it kept on giving various problems. That's why I was curious whether just updating would fix your problem, so that we don't

Re: [Wicket-user] Loading Tree component images

2006-06-09 Thread Paulo Sérgio Medeiros
ok, i'll update and give you a feedback.On 6/9/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Well, it should work alright for you. But of course we had a goodreason to change the resource loading; besides being extra work which makes it harder to write components, it kept on giving variousproblems.

Re: [Wicket-user] Help: problem with wicket-phonebook 1.2

2006-06-09 Thread Igor Vaynberg
nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vlooks like asm depenendcy needed by hibernate is missing? -IgorOn 6/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:Hi,I am new to

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

2006-06-09 Thread Scott Sauyet
Eelco Hillenius wrote: I think it is quite easy? If we implement that feature request it would be easier as it would be build in. But so many hours in a day... I actually forgot part of the code: [ ... ] Okay, now it was easy! [1] Thanks. Here's what I did: contents.add(new

Re: [Wicket-user] Loading Tree component images

2006-06-09 Thread Paulo Sérgio Medeiros
hehehe, yeah always the simple things ... thank you :-)On 6/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote:its always the simple things :)-Igor On 6/9/06, Eelco Hillenius [EMAIL PROTECTED] wrote:Erm. Yeah. That's a good point too. :)EelcoOn 6/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: make sure

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

2006-06-09 Thread Eelco Hillenius
Somewhere I have to start naming these intermediate objects; the end of my statements are starting to look like Lisp code! :-) Of course, you don't *have* to use annonymous classes. Make a reusable class, and see how much more readable your code will be :) It works, and I guess that's what's