Try updating your tapestry version to 4.1.2. This works fine for me there.

On 5/6/07, RobertSchreiber <[EMAIL PROTECTED]> wrote:


Dear Tapestry specialists,

I have 2 corresponding PropertySelections in my page.

In Firefox everything works like expected.

As soon as I select a species in PropertySelection 'speciesSelect' the
corresponding 'breedSelect' gets updated.

In Internet Explorer 6/7 I have to update the whole form 'animalEditForm'
but then the form gets validated and fails because other
input fields have not yet been filled in.

Any ideas?

Best regards, Robert from Munich


HTML:
=====
<form jwcid="[EMAIL PROTECTED]"  success="listener:doSubmit"
method="post"
    clientValidationEnabled="ognl:false" delegate="prop:delegate">
<!-- ... -->
<label jwcid="@FieldLabel" field="component:speciesSelect" >Species:
</label>
<select jwcid="speciesSelect">
   <option>Cats</option>
   <option>Dogs</option>
</select>

<label jwcid="@FieldLabel" field="component:breedSelect" >Breed: </label>
<select id="breedSelect" jwcid="breedSelect">
   <option value="">&nbsp;</option>
   <option value="1">Dog breed 1</option>
   <option value="2">Dog breed 2</option>
</select>

<input jwcid="@Submit" type="submit"  value="message:submit"/>
</form>

Java:
=====
@EventListener(events = "onchange", targets = "speciesSelect",
submitForm="animalEditForm")
public void onSpeciesSelected(IRequestCycle cycle) {
   AnimalBreed bfirst = (AnimalBreed)getBreedController().getFirstEntry();
   setSelectedAnimalBreed(bfirst);
   cycle.getResponseBuilder().updateComponent("breedSelect"); // works in
Firefox not in IE 6
   //cycle.getResponseBuilder().updateComponent("animalEditForm"); //
works
in Firefox and IE 6
}

@Component(id = "speciesSelect", bindings = {
   "model=speciesModel",
   "value=selectedAnimalSpecies",
   "displayName=message:speciesSelect"})
public abstract PropertySelection getSpeciesSelect();

@Component(id = "breedSelect", bindings = {
   "model=breedModel",
   "value=selectedAnimalBreed",
   "displayName=message:breedSelect"})
public abstract PropertySelection getBreedSelect();
--
View this message in context:
http://www.nabble.com/EventListener-fails-to-update-PropertySelection-in-IE-tf3700887.html#a10349141
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

Reply via email to