Lets say that I have the following code

<div t:type="any" t:mixins="jquery/bind, jquery/customZone"
t:context="complexObject"

     bind.event="click" bind.eventType="click" bind.zone="^" >Validate</div>

And I would like that once a user clicks on the Validate div a event is
triggered. On the server side I have

    @OnEvent(value = "click")
    public Object onClickEvent(MyComplexObject complexObject) {
        //do something
        return zone.getBody();
    }

Now to make this more complicated all of this is part of the loop and then
inside that loop I have a zone. I need this in order to be able to allow
users to validate row by row if they so decide (ie once they made a change
they can check if that is valid or not).

This loop has an encoder that is activated once a save button is pressed
and the form is submit. This part works well.

What I would like is to reuse that encoder to figure out what object is
selected. How can I do that? Is there an automatic way to do this, or
should I use my encoder directly/manually in the method?

Cheers

-- 
Sincerely
*Boris Horvat*

Reply via email to