Feature Requests item #1458688, was opened at 2006-03-26 10:15
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=1458688&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: core
Group: 1.2
Status: Open
Priority: 5
Submitted By: Karthik Guru (karthik_g)
Assigned to: Nobody/Anonymous (nobody)
Summary: A flag to know if form has been submitted in this request

Initial Comment:
I tried adding something as a separate behaviour. But
since the behaviour executes during fresh page
instantiation, the components show up with class
attribute value 'valid'. I would rather not have any
class attribute set on the html element the first time
the page is viewed.

component.add(new AbstractBehavior() {
                        public void
onComponentTag(final Component component,
                                        final
ComponentTag tag) {
                                if
(((FormComponent)component).isValid()) {
                                       
tag.getAttributes().put("class", "valid");
                                }else{
                                       
tag.getAttributes().put("class", "invalid");
                                }
                        }
                });

How do i get past this?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684978&aid=1458688&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to