PDA

View Full Version : [CLOSED] Suggestion on Actions



reinout.mechant@imprss.be
Dec 19, 2014, 11:08 AM
Hello,

Small suggestion on the syntax of the Action usage in the markup:
Now it is : Action="#{Action1}"

Why not:Action="Action1"

Kind regards,

Reno

RCN
Dec 19, 2014, 5:01 PM
The notation:


Action="#{Action1}"


Results {Application Javascript Namespace}.{Component ID}:


Action="App.Action1"


So, if you type


Action="Action1"

you are gonna have an unexpected behaviour since Action1 is the html element and App.Action1 is the Ext.Net element.

You could use:


Action="App.Action1"


But the first approach is the best one since you will never be required to refactor your applications if you change Application's JavaScript Namespace


For more information about the Application's JavaScript Namespace: http://examples3.ext.net/#/Getting_Started/Introduction/Overview/

Let us know if you need further assistance.