Feature Requests item #1562773, was opened at 2006-09-21 12:12 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1562773&group_id=119783
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Submitted By: Davy De Durpel (davydedurpel) Assigned to: Nobody/Anonymous (nobody) Summary: Make FormComponent.checkRequired() more pluggable Initial Comment: The current implementation of the required flag is too 'black and white'. It only represents a simple on/off switch which makes it less useless in situations where someone wants to have a more advanced required strategy. I would like to see a required flag that is aware of the state of a page. Ex. If the page is in an 'Edit' mode, then the field is required and otherwise not. We could bypass the checkRequired() method by not setting the required flag and creating our own Required Validator but then we are going back in the future where required used to be a validator. Therefore I would like to propose to make the required mechanism more pluggable maybe by allowing us to set a Required Strategy. An alternative would be to make that method non final so we can override it but that means that we can no longer use the standard Wicket components and that we will have to override each one of them :-( ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1562773&group_id=119783 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-develop mailing list Wicket-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-develop