1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    33
    Vote Rating
    0
    tomim is on a distinguished road

      0  

    Default ExtDirect Java package names

    ExtDirect Java package names


    Hi all,

    I have custom extdirect Java server side engine for maping java classes to extdirect but the problem is naming in ext direct json definition.
    Is it possible to define ExtDirect name with full classpath name ?
    For example if my Java class is net.security.LoginAction can I instead of using naming like in this example

    var item = {"url":"/sec","type":"remoting","actions":{"LoginAction":[{"name":"login","len":2,
    "formHandler":false},{"name":"isSession","len":-1,"formHandler":
    false},{"name":"logout","len":-1,"formHandler":false},{"name":
    "change","len":2,"formHandler":false}]}};

    to use naming in this form

    var item = {"url":"/sec","type":"remoting","actions":{"net.security.LoginAction":[{"name":"login","len":2,
    "formHandler":false},{"name":"isSession","len":-1,"formHandler":
    false},{"name":"logout","len":-1,"formHandler":false},{"name":
    "change","len":2,"formHandler":false}]}};

    This way it should work like standard JSON Java RPC creating full package/class path.
    So my ExtDirect calll from javascript will be net.security.LoginAction() and not LoginAction().



    Tom

  2. #2
    Sencha User
    Join Date
    Aug 2008
    Posts
    33
    Vote Rating
    0
    tomim is on a distinguished road

      0  

    Default


    Oh my gosh!!! After 2hrs looking for how to do it I just found it after the first post
    (Obvoiusly I did not read specification well)

    If anyone asked the same qustion , it should be

    var item = {namespace : "net.security" , "url":"/sec","type":"remoting","actions":{"LoginAction":[{"name":"login","len":2,
    "formHandler":false},{"name":"isSession","len":-1,"formHandler":
    false},{"name":"logout","len":-1,"formHandler":false},{"name":
    "change","len":2,"formHandler":false}]}};

Similar Threads

  1. New ExtDirect JAVA implementation
    By patrah in forum Ext.Direct
    Replies: 0
    Last Post: 9 Mar 2010, 3:28 PM
  2. Using ExtJS in Java with jabsorb or json-rpc-java
    By Arthur.Blake in forum Community Discussion
    Replies: 21
    Last Post: 26 Mar 2009, 4:09 PM
  3. Java script object to java class
    By rahulmca1@gmail.com in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 25 Jan 2007, 4:24 AM
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."