Revision history [back]

click to hide/show revision 1
initial version

asked 2010-01-08 03:31:18 +0800

SabrinaGl gravatar image SabrinaGl

Event calling Java-Method not in Component

!!! I've found a solution using a request to the window-object. If someone has another solution, please post it. !!!

Hi together,

I've got a little problem and hope someone can help me. I've developed a component with child elements which are added dynamically. Now I want a user to double click on this child element (a div) and a java-method should be called. My problem: this java-method is not within the component, so I can't access it directly from the component's *.java. I can access a javascript method outside the component through onclick="getPopup()". But it isn't possible to this with a onClick="callJavaMethod()", is it?

My component is called by:

<eventline id="eventline" height="300px" width="500px"
         range="month" startYear="2008" endYear="2011" />

and in HTML it looks like this:

<div id="z_0q_09" class="eventline_div" style="height: 300px; width: 500px; overflow-x: auto; overflow-y: hidden;" years="2008-2011" z.type="eventline.Eventline">
<div id="z_0q_39" style="position: absolute; height: 10px; width: 200px; left: 699px; top: 79px; background-color: rgb(204, 204, 204); cursor: move;" ondblclick="getInfoPopup(this)" z.type="project.Project">
</div>

Has anybody an idea how I can solve this?

Greetings, Sabrina

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More