String attrVal = tag.getAttribute("maxlength");
>> if( StringUtils.isBlank(attrVal)){
>> throw new IllegalStateException("No maxlength defined
>> for " + tag.getId());
>> }
>>
> }
>
> }
>
> Craig
>
> -Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent: May-13-11 5:02 PM
> To: users@wicket.apache.org
> Subject: Re: How to check markup attributes?
>
> if you are doing validation you c
throw new IllegalStateException("No maxlength
> defined for " + tag.getId());
>}
>return tag;
>}
>
> }
>
> Craig
>
> -Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
> Sent
throw new IllegalStateException("No maxlength defined
> for " + tag.getId());
> }
> return tag;
> }
>
> }
>
> Craig
>
> -Original Message-----
> From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com]
g [mailto:igor.vaynb...@gmail.com]
Sent: May-13-11 5:02 PM
To: users@wicket.apache.org
Subject: Re: How to check markup attributes?
if you are doing validation you can use imarkupfilter to check the attrs.
-igor
On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
wrote:
> I'd like to check that parti
if you are doing validation you can use imarkupfilter to check the attrs.
-igor
On Fri, May 13, 2011 at 1:57 PM, Craig Pardey
wrote:
> I'd like to check that particular markup attributes have been set on a
> component.
> My first instinct was to use component.getMarkupAttributes(), but the Jav
I'd like to check that particular markup attributes have been set on a
component.
My first instinct was to use component.getMarkupAttributes(), but the JavaDoc
quite clearly suggests that it shouldn't be used.
For example, all TextFields should have a 'maxlength' defined:
public class MyTextFie