Re: coercion chaining in 5.1.0.5...

2009-06-02 Thread Eric Ma
Tom Zurkan wrote: > > thanks! here is what i have found out so far... it is actually > happening on restore state of a loop within a form. it appears that the > encoder now uses the type coercer. did it use that before? i thought > it used serialization as the default. anyway, when decod

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2009-06-02 Thread Eric Ma
Howard Lewis Ship wrote: > > Well, you could verify that with a "view source"; it seems unlikely to > me, but that would be a start towards investigating this. > > Howard M. Lewis Ship > Well, I had never had the need to explicitly include tapestry.js, until today that is. T5 apparently does

Re: [T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2009-06-02 Thread Eric Ma
Howard Lewis Ship wrote: > > That's odd because I've tested this under IE 7 and it works. Anyone > else seeing this? > > Howard M. Lewis Ship > > Creator of Apache Tapestry > Director of Open Source Technology at Formos > Thanks for the reply Howard. One thing I notice is on the page whe

[T5.1.0.5] 'Tapestry' is undefined JavaScript error on form submit

2009-06-02 Thread Eric Ma
I have a simple form: T5.1.0.5 turns it into: What is this extra bit onsubmit="javascript:Tapestry.waitForPage(event);" for? IE 7 gives a runtime JS error: 'Tapestry' is undefined. However, the form gets submiited properly. So this is not a show-stopper. It is simply an annoyance. Any s

Re: [t5.1.0.5] Expansion does not work in custom JavaScript block

2009-06-01 Thread Eric Ma
Answering my own question - come to think about it, as the code is wrapped in a comment block, I guess T5 has to treat it as literal string. After removing the tag and the comments, things are behaving properly in IE. Eric Eric Ma wrote: > > This is my .tml code: > > >

[t5.1.0.5] Expansion does not work in custom JavaScript block

2009-05-29 Thread Eric Ma
This is my .tml code: The ${myExpr} does not get replaced by the value from the Java class. If I remove , it does get replaced, but I get a JavaScript error. Any suggestions? Eric -- View this message in context: http://www.nabble.com/-t5.1.0.5--Expansion-does-not-work-in-custom-Jav

Re: I might have accidentally deleted the thread on T5.1 and JBoss 5.0.1.GA

2009-05-11 Thread Eric Ma
Massimo Lusetti wrote: > > Maybe it was talking about his own local MUA .. BTW there's still > available the archives with search facility ;) > Massimo > http://meridio.blogspot.com > I use Nabble to read/post to the mailing list and I no longer see the thread in the view. To Shing Hing Man -

I might have accidentally deleted the thread on T5.1 and JBoss 5.0.1.GA

2009-05-10 Thread Eric Ma
I was trying to delete my replies because I was confused when I replied to the thread. We have 2 environments, Tomcat 5.5 and JBoss 5.0.1.GA. The T5.1 piece is actually deployed on Tomcat, not JBoss. Apologies for any confusion. Eric -- View this message in context: http://www.nabble.com/I-m

Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA

2009-05-10 Thread Eric Ma
akochnev wrote: > > Eric, >regarding the problem w/ nbsp; in templates you need to add a > doctype declaration in the component or page templates. > Thanks for the reply. Actually, it was a typo - instead of nbsp;, the developer typed nsbp;. T5.0 did not seem to care, but T5.1 does. As

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
Thiago H. de Paula Figueiredo wrote: > > Try using lazy loading on getPage(), avoing calling > resources.getPage() in your field initializer. Something like: > > public BasePage getPage() { > if (page == null) { > page = (BasePage) resources.getPage(); > } > retu

Re: [T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
Thiago H. de Paula Figueiredo wrote: > > It looks like your base component class invokes Component.getPage() > inside its constructor. Am I right? Could you post its code here? > > Thiago > You are right. Code is in the attached file. Thanks, http://www.nabble.com/file/p23448232/component_c

[T5.1] Custom component now causes NullPointerException

2009-05-08 Thread Eric Ma
After upgrading from 5.0.18 to 5.1.0.5, custom components on my page now cause the following exception: 2009-05-08 11:08:15,184, ERROR, [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler], line 62, Processing of request failed with uncaught exception: Exception assembling root

Re: Problem running Tap 5.1.0.4 on Jboss 5.0.1.GA

2009-05-07 Thread Eric Ma
Shing Hing Man wrote: > > When I deploy a simple Tap 5.1.0.4 application on JBoss 5.0.1.GA and > access the index page, I get the following error. > java.lang.IllegalArgumentException: Unable to resolve 'ExceptionReport' to > a known page name. Available page names: (blank), About, Contact, Inde

[T5] How to handle a variable number of input fields in a form

2008-12-16 Thread Eric Ma
Forgive me if this question has been asked a million and one times. Coming from a Struts background, one of the feature I find useful over there is the easiness for handling a non-fixed number of form fields that are rendered through a loop, using the "indexed properties" approach. What is the e

Re: passivate/activate

2008-12-09 Thread Eric Ma
Very useful info, if you change http://localhost:8080 to http://jumpstart.doublenegative.com.au:8080 :-) Thanks Geoff for the great service to the community. Eric Geoff Callender-2 wrote: > > Do these links help? > > http://localhost:8080/jumpstart/examples/input/forms1 > http://localhost:80

Re: T5: disabling popup client-side validator alerts

2008-11-28 Thread Eric Ma
Read this thread: http://www.nabble.com/-Tapestry-5.0.15Hidding-client-side-validation-td20242061.html#a20242061 immutability wrote: > > So I guess there's no simple way? :-( > > Rado > > > > immutability wrote: >> >> Hey everyone, I'm sure this will (possibly) be a simple thing, but

Re: T5:Pages now broken under 17

2008-11-26 Thread Eric Ma
Please read the thread at http://www.nabble.com/-T5--Persistent-fields-may-not-be-updated-until-after-the-page-has-finished-loading-td20587662.html tapestryphoto wrote: > > Hi, > > I've just moved from 5.0.15 to 5.0.17. I now find I get this: > > Render queue error in BeginRender[Administrat

Re: [T5] Persistent fields may not be updated until after the page has finished loading

2008-11-21 Thread Eric Ma
int count = 0; > > became: > @Persist > private int count; > @SetupRender > void setupRender() { > count = 0; > } > > Hope that works for you too. > Cheers, > Marcel > > > Eric Ma wrote: >> >> Why was this restriction introdu

Re: Improvements to Loop

2008-11-19 Thread Eric Ma
This is what I do: Eric Joel Halbert-2 wrote: > > ... > b) easy access to the current index value, without having to provide > your own. Although you can provide your own index, this gets messy when > using inner loops, since you need to reset the inner loop index on every > iteration

[T5] Persistent fields may not be updated until after the page has finished loading

2008-11-19 Thread Eric Ma
Why was this restriction introduced in 5.0.16? It completely breaks our application. If the benefit is marginal, can we roll back to the original behavior? Or alternatively, what is a "better" practice under 5.0.16? Thanks, -- View this message in context: http://www.nabble.com/-T5--Persis

Re: [T5] Form submission via POST and problem under HTTPS

2008-11-14 Thread Eric Ma
stants.SECURE_PAGE, "true"); >>} >>else { >> configuration.add(MetaDataConstants.SECURE_PAGE, "false"); >>} >>} >> >> In my case, the production sites are secure and the development ones

Re: [T5] Form submission via POST and problem under HTTPS

2008-10-16 Thread Eric Ma
with the HTTP site the form action contains the fully-qualified URL, whereas the HTTPS site does not include the server and app names. Any clues, anyone? Eric Eric Ma wrote: > > Running version 5.0.15. > > Form submission works well in HTTP. Under HTTPS, T5 complains "Er

[T5] Form submission via POST and problem under HTTPS

2008-10-10 Thread Eric Ma
Running version 5.0.15. Form submission works well in HTTP. Under HTTPS, T5 complains "Error: Forms require that the request method be POST and that the t:formdata query parameter have values.". It seems 5.0.15 introduced a feature to block form GET. See https://issues.apache.org/jira/browse/T

Re: [T5] How to get to ApplocationGlobals and ServletContext

2008-10-05 Thread Eric Ma
Wow, spot on Filip! Thanks very much for the tip. Everything is working now. So folks, as of 5.0.15, the only way to inject a service into another service is through the constructor. Eric Filip S. Adamsen-2 wrote: > > Hi, > > Sounds like you tried using @Inject and friends to inject the se

Re: [T5] How to get to ApplocationGlobals and ServletContext

2008-10-04 Thread Eric Ma
Thanks for your reply. Actually, I found I cannot inject anything into RequestFilter, not even Logger or any of my custom services. Looks like injection can only happen to components and pages. Eric ApplicationGlobals cannot be injected into RequestFilter. Inject RequestGlobals into it inste

[T5] How to get to ApplocationGlobals and ServletContext

2008-10-03 Thread Eric Ma
I have a custom RequestFilter, which authenticates users and checks for user roles, and is applied to all pages. To avoid database hit on every request, authenticated user is cached in Acegi SecurityContextHolder. Now, another part of the app allows admins to update user roles, adding or removin

[T5] How to dynamically render a set of checkboxes

2008-09-26 Thread Eric Ma
I am using T5 5.0.11. What I want to achieve is the following: I have 2 lists, one with all possible options, and the other pre-selected options. I want to dynamically create a group of checkboxes that correspond to all the possible options, with the ones matching the pres-selected values check

Tapestry 5 - how to access HttpSession

2008-07-31 Thread Eric Ma
Gurus: Can you show me how to access HttpSession from a Tapestry 5 page or component class? Thanks, Eric --- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediat