java.net: Wiki

The Source for Java Technology Collaboration


 <<O>>  Difference Topic JMakiDataModels (40 - 02 Jun 2008 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 6 to 6
 Standardized data and event models simplify interactions between the widgets and simplifies the programming model so developers can quickly build rich web applications. The following pages describe the jMaki data and event models in detail. Below is a list of widgets and the models that they support.
Deleted:
<
<
jMaki Accordion Data Model discussion
 jMaki Combobox Data Model discussion

jMaki Fisheye Data Model discussion

Line: 20 to 18
 jMaki Tree Data Model
Changed:
<
<
jMaki Tabbed View Data Model
>
>
jMaki Multi View Data Model discussion
 jMaki Webtop Data Model
Line: 37 to 35
 
Table Yahoo Datatable, Dojo Table
Tree Yahoo Tree, Dojo Tree
Combobox Dojo Combobox
Changed:
<
<
Accordion or Tabbed View Dojo Accordion, Dojo Tabbedview, Yahoo Tabbedview, Spry Accordion
>
>
Multi View Data Model jMaki Dynamic Container, Dojo Accordion, Dojo Tabbedview, Yahoo Tabbedview, Spry Accordion
 
Fisheye Dojo Fisheye
Drawer Dojo Drawer

 <<O>>  Difference Topic JMakiDataModels (39 - 28 Apr 2008 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 14 to 14
 jMaki Drawer Data Model discussion
Changed:
<
<
jMaki Menu Data Model discussion
>
>
jMaki Menu Data Model
 
Changed:
<
<
jMaki Table Data Model discussion
>
>
jMaki Table Data Model
 
Changed:
<
<
jMaki Tree Data Model discussion
>
>
jMaki Tree Data Model
 
Changed:
<
<
jMaki Tabbed View Data Model discussion
>
>
jMaki Tabbed View Data Model
 
Changed:
<
<
jMaki Dialog Data Model discussion Alpha
>
>
jMaki Webtop Data Model
 
Changed:
<
<
jMaki Map Data Model discussion Alpha
>
>
jMaki Dialog Data Model Alpha
 
Changed:
<
<
jMaki Validation Data Model discussion Alpha
>
>
jMaki Map Data Model Alpha

jMaki Validation Data Model Alpha

 

Widgets supporting models


 <<O>>  Difference Topic JMakiDataModels (38 - 16 Jan 2008 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 22 to 22
 jMaki Tabbed View Data Model discussion
Changed:
<
<

>
>
jMaki Dialog Data Model discussion Alpha
 jMaki Map Data Model discussion Alpha

jMaki Validation Data Model discussion Alpha


 <<O>>  Difference Topic JMakiDataModels (37 - 22 Dec 2007 - Main.azawawi)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 16 to 16
 jMaki Menu Data Model discussion
Deleted:
<
<
jMaki Map Data Model discussion
 jMaki Table Data Model discussion

jMaki Tree Data Model discussion

jMaki Tabbed View Data Model discussion

Added:
>
>

jMaki Map Data Model discussion Alpha

jMaki Validation Data Model discussion Alpha

 

Widgets supporting models

Model Widgets
Line: 34 to 37
 
Accordion or Tabbed View Dojo Accordion, Dojo Tabbedview, Yahoo Tabbedview, Spry Accordion
Fisheye Dojo Fisheye
Drawer Dojo Drawer
Added:
>
>
 
Map Yahoo Map, Google Map
Added:
>
>
Validation Spry validation
 

Conventions


 <<O>>  Difference Topic JMakiDataModels (36 - 21 Dec 2007 - Main.azawawi)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 6 to 6
 Standardized data and event models simplify interactions between the widgets and simplifies the programming model so developers can quickly build rich web applications. The following pages describe the jMaki data and event models in detail. Below is a list of widgets and the models that they support.
Changed:
<
<
jMaki Accordion Data Module discussion
>
>
jMaki Accordion Data Model discussion
 jMaki Combobox Data Model discussion
Line: 16 to 16
 jMaki Menu Data Model discussion
Added:
>
>
jMaki Map Data Model discussion
 jMaki Table Data Model discussion
Changed:
<
<
jMaki Tree Data Module discussion
>
>
jMaki Tree Data Model discussion
 
Changed:
<
<
jMaki Tabbed View Data Module discussion
>
>
jMaki Tabbed View Data Model discussion
 

Widgets supporting models

Line: 32 to 34
 
Accordion or Tabbed View Dojo Accordion, Dojo Tabbedview, Yahoo Tabbedview, Spry Accordion
Fisheye Dojo Fisheye
Drawer Dojo Drawer
Added:
>
>
Map Yahoo Map, Google Map
 

Conventions


 <<O>>  Difference Topic JMakiDataModels (35 - 20 Nov 2007 - Main.carlavmott)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki

Discussions on jMaki Data Models

Changed:
<
<
Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.

Because some of the discussion are long, discussions for the various data models are on their own wiki pages listed below.

>
>
Standardized data and event models simplify interactions between the widgets and simplifies the programming model so developers can quickly build rich web applications. The following pages describe the jMaki data and event models in detail. Below is a list of widgets and the models that they support.
 jMaki Accordion Data Module discussion
Line: 24 to 22
 jMaki Tabbed View Data Module discussion
Added:
>
>

Widgets supporting models

Model Widgets
Menu Yahoo Menu, jMaki Menu, jMaki Tab Menu, jMaki Accordion Menu
Table Yahoo Datatable, Dojo Table
Tree Yahoo Tree, Dojo Tree
Combobox Dojo Combobox
Accordion or Tabbed View Dojo Accordion, Dojo Tabbedview, Yahoo Tabbedview, Spry Accordion
Fisheye Dojo Fisheye
Drawer Dojo Drawer
 

Conventions

The data models are described using BNF notation.


 <<O>>  Difference Topic JMakiDataModels (34 - 02 Aug 2007 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Deleted:
<
<
-- Main.gmurray71 - 22 July 2007
 

Discussions on jMaki Data Models

Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.

Because some of the discussion are long, discussions for the various data models are on their own wiki pages listed below.

Added:
>
>
jMaki Accordion Data Module discussion
 jMaki Combobox Data Model discussion

jMaki Fisheye Data Model discussion

Line: 25 to 24
 jMaki Tabbed View Data Module discussion
Deleted:
<
<
jMaki Accordion Data Module discussion
 

Conventions

The data models are described using BNF notation.


 <<O>>  Difference Topic JMakiDataModels (33 - 01 Aug 2007 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Line: 14 to 14
 jMaki Fisheye Data Model discussion
Added:
>
>
jMaki Drawer Data Model discussion
 jMaki Menu Data Model discussion

jMaki Table Data Model discussion


 <<O>>  Difference Topic JMakiDataModels (32 - 23 Jul 2007 - Main.gmurray71)
Line: 1 to 1
 jMaki Homepage | jMaki Wiki
Changed:
<
<
-- Main.carlavmott - 17 May 2007
>
>
-- Main.gmurray71 - 22 July 2007
 

Discussions on jMaki Data Models

Line: 12 to 12
 jMaki Combobox Data Model discussion
Added:
>
>
jMaki Fisheye Data Model discussion
 jMaki Menu Data Model discussion

jMaki Table Data Model discussion


 <<O>>  Difference Topic JMakiDataModels (31 - 13 Jul 2007 - Main.mkvitko)
Line: 1 to 1
Added:
>
>
jMaki Homepage | jMaki Wiki
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models


 <<O>>  Difference Topic JMakiDataModels (30 - 12 Jul 2007 - Main.gmurray71)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 7 to 7
 Because some of the discussion are long, discussions for the various data models are on their own wiki pages listed below.
Added:
>
>
jMaki Combobox Data Model discussion
 jMaki Menu Data Model discussion

jMaki Table Data Model discussion


 <<O>>  Difference Topic JMakiDataModels (29 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 21 to 21
 

Conventions

The data models are described using BNF notation.

Changed:
<
<
The following definitions are used in the specifications:
>
>
The following terminals are used in the specifications:
 JavaScript object literal = an object literal as described in the JavaScript programming language

 <<O>>  Difference Topic JMakiDataModels (28 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 21 to 21
 

Conventions

The data models are described using BNF notation.

Changed:
<
<

Some definitions used in the specifications:

>
>
The following definitions are used in the specifications:
 JavaScript object literal = an object literal as described in the JavaScript programming language

 <<O>>  Difference Topic JMakiDataModels (27 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 26 to 26
 Some definitions used in the specifications:

JavaScript object literal = an object literal as described in the JavaScript programming language

Added:
>
>
 string = Alphanumeric characters
Changed:
<
<
CSS
>
>
CSS markup = valid CSS markup
 

 <<O>>  Difference Topic JMakiDataModels (26 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 23 to 23
 The data models are described using BNF notation.
Changed:
<
<
Some definitions:
>
>
Some definitions used in the specifications:
 JavaScript object literal = an object literal as described in the JavaScript programming language
Added:
>
>
string = Alphanumeric characters CSS
 

 <<O>>  Difference Topic JMakiDataModels (25 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 20 to 20
 

Conventions

Changed:
<
<
The data models are described using BNF notation.
>
>
The data models are described using BNF notation.
 

Some definitions:


 <<O>>  Difference Topic JMakiDataModels (24 - 14 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 17 to 17
 jMaki Accordion Data Module discussion
Added:
>
>

Conventions

The data models are described using BNF notation.

Some definitions:

JavaScript object literal = an object literal as described in the JavaScript programming language


 <<O>>  Difference Topic JMakiDataModels (23 - 08 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 13 to 13
 jMaki Tree Data Module discussion
Changed:
<
<
jMaki Tabbed View Module discussion
>
>
jMaki Tabbed View Data Module discussion

jMaki Accordion Data Module discussion

 

 <<O>>  Difference Topic JMakiDataModels (22 - 08 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 13 to 13
 jMaki Tree Data Module discussion
Added:
>
>
jMaki Tabbed View Module discussion

 <<O>>  Difference Topic JMakiDataModels (21 - 08 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 11 to 11
 jMaki Table Data Model discussion
Added:
>
>
jMaki Tree Data Module discussion

 <<O>>  Difference Topic JMakiDataModels (20 - 08 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models


 <<O>>  Difference Topic JMakiDataModels (19 - 08 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 8 to 8
 Because some of the discussion are long, discussions for the various data models are on their own wiki pages listed below.

jMaki Menu Data Model discussion

Added:
>
>
jMaki Table Data Model discussion
 

 <<O>>  Difference Topic JMakiDataModels (18 - 06 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.

Changed:
<
<
Discussions for the various data models are on their own wiki pages listed below:
>
>
Because some of the discussion are long, discussions for the various data models are on their own wiki pages listed below.
 jMaki Menu Data Model discussion

 <<O>>  Difference Topic JMakiDataModels (17 - 06 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 7 to 7
 Discussions for the various data models are on their own wiki pages listed below:
Changed:
<
<
Maki Menu Data model discussion
>
>
jMaki Menu Data Model discussion
 

 <<O>>  Difference Topic JMakiDataModels (16 - 06 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 7 to 7
 Discussions for the various data models are on their own wiki pages listed below:
Changed:
<
<
Maki Menu Data model discussion
>
>
Maki Menu Data model discussion
 

 <<O>>  Difference Topic JMakiDataModels (15 - 06 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 7 to 7
 Discussions for the various data models are on their own wiki pages listed below:
Changed:
<
<
Maki Menu Data model discussion?
>
>
Maki Menu Data model discussion
 

 <<O>>  Difference Topic JMakiDataModels (14 - 06 Jun 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.

Changed:
<
<

Menus

>
>
Discussions for the various data models are on their own wiki pages listed below:
 
Changed:
<
<
All menus in .9 release should support the following data model. Current example of the menu data model is as follows using JSON format.
{menu: [ 
        { label:'Must Read',
            menu: [ 
                { label:'Slashdot', url:'http://www.slashdot.org' },
                { label:'dev.java.net', menu: [ 
                {label : 'jMaki',url:'http://ajax.dev.java.net'}, 
                {label : 'Glass',url:'http://glassfish.dev.java.net'} 
                ] }
           ]
           }, 
          { label:'Click me for fun!',style:{strongemphasis:true} },
          { label:'Disabled!',style:{disabled:true} },
          { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} },
          { label:'Oracle', url:'http://www.oracle.com' }
     ]}
This however doesn't support the feature where a page can be loaded by the dcontainer. There needs to be a way to publish a URL without navigating to the URL so that the injector can do the work.

The proposal for doing that is as follows starting from the example above:

{menu: [ 
      { label:'Must Read',
             menu: [ 
                  { label:'Slashdot', url:'http://www.slashdot.org' },
                  { label:'dev.java.net', menu: [ 
                  {label : 'jMaki',url:'http://ajax.dev.java.net'}, 
                  {label : 'Glass',url:'http://glassfish.dev.java.net'} 
                     ] }
             ] }, 
          { label:'Click me for fun!',style:{strongemphasis:true} },
          { label:'Disabled!',style:{disabled:true} },
          { label:'Google', publish:'http://www.google.com' },
          { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} },
          { label:'Oracle', url:'http://www.oracle.com' }
  ]}
One addtional thing to consider is lazy loading. In the case of tabs, we may want to load the pages when the user clicks on the tab and not when the page is loading. That would mean adding a property to url to indicate lazy loading. I tried to specify the model in a BNF like notation to avoid confusion.

   topMenu ::= "{" <menu> "}"
    menu ::= menu: "[" <label>  {<label>}  "]" 
    label ::=  "{" label:  <text>, <menu> | <url>, | <pulbish>, | [style]  "},"
    url::= url: <text>   
    publish ::= publish: <text>    
    style ::= style: "{"  <disabled>  | <checked> | <strongemphasis> "}"
    disabled ::=  disabled: true
    checked ::= checked: true
    strongemphasis ::= strongemphasis: true

Note: text is the topic name to publish to

Comment (ntruchsess):

I'd suggest to allow both the topic and the actual message to be set:

    publish ::= publish: <text>
    message ::= message: <text>

- message being what is going to be sent to the topic - publish being the topic name to publish to (if not set, publish to the topic name that is set in the widget-args)

Take 2: Incorporating the feedback from the team here is the latest rev of the data model. We wanted to add an action property which allows users to specify the message to publish and the topic to publish to. If no topic is specified then the default topic is used. We want the message to be a string or JavaScript object literal and this may need additional specification. Also we want to be able to specify CSS which is passed through to the underlying widget.

    menuBar ::= "{" <menu> "}"
    menu ::= "menu:"  "[" <label>  {<label>}  "]" 
    label ::=  "{" "label:"  <string>, [<menu> | <url> | <action> | <disabled> | <checked> | <style> ] "},"
    url::= "url:" <string> ,  
    action ::= "action:" "{" [<topic>] <message>  "},"
    topic ::=  "topic:" <string>,
    message ::= "message:" <obj>
    obj ::= <string> | <object literal>
    style ::= "style:" "{"  <valid CSS here> "}"
    disabled ::=  "disabled: true"
    checked ::= "checked: true"

>
>
Maki Menu Data model discussion?
 

 <<O>>  Difference Topic JMakiDataModels (13 - 23 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 38 to 38
  {label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'} ] }
Changed:
<
<
] },
>
>
] },
  { label:'Click me for fun!',style:{strongemphasis:true} }, { label:'Disabled!',style:{disabled:true} }, { label:'Google', publish:'http://www.google.com' },
Line: 77 to 76
 - message being what is going to be sent to the topic - publish being the topic name to publish to (if not set, publish to the topic name that is set in the widget-args)
Added:
>
>
Take 2: Incorporating the feedback from the team here is the latest rev of the data model. We wanted to add an action property which allows users to specify the message to publish and the topic to publish to. If no topic is specified then the default topic is used. We want the message to be a string or JavaScript object literal and this may need additional specification. Also we want to be able to specify CSS which is passed through to the underlying widget.

    menuBar ::= "{" <menu> "}"
    menu ::= "menu:"  "[" <label>  {<label>}  "]" 
    label ::=  "{" "label:"  <string>, [<menu> | <url> | <action> | <disabled> | <checked> | <style> ] "},"
    url::= "url:" <string> ,  
    action ::= "action:" "{" [<topic>] <message>  "},"
    topic ::=  "topic:" <string>,
    message ::= "message:" <obj>
    obj ::= <string> | <object literal>
    style ::= "style:" "{"  <valid CSS here> "}"
    disabled ::=  "disabled: true"
    checked ::= "checked: true"


 <<O>>  Difference Topic JMakiDataModels (12 - 23 May 2007 - Main.ntruchsess)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 65 to 65
 Note: text is the topic name to publish to
Added:
>
>
Comment (ntruchsess):

I'd suggest to allow both the topic and the actual message to be set:

    publish ::= publish: <text>
    message ::= message: <text>

- message being what is going to be sent to the topic - publish being the topic name to publish to (if not set, publish to the topic name that is set in the widget-args)


 <<O>>  Difference Topic JMakiDataModels (11 - 23 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 62 to 62
  strongemphasis ::= strongemphasis: true
Changed:
<
<
Note: lazyload is false by default
>
>
 Note: text is the topic name to publish to

 <<O>>  Difference Topic JMakiDataModels (10 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007
Changed:
<
<

Discussions on jMaki Data Models

>
>

Discussions on jMaki Data Models

 Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.
Changed:
<
<

Menus

>
>

Menus

 
Changed:
<
<
All menus in .9 release should support the following data model.
>
>
All menus in .9 release should support the following data model. Current example of the menu data model is as follows using JSON format.
 
{menu: [ 
                          { label:'Must Read',
Line: 28 to 28
 This however doesn't support the feature where a page can be loaded by the dcontainer. There needs to be a way to publish a URL without navigating to the URL so that the injector can do the work.
Changed:
<
<
The proposal for doing that is as follows:
>
>
The proposal for doing that is as follows starting from the example above:
 
{menu: [ 
                          { label:'Must Read',
Line: 44 to 44
  { label:'Disabled!',style:{disabled:true} }, { label:'Google', publish:'http://www.google.com' }, { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} },
Changed:
<
<
{ label:'Oracle', url:'http://www.oracle.com', lazyload:true }
>
>
{ label:'Oracle', url:'http://www.oracle.com' }
  ]} One addtional thing to consider is lazy loading. In the case of tabs, we may want to load the pages when the user clicks on the tab and not when the page is loading. That would mean adding a property to url to indicate lazy loading. I tried to specify the model in a BNF like notation to avoid confusion.
Changed:
<
<
menu ::= "{" menu: "["
>
>
topMenu ::= "{" "}" menu ::= menu: "["
  publish ::= publish: style ::= style: "{" | | "}" disabled ::= disabled: true

 <<O>>  Difference Topic JMakiDataModels (9 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 56 to 56
  url::= url: [lazyload] lazyload ::= lazyload: true publish ::= publish:
Changed:
<
<
style ::= style: "{" | "}"
>
>
style ::= style: "{" | | "}" disabled ::= disabled: true checked ::= checked: true strongemphasis ::= strongemphasis: true
 

Note: lazyload is false by default


 <<O>>  Difference Topic JMakiDataModels (8 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 51 to 51
 That would mean adding a property to url to indicate lazy loading. I tried to specify the model in a BNF like notation to avoid confusion.
Changed:
<
<
menu ::= { menu: '['
>
>
menu ::= "{" menu: "["
  url::= url: [lazyload]
Changed:
<
<
lazyload ::= lazyload: true Note: lazyload is false by default publish ::= publish: Note: text is the topic name to publish to style ::= style: { | }
>
>
lazyload ::= lazyload: true publish ::= publish: style ::= style: "{" | "}"
 
Added:
>
>
Note: lazyload is false by default Note: text is the topic name to publish to

 <<O>>  Difference Topic JMakiDataModels (7 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 51 to 51
 That would mean adding a property to url to indicate lazy loading. I tried to specify the model in a BNF like notation to avoid confusion.
Changed:
<
<
menu ::= 'menu:'
>
>
menu ::= { menu: '['
 

 <<O>>  Difference Topic JMakiDataModels (6 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 14 to 14
  menu: [ { label:'Slashdot', url:'http://www.slashdot.org' }, { label:'dev.java.net', menu: [
Changed:
<
<
{label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'}
>
>
{label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'}
  ] } ] }, { label:'Click me for fun!',style:{strongemphasis:true} }, { label:'Disabled!',style:{disabled:true} },
Deleted:
<
<
{ label:'Yahoo!', url:'http://www.yahoo.com' },
  { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} }, { label:'Oracle', url:'http://www.oracle.com' } ]}
Line: 35 to 35
  menu: [ { label:'Slashdot', url:'http://www.slashdot.org' }, { label:'dev.java.net', menu: [
Changed:
<
<
{label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'}
>
>
{label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'}
  ] } ] }, { label:'Click me for fun!',style:{strongemphasis:true} }, { label:'Disabled!',style:{disabled:true} },
Deleted:
<
<
{ label:'Yahoo!', url:'http://www.yahoo.com' },
  { label:'Google', publish:'http://www.google.com' }, { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} },
Changed:
<
<
{ label:'Oracle', url:'http://www.oracle.com' }
>
>
{ label:'Oracle', url:'http://www.oracle.com', lazyload:true }
  ]} One addtional thing to consider is lazy loading. In the case of tabs, we may want to load the pages when the user clicks on the tab and not when the page is loading.
Added:
>
>
That would mean adding a property to url to indicate lazy loading. I tried to specify the model in a BNF like notation to avoid confusion.

    menu ::= 'menu:' <label> | <menu>
    label ::= 'label:' <url> | <pulbish>
    url::= 'url:' <text> [lazyload]
    lazyload ::= 'lazyload; true'    lazyload is false by default
    publish ::= 'publish:' <text>    text is the topic name to publish to
 

 <<O>>  Difference Topic JMakiDataModels (5 - 19 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Line: 8 to 8
 

Menus

All menus in .9 release should support the following data model.

Changed:
<
<
>
>
 {menu: [ { label:'Must Read', menu: [
Line: 24 to 24
  { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} }, { label:'Oracle', url:'http://www.oracle.com' } ]}
Changed:
<
<
>
>
 This however doesn't support the feature where a page can be loaded by the dcontainer. There needs to be a way to publish a URL without navigating to the URL so that the injector can do the work.

The proposal for doing that is as follows:

Changed:
<
<
>
>
 {menu: [ { label:'Must Read', menu: [
Line: 46 to 46
  { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} }, { label:'Oracle', url:'http://www.oracle.com' } ]}
Changed:
<
<
>
>
 One addtional thing to consider is lazy loading. In the case of tabs, we may want to load the pages when the user clicks on the tab and not when the page is loading.

 <<O>>  Difference Topic JMakiDataModels (4 - 18 May 2007 - Main.carlavmott)
Line: 1 to 1
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Changed:
<
<
Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support
>
>
Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support additional features.

Menus

All menus in .9 release should support the following data model.

{menu: [ { label:'Must Read', menu: [ { label:'Slashdot', url:'http://www.slashdot.org' }, { label:'dev.java.net', menu: [ {label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'} ] } ] }, { label:'Click me for fun!',style:{strongemphasis:true} }, { label:'Disabled!',style:{disabled:true} }, { label:'Yahoo!', url:'http://www.yahoo.com' }, { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} }, { label:'Oracle', url:'http://www.oracle.com' } ]}

This however doesn't support the feature where a page can be loaded by the dcontainer. There needs to be a way to publish a URL without navigating to the URL so that the injector can do the work.

The proposal for doing that is as follows:

{menu: [ { label:'Must Read', menu: [ { label:'Slashdot', url:'http://www.slashdot.org' }, { label:'dev.java.net', menu: [ {label : 'jMaki',url:'http://ajax.dev.java.net'}, {label : 'Glass',url:'http://glassfish.dev.java.net'} ] } ] }, { label:'Click me for fun!',style:{strongemphasis:true} }, { label:'Disabled!',style:{disabled:true} }, { label:'Yahoo!', url:'http://www.yahoo.com' }, { label:'Google', publish:'http://www.google.com' }, { label:'Sun Microsystems', url:'http://www.sun.com',style:{checked:true} }, { label:'Oracle', url:'http://www.oracle.com' } ]}

One addtional thing to consider is lazy loading. In the case of tabs, we may want to load the pages when the user clicks on the tab and not when the page is loading.

 

 <<O>>  Difference Topic JMakiDataModels (3 - 18 May 2007 - Main.carlavmott)
Line: 1 to 1
Deleted:
<
<
 -- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models

Added:
>
>
Here is the place for discussions on the data models in jMaki. See Carla's blog for the documentation of the data models supported in the .9 release of jMaki. After some discussions and feedback we want to update the models to support

 <<O>>  Difference Topic JMakiDataModels (2 - 18 May 2007 - Main.carlavmott)
Line: 1 to 1
Deleted:
<
<
 -- Main.carlavmott - 17 May 2007
Changed:
<
<
Discussions on jMaki Data Models
>
>

Discussions on jMaki Data Models

 

 <<O>>  Difference Topic JMakiDataModels (1 - 17 May 2007 - Main.carlavmott)
Line: 1 to 1
Added:
>
>

-- Main.carlavmott - 17 May 2007

Discussions on jMaki Data Models


Topic JMakiDataModels . { View | Diffs r40 < r39 < r38 < r37 | More }
 XML java.net RSS