First show my test code
test.tml

      
          ${str}
        
             delete
         
          

      


test.java
public class Test {
        @Property
        @Persist(PersistenceConstants.SESSION)
        private List strs;

        @Property
        private String str;

        @Property
        private int index;

        @InjectComponent
        private Zone testZone;

        void setupRender() {
                strs = new ArrayList();
                strs.add("1");
                strs.add("2");
                strs.add("3");
                strs.add("4");
                strs.add("5");
        }

        Zone onActionFromDelete(int index) {
                System.out.println(index);
                strs.remove(index);
                return testZone;
        }
}

I click the "delete" actionlink is right,the Zone updated,
but I click the "delete" actionlink,the page  refreshed,and my console show
the warn log

"2011-07-12 09:54:55,265 [ComponentInstanceResultProcessor]  WARN
[31761534@qtp0-4] (ComponentInstanceResultProcessor.java:49) - Component
test/Test:testzone was returned from an event handler method, but is not a
page component. The page containing the component will render the client
response."

I spend a lot of time,and can not sovle the problem,any one can help me.
Thanks a lot.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/A-problem-occur-at-loop-of-zone-tp4577377p4577377.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Reply via email to