Re: How to stay on same page

2013-05-14 Thread Mark Ashworth
Hi,

Is there a reason why the *default:* case of the switch statement is not
handled. Maybe if you raise and error here or log out the reportType that
you receive in submit() will give a clue why the beanType is not set
correctly for the passivate method.

Regards,
Mark P Ashworth


On Mon, May 13, 2013 at 9:03 PM, nhhockeyplayer nashua 
nhhockeypla...@hotmail.com wrote:

 Thnanks jens Here is my passivate   @OnEvent(EventConstants.PASSIVATE)
  Object[] passivate() {return new Object[] { beanType }; } but
 I toggle it when I hit submit  @OnEvent(value = go)
  public Object submit() {
   logger.debug(In submit : );  switch (reportType) {
   case TEAM:
beanType = Team.class;
break;
   case PLAYER:
beanType = Player.class;
break;
   default:
   }  beanCollection =
 TynamoUTIL.loadCollection(hibernatePersistenceService, beanType);

   return this;
  }




-- 
Mark P. Ashworth


Tapestry 5.4 alpha 3 : AjaxFormLoop t:addrowlink does not seem to fire event

2013-05-02 Thread Mark Ashworth
Hi everyone,

I am using the AjaxFormLoop component in Tapestry 5.4 but the addrowlink is
not firing any events  event though I followed the example on
http://jumpstart.doublenegative.com.au/jumpstart.

Is there a test case in the 5.4 version that I can consult to determine
what I have coded incorrectly?
\
Regards,
Mark P. Ashworth