Re: Hidden field encoder problem

2009-04-08 Thread Robert Zeigler


On Apr 7, 2009, at 4/71:40 AM , Andrew Court wrote:



Thanks for the reply.

Okay, but either way, it's still just converting a string to a  
java.sql.Date

and back again.



Yes, but in one case, the user is inputting the value, which means you  
have to validate the input (you have to validate the input for a  
hidden form field, as well, of course, but with different semantics;  
in one case, you're checking for correct format/etc., and in the  
other, you're making sure there was no tampering).  The translator  
interface provides the hooks for doing the format conversions,  
validations, etc. that you need for user-input data.




It still doesn't explain why the encoder is not working for the Hidden
field. Just wondering if anyone else has encountered this problem, and
whether it's a bug, or just something i'm overlooking?



That, I can not say; you haven't posted the code for your value  
encoder. ;)


Robert

PS - I realize that the translator vs. encoder issue seems to be  
splitting hairs; check out past discussions on this (or maybe the  
dev?) list between, eg, HLS, Kevin Menard, and myself regarding  
Translator/Encoder/Coercer madness. :)




Andrew



Robert Zeigler wrote:


There's a fundamental difference between text field and hidden field:
one is intended for direct user-input data, and the other is not.
Hence, the use of translator vs. encoder.

Robert


On Apr 6, 2009, at 4/67:09 PM , Andrew Court wrote:



I'm seeing an issue with the new Hidden field component in 5.1.0.2.

I've written a ValueEncoder to translate between string and
java.sql.Date,
but this throws a class cast exception when used as the encoder
parameter
for the hidden field.

If I use a regular TextField component and use a ValueTranslator,
then this
works without problem.

The question is, why does Hidden field use an encoder, when
TextField uses a
translator?  Perhaps there should be some consistency here.

--
View this message in context:
http://www.nabble.com/Hidden-field-encoder-problem-tp22919903p22919903.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org





--
View this message in context: 
http://www.nabble.com/Hidden-field-encoder-problem-tp22919903p22922658.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: "User" service?

2009-04-08 Thread Kristian Marinkovic
try to implement a Dispatcher. it is executed in a pipeline on every 
request. you can analyze the request (parameters) and set a ASO
object if necessary. to set an ASO object programmatically you need
to inject the ApplicationStateManager service. 

there is an article in the wiki that describes how to write a dispatcher 
to check 
if a user is logged in.

g,
kris





daniel joyce  
09.04.2009 07:31
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
"User" service?







So I want to use pages with context so that it is easily bookmarkable.

My website uses a DataSourcerealm to determine which pages can be
accessed by a user.

So normal flow is user logs in, first page he gets directed to sets up
the User object as a ASO, other pages use this user.

But if he bookmarks a url with context, say "configureProject/124332",
and he clickes on the bookmark, logs in to tomcat, and gets redirected
to it, the User object may not have been initialized yet. Now
configure project is fine, since it is mostly working with projects.
But I want the user object to exist so that I confirm the user
actually owns it.

Now I could have a basepage, whose onActivate() grabs the auth'd user
string from the Httpsession, runs a query, and either sets up the User
object, or bounces out the login page. And every other page could
inherit from this one, and call super.OnActivate in their onActivate
method.

But I was wondering, is there a service I can write that can examine
the HttpSession, and populate the User object. Is HttpSession
available to services already? IE, can I inject it in the usual method
via my builder?

-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




"User" service?

2009-04-08 Thread daniel joyce
So I want to use pages with context so that it is easily bookmarkable.

My website uses a DataSourcerealm to determine which pages can be
accessed by a user.

So normal flow is user logs in, first page he gets directed to sets up
the User object as a ASO, other pages use this user.

But if he bookmarks a url with context, say "configureProject/124332",
and he clickes on the bookmark, logs in to tomcat, and gets redirected
to it, the User object may not have been initialized yet. Now
configure project is fine, since it is mostly working with projects.
But I want the user object to exist so that I confirm the user
actually owns it.

Now I could have a basepage, whose onActivate() grabs the auth'd user
string from the Httpsession, runs a query, and either sets up the User
object, or bounces out the login page. And every other page could
inherit from this one, and call super.OnActivate in their onActivate
method.

But I was wondering, is there a service I can write that can examine
the HttpSession, and populate the User object. Is HttpSession
available to services already? IE, can I inject it in the usual method
via my builder?

-Daniel

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: tapestry5 on google appengine exception

2009-04-08 Thread Jun Tsai
The real exception:

 [java] Caused by: java.lang.ClassNotFoundException: caught an exception
while obtaining a class file for
org.apache.tapestry5.corelib.components.Loop$1
 [java] at javassist.Loader.findClass(Loader.java:359)
 [java] at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader.findClass(ComponentInstantiatorSourceImpl.java:94)
 [java] at javassist.Loader.loadClass(Loader.java:311)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 [java] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 [java] ... 77 more
 [java] Caused by: javassist.NotFoundException:
org.apache.tapestry5.corelib.components.Loop$1
 [java] at javassist.ClassPool.get(ClassPool.java:436)
 [java] at
org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.onLoad(ComponentInstantiatorSourceImpl.java:197)
 [java] at javassist.Loader.findClass(Loader.java:340)
 [java] ... 81 more


tapestry5 on google appengine exception

2009-04-08 Thread Jun Tsai
hi,
 I want to run a tapestry5 app on google appengine.but i got following
exception:

HTTP ERROR: 500

Could not initialize class org.apache.tapestry5.corelib.components.Loop

RequestURI=/
Caused by:

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.tapestry5.corelib.components.Loop
at $Instantiator_120893f4cc2.newInstance($Instantiator_120893f4cc2.java)
at 
org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.(InternalComponentResourcesImpl.java:132)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.(ComponentPageElementImpl.java:545)
at 
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.newChild(ComponentPageElementImpl.java:627)
at 
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleEmbeddedComponent(ComponentAssemblerImpl.java:132)
at 
org.apache.tapestry5.internal.pageload.PageLoaderImpl$12.execute(PageLoaderImpl.java:954)
at 
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.runActions(ComponentAssemblerImpl.java:193)
at 
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleEmbeddedComponent(ComponentAssemblerImpl.java:145)
at 
org.apache.tapestry5.internal.pageload.PageLoaderImpl$12.execute(PageLoaderImpl.java:954)
at 
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.runActions(ComponentAssemblerImpl.java:193)
at 
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:88)
at 
org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159)
at $PageLoader_120893f4c9e.loadPage($PageLoader_120893f4c9e.java)
at 
org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210)
at 
org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99)
at $PagePool_120893f4c9d.checkout($PagePool_120893f4c9d.java)
at 
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51)
at $RequestPageCache_120893f4c9c.get($RequestPageCache_120893f4c9c.java)
at $RequestPageCache_120893f4c95.get($RequestPageCache_120893f4c95.java)
at 
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:69)
at 
$RequestExceptionHandler_120893f4c7f.handleRequestException($RequestExceptionHandler_120893f4c7f.java)
at 
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)
at $RequestHandler_120893f4c82.service($RequestHandler_120893f4c82.java)
at 
org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:782)
at $RequestHandler_120893f4c82.service($RequestHandler_120893f4c82.java)
at 
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:771)
at $RequestHandler_120893f4c82.service($RequestHandler_120893f4c82.java)
at 
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85)
at $RequestHandler_120893f4c82.service($RequestHandler_120893f4c82.java)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:81)
at 
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at 
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103)
at $RequestHandler_120893f4c82.service($RequestHandler_120893f4c82.java)
at $RequestHandler_120893f4c77.service($RequestHandler_120893f4c77.java)
at 
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:202)
at 
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
at 
$HttpServletRequestHandler_120893f4c79.service($HttpServletRequestHandler_120893f4c79.java)
at 
org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
at 
$HttpServletRequestFilter_120893f4c76.service($HttpServletRequestFilter_120893f4c76.java)
at 
$HttpServletRequestHandler_120893f4c79.service($HttpServletRequestHandler_120893f4c79.java)
at 
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:730)
at 
$HttpServletRequestHandler_120893f4c79.service($HttpServletRequestHandler_120893f4c79.java)
at 
$HttpServletRequestHandler_120893f4c74.service($HttpServletRequestHandler_120893f4c74.java)
at org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:127)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.googl

Re: [appengine-java] Re: svn commit: r763398 - in /tapestry/tapestry5/trunk/...

2009-04-08 Thread Howard Lewis Ship
Just slipping a few things under the wire, as always.

We'll see how GAE handles class loaders, Javassist, etc. I suspect
there will be more to come.

On Wed, Apr 8, 2009 at 5:08 PM, Christian Edward Gruber
 wrote:
>
> Thanks for this, Howard.
>
> On 8-Apr-09, at 17:17 , hls...@apache.org wrote:
>
>> Author: hlship
>> Date: Wed Apr  8 21:17:16 2009
>> New Revision: 763398
>>
>> URL: http://svn.apache.org/viewvc?rev=763398&view=rev
>> Log:
>> TAP5-634: Google App Engine Support: ability to disable code that
>> creates new threads
>>
>> Added:
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/
>> tapestry5/ioc/internal/services/NonParallelExecutor.java   (with
>> props)
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/parallel.apt
>> (with props)
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/
>> tapestry5/ioc/internal/services/NonParallelExecutorTest.java   (with
>> props)
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/test/java/org/apache/
>> tapestry5/ioc/internal/services/NonParallelModule.java   (with props)
>> Modified:
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/
>> tapestry5/IOCSymbols.java
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/
>> tapestry5/ioc/services/ParallelExecutor.java
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/main/java/org/apache/
>> tapestry5/ioc/services/TapestryIOCModule.java
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/site/apt/advice.apt
>>    tapestry/tapestry5/trunk/tapestry-ioc/src/site/site.xml
>>
>
> Christian Edward Gruber
> e-mail: christianedwardgru...@gmail.com
> weblog: http://www.geekinasuit.com/
>
>
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to google-appengine-j...@googlegroups.com
> To unsubscribe from this group, send email to 
> google-appengine-java+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en
> -~--~~~~--~~--~--~---
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Encoding an event context parameter in javascript

2009-04-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Apr 2009 20:07:41 -0300, Hugo Palma   
escreveu:



Any idea how i can do this ?


You can write a Javascript counterpart of ContextPathEncoder and  
contribute it to Tapestry or file a JIRA about it. :D

Talking seriously, I can't think of another solution now.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Encoding an event context parameter in javascript

2009-04-08 Thread Hugo Palma
Sometimes i need construct an event url in javascript. In order to be able
pass context parameter to the event that include strings with spaces for
example i need to encode the parameter values.

I've tried url encoding but if i do i get an exception when tapestry tries
to build the EventContext. Something like:

java.lang.IllegalArgumentException: Input string 'a b' is not valid; the
character ' ' at position 2 is not valid.
at
org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143)
at $URLEncoder_12087e2f017.decode($URLEncoder_12087e2f017.java)
at
org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:86)

when the passed value is 'a b' url encoded. I can see that there's an
ContextPathEncoder service but that's obviously not available on javascript.
I'm using 5.1.0.2.

Any idea how i can do this ?
Thanks.


Re: Java support added to Google AppEngine

2009-04-08 Thread Markus Lux

I'm also trying to get the latest Tapestry running on Java App Engine but now
I got stuck.


Uncaught exception from servlet
java.lang.RuntimeException: Exception constructing service 'TemplateParser':
Error invoking constructor
org.apache.tapestry5.internal.services.TemplateParserImpl(Map, boolean) (at
TemplateParserImpl.java:50) via
org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder)
(at InternalModule.java:65) (for service 'TemplateParser'): Could not
initialize class
com.google.apphosting.runtime.security.shared.stub.javax.xml.stream.XMLInputFactory
at [...not posting the full stacktrace here]


I looked up that issue and stumbled upon
http://www.nabble.com/-T5.1--Running-on-Glassfish--td22132485.html .
It seems that the same problem occurs when using glassfish as a deployment
server. I think, the solution posted there is inpracticable when using
J-GAE.

Maybe someone already solved that problem and will post the solution here.


Thiago H. de Paula Figueiredo wrote:
> 
> Hi!
> 
> Yesterday it was announced that the Google AppEngine now supports Java
> applications. Some libraries are already supported, others not.
> JavaMail is supported, Hibernate isn't, JPA is, JSF suppport is
> unknown. Will anyone volunteer to test Tapestry there? :-)
> 
> http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html
> 
> -- 
> Thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Java-support-added-to-Google-AppEngine-tp22952683p22956787.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Blower, Andy
> On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy
>  wrote:
> > Another day, another couple of stumbling blocks for our applications
> migration to T5.1 - I can't believe this has taken a solid week of
> effort so far. I'm starting to wonder if we jumped the gun on moving to
> T5.1 so soon? I do seem to be having more problems than most people on
> the list, so maybe it's just me / our app or something.
> 
> I'm sorry and surprised you are having so much trouble.

I'm rather surprised too, the 5.0.x migrations (post .10) were always pretty 
easy. I think I must have gotten complacent about Tapestry alpha status because 
T5.0.11+ never really felt like alpha software to me. ;-)  (oh, and some of the 
new features in 5.1 are very appealing which is probably why migrating now was 
so tempting!)
 
> > Anyway, the first issue is with our checkbox components that do an
> Ajax call when checked or unchecked. They work fine if Gzip compression
> is switched off, but if it's enabled the Ajax.Request hits the
> onException block with this error message "TypeError: response is
> null". The server event handler is being called correctly and returning
> the correct JSONObject, but the responseText is empty and responseXML,
> responseJSON, and headerJSON are all null even though the status code
> is 200. My guess that the JSONObject is being compressed and it
> shouldn't be. Should I raise a JIRA for this, or am I mistaken here?
> 
> There's an existing JIRA issue, with a workaround.
> 
> https://issues.apache.org/jira/browse/TAP5-469
> 
> This only seems to affect some people ... I suspect it may only occur
> when an Apache server is between the browser and the servlet
> container. Can you confirm?

Currently I've only been testing in Jetty on my PC with no apache server in 
sight. The workaround is probably okay until you want to release 5.1 so there's 
some time for gathering more data. I know it sounds unlikely but could it be 
OSX/XP even with the same browsers? I can ask someone to test this on OSX 
tomorrow if that would help.

> >
> > I also have a page that works fine with T5.0.18 but breaks in
> T5.1.0.2 and I have no idea why - curiously, if I have gzip compression
> I don't see the stacktrace in the browser, but I get "Content Encoding
> Error", "The page you are trying to view cannot be shown because it
> uses an invalid or unsupported form of compression." From Firefox.
> >
> > Here is the stack trace, in case anyone can make any sense of it:
> >
> > An unexpected application exception has occurred.
> 
> Someone else has seen this as well.
> 
> 
> void render(MarkupModel model, StringBuilder builder, Map String> namespaceURIToPrefix)
> {
> builder.append(" ");
> builder.append(element.toPrefixedName(namespaceURIToPrefix,
> namespace, name));
> builder.append("=");
> builder.append(model.getAttributeQuote());
> model.encodeQuoted(value, builder);  // line 69
> builder.append(model.getAttributeQuote());
> }
> 
> I think this I can chase down; something is wrong, the value should
> never be null (it can be the empty string).

Did you see TAP5-635? It demonstrates a pretty bad consequence of this problem 
and it took time to investigate so I hope it proves useful.

I think 636 might be a duplicate.

Thanks,

Andy.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Howard Lewis Ship
On Wed, Apr 8, 2009 at 9:40 AM, Howard Lewis Ship  wrote:
> On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy  
> wrote:
>> Another day, another couple of stumbling blocks for our applications 
>> migration to T5.1 - I can't believe this has taken a solid week of effort so 
>> far. I'm starting to wonder if we jumped the gun on moving to T5.1 so soon? 
>> I do seem to be having more problems than most people on the list, so maybe 
>> it's just me / our app or something.
>
> I'm sorry and surprised you are having so much trouble.
>
>
>>
>> Anyway, the first issue is with our checkbox components that do an Ajax call 
>> when checked or unchecked. They work fine if Gzip compression is switched 
>> off, but if it's enabled the Ajax.Request hits the onException block with 
>> this error message "TypeError: response is null". The server event handler 
>> is being called correctly and returning the correct JSONObject, but the 
>> responseText is empty and responseXML, responseJSON, and headerJSON are all 
>> null even though the status code is 200. My guess that the JSONObject is 
>> being compressed and it shouldn't be. Should I raise a JIRA for this, or am 
>> I mistaken here?
>
> There's an existing JIRA issue, with a workaround.
>
> https://issues.apache.org/jira/browse/TAP5-469
>
> This only seems to affect some people ... I suspect it may only occur
> when an Apache server is between the browser and the servlet
> container. Can you confirm?
>
>>
>> I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
>> have no idea why - curiously, if I have gzip compression I don't see the 
>> stacktrace in the browser, but I get "Content Encoding Error", "The page you 
>> are trying to view cannot be shown because it uses an invalid or unsupported 
>> form of compression." From Firefox.
>>
>> Here is the stack trace, in case anyone can make any sense of it:
>>
>> An unexpected application exception has occurred.
>
> Someone else has seen this as well.
>
>
>>
>>  *   java.lang.NullPointerException
>>    *   
>> org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
>>    *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>>    *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
>>    *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
>>    *   
>> org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
>>    *   
>> org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
>>    *   
>> $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
>>    *   
>> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
>>    *   
>> org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
>>    *   
>> $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485

Re: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Howard Lewis Ship
On Wed, Apr 8, 2009 at 4:21 AM, Blower, Andy  wrote:
> Another day, another couple of stumbling blocks for our applications 
> migration to T5.1 - I can't believe this has taken a solid week of effort so 
> far. I'm starting to wonder if we jumped the gun on moving to T5.1 so soon? I 
> do seem to be having more problems than most people on the list, so maybe 
> it's just me / our app or something.

I'm sorry and surprised you are having so much trouble.


>
> Anyway, the first issue is with our checkbox components that do an Ajax call 
> when checked or unchecked. They work fine if Gzip compression is switched 
> off, but if it's enabled the Ajax.Request hits the onException block with 
> this error message "TypeError: response is null". The server event handler is 
> being called correctly and returning the correct JSONObject, but the 
> responseText is empty and responseXML, responseJSON, and headerJSON are all 
> null even though the status code is 200. My guess that the JSONObject is 
> being compressed and it shouldn't be. Should I raise a JIRA for this, or am I 
> mistaken here?

There's an existing JIRA issue, with a workaround.

https://issues.apache.org/jira/browse/TAP5-469

This only seems to affect some people ... I suspect it may only occur
when an Apache server is between the browser and the servlet
container. Can you confirm?

>
> I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
> have no idea why - curiously, if I have gzip compression I don't see the 
> stacktrace in the browser, but I get "Content Encoding Error", "The page you 
> are trying to view cannot be shown because it uses an invalid or unsupported 
> form of compression." From Firefox.
>
> Here is the stack trace, in case anyone can make any sense of it:
>
> An unexpected application exception has occurred.

Someone else has seen this as well.


>
>  *   java.lang.NullPointerException
>    *   
> org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
>    *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
>    *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
>    *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
>    *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
>    *   
> org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
>    *   
> org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
>    *   
> $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
>    *   
> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
>    *   
> org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
>    *   
> $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
>    *   
> $PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
>    *   
> org.apache.tapestry5.internal.services

Re: Several problems with T5.1.0.2

2009-04-08 Thread Howard Lewis Ship
On Wed, Apr 8, 2009 at 4:16 AM, serg-l  wrote:
>
> Hi!
> I'm found strange things when try T5.1.0.2...
> Under mvn jetty:run everything work properly...
>
> 1. When I'm perform integration tests (mvn test), after testing of several
> pages I'm receive java.lang.OutOfMemoryError: Java heap space
>

You'd really think this would be just the opposite, as Tapestry is
getting more thrifty with memory. What are you memory settings when
you run your tests?

Remember that with Maven you never quite know what your environment is
day to day ... this could as easily be a change in Jetty as a change
in Tapestry!


> 2. When I'm perform mvn package, install war, launch Jetty and try manually
> test form with Zone, I'm receive something like that:
> Return type org.apache.tapestry5.internal.structure.BlockImpl can not be
> handled. Configured return types are java.lang.Class, java.lang.String,
> java.net.URL, org.apache.tapestry5.Link,
> org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component.
> Also I'm see that some PageLinks incorrectly displays in status bar and also
> don't work properly.

This would indicate that a Zone-oriented partial update was processed
as a full page event request. That shouldn't be possible, with the
code in place to protect against this on the client side. Was this
Form on the page initially, or was it added via a Zone?

>
> If it need I'm give additional explanations...
> Under T5.1.0.1 I'm don't have this problems.
>
> Thanks.
> --
> View this message in context: 
> http://www.nabble.com/Several-problems-with-T5.1.0.2-tp22948196p22948196.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Blower, Andy
Thanks for this Ville it really helped me investigate this, still took 3 hours 
to track it down. I've raised TAP5-635 for this because it turned out to be 
related, but different - and also IMHO a valid use case. The stacktrace not 
appearing with compression is another issue that needs resolving, but it's 
minor.

> -Original Message-
> From: Ville Virtanen [mailto:ville.virta...@cerion.fi]
> Sent: 08 April 2009 12:33
> To: users@tapestry.apache.org
> Subject: Re: More migration issues, 5.0.18 -> 5.1.0.2
> 
> 
> Hi,
> 
> exatly the same problems we were having. I opened Jira issue because of
> this:
> 
> https://issues.apache.org/jira/browse/TAP5-623
> 
> For us the main reason was because we had
> 
> 
> 
> and then
> 
> 
>${value}
>
>   
>
> 
> 
> Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is
> readmode: (label gets null for parameter) - givin only some T5 internal
> stacktrace or the unsupported form of compression..
> 
>  Hope this helps,
> 
>  - Ville
> 
> 
> 
> Andy Blower wrote:
> >
> > Another day, another couple of stumbling blocks for our applications
> > migration to T5.1 - I can't believe this has taken a solid week of
> effort
> > so far. I'm starting to wonder if we jumped the gun on moving to T5.1
> so
> > soon? I do seem to be having more problems than most people on the
> list,
> > so maybe it's just me / our app or something.
> >
> > Anyway, the first issue is with our checkbox components that do an
> Ajax
> > call when checked or unchecked. They work fine if Gzip compression is
> > switched off, but if it's enabled the Ajax.Request hits the
> onException
> > block with this error message "TypeError: response is null". The
> server
> > event handler is being called correctly and returning the correct
> > JSONObject, but the responseText is empty and responseXML,
> responseJSON,
> > and headerJSON are all null even though the status code is 200. My
> guess
> > that the JSONObject is being compressed and it shouldn't be. Should I
> > raise a JIRA for this, or am I mistaken here?
> >
> > I also have a page that works fine with T5.0.18 but breaks in
> T5.1.0.2 and
> > I have no idea why - curiously, if I have gzip compression I don't
> see the
> > stacktrace in the browser, but I get "Content Encoding Error", "The
> page
> > you are trying to view cannot be shown because it uses an invalid or
> > unsupported form of compression." From Firefox.
> >
> > Here is the stack trace, in case anyone can make any sense of it:
> >
> > An unexpected application exception has occurred.
> >
> >  *   java.lang.NullPointerException
> > *
> >
> org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarku
> pModel.java:94)
> > *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *
> > org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> > *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> > *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
> > *   org.apache.tapestry5.dom.Node.toMarku

Re: Java support added to Google AppEngine

2009-04-08 Thread Christian Edward Gruber

Oh, I'll be blogging.

Christian.

On Apr 8, 2009, at 11:22 AM, Thiago H. de Paula Figueiredo wrote:


On Wed, Apr 8, 2009 at 12:19 PM, Christian Edward Gruber
 wrote:

I'm already on it.


Nice! Please post your impressions here or at a blog. :)

--
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Christian Edward Gruber
christianedwardgru...@gmail.com
http://www.geekinasuit.com/


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Java support added to Google AppEngine

2009-04-08 Thread Thiago H. de Paula Figueiredo
On Wed, Apr 8, 2009 at 12:19 PM, Christian Edward Gruber
 wrote:
> I'm already on it.

Nice! Please post your impressions here or at a blog. :)

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Java support added to Google AppEngine

2009-04-08 Thread Christian Edward Gruber

I'm already on it.

Christian.

On Apr 8, 2009, at 11:08 AM, Thiago H. de Paula Figueiredo wrote:


Hi!

Yesterday it was announced that the Google AppEngine now supports Java
applications. Some libraries are already supported, others not.
JavaMail is supported, Hibernate isn't, JPA is, JSF suppport is
unknown. Will anyone volunteer to test Tapestry there? :-)

http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html

--
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Christian Edward Gruber
christianedwardgru...@gmail.com
http://www.geekinasuit.com/


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Java support added to Google AppEngine

2009-04-08 Thread Thiago H. de Paula Figueiredo
Hi!

Yesterday it was announced that the Google AppEngine now supports Java
applications. Some libraries are already supported, others not.
JavaMail is supported, Hibernate isn't, JPA is, JSF suppport is
unknown. Will anyone volunteer to test Tapestry there? :-)

http://googleappengine.blogspot.com/2009/04/seriously-this-time-new-language-on-app.html

-- 
Thiago

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Blower, Andy
Thanks Ulrich, I didn't see that bug when I searched even though it's plainly 
visible to me now. I appreciate the quick response!

I'll add a comment (and a vote) as well as implementing the workaround. Looks 
like Howard can't reproduce it on OSX, but I definitely get this issue in IE6, 
FF3 & Chrome2 on windows XP.

> -Original Message-
> From: Ulrich Stärk [mailto:u...@spielviel.de]
> Sent: 08 April 2009 12:30
> To: Tapestry users
> Subject: Re: More migration issues, 5.0.18 -> 5.1.0.2
> 
> Someone else already stumbled upon this but it's not yet confirmed
> what's causing it. I believe Howard posted a workaround in the issue
> comments. https://issues.apache.org/jira/browse/TAP5-469
> 
> Cheers,
> 
> Uli
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Ville Virtanen

Hi,

exatly the same problems we were having. I opened Jira issue because of
this:

https://issues.apache.org/jira/browse/TAP5-623

For us the main reason was because we had 



and then


   ${value}
   
  
   


Now with T5.0.18 this worked fine, but now dies in 5.1.0.2 if it is
readmode: (label gets null for parameter) - givin only some T5 internal
stacktrace or the unsupported form of compression..

 Hope this helps,

 - Ville



Andy Blower wrote:
> 
> Another day, another couple of stumbling blocks for our applications
> migration to T5.1 - I can't believe this has taken a solid week of effort
> so far. I'm starting to wonder if we jumped the gun on moving to T5.1 so
> soon? I do seem to be having more problems than most people on the list,
> so maybe it's just me / our app or something.
> 
> Anyway, the first issue is with our checkbox components that do an Ajax
> call when checked or unchecked. They work fine if Gzip compression is
> switched off, but if it's enabled the Ajax.Request hits the onException
> block with this error message "TypeError: response is null". The server
> event handler is being called correctly and returning the correct
> JSONObject, but the responseText is empty and responseXML, responseJSON,
> and headerJSON are all null even though the status code is 200. My guess
> that the JSONObject is being compressed and it shouldn't be. Should I
> raise a JIRA for this, or am I mistaken here?
> 
> I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and
> I have no idea why - curiously, if I have gzip compression I don't see the
> stacktrace in the browser, but I get "Content Encoding Error", "The page
> you are trying to view cannot be shown because it uses an invalid or
> unsupported form of compression." From Firefox.
> 
> Here is the stack trace, in case anyone can make any sense of it:
> 
> An unexpected application exception has occurred.
> 
>  *   java.lang.NullPointerException
> *  
> org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
> *   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *  
> org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
> *   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
> *   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
> *   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
> *  
> org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
> *  
> org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
> *  
> $PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
> *  
> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
> *  
> org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
> *  
> $PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
> *  
> $PageRenderRequestHandler_12085541478.han

Re: More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Ulrich Stärk
Someone else already stumbled upon this but it's not yet confirmed 
what's causing it. I believe Howard posted a workaround in the issue 
comments. https://issues.apache.org/jira/browse/TAP5-469


Cheers,

Uli

Am 08.04.2009 13:21 schrieb Blower, Andy:

Another day, another couple of stumbling blocks for our applications migration 
to T5.1 - I can't believe this has taken a solid week of effort so far. I'm 
starting to wonder if we jumped the gun on moving to T5.1 so soon? I do seem to 
be having more problems than most people on the list, so maybe it's just me / 
our app or something.

Anyway, the first issue is with our checkbox components that do an Ajax call when checked 
or unchecked. They work fine if Gzip compression is switched off, but if it's enabled the 
Ajax.Request hits the onException block with this error message "TypeError: response 
is null". The server event handler is being called correctly and returning the 
correct JSONObject, but the responseText is empty and responseXML, responseJSON, and 
headerJSON are all null even though the status code is 200. My guess that the JSONObject 
is being compressed and it shouldn't be. Should I raise a JIRA for this, or am I mistaken 
here?

I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I have no idea why - 
curiously, if I have gzip compression I don't see the stacktrace in the browser, but I get 
"Content Encoding Error", "The page you are trying to view cannot be shown because 
it uses an invalid or unsupported form of compression." From Firefox.

Here is the stack trace, in case anyone can make any sense of it:

An unexpected application exception has occurred.

 *   java.lang.NullPointerException
*   
org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
*   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
*   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
*   
org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
*   
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
*   
$PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
*   
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
*   
org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
*   
$PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
*   
$PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
*   
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
*   
$ComponentRequestHandler_1208554147e.handlePageRender($ComponentRequestHandler_1208554147e.java)
*   
org.apache.tapestry5.internal.services.PageRenderDispatc

More migration issues, 5.0.18 -> 5.1.0.2

2009-04-08 Thread Blower, Andy
Another day, another couple of stumbling blocks for our applications migration 
to T5.1 - I can't believe this has taken a solid week of effort so far. I'm 
starting to wonder if we jumped the gun on moving to T5.1 so soon? I do seem to 
be having more problems than most people on the list, so maybe it's just me / 
our app or something.

Anyway, the first issue is with our checkbox components that do an Ajax call 
when checked or unchecked. They work fine if Gzip compression is switched off, 
but if it's enabled the Ajax.Request hits the onException block with this error 
message "TypeError: response is null". The server event handler is being called 
correctly and returning the correct JSONObject, but the responseText is empty 
and responseXML, responseJSON, and headerJSON are all null even though the 
status code is 200. My guess that the JSONObject is being compressed and it 
shouldn't be. Should I raise a JIRA for this, or am I mistaken here?

I also have a page that works fine with T5.0.18 but breaks in T5.1.0.2 and I 
have no idea why - curiously, if I have gzip compression I don't see the 
stacktrace in the browser, but I get "Content Encoding Error", "The page you 
are trying to view cannot be shown because it uses an invalid or unsupported 
form of compression." From Firefox.

Here is the stack trace, in case anyone can make any sense of it:

An unexpected application exception has occurred.

 *   java.lang.NullPointerException
*   
org.apache.tapestry5.dom.AbstractMarkupModel.encodeQuoted(AbstractMarkupModel.java:94)
*   org.apache.tapestry5.dom.Attribute.render(Attribute.java:69)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:313)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:835)
*   org.apache.tapestry5.dom.Element.toMarkup(Element.java:351)
*   org.apache.tapestry5.dom.Document.toMarkup(Document.java:163)
*   org.apache.tapestry5.dom.Node.toMarkup(Node.java:80)
*   
org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:57)
*   
org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67)
*   
$PageResponseRenderer_12085541484.renderPageResponse($PageResponseRenderer_12085541484.java)
*   
org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:63)
*   
org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1952)
*   
$PageRenderRequestHandler_12085541485.handle($PageRenderRequestHandler_12085541485.java)
*   
$PageRenderRequestHandler_12085541478.handle($PageRenderRequestHandler_12085541478.java)
*   
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
*   
$ComponentRequestHandler_1208554147e.handlePageRender($ComponentRequestHandler_1208554147e.java)
*   
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
*   $Dispatcher_12085541480.dispatch($Dispatcher_12085541480.java)
*   $Dispatcher_12085541472.dispatch($Dispatcher_12085541472.java)
*   
org.apache.tapestry5.services.TapestryModule$RequestHandler

Several problems with T5.1.0.2

2009-04-08 Thread serg-l

Hi!
I'm found strange things when try T5.1.0.2...
Under mvn jetty:run everything work properly...

1. When I'm perform integration tests (mvn test), after testing of several
pages I'm receive java.lang.OutOfMemoryError: Java heap space

2. When I'm perform mvn package, install war, launch Jetty and try manually
test form with Zone, I'm receive something like that: 
Return type org.apache.tapestry5.internal.structure.BlockImpl can not be
handled. Configured return types are java.lang.Class, java.lang.String,
java.net.URL, org.apache.tapestry5.Link,
org.apache.tapestry5.StreamResponse, org.apache.tapestry5.runtime.Component. 
Also I'm see that some PageLinks incorrectly displays in status bar and also
don't work properly. 

If it need I'm give additional explanations...
Under T5.1.0.1 I'm don't have this problems. 

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Several-problems-with-T5.1.0.2-tp22948196p22948196.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [localization] reusing facilities for enum-names

2009-04-08 Thread Igor Drobiazko
Provide translations for your Enum in the page's message catalog.

For example in Page_de,properties:
A.ONE=Eins
A.TWO=Zwei


On Sun, Apr 5, 2009 at 7:21 PM, manuel aldana  wrote:

> I got a java enumeration and would like to reuse the nice localization
> facilities from tapestry 5.
>
> let's say I have an enum:
>
> enum A{
>  ONE,TWO;
> }
>
> If it displays on a page I would like to have it displayed by the language
> (e.g. 'one' for en or 'zwei' for german).
>
> For displaying it on the page tapestry seems to use Enum.toString(). So I
> would override toString() and read some localized values from property
> files. How can I access tapestry localization facilities for that?
>
> --
> manuel aldana
> ald...@gmx.de
> software-engineering blog: http://www.aldana-online.de
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko