PDA

View Full Version : History problem



EagleEye666666
25 Jan 2009, 3:17 PM
Hej guys,

I have some problem with using the history, I have implemented my app using the MVC almost like the Explorer example. Differnce is only that I replaced page/entry with one model named module.

Everything works fine, instead of the history... when iam changing between the tabs, the history isn't changing... so it is keeping the last added histroy item (within the url #token). Iam not really understanding why and how to fix this. Any ideas?

Can someone help/explain me a bit more about the History(GWT) in GXT usage ?

regards!

gslender
26 Jan 2009, 12:57 PM
did you add the history frame in the index.html?

EagleEye666666
26 Jan 2009, 2:19 PM
did you add the history frame in the index.html?

you mean this one:

<!-- OPTIONAL: include this if you want history support -->
<iframe src="javascript:''" id="__gwt_historyFrame" style="width:0;height:0;border:0"></iframe>

yep it is added to the body. I mean back button is working fine ...
when i did serveral actions... (open tabs) I have the correct history items.. with back and forward working works fine...

problem is the last token is staying in the address bar

http://serverpath&Modpath/#lastAction
and it is not getting changed when iam activating/clicking some already opened tab... this new event is not gonna saved or recognized somehow. I cant find special implementations for this in explorer example, maybe you know where it might be?

Iam glad to recieve some response!! Thanks man!

EagleEye666666
28 Jan 2009, 5:08 AM
I still couldn't fix this problem. nobody some other idea? Basic history support is activated.... and working... just this issue with changing selection of the tabs... :(

regards

fother
28 Jan 2009, 6:35 AM
for this "example" what version of GXT you used to get the code to implement your app? because history in tab was found in 1.2..

I'm had the same problem.. I get of the explorer demo in GXT 1.2.1 and implement again.. solve my problem

EagleEye666666
28 Jan 2009, 6:59 AM
for this "example" what version of GXT you used to get the code to implement your app? because history in tab was found in 1.2..

I'm had the same problem.. I get of the explorer demo in GXT 1.2.1 and implement again.. solve my problem

wah thanks a lot man! I was shortly thinking about that before... :D

but i thought the demo hasn't changed so a lot :) i see now... :) lol

fother
28 Jan 2009, 7:04 AM
you are develop one project using GXT?

EagleEye666666
28 Jan 2009, 7:18 AM
you are develop one project using GXT?

yes iam writing my final thesis of my study and the practical part is developing a "small"(actually hell of work) webapp.

a pic is here: http://extjs.com/forum/attachment.php?attachmentid=11409&d=1231927690

quite similar to explorer demo i think. Iam just having a navigation bar... instead of list/tree
I have to admit it is really nice to have that bar as a Model. Iam just having in a lot problems right now with dealing of tabpanel contents, cuz they have to interact with the app in general ... the explorer demo hasn't got somthing like this....

my greatest problems are to implement a clear MVC structure with that encapsulated listpanels, cuz for add/edit i need dialogs with forms etc. these forms even should have different modes depending if some user is logged in or not ... etc...

quite complex stuff. iam suffering a lot with logical structure here. I cant find the best way to code less and have a good structure...

right now the listpanels are managing themselfs... but now i have problems with the history and rendering of contents (due to login again)

Quite killing me ...

fother
28 Jan 2009, 7:56 AM
:))

EagleEye666666
28 Jan 2009, 11:37 AM
:))

what is so funny there ?? :) You have to explain me this! :P

fother
28 Jan 2009, 12:30 PM
Quite killing me ... rss

EagleEye666666
28 Jan 2009, 2:35 PM
rss

ah i see. but it is really wired when u are trying to follow mvc pattern but also want to keep the classes and code as less as possible.

I have nice generic service for CRUD and gaining any Object (Lists,Pagination Results..)
so there is actually no need to write controllers etc... so i am letting the components for example the list of users manage itself... cuz there i defined already which type my model is etc.

but this dialogs to add,edit this model data there... and to save to changed stuff from the dialogs is IN incredible... I have such a lot stuff to take care off...and think about..