Announcement Announcement Module
Collapse
No announcement yet.
Behavior of event handlers Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Behavior of event handlers

    My understanding of SWF is that a view-state can have an event handler like this:

    Code:
    <transition on="myEvent"/>
    This does a reload, and I would expect during the render for the getters to be called on any objects whose values are used on the page.

    However, this doesn't seem to be happening on my page. The transition occurs, and the page is refreshed, but the getters are not being called. This is a problem since I'm trying to do a reset event, and I'm resetting my backing object, but since the getters aren't being called, the old values are still being displayed on the page.

    Doing this:

    Code:
    <transition on="myEvent" to="sameViewState"/>
    gives me the behavior I would have expected.

    Can someone tell me if all this is expected behavior, and if not, could someone suggest a way to fix this, or at least somewhere to begin looking for the problem?

    I'm using SWF 2.0.7, Spring 2.5.6, MyFaces 1.2.3, Trinidad 1.2.11, and Facelets 1.1.14.

    Thanks!

  • #2
    It works for me

    It works for me with:

    SWF 2.0.7, ajax4jsf 3.3.0.GA, myfaces 1.2.5 ... 1.2.7, tomahawk12 1.1.8, jboss-el 2.0.1.GA, facelets 1.1.15b,
    spring 2.5.6
    Last edited by lier99; Jun 11th, 2009, 05:32 AM. Reason: version ids

    Comment

    Working...
    X