Is it possible to create screens at runtime?

113 views
Skip to first unread message

thiago borges martins

unread,
Mar 5, 2013, 10:58:44 AM3/5/13
to google-we...@googlegroups.com
Good afternoon, colleagues,

I'm on a project where I need to create screens using smart-gwt, but the creation of the screens will be in runtime system.

This is possible using Smart-gwt?

I thank everyone's attention.

yves

unread,
Mar 5, 2013, 2:17:08 PM3/5/13
to google-we...@googlegroups.com
Unless I don't understand your question, this is THE main GWT feature, thus smart-gwt too !
Yves

Thiago borges martins

unread,
Mar 5, 2013, 2:33:41 PM3/5/13
to google-we...@googlegroups.com
I will explain better.

My application will have a screen that has the functionality to create a new screen with fields, business rules (insert, update and delete) and searches in the database. It's as if I've been developing the screen with fields, combobox, checkbox and grid's that will integrate with the database by an IDE (Eclipse), but it is the system that will do this.


2013/3/5 yves <yves....@gmail.com>
Unless I don't understand your question, this is THE main GWT feature, thus smart-gwt too !

Yves

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/whI-KxRs0_0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Atenciosamente,
Thiago B. Martins
Analista de Sistemas
Fone: 34 9151-2635

Sanjiv Jivan

unread,
Mar 5, 2013, 3:49:57 PM3/5/13
to google-we...@googlegroups.com
Hi Thiago,

With SmartGWT (Pro and above), you can save screen definitions in XML and load them at runtime:

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/rpc/RPCManager.html#loadScreen(java.lang.String,
com.smartgwt.client.rpc.LoadScreenCallback, java.lang.String[])

So you could build some kind of editing interface that allows new screens to be designed, then save them to a database or file in XML, and be able to load them at runtime using loadScreen().

You can also dynamically generate XML DataSource definitions, which contain data validators and other business rule definitions, enforced on both client and server:

http://www.smartclient.com/smartgwtee/server/javadoc/com/isomorphic/datasource/DataSource.html#addDynamicDSGenerator(com.isomorphic.datasource.DynamicDSGenerator,java.lang.String)

Sanjiv



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.

Thiago borges martins

unread,
Mar 5, 2013, 4:01:05 PM3/5/13
to google-we...@googlegroups.com
Hum understand, I had thought of something like that, but I was in doubt because GWT (smartgwt) and compiled to javascript and have part of the RF (RequestFactory), but I've thought a one implementation. Without wanting to abuse his good vontante you have an example of a loading screen.

2013/3/5 Sanjiv Jivan <sanjiv...@gmail.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/whI-KxRs0_0/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.

To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

Att.
Thiago B. Martins
System Analyst
Fone: +55 34 9151-2635

Sanjiv Jivan

unread,
Mar 5, 2013, 4:23:47 PM3/5/13
to google-we...@googlegroups.com
There are samples of using XML screen definitions in the SmartGWT EE Showcase under the folder "Component XML", but you have to download a 4.0 build to get them:

    http://smartclient.com/builds

The Component XML overview explains how to provide dynamic Component XML that's stored in a DB - see "Dynamic Component XML":

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/ComponentXML.html


Thiago borges martins

unread,
Mar 6, 2013, 10:51:18 AM3/6/13
to google-we...@googlegroups.com
Ok thanks for the help

2013/3/5 Sanjiv Jivan <sanjiv...@gmail.com>
Reply all
Reply to author
Forward
0 new messages