Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
Hi All First of all i am using wicket 1.3.4. I have a problem with not being able to show html characters when using StringResourceModel together with xml property file. Xml property file doesnt support html tags because it not valid in an xml file. I have tried to escape the tag but then i will

Re: Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
I have set the flag but it still doesnt work. Can you confirmed this on your side? /Murat 2008/9/19 Michael Sparer [EMAIL PROTECTED] setEscapeModelStrings to false on your component (e.g. Label) and it should work Murat Yücel-2 wrote: Hi All First of all i am using wicket 1.3.4. I

Re: Wicket not secure?

2008-09-19 Thread Jörn Zaefferer
Though afaik the URL encryption will be even better with 1.3.5, where the encryption key is session-based, that is, per user, instead of one default key for everything (current 1.3.4 behaviour). Once that is released, you get unique-per-user URLs which provide perfect protection against CSRF

Re: Does StringResouceModel support html tags

2008-09-19 Thread Murat Yücel
Damn it works. Sorry for bothering the list. I probably tried to many things last night. Well thanks for the help :) 2008/9/19 Murat Yücel [EMAIL PROTECTED] I have set the flag but it still doesnt work. Can you confirmed this on your side? /Murat 2008/9/19 Michael Sparer [EMAIL PROTECTED]

onmouseover image

2008-09-19 Thread Tim Squires
Hi All, Before I go and write my own component to change the src of an img onouseover, I just wanted to make sure that there is no standard component. I don't want to re-invent the wheel. Is there a standard component for changing the Image or ImageButton image onmouseover? Thanks, Tim

setResponsePage(Page) and back button

2008-09-19 Thread Kristof Jozsa
Hi, I'd love to use setResponsePage(Page) (so redirecting to a concrete page instance instead of a page class) on handling standard (non-ajax) links in my application. I found it very handy to use the actual model objects in their current state, instantiate the new page object passing the current

Re: setResponsePage(Page) and back button

2008-09-19 Thread Martijn Dashorst
Avast! Did ye check furr t' nasty serialization errs? Them could sink a mighty ship and cause them pesky expiration pages. Capt'n McDasmans (t'is Internation'l Talk Like a pirate day t'day matey!) http://talklikeapirate.com On Fri, Sep 19, 2008 at 11:36 AM, Kristof Jozsa [EMAIL PROTECTED]

Re: setResponsePage(Page) and back button

2008-09-19 Thread Kristof Jozsa
Damn, you be starboard! Removin' t' only known unserializable booty from me base page class immediately solved t' problem. I bow before your mightyness, captain! Kristof Threapwood On Fri, Sep 19, 2008 at 11:41 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Avast! Did ye check furr t' nasty

1.4M4?

2008-09-19 Thread Stefan Lindner
Wicket in Action is out, the open issues for 1.4 are constantly decreasing. Is a 1.4M4 in sight? Stefan

Ajax-only-Form?

2008-09-19 Thread Markus
Hi all, I have an issue with a Form I want only to be available to users with Javascript turned on, so I used a AjaxButton, and set DefaultButton to the AjaxButton. But the Form still submits using 'Return' - rendering the Body only also kills the AjaxButton. Can anyone help me how to

Wicketstuff wishlist?

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Hi I'd really like a wish list for wicketstuff. So reply with your wishes and I might have time at a point to implement it:) I'll start by adding this to the list: Integration with : http://code.google.com/p/iui/ I'll add a wishlist to the wiki or maybe my blog.. -- -Wicket for love

Re: Transactions..... again!

2008-09-19 Thread James Carman
On Thu, Sep 18, 2008 at 11:20 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: aspectj is pretty cool, but its expression language is somewhat limited. for example salve allows public void somefunction(@NotNull Integer a, @NotEmpty String b) {} aspectj, at least when i started salve, did not have

Re: setResponsePage(Page) and back button

2008-09-19 Thread James Carman
Since it's International Talk Like a Pirate Day: A pirate walks into a bar with a steering wheel hanging out his zipper. The bartender says hey, buddy, did you know you've got a steering wheel hanging out your zipper? The pirate says A! And it's drivin' me nuts On Fri, Sep 19, 2008 at

Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
Dear Wicket devs, I propose that by default a disabled link should rather (or also) be marked using a behavior, instead of adding markup before and after. A word in advance: I know that I can implement my own version of Link which adds behavior in case of being disabled, and I know how to do it

Re: AW: Wicket and Mootools?

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Agent Mahone wrote: O, thank u very much for ur comments. I have some questions to you: 1. What is the package mini under contribution package for? What is the difference to package contribution/wicket-mootools??? Im not sure how well managed wicket-mootools are... 2. I also noticed

Re: Wicketstuff wishlist?

2008-09-19 Thread Jörn Zaefferer
Don't we have already at least one wishlist on the wicket wiki? http://cwiki.apache.org/WICKET/#Index-WishListforNextVersion Jörn On Fri, Sep 19, 2008 at 12:30 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi I'd really like a wish list for wicketstuff. So reply with your

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Why not just use an attribute modifier? pixologe wrote: Dear Wicket devs, I propose that by default a disabled link should rather (or also) be marked using a behavior, instead of adding markup before and after. A word in advance: I know that I can implement my own version of Link which adds

Re: Wicketstuff wishlist?

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
wicketstuff!=wicket :) And it should not go on the wicket wiki... Jörn Zaefferer wrote: Don't we have already at least one wishlist on the wicket wiki? http://cwiki.apache.org/WICKET/#Index-WishListforNextVersion Jörn On Fri, Sep 19, 2008 at 12:30 PM, Nino Saturnino Martinez Vazquez Wael

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
Actually that is what I do. That's what I meant when I said implement own version... Basically it extends AjaxFallbackLink overriding onBeforeRender to add a Modifier dependent on the enabled property. Just wanted to point out that this is the behavior I would have expected by default, instead

Re: Ajax-only-Form?

2008-09-19 Thread richardwilko
So if im understanding correctly your form is submitting in the non-ajax standard way when you press return on the input field? If so then this is my solution: http://www.richard-wilkinson.co.uk/2008/04/05/how-to-stop-non-ajax-form-submits-in-wicket/ Hope it helps, Richard Markus-66 wrote:

Re: Ajax-only-Form?

2008-09-19 Thread Markus
Hi Richard, thank you for your answer. But my Problem is, I want to cut out the people with JavaScript deactivated because they cannot use the GoogleMaps-functionality, what makes it kinda useless to submit the form. Your prototype-approach won´t work that way. Perhaps I only add a warning-div

Re: Ajax-only-Form?

2008-09-19 Thread richardwilko
In that case use an ajax submit link rather than a button (which uses a href and an onclick), with no button in the form. However I dont think this will stop the enter key from submitting the form... You could also try lazy loading the form with ajax, that way you can be sure that if they see

AW: Ajax-only-Form?

2008-09-19 Thread Markus
Hi Richard, that seems a very good idea, thank you, didn´t come into my mind... *d0h* ;) Regards Markus -Ursprüngliche Nachricht- Von: richardwilko [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2008 15:17 An: users@wicket.apache.org Betreff: Re: Ajax-only-Form? In that

Re: Wicketstuff wishlist?

2008-09-19 Thread Jörn Zaefferer
Oops, I missed that bit! Well, then I add: Annotations for form validation. Maybe integrated with the bean validation JSR, Hibernate Validation or standalone. Enabled by adding AnnotationValidator instance to a form or indivdual fields... Jörn On Fri, Sep 19, 2008 at 2:05 PM, Nino Saturnino

Java BlackBelt Wicket exam

2008-09-19 Thread Eyal Golan
Hi, I have proposed to open a Wicket exam in JavaBlackBelt. Here's my proposal: http://www.javablackbelt.com/forum/posts/list/0/118.page#567 Please check it and give your thoughts. I have already written several questions (to myself). Thanks -- Eyal Golan [EMAIL PROTECTED] Visit:

Disabling RadioGroup via authorization strategy does not disable contained Radio buttons

2008-09-19 Thread Joel Hill
I'm doing some component-based authorization and I'm trying to disable an entire RadioGroup without having to tie the authorization to each individual Radio button. Were I to directly disable the RadioGroup, it looks like the Radio buttons would also disable (but I haven't tested this); but it

Re: Wicket not secure?

2008-09-19 Thread Igor Vaynberg
that is trivial to implement with 1.3.4 also -igor On Fri, Sep 19, 2008 at 12:51 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Though afaik the URL encryption will be even better with 1.3.5, where the encryption key is session-based, that is, per user, instead of one default key for everything

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread Igor Vaynberg
disabled is more then just about the appearance, if something is disabled the user should not be able to interact with it. for example, security strategy can disable links the user does not have access to. just adding class=disabled leaves the link clickable. -igor On Fri, Sep 19, 2008 at 4:21

Re: Wicket not secure?

2008-09-19 Thread Jörn Zaefferer
Sure, but why bother when its already implemented? Security-related stuff isn't exactly the right place to roll your own. Jörn On Fri, Sep 19, 2008 at 4:34 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: that is trivial to implement with 1.3.4 also -igor On Fri, Sep 19, 2008 at 12:51 AM, Jörn

Re: Wicket not secure?

2008-09-19 Thread Igor Vaynberg
you dont have to roll your own security, just where wicket looks for the key :) -igor On Fri, Sep 19, 2008 at 7:40 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Sure, but why bother when its already implemented? Security-related stuff isn't exactly the right place to roll your own. Jörn On

Re: Java BlackBelt Wicket exam

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Hi It looks fairly simple, I guess it depends on the depth of the exam... Because it could go over a lot more, or maybe the points could specified to further detail as you write. Eyal Golan wrote: Hi, I have proposed to open a Wicket exam in JavaBlackBelt. Here's my proposal:

Re: Java BlackBelt Wicket exam

2008-09-19 Thread James Carman
Perhaps it could be for a yellow belt. ;) On Fri, Sep 19, 2008 at 11:09 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi It looks fairly simple, I guess it depends on the depth of the exam... Because it could go over a lot more, or maybe the points could specified to

Re: AW: Wicket and Mootools?

2008-09-19 Thread mahone9
I think I´m gonna use scriptaculous. It´s much more easier to use it and I guess you can also compress the js files as mootools does. Scriptaculous provides almost that much effects as mootools. JQuery is very poor on effects... Nino.Martinez wrote: Agent Mahone wrote: O, thank u very

Re: Java BlackBelt Wicket exam

2008-09-19 Thread Eyal Golan
People, it just a first draft. As you saw in the first post, I just wanted to add questions for a Wicket exam, and notified that there isn't. Maybe it's possible to create a basic exam and a more advanced one? I think we can all contribute. On Fri, Sep 19, 2008 at 6:11 PM, James Carman [EMAIL

Re: Java BlackBelt Wicket exam

2008-09-19 Thread James Carman
I didn't mean to offend. I was being facetious. I think it's a great idea to have different levels. On Fri, Sep 19, 2008 at 11:29 AM, Eyal Golan [EMAIL PROTECTED] wrote: People, it just a first draft. As you saw in the first post, I just wanted to add questions for a Wicket exam, and

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
Of course, you are right. Sorry, what I wrote was not completely clear. It can make sense to change the markup in order to disable a link. It definitely makes sense to exchange [a] with [span], yes. I was merely targeting at the appearance part: I think that adding markup between this [span]

Re: Java BlackBelt Wicket exam

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Yeah.. It's good:) What about covering the stuff WIA drags you through, that should be good enough for a brown belt:) James Carman wrote: I didn't mean to offend. I was being facetious. I think it's a great idea to have different levels. On Fri, Sep 19, 2008 at 11:29 AM, Eyal Golan

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread Igor Vaynberg
On Fri, Sep 19, 2008 at 9:24 AM, pixologe [EMAIL PROTECTED] wrote: Of course, you are right. Sorry, what I wrote was not completely clear. It can make sense to change the markup in order to disable a link. It definitely makes sense to exchange [a] with [span], yes. I was merely targeting at

CSS NOT FOUND

2008-09-19 Thread Murilo Aguiar
What is wrong with my CSS??? *TemplatePage.java public TemplatePage(){ add(HeaderContributor.forCss(template.css));* In the browser *head title wicket:id=titleSisWicket 0.1 testKiller/title link rel=stylesheet type=text/css href=template.css / /head *File template.css is

Re: CSS NOT FOUND

2008-09-19 Thread Igor Vaynberg
use forCss(TemplatePage.class, template.css) -igor On Fri, Sep 19, 2008 at 10:45 AM, Murilo Aguiar [EMAIL PROTECTED] wrote: What is wrong with my CSS??? *TemplatePage.java public TemplatePage(){ add(HeaderContributor.forCss(template.css));* In the browser *head title

Re: Disabling RadioGroup via authorization strategy does not disable contained Radio buttons

2008-09-19 Thread Igor Vaynberg
create a jira issue for this -igor On Fri, Sep 19, 2008 at 7:11 AM, Joel Hill [EMAIL PROTECTED] wrote: I'm doing some component-based authorization and I'm trying to disable an entire RadioGroup without having to tie the authorization to each individual Radio button. Were I to directly

Re: Wicket sample application

2008-09-19 Thread superoverdrive
But none with database access ? Original-Nachricht Datum: Thu, 18 Sep 2008 05:05:21 -0700 (PDT) Von: Michael Sparer [EMAIL PROTECTED] An: users@wicket.apache.org Betreff: Re: Wicket sample application just go a click further and you'll find plenty

Re: Wicket sample application

2008-09-19 Thread Igor Vaynberg
see wicket-phonebook in wicket-stuff svn -igor On Fri, Sep 19, 2008 at 10:54 AM, [EMAIL PROTECTED] wrote: But none with database access ? Original-Nachricht Datum: Thu, 18 Sep 2008 05:05:21 -0700 (PDT) Von: Michael Sparer [EMAIL PROTECTED] An: users@wicket.apache.org

Re: Wicket sample application

2008-09-19 Thread Eelco Hillenius
Phonebook has db access. And one of the examples that come with Wicket In Action has that too. Eelco On Fri, Sep 19, 2008 at 10:54 AM, [EMAIL PROTECTED] wrote: But none with database access ? Original-Nachricht Datum: Thu, 18 Sep 2008 05:05:21 -0700 (PDT) Von: Michael

Re: CSS NOT FOUND

2008-09-19 Thread Murilo Aguiar
thanks a lot ... very simple Murilo Aguiar 2008/9/19 Igor Vaynberg [EMAIL PROTECTED] use forCss(TemplatePage.class, template.css) -igor On Fri, Sep 19, 2008 at 10:45 AM, Murilo Aguiar [EMAIL PROTECTED] wrote: What is wrong with my CSS??? *TemplatePage.java public

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
would you mind giving a hint? igor.vaynberg wrote: On Fri, Sep 19, 2008 at 9:24 AM, pixologe [EMAIL PROTECTED] wrote: Of course, you are right. Sorry, what I wrote was not completely clear. It can make sense to change the markup in order to disable a link. It definitely makes sense to

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread Igor Vaynberg
application.getmarkupsettings() -igor On Fri, Sep 19, 2008 at 11:15 AM, pixologe [EMAIL PROTECTED] wrote: would you mind giving a hint? igor.vaynberg wrote: On Fri, Sep 19, 2008 at 9:24 AM, pixologe [EMAIL PROTECTED] wrote: Of course, you are right. Sorry, what I wrote was not

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
setDefault*DisabledLink? I know them and I am using them, as I already wrote. Just considered it would be nice to have setDefaultDisabledLinkBehavior, too. And that I think it would be more obvious to have this applied by default. Was just a proposal, never mind. igor.vaynberg wrote:

Re: Transactions..... again!

2008-09-19 Thread Erik van Oosten
Ryan, Here is how I do this with Spring: http://day-to-day-stuff.blogspot.com/2008/08/java-transaction-boundary-tricks.html Its not as pretty as Salve's @Transactional but just as effective. Regards, Erik. Ryan wrote: Aside from these ideas, has anyone used a different method for

Re: Wicket sample application

2008-09-19 Thread Gwyn Evans
http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation On Fri, Sep 19, 2008 at 7:00 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: Phonebook has db access. And one of the examples that come with Wicket In Action has that too. Eelco On Fri, Sep 19, 2008

Re: Markup for disabled Link - Proposal (add behavior instead of markup)

2008-09-19 Thread pixologe
Thanks for inspiration, igor. :) Well, it would not help the mentioned problem of not being able to change the style of an element depending on its child elements. However, as I thought about this, I realized that I could do some global changes in the weird templates and stylesheets I got, so CSS

Kill session on closing browser

2008-09-19 Thread insom
Does anyone know how a browser would find a pre-existing session after being closed and reopened? I got a call from a user today who is able to stay logged in, even after she closes her browser. I had thought that closing a browser essentially destroys that user's session (at least from the

Re: Kill session on closing browser

2008-09-19 Thread James Carman
Are they closing all instances of the browser? On Fri, Sep 19, 2008 at 3:30 PM, insom [EMAIL PROTECTED] wrote: Does anyone know how a browser would find a pre-existing session after being closed and reopened? I got a call from a user today who is able to stay logged in, even after she closes

Re: Kill session on closing browser

2008-09-19 Thread Matej Knopp
Either the browser doesn't kill cookie on close or she has cookies disabled, had url with session id encoded and returned back to that url while the session was still active server side. -Matej On Fri, Sep 19, 2008 at 9:34 PM, James Carman [EMAIL PROTECTED]wrote: Are they closing all instances

Re: Wicket sample application

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Theres even the blog tutorial thing I did once aswell, although discontinued (as I thought no one used it)... http://cwiki.apache.org/WICKET/blog-tutorial.html Gwyn Evans wrote: http://cwiki.apache.org/WICKET/documentation-index.html#DocumentationIndex-Codeasdocumentation On Fri, Sep 19,

Re: Kill session on closing browser

2008-09-19 Thread insom
It turns out she did have another browser window open. I witnessed the issue on her machine, but I haven't been able to replicate it on my own. I've tried visiting the website, logging in, opening another browser window, then closing either the new or the old window (I've tried both ways),

Re: Kill session on closing browser

2008-09-19 Thread insom
I figured it out. If you login to the site, then open another window and visit to the site you will have to login again. But if you login to the site, then open a shortcut in a new window that goes directly to http://www.foodhandler.org, you will be already logged in. I have no idea why opening

Re: Kill session on closing browser

2008-09-19 Thread Maarten Bosteels
On Sat, Sep 20, 2008 at 12:45 AM, insom [EMAIL PROTECTED] wrote: I figured it out. If you login to the site, then open another window and visit to the site you will have to login again. But if you login to the site, then open a shortcut in a new window that goes directly to

Re: Kill session on closing browser

2008-09-19 Thread insom
I see what you're seeing in Firefox. I didn't clarify that the user who submitted the issue was using IE7, which is where I got the results explained previously. It seems that if I use a shortcut to the URL, or if I open a new IE window while logged in, it will find the existing cookie.

Re: Kill session on closing browser

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
It's fine here I think.. BTW just got the internal error page from your application, so could not checkout your problem... No messages, so must mean you are deploying in production mode.. insom wrote: I see what you're seeing in Firefox. I didn't clarify that the user who submitted the

Re: Wicketstuff wishlist?

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Great:) First shot will probably be Hibernate Validation (is general and works without hibernate with any JPA provider), since I have a demo project for that, validation JSR 303 arent done yet AFAIK.. And I think im gonna try to use IVisitor to do it.. So it's actually a fairly simple one:)

Re: Wicketstuff wishlist?

2008-09-19 Thread Ryan Sonnek
On Fri, Sep 19, 2008 at 9:02 AM, Jörn Zaefferer [EMAIL PROTECTED] wrote: Well, then I add: Annotations for form validation. Maybe integrated with the bean validation JSR, Hibernate Validation or standalone. Enabled by adding AnnotationValidator instance to a form or indivdual fields...

Re: Wicketstuff wishlist?

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Baah.. Theres already something on it: https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-hibernate-behavior/ something on it here: http://jroller.com/wireframe/entry/hibernate_annotations_and_wicket Anything else for the wish list not already existing? :) Nino

Re: Forwarding to a servlet

2008-09-19 Thread Nino Saturnino Martinez Vazquez Wael
Hi David I think you could just use response.sendRedirect() and request.forward() , rest of the code should still be processed.. But are you expecting the user to return from the servlet? David Leangen wrote: Hi! What's a clean way to forward a request to another existent non-Wicket

Re: hi, question about wicket maven project

2008-09-19 Thread shrimpywu
hi, what do u mean by hot code replace?? every time i run i app, i always do mvn clean jetty:run, but everytime after jetty was started, any html page i modified, it won`t show the change until i manually copy and replace the html page from src folder to target folder, and my project, i do