Thanks you!!!

In fact I see this comment in another thread and I already did this.

Now I have another problem, probably a problem easy to be solved, but I
don't see how to do this. My problem is that I have a "remove" for the same
list, and I have to pass the list index to the serverside... but how can I
make this?

I mean, the index that I want to pass is the index for the loop, what is
again the index for the list source. But this index should be writen in any
point in the client html or can I read this in the server side directly??

Thanks you in advance,
        robert

On 9/21/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:

Make sure that your "requestorsLoop" is outputting an actual html element
on
render. If you can't view source of a rendered page and find an existing
html element then there is nothing to "update". I think using the For
component you have to specify element="div || span || whatever " to get it
to output the content.

On 9/21/06, Roberto Ramírez Vique <[EMAIL PROTECTED]> wrote:
>
> Hi everybody,
>
> I'm an starter in Tapestry 4.1, using tomcat 5.5 and jdk 1.5
>
> I want to have a link (a plus image :P) that adds a new element to the
for
> loop. I tried this:
>
>     @EventListener(elements="addLink", events="onclick",
> submitForm="userForm", async=true)
>     public void addNewRequester(IRequestCycle cycle){
>         this.getLoanAdvice().getRequesters().add(new
> PersonEconomicEvaluation());
>
>         cycle.getResponseBuilder().updateComponent("requestersLoop");
>     }
>
> The html is this:
>
>     <span jwcid="requestersLoop">
>     <fieldset>
>     <div>
>         <a jwcid="[EMAIL PROTECTED]"><img
> src="images/images-new/delsigner_01.jpg" ></a>
>     </div>
>     </fieldset>
>
> Obviously, "requesterLoop" is a loop over the
> getLoanAdvice().getRequesters() ... the method 'addNewRequester' is
supose
> to add a new item in the for loop. The serverside is called, but the
> client
> side doens't update correctly, eventhough I call the '
> cycle.getResponseBuilder().updateComponent("requestersLoop");' method...
I
> tried updating directly the entire form, but doesn't work.
>
> My first question is, is it possible ?
>
> And the second one is, can any of you see what I'm missing?
>
> Thanks in advance,
> --
> Robert Ramírez Vique
> Computer Science Engineer
>
>


--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




--
Robert Ramírez Vique
Computer Science Engineer

Reply via email to