[OpenAjaxIDE] Does <require type="library"> always requirea'src'attribute?

Marcos Caceres marcosscaceres at gmail.com
Sat Aug 23 05:55:13 PDT 2008


FWIW, I agree with Jon re comment below. I also agree that src should be
relative to the configuration doc.
Kind regards,
Marcos


On 8/23/08, Jon Ferraiolo <jferrai at us.ibm.com> wrote:
>
>  Yes, I agree that we want *_oam.xml files shipping with Ajax libraries,
> but what I was saying is that it seems unlikely that a toolkit would have
> its files arranged like this:
>
> rootdir/
> comboboxwidget_oam.xml
> treewidget_oam.xml
> calendar_oam.xlm
> spry.js
> images/
> css/
> tests/
>
> In other words, I would expect that it is rare that the *oam.xml files are
> in the root folder of the distribution. That's why I'm leaning towards 'src'
> being a required attribute when you have <require type="library">.
>
> Jon
>
>
>
> [image: Inactive hide details for "Kin Blas" <jblas at adobe.com>]"Kin Blas"
> <jblas at adobe.com>
>
>
>
>     *"Kin Blas" <jblas at adobe.com>*
>             Sent by: ide-bounces at openajax.org
>
>             08/22/2008 02:32 PM
>
>
> To
>
> <ide at openajax.org>
> cc
>
>
> Subject
>
> Re: [OpenAjaxIDE] Does <require type="library"> always
> requirea'src'attribute?
>
> Hmmm, I would think that one of the goals for this working group would be
> to encourage the distribution of the OAA WMD files with the library
> distributions? For example I was thinking that within the Spry library zip
> file developers download, we would have a directory that contained *_oam.xml
> files that described widgets within the distribution.
>
> --== Kin ==--
>  ------------------------------
> *From:* Jon Ferraiolo [mailto:jferrai at us.ibm.com <jferrai at us.ibm.com>] *
> Sent:* Friday, August 22, 2008 2:04 PM*
> To:* Scott Richards*
> Cc:* ide at openajax.org; ide-bounces at openajax.org; Kin Blas*
> Subject:* Re: [OpenAjaxIDE] Does <require type="library"> always
> requirea'src'attribute?
>
> I agree with Kin's statement where for <require type="library"/> the 'src'
> attribute is relative to the metadata file, but that for all of the <require
> library="..."> elements the 'src' is relative to the directory pointed to by
> the <require type="library" > element. That ensures that the tool knows
> where to find at least one copy of the given library and that the individual
> assets can be relocated.
>
> Regarding Scott's suggestion for <require type="library"/> where if 'src'
> is missing it defaults to the directory containing the metadata file, I'm
> not so sure. Would it happen very often that a widget's metadata file would
> be in the root directory of the Ajax library used by the widget? My
> inclination would be to just say that 'src' is required when you have
> <require library="..."> and that any <require library="..."> elements
> without a 'src' attribute should be treated as an error.
>
> Jon
>
>
> [image: Inactive hide details for "Scott Richards" <scrichar at adobe.com>]"Scott
> Richards" <scrichar at adobe.com>
>
>
>       *"Scott Richards" <scrichar at adobe.com>*
>                         Sent by: ide-bounces at openajax.org
>
>                         08/22/2008 01:15 PM
>
>    To
>
> "Kin Blas" <jblas at adobe.com>, <ide at openajax.org>  cc
>   Subject
>
> Re: [OpenAjaxIDE] Does <require type="library"> always require
> a'src'attribute?
>
>
>
> I think it makes sense for the default of an unspecified library src path
> to be the same as the Widget Meta Data file.
>
> -Scott
> ------------------------------
> *From:* ide-bounces at openajax.org [*mailto:ide-bounces at openajax.org*<ide-bounces at openajax.org>]
> *On Behalf Of *Kin Blas*
> Sent:* Friday, August 22, 2008 12:02 PM*
> To:* ide at openajax.org*
> Subject:* Re: [OpenAjaxIDE] Does <require type="library"> always require
> a'src'attribute?
>
> I thought we decided in one of our meetings that the src paths of any
> <require> files with an attribute of library="dojo" were relative to the src
> path in the library <require> tag?
>
> If that's the case, I would assume that there must be a src attribute
> specified … or should the default of an unspecified library src path be ".",
> which is the same directory as the Widget Meta Data file?
>
> --== Kin ==--
> ------------------------------
> *From:* ide-bounces at openajax.org [*mailto:ide-bounces at openajax.org*<ide-bounces at openajax.org>]
> *On Behalf Of *Jon Ferraiolo*
> Sent:* Thursday, August 21, 2008 12:50 PM*
> To:* ide at openajax.org*
> Subject:* [OpenAjaxIDE] Does <require type="library"> always require a
> 'src'attribute?
>
> What spurred me to ask this question is that some of the sample widgets in
> the reference implementation look like this:
>
> <requires>
> <require type="library" name='dojo' version='1.1' copy="false"/>
> <require library='dojo' version='1.1' type="javascript" src="calendar.js"/>
> <require library='dojo' version='1.1' type="css"
> src="../../lib/dojo/resources/dojo.css"/>
> <require library='dojo' version='1.1' type="css"
> src="../../lib/dijit/themes/tundra/tundra.css"/>
> <require library='dojo' version='1.1' type="css"
> src="../../lib/dijit/themes/tundra/tundra_rtl.css"/>
> </requires>
>
> Does the first <require> element (i.e., <require type="library"> need a
> 'src' attribute? I think it doesn't, but I wanted to check.
>
> Jon_______________________________________________
> IDE mailing list
> IDE at openajax.org*
> *
> *http://openajax.org/mailman/listinfo/ide*<http://openajax.org/mailman/listinfo/ide>
> _______________________________________________
> IDE mailing list
> IDE at openajax.org
> http://openajax.org/mailman/listinfo/ide
>
>
> _______________________________________________
> IDE mailing list
> IDE at openajax.org
> http://openajax.org/mailman/listinfo/ide
>
>
>


-- 
Marcos Caceres
http://datadriven.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20080823/3b5fa9fd/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20080823/3b5fa9fd/attachment.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20080823/3b5fa9fd/attachment-0001.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 73 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20080823/3b5fa9fd/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 73 bytes
Desc: not available
Url : http://openajax.org/pipermail/ide/attachments/20080823/3b5fa9fd/attachment-0003.gif 


More information about the IDE mailing list