Re: NumberFormatException iocservices coercian flip flopping

2012-12-28 Thread Howard Lewis Ship
Tapestry doesn't have a built-in way to convert a java.lang.String to a java.lang.Class. On Wed, Dec 26, 2012 at 11:37 PM, nhhockeyplayer nashua < nhhockeypla...@hotmail.com> wrote: > > I dont understand why i can do this... > > public Object onActivate(String id) > > but I cant do this > >

RE: NumberFormatException iocservices coercian flip flopping

2012-12-28 Thread Lance Java
You should NEVER use @PageActivationContext and onPassivate() / onPassivate() together in the same page. They do exactly the same job and I'm not 100% sure which one would be used. I'm surprised that tapestry doesn't fail in this case to tell the truth. -- View this message in context: http://t

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
The clean solution was the modeling of just the page object and page activation context... and tapestry does the rest. so that sums up a custom edit page public class CoachEdit { @Inject private ContextValueEncoder contextValueEncoder; @Inject private Messages messages; @I

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
Well according to this... http://tapestry.apache.org/page-navigation.html I have some options... so I decided to skip toe convoluted crap And do this void onActivate(Coach bean) { this.bean = bean; } Coach onPassivate() { return bean;

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
I cannot even breakpoint at the onActivate now... This error says input string "coach" Not sure if thats whats being transmitted into the method signature or not I cannot seem to come up with a onActivate method signature that will hold water for me. somehow the page context is grabbing strin

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
Just as a side issue... I have seen in the debugger... ID coming in as a string such as "adminlayout" which is definitely not an ID. I have been having some difficulty with the onActivate event handlers whenever I try to modify the method signature. Does anyone know if this is stable or not ?

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
I would like to challenge anyone to model an onActivate event handler that will work for me. I have scoped out and tried everything from demos to sample ciode to documentation code... etc...

RE: NumberFormatException iocservices coercian flip flopping

2012-12-27 Thread nhhockeyplayer nashua
This coercian logic is very unreasonable... and currently tripping up everything... even if I try to do a cancel push button on form all I have setup is my onActivate and it is characterizing all kinds of negative runtime problems public Object onActivate(String id) { if (bea

RE: NumberFormatException iocservices coercian flip flopping

2012-12-26 Thread nhhockeyplayer nashua
I dont understand why i can do this... public Object onActivate(String id) but I cant do this public Object onActivate(Class clazz, String id) any attenmpts to tamper with this method signature causes the method to not ever get called and this taikes the whole page setup down

RE: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread nhhockeyplayer nashua
If someone could explain what this means... I would be greatful... All I am doin is customizing a simple edit page for a pojo the stuff was coming up now its all comin down... just from tweeking the edit page onActivate handler I am not sure of the documented faq for beaneditform is in line wi

RE: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread nhhockeyplayer nashua
87.10% unrealized services (216/248) Application 'app' (version 1.0-SNAPSHOT-1356444220013) startup time: 299 ms to build IoC Registry, 2,625 ms overall. __ __ /_ __/__ ___ ___ / /___ __ / __/ / / / _ `/ _ \/ -_|_-http://tapestry.apache.org/b

RE: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread nhhockeyplayer nashua
Thanks Lance, I am just getting an eery feeling... I know under the hood alot of this stuff is performed using AOP... I am getting a feeling I cannot modify method signatures anymore... i get different results everytime... And chasing down tons of runtime errors intermittent and when once som

Re: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread Lance Java
Tapestry is using type coercion to coerce from the String in the URL to the int (or class) activation request parameters. Take a look at the diagram here tapestry.apache.org/typecoercer-service html and you can see that tapestry will use String --> Long --> Integer -- View this message in conte

RE: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread nhhockeyplayer nashua
${title}14 15 16 17 From: nhhockeypla...@hotmail.com To: users@tapestry.apache.org Subject: RE: NumberFormatException iocservices coercian flip flopping Date: Tue, 25 Dec 2012 08:15:06 -0500 Here is more clarity on the context of the problem... public Object onActivate(Class clazz, In

RE: NumberFormatException iocservices coercian flip flopping

2012-12-25 Thread nhhockeyplayer nashua
Here is more clarity on the context of the problem... public Object onActivate(Class clazz, Integer id) { if (beanType == null) return Utils.new404(messages); this.bean = contextValueEncoder.toValue(beanType, id.toString()); if (bean == null)