Hello Jessek,

I've tried to implement a simple example where I can demonstrate my problem:

test.html:

<form jwcid="[EMAIL PROTECTED]">
        <span jwcid="selectionOne"/>
        <span jwcid="selectionTwo"/>
</form>
        
<div jwcid="testDialog">
        Hello, I'm a dialog!
</div>

test.page:

component id="selectionOne" type="PropertySelection">
        <binding name="model" value="modelOne"/>
        <binding name="value" value="valueOne"/>
</component>
        
<component id="selectionTwo" type="PropertySelection">
        <binding name="model" value="modelTwo"/>
        <binding name="value" value="valueTwo"/>
</component>
        
<component id="testDialog" type="Dialog"/>

There is a dialog and a form with two PropertySelections. Where one
PropertySelection depends on the other.

test.java:

public abstract String getValueOne();
public abstract String getValueTwo();
        
public IPropertySelectionModel getModelOne() {
        return new StringPropertySelectionModel(
                new String[] { "zero", "one", "two"});
}
        
public IPropertySelectionModel getModelTwo() {
        if (getValueOne() != null && getValueOne().equals("one")) {
                return new StringPropertySelectionModel(
                        new String[] { "1 one", "1 two"});
        } else if (getValueOne() != null && getValueOne().equals("two")) {
                return new StringPropertySelectionModel(
                        new String[] { "2 one", "2 two"});
        }
        return new StringPropertySelectionModel(
                new String[] { "0 one", "0 two"});
}
        
@EventListener(targets = "selectionOne", events = "onchange",
submitForm="selectionForm")
public void selectionListener(IRequestCycle cycle) {
        cycle.getResponseBuilder().updateComponent("selectionTwo");
}

After calling the EventListener and updating the component I got an error:

FATAL exception raised: createWidget() Node not found with specified id of
'testDialog'.

Thanks for any hints.
Christine



Jessek wrote:
> 
> Again, not run into this one but if someone gives me a definitive
> example that I can see for myself I have a much better chance of
> fixing / knowing what the problem is.
> 
> On 12/6/06, Tine <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> i need some help, please:
>>
>> In my application I have some dialog components (snapshot 4.1.1). But
>> after
>> calling an asynchronous EventListener I got the following error
>> (Firefox):
>>
>> createWidget() Node not found with specified id of 'deleteDialog'.
>>
>> All the ids of my dialogs have been lost.
>>
>> Does anyone have an idea, what I could do?
>>
>> Thanks Christine
>> --
>> View this message in context:
>> http://www.nabble.com/EventListener-in-combination-with-Dialog-component-tf2766841.html#a7715571
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/EventListener-in-combination-with-Dialog-component-tf2766841.html#a7790953
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to