It's realy helpful, I'll look into it, thank you :)

How can I link js tree's internal envent (onSelect(itemIdList) onDblClick(itemId)) with t5 xtree's component when I use createEventLink?
Or write js code to encapsulate the original js tree events?

Does tapestry5 has some internal mechanisms linking client to backgroud?

Any further information on event topic is welcome.

Use ComponentResources.createEventLink to get the url of relevant events.
If you put the xtree component in login page,in your xtree component, componentResources.createEventLink("click", {11,22}) would produce like http://localhost/login.xtree:click/11/22. First to understand url of tapestry: http://localhost/login.xtree:click/11/22 login is the page, xtree is the component, click means the event name, 11/22 means values.

so you can generate the base url in xtree component:componentResources.createEventLink("click") to get http://localhost/login.xtree:click, and append the value 11/22 by js code.

Hope it helps.

Thanks,

DH


----- Original Message -----
From: "Zenberg Ding" <[email protected]>
To: "Tapestry users" <[email protected]>
Sent: Monday, March 16, 2009 11:45 AM
Subject: Re: "OnEvent" no response


I still confused with how to fire javascript object event on t5's
components way. so the code maybe not resonable :(

Is there any document on it?

How do you fire the 'click' event in your xtree component?
This 'click' is not the one 'click' in html dom.

Thanks,
DH


----- Original Message -----
From: "Ding Zenberg"
To: <[email protected]>
Sent: Monday, March 16, 2009 10:11 AM
Subject: "OnEvent" no response


Hi all,

Here is the case, I put one component named "xtree" on start page,
then I wrote on method to receive events from this component.

      <div t:id="treebox" t:type="t5/SidePanel" style="height:600px">
              <div t:type="xtree"/>
      </div>


      @OnEvent(value="click", component="xtree")
      void onTreeClick() {
              System.out.println("tree clicked ...");
      }

but there is no output expected. I want to know where's problem.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to