jsr372-experts@javaserverfaces-spec-public.java.net

[jsr372-experts] Re: [jsr372-experts mirror] nicole JSF Javascript API

From: Josh Juneau <juneau001_at_gmail.com>
Date: Mon, 21 Sep 2015 08:10:49 -0500

Kito-

I agree completely. The module approach is clear and easy to follow. The
tag declarations do seem to be a bit verbose in the examples. If a similar
implementation were to be adopted as part of the JSF core components, I
could see a tag declaration such as the following being concise enough:

<h:module id="SimpleExample">
  <f:param name="serverTime" value="#{backingBean.currentTime}"/>
</h:module>



Josh Juneau
juneau001_at_gmail.com
http://jj-blogger.blogspot.com
https://www.apress.com/index.php/author/author/view/id/1866


On Mon, Sep 21, 2015 at 7:47 AM, Kito Mann <kito.mann_at_virtua.com> wrote:

> Thanks, Josh. Interest approach. I'm guessing it just uses the location of
> the module component in the component tree to determine the the Id
> prefix. I like the module approach -- makes it clear how to pass a
> parameter to JavaScript. But the tag declarations are somewhat verbose.
>
>
> On Monday, September 21, 2015, Josh Juneau <juneau001_at_gmail.com> wrote:
>
>> Just wanted to send a project to the group for review. If you have not
>> yet seen this project, this API seems to target the issue we have discussed
>> regarding the need to append form/component IDs to each other when working
>> with JSF components from JavaScript.
>>
>> https://github.com/dskgry/nicole
>>
>> Interesting concept...not sure if such a solution would resolve all of
>> the issues that we have discussed, but thought the implementation and
>> concept may be worth a look as another alternative.
>>
>> Josh Juneau
>> juneau001_at_gmail.com
>> http://jj-blogger.blogspot.com
>> https://www.apress.com/index.php/author/author/view/id/1866
>>
>>
>
> --
> ___
>
> Kito D. Mann | @kito99 | Author, JSF in Action
> Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
> http://www.JSFCentral.com | @jsfcentral
> +1 203-998-0403
>
> * Listen to the Enterprise Java Newscast: *http://
> <http://blogs.jsfcentral.com/JSFNewscast/>enterprisejavanews.com
> <http://ww.enterprisejavanews.com>*
> * JSFCentral Interviews Podcast:
> http://www.jsfcentral.com/resources/jsfcentralpodcasts/
> * Sign up for the JSFCentral Newsletter:
> http://oi.vresp.com/?fid=ac048d0e17
>
>