On Sat, 26 Feb 2011 13:25:23 -0300, Adam Zimowski <zimowsk...@gmail.com> wrote:

Okay, I will use loop instead. Thank you for suggestion. Just wanted
to make sure I did not miss anything with Grid.

You're welcome! :) Grid is more focused on showing objects, not editing. On the other hand, we could create another component, similar to Grid, but more focused on editing objects. The Tapestry team cannot foresee every single scenario, so everyone can help by posting in the mailing list and filing JIRA tickets.

Well, as for astronomical effort, maybe I've overdramatized it out of
frustration, but one example of a very non-obvious solution to a
simple problem would be this:
(...)
.. after literally WEEKS of research, found a perfectly working
solution. But is this obvious?

The JS zone manager part is non-obvious indeed and must be better documented, no doubt. Using ComponentResources.createEventLink() to generate an URL that triggers a server-side event is something common when you're dealing with writing AJAX code.

A simple solution to your scenario is to use a hidden form with a text field and submit button. Your button would copy the value of the selected SKU to the text field and call click() on the submit button. No zone managers, no event link creation. Your solution is more elegant, though. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to