Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6773279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:38:58+00:00 2026-05-26T15:38:58+00:00

So working though the mostly absent docs on templates – unable to get it

  • 0

So working though the mostly absent docs on templates – unable to get it to work.

Ext.define('MyAPp.view.Login', {
    extend: 'Ext.Component',
    xtype: 'welcomeLogin',
    config: {
        html: 'This shows',
        tpl:   Ext.create ('Ext.XTemplate', '<div>Please show something</div>', {
            compiled: true
       })
     }

});

Why does the template content now show? I have tried adding apply(), applyTemplate() on and on and on… Please help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T15:38:58+00:00Added an answer on May 26, 2026 at 3:38 pm

    @ilija139 is right.
    you need to define the data property, even if it’s empty.

    data: {}
    

    Edit:
    Also, the compile attribute isn’t needed. It only applies to Ext.Templates not XTemplates (according to the docs). Works the same for me without compile

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is not working. Firebug is not throwing any error though. HTML: <table> <tr><td>BookA</td><td><a
Still working through JQuery to get data and repopulate portions of a page. Right
I'm working through previous years ACM Programming Competition problems trying to get better at
I just started doing some Javascript work for a project, I do mostly backend
I'm trying to create an event through the API and it is mostly working,
I'm working on my first real-world Rails project. So far, I'm mostly mashing up
I'm working through Agile Web Development with Rails, Edition 4 with some tweaks (mostly
Greetings, Until now I have mostly been working with google maps v2. I am
All, I'm working on a proof of concept replacement for the windows taskbar. (Mostly
I've been mostly working with VB.Net for over a year and just noticed this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.