You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by meduolis <me...@gmail.com> on 2013/03/18 08:04:27 UTC

How to append attribute for ListView item properly

Hi, I try to append attribute for my list item using ajax link. But it does
not append.

Expected: class="image-box selected"
Actual: class="image-box"

=================================================================
Markup:

=================================================================
Java:

=================================================================



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-append-attribute-for-ListView-item-properly-tp4657312.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to append attribute for ListView item properly

Posted by meduolis <me...@gmail.com>.
You are correct, thanks again for quick help.



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-append-attribute-for-ListView-item-properly-tp4657312p4657324.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: How to append attribute for ListView item properly

Posted by vineet semwal <vi...@gmail.com>.
my guess..listview by default re-constructs itself on render that means
your attribute gets attached but on repaint/re-render,it gets lost ,you
need to use setreuseitems(true) on listview ,read the javadoc of that
method too..


On Mon, Mar 18, 2013 at 12:34 PM, meduolis <me...@gmail.com> wrote:

> Hi, I try to append attribute for my list item using ajax link. But it does
> not append.
>
> Expected: class="image-box selected"
> Actual: class="image-box"
>
> =================================================================
> Markup:
>
> =================================================================
> Java:
>
> =================================================================
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-append-attribute-for-ListView-item-properly-tp4657312.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
regards,

Vineet Semwal