You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris <ch...@gmx.at> on 2015/02/05 12:38:10 UTC

attribute modifier

Hi,

is there some way to delete component attributes permanently, so that the attributes do not appear again when ajax target = getPage() or the user reloads the page?
component.add(new AttributeModifier("class", "") {
    @Override
    public boolean isTemporary(Component component) {
        return false;
    }
});
Thanks, Chris

Re: attribute modifier

Posted by Martin Grigorov <mg...@apache.org>.
Use
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/AttributeModifier.java#L74
as a value

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Thu, Feb 5, 2015 at 1:38 PM, Chris <ch...@gmx.at> wrote:

> Hi,
>
> is there some way to delete component attributes permanently, so that the
> attributes do not appear again when ajax target = getPage() or the user
> reloads the page?
> component.add(new AttributeModifier("class", "") {
>     @Override
>     public boolean isTemporary(Component component) {
>         return false;
>     }
> });
> Thanks, Chris