On Wed, 19 Dec 2012 11:24:59 -0200, mateen <matee...@gmail.com> wrote:

In my app i have the following code

Hi!



<t:zone t:id="searchTransactionZone" id="searchTransactionZone">
    <div class="tableDv ">
        <t:grid t:source="pickupQuotes" t:row="selectedQuote"
t:rowsPerPage="5"
            t:inPlace="true" t:pagerPosition="top" add="action">
            <p:actionCell>
                <t:jquery.dialogajaxlink t:id="link2" t:dialog="myDialog"
t:zone="prcessTellerTransactionZone"
t:context="${selectedQuote.pickupQuoteID}" class="process">

Never, never ever use ${} when passing parameter values. It causes the value to be coerced to String. Your event handler method receives a QuoteID. Tapestry can't find a coercion or ValueEncoder from String to QuoteID, so it ignores your method

                    Process Teller
                </t:jquery.dialogajaxlink>
            </p:actionCell>
        </t:grid>
    </div>
</t:zone>



and in my java code

@Log
    public Object onActionFromLink2( QuoteID transactionQuoteID )
    {

    }

What am i doing wrong. Are there certain types that i can pass in the
context param or something  ? Where am i going wrong.

Using ${} when passing parameters is always a bad thing. In addition, if you haven't contributed a ValueEncoder for QuoteID yet, do it.

--
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to