Re: Label is driving me a *little* crazy

2008-01-27 Thread Andy Czerwonka
Did something change in 1.3? http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.FormPage This simple example doesn't work for me either. I get a 1. [MarkupContainer [Component id = feedback, page = ca.arcticpenguin.mff.NewListingPage, path =

Re: Wicket Security - runtime ACLs and Groups help plz

2008-01-27 Thread Maurice Marrink
There is no example application (that i know of) showing what you want. Let me recap what i think you want: You have an application (probably with a basic set of roles) You want to add plugins (probably containing several pages each requiring there own special permissions to do stuff) The extra

client side validation

2008-01-27 Thread Ryan Sonnek
http://www.jroller.com/wireframe/entry/wicket_client_side_validation I've spent the past couple weeks investigating Wicket's support for client side validation. IMO, using Ajax for validation in Wicket is really amazing. Lots of folks are touting javascript validation right now, but I think

Page Expired when going back to an ajax page

2008-01-27 Thread Andrew Williams
I have a peculiar problem that I hope can be solved by the experts! I have on my application pages a panel that is updated using an AbstractAjaxTimerBehavior to update the style attribute making it visible or not. This works just fine on the current page. If, however, I press the back

Re: Strange Sql exception accesing Wicket page

2008-01-27 Thread Johan Compagner
that looks like a database pool, where connections are in and after a while a specific connection isn't used for a long time and oracle terminates or makes in invalid. configure your database pool that way that you test the connection before it gives you the connection johan On Jan 26, 2008

Re: client side validation

2008-01-27 Thread Ryan Sonnek
out of curiosity, would there be any interest in shipping Wicket with Ajax form validation turned on *by default* instead of developers manually adding the AjaxFormValidatingBehavior? Are there any drawbacks to having this be the default behavior? On Jan 27, 2008 9:00 AM, Ryan Sonnek [EMAIL

Re: client side validation

2008-01-27 Thread Martijn Dashorst
-1. There are enough companies and projects that can't use or aren't allowed to use JavaScript, which also precludes the default enabling of such functionality. Martijn On 1/27/08, Ryan Sonnek [EMAIL PROTECTED] wrote: out of curiosity, would there be any interest in shipping Wicket with Ajax

Re: client side validation

2008-01-27 Thread Ryan Sonnek
Seriously? there are companies that mandate you can't use javascript? Even if it's done for you and just works? Wow...that's sad, but I hardly think that's the norm and such extremes should not mandate system defaults. Any other arguments against such a default? The reason I'm bringing this

London Wicket Training discount (before Google Checkout charges start)

2008-01-27 Thread jweekend
The Wicket training courses in London, with http://herebebeasties.com/ Al Maw , are bookable using http://www.jweekend.com/dev/BookingPage/ our simple but effective Ajax cart (built on Wicket) with payments handled by Google Checkout. Since Google Checkout will globally start charging vendors

Re: client side validation

2008-01-27 Thread Igor Vaynberg
also -1. it is trivial to do it yourself automatically like you said in your blog. there are plenty of usecases that wont work out of the box. take a common usecase where the label turns red if the field is in error, how do you do that out of the box? -igor On Jan 27, 2008 8:39 AM, Ryan Sonnek

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 11:39 AM, Martijn Dashorst [EMAIL PROTECTED] wrote: Almost any government site/application must comply with accessibility rules which often prohibit the use of JavaScript. section 508 compliance does *not* prohibit javascript or Ajax. You just have to be careful how you use

Re: client side validation

2008-01-27 Thread James Carman
True, I guess you could create your own form superclass that does the default behavior you want. On 1/27/08, Igor Vaynberg [EMAIL PROTECTED] wrote: also -1. it is trivial to do it yourself automatically like you said in your blog. there are plenty of usecases that wont work out of the box.

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:07 PM, James Carman [EMAIL PROTECTED] wrote: True, I guess you could create your own form superclass that does the default behavior you want. Yuk...I'd hate to go through my *entire* application and replace org.apache.wicket.Form with com.mysite.MySpecialForm. very messy.

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:04 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: also -1. it is trivial to do it yourself automatically like you said in your blog. there are plenty of usecases that wont work out of the box. take a common usecase where the label turns red if the field is in error, how do you

Re: client side validation

2008-01-27 Thread James Carman
So, create an IComponentInstantiationListener that looks for Forms and adds the behavior to them. On 1/27/08, Ryan Sonnek [EMAIL PROTECTED] wrote: On Jan 27, 2008 12:07 PM, James Carman [EMAIL PROTECTED] wrote: True, I guess you could create your own form superclass that does the default

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:15 PM, James Carman [EMAIL PROTECTED] wrote: So, create an IComponentInstantiationListener that looks for Forms and adds the behavior to them. Yep. That's what I posted on my blog. I'm just asking if there's any interest in making this the *default* behavior. When people

Re: client side validation

2008-01-27 Thread Igor Vaynberg
but then my app wont work. i add my own ajax behavior that knows how to do all this... so i would have to override some method on the form and tell it not to do its default thing? let me quote someone Yuk...I'd hate to go through my *entire* application and replace org.apache.wicket.Form with

Re: Dynamic Link Generation

2008-01-27 Thread mgiedt
Great, that handles my security question, thanks. Now if my two users have access to different reports, the only way to present this is through a DropDownChoice (with each report as an item) as opposed to rows of anchor tags? Could you suggest an alternative display strategy? With thanks, -Matt

Re: client side validation

2008-01-27 Thread James Carman
What if the Ajax stuff could be turned on globally using the web application itself? Then, it could be customized on a per-project basis. public class HelloWorldApplication extends WebApplication { public boolean isAjaxFormValidationEnabled() { return true; }

Re: client side validation

2008-01-27 Thread Martijn Dashorst
Almost any government site/application must comply with accessibility rules which often prohibit the use of JavaScript. And no, we're not going to fall for the Foo did it ploy :) Martijn On 1/27/08, Ryan Sonnek [EMAIL PROTECTED] wrote: Seriously? there are companies that mandate you can't use

Re: Label is driving me a *little* crazy

2008-01-27 Thread Igor Vaynberg
why does it work for everyone else and not you? could you paste the entire stack trace? -igor On Jan 27, 2008 5:31 AM, Andy Czerwonka [EMAIL PROTECTED] wrote: Did something change in 1.3?

Re: Dynamic Link Generation

2008-01-27 Thread Maurice Marrink
I'm guessing you want an alternative to display those reports because of the problems hiding an item? Why not put some logic in your model and have it decide which items to pass to your dropdownchoice, or adjust your query that fills the model. Maurice On Jan 27, 2008 6:30 PM, mgiedt [EMAIL

Re: client side validation

2008-01-27 Thread Ryan Sonnek
On Jan 27, 2008 12:20 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: but then my app wont work. i add my own ajax behavior that knows how to do all this... so i would have to override some method on the form and tell it not to do its default thing? let me quote someone Yuk...I'd hate to go through

Re: client side validation

2008-01-27 Thread Igor Vaynberg
On Jan 27, 2008 10:35 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: On Jan 27, 2008 12:20 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: but then my app wont work. i add my own ajax behavior that knows how to do all this... so i would have to override some method on the form and tell it not to do

Re: client side validation

2008-01-27 Thread Igor Vaynberg
how would specific components opt out? if i have a textarea i am going to add tinymce behavior to, i dont want it to be validated via ajax. i often have validators that hit the database to check for uniquness, etc. since every time i press a key the entire form is reprocessed, it will add quiet a

Re: client side validation

2008-01-27 Thread Ryan Sonnek
Okay everyone, after re-reading my posts on this thread, I need to take a minute and apologize for my previous comments. They came off very argumentative and that's not what I intended. I was *so* excited to share this idea and I was kind of expecting everyone's response to be more like WOW,

Re: client side validation

2008-01-27 Thread Flemming Boller
Hi Just a thought about client side validation. I have looked at simple validation like maxlength, min length stuff like that. The jQuery validation plugin solves that easily. My idea was to inherit from the corresponding wicket-validator and implement IBehavoir. Then I would be able to

Re: Label is driving me a *little* crazy

2008-01-27 Thread Andy Czerwonka
Igor Vaynberg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] why does it work for everyone else and not you? could you paste the entire stack trace? -igor Because I'm an idiot. Sorry group - my Eclipse environment was messed up and it wasn't building properly.

Re: client side validation

2008-01-27 Thread Igor Vaynberg
mixing validators and behaviors has been on our todo list for a while, but we couldnt do it cleanly in 1.3 because it would mean an api break. we will do it for 1.4 as far as getting the name of formcomponent, that is already possible through ibehavior.bind(component) -igor On Jan 27, 2008

Re: Dynamic Link Generation

2008-01-27 Thread Maurice Marrink
Guess i misunderstood you the first time. For a layout as you described here i recommend the following: Hard code the top level menu items and either use swarm to hide the items or use the isVisible technique i told you about. use swarm to hide tabs (http://wicketstuff.org/wicketsecurity/tabs/) or

Filter data with wicket

2008-01-27 Thread Mathias P.W Nilsson
Hi! I have a design question for wicket. In my Article page the user can filter the articles in many ways, by category, brand, price, department, gender etc. I wan't to Use the same wicketpage for the Article list. What is the best approach with wicket? make New ArticlePage().setDepartment(

Re: Strange Sql exception accesing Wicket page

2008-01-27 Thread Scott Swank
Yes, this is an improperly configured connection pool. In Tomcat you would look at these settings such as the following: timeBetweenEvictionRunsMillis numTestsPerEvictionRun minEvictableIdleTimeMillis - Scott On Jan 27, 2008 7:08 AM, Johan Compagner [EMAIL PROTECTED] wrote: that looks like a

Re: Filter data with wicket

2008-01-27 Thread Maurice Marrink
Depending on the component you use to display the list there are a few differences in putting it all together but generally you should create a bean containing all your filter options. you can then pass the bean to your query and adjust it accordingly. If you use a ListView or DataView you have to

Re: Controlling render for DropDownChoice

2008-01-27 Thread Frank Bille
Use stylesheets: select.yourCssClass option { background-color: pink; color: green; } Frank On Jan 26, 2008 1:47 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Is there anyway to control the rendering of a dropdownchoice? I don't mean implementing IChoiceRenderer but to set style

Re: Filter data with wicket

2008-01-27 Thread Mathias P.W Nilsson
I don't quit follow what you mean since I'm a newbie. Can you please explain in a little more detail or give me some pointers. -- View this message in context: http://www.nabble.com/Filter-data-with-wicket-tp15124809p15126484.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Controlling render for DropDownChoice

2008-01-27 Thread Mathias P.W Nilsson
You can only controll the select and not a single option using this. At least not all browsers -- View this message in context: http://www.nabble.com/Controlling-render-for-DropDownChoice-tp15100129p15126445.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Controlling render for DropDownChoice

2008-01-27 Thread Igor Vaynberg
see Select, SelectOption, SelectOptions in wicket-extensions. that should give you complete control over the markup. -igor On Jan 25, 2008 4:47 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Is there anyway to control the rendering of a dropdownchoice? I don't mean implementing

Re: Re: Any Example or doucument of Rich Edit, such as YUI,FCK

2008-01-27 Thread Mead
Hello Igor Vaynberg, I have check the code from wicket stuff's svn (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/ ) both the example and source of YUI TinyMCE! but there are too many error, most is missing the jar. How to get the correlation jar? I have no clue at all!

Re: Filter data with wicket

2008-01-27 Thread Igor Vaynberg
suppose you have a single text keyword box: class searchpage extends webpage { private String keywords; public searchpage() { Form form=new Form(form); form.add(new TextBox(keywords, new PropertyModel(this, keywords))); add(new DataView(results, new MyDataProvider()) {

Re: Re: Any Example or doucument of Rich Edit, such as YUI,FCK

2008-01-27 Thread Igor Vaynberg
after you check out the source run mvn install - that will fetch the necessary jars. -igor On Jan 27, 2008 5:44 PM, Mead [EMAIL PROTECTED] wrote: Hello Igor Vaynberg, I have check the code from wicket stuff's svn (https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/ )

Re: Re: Re: Any Example or doucument of Rich Edit, such as YUI,FCK

2008-01-27 Thread Mead
Hello Igor Vaynberg, The YUI-example get a Exception: org.apache.wicket.WicketRuntimeException:Application class org.wicketstuff.yui.example.pages.YuiApplication must be a subclass of WebApplication Well, I have run the cmd mvn install, and everything is run ok. Than, I copy the *.war to

[WicketStuff-Scriptaculous] DragNDrop problem in IE6/IE7.

2008-01-27 Thread Lan Boon Ping
Hi, I have encountered a DragNDrop problem using wicketStuff-scriptaculous in IE6/IE7. The DragNDrop only work for the first time, but subsequently, the draggable object is no longer draggable. FYI, this problem doesn't exist in Firefox and it can be reproduced in

Re: client side validation

2008-01-27 Thread Flemming Boller
Thanks for the info Igor. On Jan 27, 2008 9:33 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: mixing validators and behaviors has been on our todo list for a while, but we couldnt do it cleanly in 1.3 because it would mean an api break. we will do it for 1.4 as far as getting the name of

Re: client side validation

2008-01-27 Thread Erik van Oosten
That doesn't work. Sometimes you want to add multiple behaviors to the same event. Wicket doesn't support that. Erik. James Carman wrote: So, create an IComponentInstantiationListener that looks for Forms and adds the behavior to them.