You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by David Molina <dm...@gmail.com> on 2008/08/06 16:49:18 UTC

T5 - inPlaceEditor

Hi,

I have this code of the page class:

    @Component(parameters = {"source=allItems", "row=item" } )
    private Grid _grid;

    @Component(parameters = {"value=item.code", "context=item.code",
"size=30"})
    private InPlaceEditor _inPlaceEditor;

    @OnEvent(component = "inPlaceEditor", value = InPlaceEditor.SAVE_EVENT)
    void actionFromEditor(String code)
    {
        item.setCode(code);
    }

and the code of the page template is:

        <div t:id="grid">
            <t:parameter name="titleCell">
                <div t:id="inPlaceEditor" size="20"/>
            </t:parameter>
        </div>

When i execute, item cells canĀ“t be change by a new value. What am I doing
wrong?

thanks