I found that the positional style approach led to a lot of refactoring
problems. I found that as I wrote more sophisticated JavaScript, I
used only the two forms: single string (universally a client element
id) or a JSON object "specification" with a number of keys for
different purposes.

Most of the point of JavaScript support is adding new features (most
still to come, its alpha) but also some cleanup.


On Tue, Mar 23, 2010 at 6:04 AM, Robin Komiwes <odiss...@gmail.com> wrote:
> Hi,
>
> Still on my way to migrate to Tapestry 5.2.0-SNAPSHOT.
>
> Before, we were doing:
> support.addInit("appendToZone", link.toAbsoluteURI(),
> form.getClientId(), to, position);
>
> Now, there is only:
>
>  void addInitializerCall(String functionName, JSONObject parameter);
>  void addInitializerCall(InitializationPriority priority, String
> functionName, JSONObject parameter);
>  void addInitializerCall(String functionName, String parameter);
>  void addInitializerCall(InitializationPriority priority, String
> functionName, String parameter);
>
>
> I was looking for something like:
>
>  void addInitializerCall(String functionName, JSONArray parameter);
>  void addInitializerCall(InitializationPriority priority, String
> functionName, JSONArray parameter);
>
> or
>
>  void addInitializerCall(String functionName, String... parameter);
>  void addInitializerCall(InitializationPriority priority, String
> functionName, String... parameter);
>
> These would have let me free from refactoring my JS file.
>
> Is there any reason for this limitation? Is it the new way of doing things?
>
> regards,
>
> Robin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to