Michael Doherty wrote:
> I'm getting some unexpected (to me) behavior. I have a form with a
> PropertySelection component embedded. I removed from the form
> two Direct components that were also getting submitted when the
> form was submitted.
>
> Here's what happens. One I enlarge or shrink the chart image,
> then when I choose a different chart image type, it changes
> the chart type, but also continues to either enlarge or
> shrink the image. The listener method, either
> enlarge(IRequestCycle cycle) or shrink(IRequestCycle cycle)
> whichever was the last called, gets called when I submit the form.
>
> If I just change the chart type before enlarging or shrinking,
> neither of these methods are called.
>
> Here's the relevant HTML.
>
> =====================================================================
> <span jwcid="shrink">-</span> <!--Direct component to shrink chart-->
>
> <font size="-2"><b>ZOOM</b></font>
>
> <span jwcid="enlarge">+</span> <!--Direct component to enlarge chart-->
>
>
> <form jwcid="form">
>
>
> <span jwcid="chartype"/> <!--PropertySelection to choose chart type-->
>
>
> <span jwcid="submit"/> <!--Submit button to change chart type -->
>
> </form>
> =====================================================================
>
> Here's from the jwc specification file:
>
> =====================================================================
> <component id="form" type="Form">
> <binding name="listener" property-path="listeners.formSubmit"/>
> </component>
>
> <component id="enlarge" type="Direct">
> <binding name="listener" property-path="listeners.enlarge"/>
> </component>
>
> <component id="shrink" type="Direct">
> <binding name="listener" property-path="listeners.shrink"/>
> </component>
> =====================================================================
>
--
Michael Doherty
[EMAIL PROTECTED]
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer