goosemanjack
unread,Oct 7, 2009, 5:56:14 AM10/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to OpenSocial - OpenSocial and Gadgets Specification Discussion
Synopsis:
None of the various OpenSocial specs provide clarity on case-
sensitivity rules for variables and EL statements. We would like to
add additional language that specifies all variables to be case-
sensitive.
Currently the spec(s) does not specify case sensitivity rules for any
of the following:
* Variable names of pipeline-tag declared data
* Template-local variables
* Reserved EL variables
Initially we went down a path of allowing variables to be case-
insensitive. Hence the values ${My.person.displayName} would be
equivalent to ${my.person.displayName} and ${Msg.greeting} is the same
as ${msg.greeting}. After some work, however, it proved to be a
source of confusion for developers because the actual data properties
are based on the REST data contracts and are case-sensitive.
We would like to add language to the various specs that clarifies case
sensitivity rules as follows:
* All pipeline-declared variables ARE case-sensitive. Hence using the
two tags below would result in two pieces of data being declared in
the DataContext under the keys "Viewer" and "viewer"
ex:
<os:ViewerRequest key="Viewer" />
<os:PersonRequest key="viewer" method="people.get" userId="@viewer"
groupId="@self" />
* Template-local variables ARE case sensitive.
* All reserved EL variables ARE case-sensitive. This means (provided
"varName" is a valid template-local variable) ${My.varName} would
evaluate, but ${my.varName} would be undefined. This includes the
message-bundle reserved variable ${Msg}. So ${Msg.foo} is valid, but $
{msg.foo} is not.