B4J Question [ABMaterial] Can a one-page webbapp be created using only the application module?

Cableguy

Expert
Licensed User
Longtime User
I've been trying to get rid of all the "I don't need this at this moment" features included in the template folder (v3.50), so I got rid of all the modal sheets in the application module and also the navigation related stuff...
Then I started thinking... other than the server start related stuff, the Application module is a "regular" ABMPage...(?)
Since I see the same methods used in a page template being used in it...
SO, could a one-pge webapp be built using only the application module? (I mean, no "page' modules), resulting in a "www.mydomain.com/mywebapp" instead of the actual "www.mydomain.com/mywebapp/page" ?
If yes, any downfalls to keep an eye on?
 

alwaysbusy

Expert
Licensed User
Longtime User
other than the server start related stuff, the Application module is a "regular" ABMPage...
No it is not. It may appear so in B4J, but internally it is a different kind of animal. But you can give it a try and see how stuff works out. However, I can't guarantee all components will work.

If the appearance of the url is your only concern, you should look into proxies.
 
Upvote 0

mindful

Active Member
Licensed User
No it is not. It may appear so in B4J, but internally it is a different kind of animal
Really ? I made a test only with ABMApplication and didn't notice any errors but then I did have a lot of controls on it ... what can be the difference internally ? Besides the sources links in html ?

In a never ending project of mine I use the ABMApplication as the login page for my App and it includes some controls like container, animations, input, image, labels, etc. All the basic stuff...

I am not at the pc right now and when I will be I'll probably reevaluate this post ;)
 
Upvote 0

alwaysbusy

Expert
Licensed User
Longtime User
It does some optimalizations to serve normal pages (mainly indeed with the sources links), which I'm not 100% sure are applied to itself. ABMApplication was written as some kind of 'preloader' for the whole app (a bit like what Main is ofr a normal B4J app). It can do some UI, but normally it was intended to just be a pass-through. But hey, if it works, even better :). As for now, I just can't guartantee all complex components will work as I never did test them in such a setup.
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Well, we'll give that a spin and let you know...
(most of my apps in b4j only need the "main" module, except for custom nodes)
 
Upvote 0
Top