1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    21
    Vote Rating
    0
    jochem kuun is on a distinguished road

      0  

    Question sencha commandline tool not working?

    sencha commandline tool not working?


    Hi,

    In this video from sencha (http://vimeo.com/17705448), Tommy Maintz explains how to create a simple sencha app using MVC. At around 19 mins, he tells about the command line tool (sencha.sh) and how to use it.

    I've tried it but I cant get the example app to work correct. It started with the references to includes in the index.html file: lib.touch/ext-touch-debug.js, where touch is the sencha package dir. i've changed this to lib/touch/sencha-touch-debug.js and as sencha package isnt automatically included, i copied it to the lib dir.

    By doing the above, I've managed to fix the reference/include errors but I now get the following error:

    Uncaught Error: Ext.List: itemTpl is a required configuration. on line 23116

    I don't understand why it wont work, because the vid makes it look so easy.
    Can anybody provide a way of generating the MVC files without errors, or provide me with a working package in a zip format or something?

    I work on a mac using safari, chrome and sencha package (1.0.1a).

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    21
    Vote Rating
    0
    jochem kuun is on a distinguished road

      0  

    Lightbulb


    Nevermind, I figured out what was wrong:

    in the file "app/views/Viewport.js" that is generated by the commandline tool a list is defined that uses tpl for assigning a template. But tpl is depricated and itemTpl should be used instead. So change this:

    Ext.apply(this, {
    dockedItems: [
    {
    ...
    tpl: '<tpl for="."><div class="link"><strong>{text}</strong></div></tpl>',
    ...

    to this:

    Ext.apply(this, {
    dockedItems: [
    {
    ...
    itemTpl: '<tpl for="."><div class="link"><strong>{text}</strong></div></tpl>',
    ...

    The above should fix the errors.

    HTH

Similar Threads

  1. Replies: 10
    Last Post: 20 Jan 2012, 10:10 AM
  2. Tool tip not working
    By babu in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 11 Feb 2010, 7:43 PM
  3. ExtJS not working after installing URLScan tool
    By mohd_osman in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 17 Jul 2009, 9:02 AM
  4. Replies: 3
    Last Post: 29 May 2009, 3:05 AM

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi