AJAX Throbber

2012-12-27 Thread mateen
Hi, I looking to implement a AJAX Throbber for all ajax calls. This is my java script function. Tapestry.onDOMLoaded(function() { function addAjaxOverlay(event, element) { var mgr = Tapestry.findZoneManager(element); var zone = mgr mgr.element; if (!zone) {

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

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
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 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

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
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;

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua
it would be nice if I knew WHICH parameter

Re: exception report

2012-12-27 Thread Cezary Biernacki
it would be nice if I knew WHICH parameter Probably 't:component-trace', but I believe it would fail for any parameter. I am not sure what is happening, but my guess is that your Jetty was recently upgraded, and now fails during parameter extraction (are

Re: exception report

2012-12-27 Thread Neil Pierson
Unsubscribe. On Dec 27, 2012, at 8:07 AM, nhhockeyplayer nashua nhhockeypla...@hotmail.com wrote: it would be nice if I knew WHICH parameter - To unsubscribe, e-mail:

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua
Thanks Cezary, Yeah i set the breakpoint and it gets triggered... but really nothing to do at that point. And it looks like its coming from tapestry... the IllegalStateException So you saying my jetty plugin updated itself ? Ok here is some more stuff pertaining to your claims... 127.0.0.1

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua
Thanks Cezary, Would you happen to know the configuration? I am using eclipse helios... maven-3 and I run my apps our of the debug-configurations dialogue from within eclipse. I am thinking somehow there is a parameter I can specify somehow within the debug configuration for the maven

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua
This fixed it systemProperty nameorg.mortbay.jetty.Request.maxFormContentSize/name value758122/value /systemProperty

Re: exception report

2012-12-27 Thread Howard Lewis Ship
Have you considered NOT serializing giant blobs of data to the client? On Thu, Dec 27, 2012 at 7:52 AM, Cezary Biernacki cezary...@gmail.comwrote: Yeah i set the breakpoint and it gets triggered... but really nothing to do at that point. And it looks like its coming from tapestry... the

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Howard Lewis Ship
If that is true, it is an accident, possibly a bad merge. On Thu, Dec 27, 2012 at 3:00 AM, Kristian Marinkovic kristian.marinko...@gmail.com wrote: Hi, i was just testing the 5.4-alpha-1 release and realized that the SystemPropertiesSymbolProvider is not used anymore by the

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Howard Lewis Ship
I think you are mistaken: @Contribute(SymbolSource.class) public static void setupStandardSymbolProviders(OrderedConfigurationSymbolProvider configuration, @ApplicationDefaults

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Kristian Marinkovic
Hi Howard, yes the SystemPropertySymbolProvider is in place but in Tapestry 5.3.6 the TapestryFilter used it to resolve system properties but now it doesn't. As a consequence properties like tapestry.disable-default-modules that are accessed within the TapestryAppInitializer cannot be read and

RE: exception report

2012-12-27 Thread nhhockeyplayer nashua
serializing giant blobs of data to the client? shit I didnt know I was. No wonder I been chasing that damn property higher. so I remove Serializable from the interface ? Best regards and thanks... KEN From: nhhockeypla...@hotmail.com To: users@tapestry.apache.org Subject: RE: exception

Re: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Howard Lewis Ship
@PageLoaded or pageLoaded() This is invoked once when the page is first constructed. On Thu, Dec 27, 2012 at 9:32 AM, Ken in Nashua kcola...@live.com wrote: I have a page and I only want to do certain things during bootstrap... not specifically setupRender or onActivate Thanks in advance

Re: exception report

2012-12-27 Thread Howard Lewis Ship
You probably have a Loop inside a Form; look at the Loop documentation and determine if and how the Loop and the Form should interact; by default a Loop inside a Form stores the object iterated over. It's mean for Hibernate/JPA entities, where the Loop can use a ValueEncoder to store just the

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Howard Lewis Ship
Interesting; that could be a bug then. On Thu, Dec 27, 2012 at 9:05 AM, Kristian Marinkovic kristian.marinko...@gmail.com wrote: Hi Howard, yes the SystemPropertySymbolProvider is in place but in Tapestry 5.3.6 the TapestryFilter used it to resolve system properties but now it doesn't. As

RE: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Ken in Nashua
Thanks for tryin... my properties are @persistent @PageLoaded public void pageLoaded() { //if (itemsPerPage == null) if (securityService.getSubject().isAuthenticated()) itemsPerPage = getLayout().getItemsPerPage(); else

RE: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Ken in Nashua
Well I cannot take this the whole mile... I have two persistent properties and just trying to persist them on subsequent authentications from the database. and I cant I beat these three routines to death. The afterRender works beautiful. I have never had luck with the init cycle and

RE: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Ken in Nashua
My main catching issue being on login... my persistent properties are null... and I can predictably load them from the database so i go ahead and use my app... then i decide to click logout button... app is still running though... just unauthenticated... so I go ahead and click login link...

Re: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Chris Poulsen
Hi, @Persist defaults to session storage, it sounds like you are not discarding your session on logout and/or not always creating a new session on (re)login. -- Chris On Thu, Dec 27, 2012 at 7:28 PM, Ken in Nashua kcola...@live.com wrote: My main catching issue being on login... my

RE: is there a @BootStrap annotation for methods ?

2012-12-27 Thread Ken in Nashua
Thanks Chris, I will think about that. Good practice anyway... it may be the condition case I am looking to operate. - cheers Ken

Re: init routine for page

2012-12-27 Thread Sigbjørn Tvedt
Hi. I think you will need to share the code in order to get any help with this. Regards Sigbjørn Tvedt On 27 December 2012 18:03, nhhockeyplayer nashua nhhockeypla...@hotmail.com wrote: Folks, I am trying to perform a simple init for a couple page variables (oops properties) but

FormInjector example problem

2012-12-27 Thread bhorvat
Hi all, I want to be able to use a zone to add fields in my form and from what I can tell I need to use FormInjector. However I am having hard time trying to figure how to use it. I have create a small example that I am trying to run it, before I start working on the real form. My tml is

Re: T5.4-alpha-1 is missing SystemPropertiesSymbolProvider

2012-12-27 Thread Kristian Marinkovic
hi Howard, created Ticket https://issues.apache.org/jira/browse/TAP5-2040 g, Kris On Thu, Dec 27, 2012 at 6:45 PM, Howard Lewis Ship hls...@gmail.com wrote: Interesting; that could be a bug then. On Thu, Dec 27, 2012 at 9:05 AM, Kristian Marinkovic kristian.marinko...@gmail.com wrote:

[5.3.6] Saving loop-generated checkbox values between requests

2012-12-27 Thread Muhammad Gelbana
I have a numerous checkboxes generated withing a loop that is even inside another loop Loop Loop Checkbox So I set the checkbox's value this way: t:checkbox t:value=ipSelection(device.ip).selected/ So the ipSelection method accepts an ip, looks up a map of objects that have a

Re: FormInjector example problem

2012-12-27 Thread bhorvat
I think I have found the way to trigger the call using jquery plugin. It is using $('#injector').tapestryFormInjector(trigger); However my next problem is how can I get the id of the FormInjector component I have tried @Component private FormInjector injectImages; String

StrategyBuilder Service and Components

2012-12-27 Thread trsvax
I'm building a mixin that does different things depending what component it's added to. I was trying to use the StrategyBuilder but it does not match the component class In my AppModule I have this public static void contributeSimplifySource( MappedConfigurationClass,SimplifySource config) {