Hi !

OK I'll try ...

I have a table where each row contains a form with some hidden fields
(year,week) + a field to enter percentage value plus s a submit button.

How would you port this!

Currently I am testing to pass a context to the form and It seems like that
might be the right track ....

/Gunnar

2009/10/6 Toby Hobson <toby.hob...@googlemail.com>

> Hi Gunnar
>
> Maybe you could give us a higher level explanation of what you are trying
> to
> achieve i.e. what is the business logic driving this? In my experience when
> migrating from a technology like struts or servlets to tapestry it's best
> to
> rethink your whole strategy, instead of thinking in terms of "i did this in
> a servlet, how do I do it in tapestry"
>
> Toby
>
> 2009/10/6 Gunnar Eketrapp <gunnar.eketr...@gmail.com>
>
> > Hi!
> >
> > Ok the ${} was a typo ... I havent tested the page yeat you know!
> >
> > My problem is that each form pass a context (in three hidden fields) back
> > to
> > the server and how is this best done!
> >
> > But I just saw that I could pass a t:context attribute to my form so I
> will
> > try that solution.
> >
> > E.g I will now try something like ...
> >
> > <t:loop source="items" value="item">
> >         <tr>
> >                <td>
> >                <t:form t:context="item.year,item.weekNum,item.totalRake">
> >                     Base percentage: <input type="text"
> > name="payoutPercentage" value="0.40" />
> >                    <input type="submit" value="Create &raquo;"
> > class="nicebutton"/>
> >                </t:form>
> >                </td>
> >            </t:if>
> > ..
> >
> >
> >
> >
> > 2009/10/6 Thiago H. de Paula Figueiredo <thiag...@gmail.com>
> >
> > > Em Tue, 06 Oct 2009 11:51:17 -0300, Gunnar Eketrapp <
> > > gunnar.eketr...@gmail.com> escreveu:
> > >
> > >  Hi !
> > >>
> > >
> > > Hi!
> > >
> > >  The problem is that I would like <t:hidden> to take one property as
> the
> > >> inparameter and another as the out parameter.
> > >>
> > >
> > > Why?
> > >
> > >  <t:loop source="${items}" value="item">
> > >>
> > >
> > > Never use ${} as a component parameter. Never!
> > >
> > > --
> > > Thiago H. de Paula Figueiredo
> > > Independent Java consultant, developer, and instructor
> > > http://www.arsmachina.com.br/thiago
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > [Hem: 08-715 59 57, Mobil: 0708-52 62 90]
> > Allévägen 2A, 132 42 Saltsjö-Boo
> >
>



-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Reply via email to