Results 1 to 8 of 8

Thread: It's better to use only one page or more than one page in ExtJs project?

  1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    19
    Vote Rating
    0
      0  

    Default It's better to use only one page or more than one page in ExtJs project?

    as the title if I use the project with 'boder' layout.
    Thanks in advance!

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    387
    Vote Rating
    49
      0  

    Default

    Do you mean different pages as in different files for your application?

    Then your answer would be yes. I`m new to ExtJS, but have found that I like to keep my configs apart from my functions, so I use different files.

    Interesting matter though, i`m curious how the experencied programmers manage their application - layouts.

    Anybody have some pattern-thoughts on this matter?
    I`m from Holland!

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Do you mean different pages as in different files for your application?
    I'm not mean that.
    different pages should in different files,but I mean an application should has one jsp page or more than one jsp page.
    I saw an Extjs application user only one jsp page such as "index.jsp" with many js files.If I use like this,I don't know how to redirect the page.so I'm looking for a best method in the project.

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,387
    Vote Rating
    858
      0  

    Default

    Where possible, it's best to use a single page on your application.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  5. #5
    Ext User
    Join Date
    Dec 2007
    Posts
    22
    Vote Rating
    0
      0  

    Default

    Yes, apart from anything else, having more than one page is going to make browser forward/back button behaviour rather confusing. With one page it's simple - the back button goes back to the last normal webpage the user visited.

  6. #6
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
      0  

    Default

    I think you can create class and use it.But I do not know how will effect the properties of your .jsp (time,performance...)

  7. #7
    Ext User
    Join Date
    Jan 2008
    Posts
    19
    Vote Rating
    0
      0  

    Default

    That is to say,it's best to use a single page on Extjs application.
    Thanks very much!

  8. #8
    Ext User twinkle's Avatar
    Join Date
    Aug 2008
    Location
    Ankara,Turkey
    Posts
    50
    Vote Rating
    0
      0  

    Default

    Yes, I am new ext and trying to learn all stuff for about one month.Yesterday,my subject is creating new class and binding it to link. I achieve this but something goes wrong my content is not showing properly when grid panel is loading.Therefore,I suggest you to take your code's backup if you already created your js file. Have nice job...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •