You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Tsemach Hadad (JIRA)" <ji...@apache.org> on 2007/12/23 10:15:34 UTC

[jira] Commented: (WW-2311) Dojo 1.0.0 support with Progressive Javascript Enhancement Plugin/Theme

    [ https://issues.apache.org/struts/browse/WW-2311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42856 ] 

Tsemach Hadad commented on WW-2311:
-----------------------------------

It would be great if we could enjoy both worlds:
1. Dojo Toolkit 1.00 on Client
2. Struts 2.00 on Backend
Concpetually Framework can't wrap all other framework's components , and should supply
in some manner ability to expand other widgets with other parameters without the need to couple it
to a tag I think s:component fails to this category , not sure if it's enough I'll have to dig it

> Dojo 1.0.0 support with Progressive Javascript Enhancement Plugin/Theme
> -----------------------------------------------------------------------
>
>                 Key: WW-2311
>                 URL: https://issues.apache.org/struts/browse/WW-2311
>             Project: Struts 2
>          Issue Type: New Feature
>          Components: Plugin - Dojo Tags
>            Reporter: Sami Dalouche
>         Attachments: dojo.tar.gz
>
>
> It would be nice to have a set of Dojo taglib templates that :
> 1] are (X)HTML compliant (no non-standard dojoType=.. attribute)
> 2] follow the Progressive Javascript enhancement philosophy (http://domscripting.com/presentations/xtech2006/) : the tags should fallback to pure HTML mechanisms without javascript
> I have attached what I consider the starting point of this : a few templates, based on the css_xhtml theme on which I have added dojo/dijit programmatic calls to enhance the html widgets.
> For instance, the textfield template (text.ftl) is exactly the same as css_xhtml's text.ftl, except that it can "enhance" the HTML text field into :
> - a CurrencyTextBox
> - a NumberTextBox
> - a ValidationTextBox
> - a NumberSpinner
> (I currently use non documented taglib attributes to do that, so the templates are only useable from Freemarker views...)
> So, you would create a number spinner  like that :
> <@s.textfield 
> 		theme="dojo"
> 		labelposition="left"
> 		label="%{getText('labelblabla')}"
> 		required="true"
> 		name="numberOfWhatever"
> 		dojoType="NumberSpinner"
> 		dojoMinConstraint="1" 
> 		/>
> What is currently missing :
> - a LOT of dijit's parameters are not exposed (constraints, etc)
> - a LOT of widjits are not exposed (tree, ajax grid, etc..)
> - the creation of dojo's overrides should probably be completly computer in Freemarker / Java to create a compact JS representation, instead of currently relying on javascript to create this variable and progressively populate it
> Feel free to reuse this work under whatever license suits you. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.