-
19 Jul 2007 1:02 AM #21
it is greate
it is greate
u mean a tag ?just like some open-src program?
-
19 Jul 2007 4:09 AM #22
Sorry, I meant Attribute
Sorry, I meant Attribute
By tag I meant attribute eg:
<div id="toolbar" extType="Ext.PagingToolbar" container="gridFoot" dataStore="ds" pageSize="20" displayInfo="true" displayMsg="total {2} results found. Current shows {0} - {1}" emptyMsg="not result to display"></div>
to instantiate the toolbar rather than:
var paging = new Ext.PagingToolbar(gridFoot, ds, {
pageSize: 20,
displayInfo: true,
displayMsg: 'total {2} results found. Current shows {0} - {1}',
emptyMsg: "not result to display"
});
-
19 Jul 2007 9:50 PM #23Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Forest Grove, OR
- Posts
- 1,038
- Vote Rating
- 0
You should definitely be using namespaces on those attributes:
HTML Code:<div id="toolbar" ext:Type="Ext.PagingToolbar" ext:container="gridFoot" ext:dataStore="ds" ext:pageSize="20" ext:displayInfo="true" ext:displayMsg="total {2} results found. Current shows {0} - {1}" ext:emptyMsg="not result to display"></div>
Jeff Howden
Ext JS - Support Team Volunteer
jeff@extjs.com
Any and all code samples that are authored by me and posted on the Ext forums or website are hereby released into the public domain and I release anyone or entity of liability by using said code samples unless explicitly stated otherwise.
Opinions are mine and not necessarily endorsed by Ext, LLC. Please do not contact me directly for assistance unless requested by me.
-
20 Jul 2007 12:07 AM #24
Client side tags are not as useful IMNSHO as server-side tags which may take full Java Objects as attributes, introspect app metadata and create complex markup and script.
For example, I now have an <aspicio:view> tag which creates a DnD enabled Ext.View of a collection of beans. So in my JSP I have
It provides views of the "Component" objects in the two collections, and allows drag/dropping between the two (because they share dragGroup/dropGroup ids).Code:<aspicio:column> <aspicio:fieldset style="margin-left:10px" legend="Subcomponents"> <aspicio:view style="height:300px" dropgroup="availableSubcomponents" draggroup="availableSubcomponents" id="subComponents" collection="<%=entity.getSubComponents()%>" type="<%=Component.class%>" template="<div id='subcomponent_{id}' class='Subcomponent'><img align='top' height='16px' width='16px' src='{entityImageUrl}'>{componentDescription}</div>"/> </aspicio:fieldset> </aspicio:column> <aspicio:column> <aspicio:fieldset style="margin-left:10px" legend="Available subcomponents"> <aspicio:view style="height:300px" dropgroup="availableSubcomponents" draggroup="availableSubcomponents" select="multi" collection="<%=availableSubcomponents%>" type="<%=Component.class%>" template="<div id='component_{id}' class='Component'><img align='top' height='16px' width='16px' src='{entityImageUrl}'>{componentDescription}</div>"/> </aspicio:fieldset> </aspicio:column>
The {xxx} substitution elements in the Template correspond to properties of the bean class.
Most JSP authors seem to be clueless about Javascript, and this seems like the best way to get a good UI without frightening them!
-
20 Jul 2007 6:05 AM #25
That's dojo-esque, and I personally don't think it's a pretty good idea. When I'm formulating pages, especially rich ones, a lot of them are just bare pages with just a few empty divs here and there.
The one thing that always bothered me about it was the namespacing of non-xhtml attributes. I mean, if you want to use xhtml, you should be able to do it properly :
<div id="toolbar" ext:extType="Ext.PagingToolbar" ext:container="gridFoot" ext:dataStore="ds" ext:pageSize="20" ext:displayInfo="true" ext:displayMsg="total {2} results found. Current shows {0} - {1}" ext:emptyMsg="not result to display"></div>
-a
-
22 Jul 2007 6:30 PM #26Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Forest Grove, OR
- Posts
- 1,038
- Vote Rating
- 0
Jeff Howden
Ext JS - Support Team Volunteer
jeff@extjs.com
Any and all code samples that are authored by me and posted on the Ext forums or website are hereby released into the public domain and I release anyone or entity of liability by using said code samples unless explicitly stated otherwise.
Opinions are mine and not necessarily endorsed by Ext, LLC. Please do not contact me directly for assistance unless requested by me.
-
23 Jul 2007 12:04 PM #27loukiliGuest
Lilya Jsf Widgets with Ajax Capabilities Released
Lilya Jsf Widgets with Ajax Capabilities Released
Hi guys,
Lilya - Jsf Widgets with Ajax Capabilities based on ExtJs and JsGraphics is now available (lilya 1.0-beta-1).
Demo, documentation and downloads at Lilya Home Page
We need your comments !
I hope that this work helps interested.
-
24 Jul 2007 7:29 AM #28
Good to hear! However, on IE7 (haven't tried other browsers) your "View Sources" link just grays out everything without doing anything productive.
-
24 Jul 2007 9:31 AM #29loukiliGuest
thanks matthew. Now it's working.
-
25 Jul 2007 4:47 AM #30
loukili,
your forum registration appears broken. i never received an activation email per the instructions. i am trying to run your demos using an embedded tomcat server and i get the following exceptions:
com.qlogic.commons.resources.xml.ResourceReaderException: com.qlogic.commons.resources.xml.ResourceReaderException: java.lang.ClassNotFoundException: [C
at com.qlogic.commons.resources.ResourceEntries.load(ResourceEntries.java:100)
at com.qlogic.commons.resources.ResourceEntries.<init>(ResourceEntries.java:75)
at com.qlogic.commons.resources.xml.impls.DefaultResourceReader.<init>(DefaultResourceReader.java:81)
at com.qlogic.commons.resources.xml.impls.DefaultResourceReader.<init>(DefaultResourceReader.java:101)
at com.qlogic.products.lilya.JsfUIPlatformServlet.loadPlatform(JsfUIPlatformServlet.java:96)
and
com.qlogic.commons.resources.xml.ResourceReaderException: com.qlogic.commons.resources.ResourceCreatorException: la balise [bean] n'est enregistr


Reply With Quote

