[T5.3-beta-26] html 5 doctype - does it work?

2011-10-22 Thread Lenny Primak
I am trying to do some HTML5 on my web site. Here is what I see in the browser (Safari) output: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>http://www.w3.org/1999/xhtml";> I don't think that's correct, is it?

Datepicker localization issue

2011-10-22 Thread Lenny Primak
Right now the default EN locale for the 6 month popup is not localized properly. "2011Octpber" vs. "October 2011". Worthy of a JIRA issue? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands

RE: Error Page

2011-10-22 Thread Wechsung, Wulf
Great idea (keep saying that today ;) http://wiki.apache.org/tapestry/Tapestry5HowToSendErrorPageAsEmail -Original Message- From: Lenny Primak [mailto:lpri...@hope.nyc.ny.us] Sent: Samstag, 22. Oktober 2011 21:27 To: Tapestry users Subject: Re: Error Page Why don't you update the Tape

RE: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Wechsung, Wulf
True, components render in order and they take parameters ... great idea, actually :) thanks! -Original Message- From: Howard Lewis Ship [mailto:hls...@gmail.com] Sent: Samstag, 22. Oktober 2011 21:54 To: Tapestry users Subject: Re: ComponentResources.getInformalParameterNames() Or it c

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Howard Lewis Ship
Or it could be that you are misusing blocks, which are designed to have truly simple semantics, when you could be using nested components instead, so you could have the semantics you desire. On Sat, Oct 22, 2011 at 11:17 AM, Thiago H. de Paula Figueiredo wrote: > On Sat, 22 Oct 2011 15:38:17 -020

Re: Error Page

2011-10-22 Thread Lenny Primak
Why don't you update the Tapestry wiki. It's trivial to do. On Oct 22, 2011, at 3:23 PM, Wechsung, Wulf wrote: > > Hi Thiago, > > thanks for the great tip! I managed to accomplish exactly what I set out to > do :) > If anyone is doing a cookbook, I would be willing to share how I did it > ex

FW: Error Page

2011-10-22 Thread Wechsung, Wulf
Hi Thiago, thanks for the great tip! I managed to accomplish exactly what I set out to do :) If anyone is doing a cookbook, I would be willing to share how I did it exactly. Best Regards, Wulf -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Sam

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Thiago H. de Paula Figueiredo
On Sat, 22 Oct 2011 15:38:17 -0200, Wechsung, Wulf wrote: Besides the issue of what the spec really means by "not significant" (I strongly suspect it means for validity only), I really don't understand what's behind that statement. I mean, every XML parser simply parses text. But attri

Re: Problem with tapestry-yuicompressor in Tomcat

2011-10-22 Thread Lenny Primak
I had the problem under Glassfish as well. There is a conflict between Rhino JS and yuicompressor libraries. I got around it by putting a combined Rhino-js and Yuicompressor library onto the CLASSPATH Here is a little maven / ant magic to generate the combind JAR (from http://code.google.com/p/fl

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Lenny Primak
I would file a JIRA. If nothing else maybe it will get the thought process started. On Oct 22, 2011, at 1:38 PM, Wechsung, Wulf wrote: > Hi Steve, > >> No parser (that I'm aware of) actively enforces attributes to be returned in >> a particular order. > > Besides the issue of what the spec r

RE: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Wechsung, Wulf
Hi Steve, > No parser (that I'm aware of) actively enforces attributes to be returned in > a particular order. Besides the issue of what the spec really means by "not significant" (I strongly suspect it means for validity only), I really don't understand what's behind that statement. I mean, e

RE: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Wechsung, Wulf
Hello Robert, actually, according to this: http://www.ibm.com/developerworks/xml/library/x-eleord/index.html a XML parser would be free to report even elements alphabetically. Pure lunacy! I'm sorry to say, but if this is true then whoever wrote the XML spec really screwed up there. In documen

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Robert Zeigler
On Oct 22, 2011, at 10/227:59 AM , Wechsung, Wulf wrote: > Hi Robert, > > thanks for your response! > > I see. I understand that the attribute order (even element order ...) in the > document is supposed to be insignificant but does that really mean that the > information about the attribute

jsessionid in URL results in RequestExceptionHandler

2011-10-22 Thread Leon Derks
Hello Every once in a while I get the error below after logging in. The jsessionid is then visible in my url. I don't understand why this happens and why this occurs sometimes. Does somebody of you know what is going wrong and what I can do to solve this? regards, Leon ERROR org.apache.tapest

Re: Render queue error in BeginRender

2011-10-22 Thread Julien Martin
Steve, Good point about the clue in the stacktrace! But it is not a NPE: rather an IllegalArgumentException. I believe what is null is not the Entity but rather its properties (i.e. Strings in my case). What puzzles me is that it worked upon page refresh but not upon first call to the page!! I a

Re: Render queue error in BeginRender

2011-10-22 Thread Steve Eynon
Oh yeah, re-looking, the clue was in the stacktrace: > Render queue error in BeginRender meaning you needed to load your entity sometime before that phase - i.e. setupRender() I don't what was causing the NPE though, loading your entity in onPrepareForRender() should have been okay. Looks like i

Re: Render queue error in BeginRender

2011-10-22 Thread Julien Martin
Steve, It works with @SetupRender Thanks!! 2011/10/22 Steve Eynon > > Thanks for your reply Steve, > > No worries, I know how frustrating it can be when no one answers! > > > I was not able to find any such EventConstant > > SetupRender is not an component event, it's a um, render phase! See her

Re: Render queue error in BeginRender

2011-10-22 Thread Steve Eynon
> Thanks for your reply Steve, No worries, I know how frustrating it can be when no one answers! > I was not able to find any such EventConstant SetupRender is not an component event, it's a um, render phase! See here: http://tapestry.apache.org/component-rendering.html Essentially rename your

Re: Render queue error in BeginRender

2011-10-22 Thread Julien Martin
Thanks for your reply Steve, I am also surprised because I am actually trying to follow an example taken from Igor's book. My ChildMinderAccount is a JPA entity that extends an abstract Account class. Regarding your suggestion of using the setuprender phase, I was not able to find any such EventC

Re: Render queue error in BeginRender

2011-10-22 Thread Steve Eynon
Nothing there I can see that's obvious... What does your ChildminderAccount look like? Creating it in the PREPARE_FOR_RENDER event should be fine - but you could always try creating it the SetupRender() render phase - see if it's any different. Steve. On 22 October 2011 20:50, Julien Martin w

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Steve Eynon
Hiya, > Bearing in mind XML doesn't enforce ordering on attributes. I was merely quoting the W3C XML recommendation which states: http://www.w3.org/TR/REC-xml/#sec-starttags "The order of attribute specifications in a start-tag or empty-element tag is not significant." So any XML parser that re

RE: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Wechsung, Wulf
Hi Robert, thanks for your response! I see. I understand that the attribute order (even element order ...) in the document is supposed to be insignificant but does that really mean that the information about the attribute order should be actively discarded ie that code that does processing on

Re: Problem with tapestry-yuicompressor in Tomcat

2011-10-22 Thread Barry Books
Does not work for me in Tomcat either, but Jetty under Eclipse works fine. I get a 500 under Tomcat and this: [ERROR] ioc.Registry java.util.EmptyStackException [ERROR] ioc.Registry Operations trace: [ERROR] ioc.Registry [ 1] Streaming asset stack en/core.js [ERROR] ioc.Registry [ 2] Minimizing J

Render queue error in BeginRender

2011-10-22 Thread Julien Martin
Hello, I have rephrased my previous post into this new one. I have the following t5 template:

Re: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Robert Zeigler
Block parameters are only one type of informal parameter.Consider: Steve was thinking about attributes rather than block parameters because that's teh most common case for informal parameters. In your case, you need to define some sort of tab model that defines the tab ids as possibly

RE: ComponentResources.getInformalParameterNames()

2011-10-22 Thread Wechsung, Wulf
Hi Steve, Thanks for your reply. LinkedHashMap serves for those cases, I would think ;). Is this bug-worthy enough ie would raising a JIRA issue be fruitful here? > Turning the question on it's head, why would you need the order of informal parameters anyway? Bearing in mind XML doesn't enforc

Re: Error Page

2011-10-22 Thread Thiago H. de Paula Figueiredo
On Fri, 21 Oct 2011 21:01:23 -0200, Wechsung, Wulf wrote: Hello all, Hi! I will open up my t5 intranet application for "public" testing next week and was planning on having slf4j send me all exception stack traces that occur per email. I was wondering if it's possible to do the same fo

Re: [T5.3-beta-26] DateField Ajax JS errors

2011-10-22 Thread Lenny Primak
Funny thing, I never wanted to touch JavaScript, but here we are... On Oct 22, 2011, at 6:58 AM, Steve Eynon wrote: > Blimey, > > It looks like you worked hard to find that one! > > Well done! > > Steve. > > > > > On 22 October 2011 17:30, Lenny Primak wrote: >> I found the bug in undersc

Re: [T5.3-beta-26] DateField Ajax JS errors

2011-10-22 Thread Steve Eynon
Blimey, It looks like you worked hard to find that one! Well done! Steve. On 22 October 2011 17:30, Lenny Primak wrote: > I found the bug in underscore.js, and it's a serious one. > https://issues.apache.org/jira/browse/TAP5-1716 > > I also submitted a bug for underscore.js itself. > > On O

Re: Problems using JPA with 5.3

2011-10-22 Thread Lenny Primak
Are you using single or multiple datasources in persistence.xml? Are you putting your entity classes in entities package? tapestry-jpa is more sensitive about these thing then Tynamo is. On Oct 22, 2011, at 6:54 AM, Dimitris Zenios wrote: > there regarding weaving.So there must be something else

Re: Problems using JPA with 5.3

2011-10-22 Thread Dimitris Zenios
Jesse i have looked at tynamo-jpa source code and there is nothing in there regarding weaving.So there must be something else.Maybe igor (Creator of tapestry-jpa) can help us. On Sat, Oct 22, 2011 at 6:21 AM, jesse wrote: > Maybe tynamo does something to get weaving working that tapestry-jpa does

Re: [T5.3-beta-26] DateField Ajax JS errors

2011-10-22 Thread Lenny Primak
I found the bug in underscore.js, and it's a serious one. https://issues.apache.org/jira/browse/TAP5-1716 I also submitted a bug for underscore.js itself. On Oct 22, 2011, at 3:56 AM, Lenny Primak wrote: > Never mind, the 'old' contains() works correctly. > This actually seems to be what's wrong

Re: [T5.3-beta-26] DateField Ajax JS errors

2011-10-22 Thread Lenny Primak
Never mind, the 'old' contains() works correctly. This actually seems to be what's wrong with the new code, the scripts that should not be reloaded (datepicker.js) are reloaded when zone is refreshed. On Oct 22, 2011, at 3:53 AM, Lenny Primak wrote: > Digging there even further, > it seems that

Re: [T5.3-beta-26] DateField Ajax JS errors

2011-10-22 Thread Lenny Primak
Digging there even further, it seems that the old addScripts() had a bug that Tapestry.ScriptManager.contains(document.scripts, "src", ...) would silently throw the exception every time, and the scripts would never get reloaded, which masked the problem. With this code reworked, scripts actually

Re: How to load a page into a zone

2011-10-22 Thread Henrik von Schlanbusch
Henrik von Schlanbusch enovate.no> writes: > I know the URL I want the zone to be updated with, > and I also know the id of the zone in the page. So is it > in some way or another possible to use the Tapestry.ZoneManager > to load the url into the zone of which I know the id? > For some mo

How to load a page into a zone

2011-10-22 Thread Henrik von Schlanbusch
Hi We are trying to make navigation in our application more dynamic and easier to manage. We have built zones that register themselves to a central javascript controller (AdaptitController) when they are rendered. The purpose of the zones is that they should be updated via ajax when objects a

Re: Render queue error in BeginRender: Class cannot be null

2011-10-22 Thread Julien Martin
up please 2011/10/21 Julien Martin > Hello Thiago, > > Tapestry version: T5.2.6 > > Java class: > *public class InscriptionProfessionnelGardeEnfant {* > * > * > *@Property* > *@Persist* > *@Valid* > *private ChildminderAccount childminderAccount;* > * > * > *@Property* > *