This does not raise anything ?
On Nov 27, 9:23 pm, "Laurent Morissette"
<[EMAIL PROTECTED]> wrote:
> Hey folks,
> Hope everyone's fine
>
> Tonight I'd like to start a discussion around two issues ; Richfaces
> calendar component and java EL in context.
>
> To help flow of discussion let me first state the context that brought me to
> my observations:
>
> I've been around java based web DEV for 4 years now so its a fact that I
> came through a lot :)
>
> nowadays I do work with the Seam framework, a powerful persistence-domain
> model tool developed by JBoss.
> One of its strenght is the variety of contexts where objects of model can be
> managed
>
> One special thing is the extensive use of java expression language (EL). For
> instance, to access a string resource in a bundle you can do:
> #{messages['hello']}. Doing this way is a great approach regarding
> internationalization.
> Moreover you can use EL almost in every single context (by which I mean JSF,
> JAVA, AND properties files)
>
> EXCEPT and this is where I'd like to raise an issue, JAVASCRIPT
>
> In my point of view this is a sad limitation of EL. You see, if we already
> allow interpretation of EL through xhtml I seriously think that it should be
> interpreted "on the fly" in a JS context (to ease client-side validation
> for example)
>
> let me state this by a shor example:
>
> suppose we have :
>
> public Class comp
> {
> ...
>
> public Date aDate=...;
>
> }
>
> and we want to validate client-side if "aDate" is within a given range
>
> If EL was actually interpreted by in JS context I'd just have to do:
>
> <somedateinput ondateChange="javascript:someValidationFCN(#{comp.aDate})"/>
>
> Do you see the issue here or I am missing something?
>
> Second and last issus I'd like to discuss with you folks
>
> Suppose we want to use richFaces calendar component
>
> I can use it I JSF by doing:
>
> <rich:calendar ... ( along with required attributes)
>
> So if I want to be able to restreint the dates within a range there is
> ; preloadDateRangeBegin
> preloadDateRangeEnd attributes
>
> acording to this post
> :http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192417
>
> I'M restrained in using a datamodel annotation in my Comp Class, this
> forcing my to declare it as a Complete component.
>
> But what if i don't want to ?
>
> According to my view on this issue, I should be able to set the rang myself
> by setting just single dates.
>
> Am I right ?
>
> So please fell free two discuss the two precding points as it is ,to my
> opinion, worth talking
>
> I wish to hear from you soon :)
>
> Laurent
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en
-~----------~----~----~----~------~----~------~--~---