Re: Stateless form submission

2007-10-01 Thread shumbola
Igor, How to use captcha on stateless form then? Is there a way I can detect construction of page was either due to page reference or form submission? Thank you! shumbola igor.vaynberg wrote: yes, that is what stateless pages work. when you submit the whole page is recreated from

Re: Setting up ComponentTags for user submitted youtube links

2007-10-01 Thread Martijn Dashorst
Create a YouTubePanel: class YouTubePanel extends Panel { private int width; private int height; public YouTubePanel(String id, IModel src) { super(src); add(new AttributeModifier(width, true, new PropertyModel(this, width))); add(new AttributeModifier(height,

Re: Wicket menu with submenu dialog window

2007-10-01 Thread Kent Tong
lizz wrote: Has anyone made a menu (with menu items and submenus) in wicket? I would like a menu that looks more or less like the Swing JMenu. I saw a reference to http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-extensions-menubar/ but didn’t find that project.

Re: Setting up ComponentTags for user submitted youtube links

2007-10-01 Thread Ballist1c
Thanks mate, thats PERFECT! haha.. i just found attributeModifier setup!!! lol rad!!! Martijn Dashorst wrote: Create a YouTubePanel: class YouTubePanel extends Panel { private int width; private int height; public YouTubePanel(String id, IModel src) { super(src);

Using WicketTester with a custom WebSession

2007-10-01 Thread Jonnie
Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester uses a MockSession. Is there any way I can

Disabling of Wizard Cancel button

2007-10-01 Thread Vit Rozkovec
Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the possibility to also disable the cancel button? Or if I can do it somehow myself and get it to trunk, I will do, just tell me. I use wizard for

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread lizz
I have three wizard steps A, B and C In step B I have a drop down choice. Whether step c is valid or not depends on the selection in the drop down choice in step B. Everytime the user changes the selection in the drop down choice the wizard must be updated (the evaluate method must be run) since

Re: Onclick and ondblclick on same element

2007-10-01 Thread Federico Fanton
On Fri, 28 Sep 2007 16:43:05 +0200 Federico Fanton [EMAIL PROTECTED] wrote: My problem is that when I double click on the row three events are fired: two onclick and one ondblclick.. Is this normal? Is there a way to isolate the last event and ignore the first two? I googled some more, and

Re: Using WicketTester with a custom WebSession

2007-10-01 Thread Rüdiger Schulz
2007/10/1, Jonnie [EMAIL PROTECTED]: Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I use WicketTester to test my Wicket application it always complains about casting the session, I understand this to be because the WicketTester

Re: Using WicketTester with a custom WebSession

2007-10-01 Thread Jonnie
No I don't provide my custom application to the tester. I've had a look at the API, how do I provide this to the tester? Rüdiger_Schulz wrote: 2007/10/1, Jonnie [EMAIL PROTECTED]: Hello I'm fairly new to Wicket so forgive me if the answer is obvious and I've missed something. When I

Re: Onclick and ondblclick on same element

2007-10-01 Thread swaroop belur
Hi Try this out . This may surely not be the best way to do it. Here when u dbl click, the single click event still occurs...but i am using a variable to detect whether dbl click event happened before or not. In that case, i simply return after toggling back. Click Test code

Re: Help - Best Practice - Mapping Database Constraint Violation to User Interface

2007-10-01 Thread Al Maw
mchack wrote: Could someone provide a pointer/link as to the best mechanism to map DB constraint violations from Hibernate (or ORM layer) back to the user interface layer. I'm sure this has been solved but wasn't successful in searching for an answer. I'm not sure if this is the best way to do

Re: Onclick and ondblclick on same element

2007-10-01 Thread Federico Fanton
On Mon, 1 Oct 2007 02:10:13 -0700 (PDT) swaroop belur [EMAIL PROTECTED] wrote: b1.setThrottleDelay(Duration.valueOf(1000)); // Make sure dbl click happens before onclick So the delay takes place *before* the first event, not after? I see.. Many thanks! :)

wicket datetime / YUI calendar

2007-10-01 Thread Nino Saturnino Martinez Vazquez Wael
What's planed for the calendar? I have an issue(I'll file a bug if asked to): Selecting a date on calendar goto another (wicket)page return to the page with calendar and now default date a selected again. I do not do anything special to preserve the date for the calendar, it does not

Re: wicket datetime / YUI calendar

2007-10-01 Thread Gerolf Seitz
hi nino, @ your problem: if there is no model which can be updated (ie with an AjaxFormComponentUpdatingBehavior), so wicket doesn't know what happened on the client side. as a consequence the calendar is initialized with the default dates. are we talking about a standalone calendar with an

Re: Wicket menu with submenu dialog window

2007-10-01 Thread Nino Saturnino Martinez Vazquez Wael
You should really create wicket stuff project for this. Or perhaps it's something for the minis? Kent Tong wrote: lizz wrote: Has anyone made a menu (with menu items and submenus) in wicket? I would like a menu that looks more or less like the Swing JMenu. I saw a reference to

Re: Using WicketTester with a custom WebSession

2007-10-01 Thread Rüdiger Schulz
At least in 1.3 you can pass it to the constructor. Don't know for 1.2 though. You can try the archive at nabble. 2007/10/1, Jonnie [EMAIL PROTECTED]: No I don't provide my custom application to the tester. I've had a look at the API, how do I provide this to the tester? Rüdiger_Schulz

Wicket Meetup Amsterdam: a proposal

2007-10-01 Thread Arje Cahn
Hi all, Since it's been a bit quiet about the Amsterdam Meetup lately, I was thinking of simply proposing a date and a venue myself. Maybe I missed out on the conversation, in which case I apologize upfront! By no means I'm trying to push this into a 'real conference' - these things grow over

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: I have three wizard steps A, B and C In step B I have a drop down choice. Whether step c is valid or not depends on the selection in the drop down choice in step B. Everytime the user changes the selection in the drop down choice the wizard must be updated (the evaluate

Newbie Question Loading localization Resources from Database

2007-10-01 Thread marcus dickerhof
Hi, could you please help me with the following problem: I use wicket 1.3.0 beta 3 + java 1.4.2 + tomcat 5.5 I wrote a small page that has a wicket:message key=helloWorld when running tomcat I get: [Localizer] Tried to retrieve a localized string for a component that has not yet been added to

Can't locate an image file...

2007-10-01 Thread Neil B. Cohen
I am experimenting with the simplest of the Wicket examples. I was trying to add an image to the SignIn example page. My html code looks like this: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html xmlns:wicket=http://wicket.apache.org/;headtitleWicket Examples - si gnin/title

Re: Can't locate an image file...

2007-10-01 Thread Martijn Dashorst
You need to tell wicket to search for the image. So you have to either: 1. add an Image component to the signin page/panel 2. surround (at least) the img tag with wicket:link/wicket:link Otherwise WIcket will not know that it should look for the image on the classpath. Martijn On 10/1/07,

Re: Page.detachModels() not working like it used to

2007-10-01 Thread Dan Syrstad
So the contract of the method has changed since 1.2.6? -Dan On 10/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i think the way it works now is that there is a visitor that goes through the hierarchy and calls detach() on every component. so there is no need for detachmodels to do much more

Prompting a User to Save When Leaving a Page

2007-10-01 Thread JulianS
I'd like to know if there is a way to prompt a user to save when leaving a page using Wicket 1.2.6. I need to display a confirmation message only if the form has been dirtied. There is a javascript-only solution http://www.4guysfromrolla.com/webtech/100604-1.shtml here . It's kind of ugly

Re: Page.detachModels() not working like it used to

2007-10-01 Thread Igor Vaynberg
guess so -igor On 10/1/07, Dan Syrstad [EMAIL PROTECTED] wrote: So the contract of the method has changed since 1.2.6? -Dan On 10/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i think the way it works now is that there is a visitor that goes through the hierarchy and calls detach()

hide/show components - role based

2007-10-01 Thread Juan Gabriel Arias
Hi all, im working with Wicket 1.2.4, Spring and Acegi. Im trying to dinamically show or hide html components, like links, buttons, etc. Is there a best practice in wicket? Im also using wicket-auth-roles, and i've been digging a little, but i couldn't find a way to do this. BTW, i already

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Matt Jensen
You would probably have to subclass WizardModel, or come up with a new IWizardModel implementation completely. The former will probably suffice, unless some strategic methods are declared final. lizz wrote: I really dont want to add more steps that the ones I already have. for the case

Re: Wicket menu with submenu dialog window

2007-10-01 Thread Doug Leeper
I forgot to mention which menus are currently supported in menu2: - MenuBar - Menu - Group Menu (with and without labels) Looking for help with ContextMenu as it is a beast in itself. Anyone created/integrated YUI ContextMenu with Wicket? -- View this message in context:

Nabble Hint - Escaping Blocks of HTML in posts

2007-10-01 Thread mchack
I got this as a response from Nabble support regarding ways to escape blocks of HTML in posts without having to escape each individual and with lt; and gt;. You can now escape HTML by putting it between and .

Nabble Hint - Escaping Blocks of HTML in Nabble Posts

2007-10-01 Thread mchack
I got this as a response from Nabble support regarding ways to escape blocks of HTML in posts without having to escape each individual and . http://www.nabble.com/What-is-the-best-way-to-include-html-markup-in-froum-posts--tf4430044.html#a12985836 You can now escape HTML by putting it between

Re: Disabling of Wizard Cancel button

2007-10-01 Thread Ballist1c
Hey Vit, umm you may want to create a new thread for this topic Ví­t Rozkovec wrote: Hi, I am using wizard, its dynamic variant with DynamicWizardModel, DynamicWizardStep and IDynamicWizardStep. Would it be possible to add to wizard the possibility to also disable the cancel button?

Re: Newbie Question Loading localization Resources from Database

2007-10-01 Thread Cristina
Hi Marcus, marcus dickerhof wrote: [...] Question: Can it be, that the Session-Locale is not used, because of the Localizer-Problem? Which locale is used instead? If you're setting the Locale in your Session (probably a class that extends WebSession) and then getting the Locale through

Re: How do I force evaluate in a Wizard steps condition to run?

2007-10-01 Thread Kent Tong
lizz wrote: I really dont want to add more steps that the ones I already have. for the case when step c is no longer valid I woild like the next button to be disabled and the finish button to be enabled. Isn't there a method for updating the button panel? As I said, you can enable

Re: hide/show components - role based

2007-10-01 Thread Kent Tong
Juan Gabriel Arias wrote: Im trying to dinamically show or hide html components, like links, buttons, etc. something like: public class MyPage { public MyPage() { Link myLink = ...; MetaDataRoleAuthorizationStrategy.authorize(myLink, RENDER, role1,role2); } } -- View

Re: Newbie Question Loading localization Resources from Database

2007-10-01 Thread Eelco Hillenius
//funny effect locale.getLanguage() -- Nullpointer Exception //I have to call locale.clone().getLanguage(). Is that normal? ? Could you give us the full stack trace please? Eelco - To unsubscribe, e-mail: [EMAIL