NPE in Form on Websphere 8 after applying load

2013-06-24 Thread Christian Köberl
We have a quite strange behavior on IBM Websphere 8 / IBM Java 6 - we get a NullPointerException in Form.java:406 (Tapestry 5.2.6). Here's the corresponding line from Form.java:406: resources.triggerEvent(EventConstants.PREPARE_FOR_RENDER, context, null); The NPE first is raised after some paralle

Re: jquery JGrowl exception

2013-06-24 Thread Thiago H de Paula Figueiredo
On Mon, 24 Jun 2013 17:54:14 -0300, Jan Fryblik wrote:Hi guys,Hi!Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: A component event handler method returned the value {}. Return type org.apache.tapestry5.json.JSONObject can not be handled.These "Return type XXX can not be handled" m

Re: Using javascript to submit a ajax form breaks it

2013-06-24 Thread Boris Horvat
Ok this appears to be wroking $('#form').submit(); Thanks so much Cheers On Mon, Jun 24, 2013 at 10:53 PM, Boris Horvat wrote: > By call I assume that you mean to use jquery to trigger an event? > > assuming that is what you meant then it wont work (or at least my code is > not working) > >

Re: Using javascript to submit a ajax form breaks it

2013-06-24 Thread Boris Horvat
By call I assume that you mean to use jquery to trigger an event? assuming that is what you meant then it wont work (or at least my code is not working) function trigger(){ $('#form').trigger('onsubmit'); }

jquery JGrowl exception

2013-06-24 Thread Jan Fryblik
Hi guys,i don't know what to do with this error. Its thrown from JGrowl component in Tapestry-JQuery module. What is strange, i have this component in page, but i haven't time to adjust page in order to use it. Also it occurs only in production environment so I think its caused by a robot. Also wh

Re: Using javascript to submit a ajax form breaks it

2013-06-24 Thread Lenny Primak
You can call onsubmit event exactly the same way you call submit now. It should just work. On Jun 24, 2013, at 4:40 PM, Boris Horvat wrote: > Hi, > > How do you mean use onsubmit? That is an event, right? > > I want to submit a from vie ajax on blur event so I dont see how onsubmit > event

Re: Using javascript to submit a ajax form breaks it

2013-06-24 Thread Boris Horvat
Hi, How do you mean use onsubmit? That is an event, right? I want to submit a from vie ajax on blur event so I dont see how onsubmit event will help me there :S Thanks :) On Mon, Jun 24, 2013 at 10:37 PM, Lenny Primak wrote: > Use onsubmit() instead of submit. Untested but it should work. > O

Re: Using javascript to submit a ajax form breaks it

2013-06-24 Thread Lenny Primak
Use onsubmit() instead of submit. Untested but it should work. Or look at how I do it in FlowLogix DisableAfterSubmit mixin On Jun 24, 2013, at 4:32 PM, Boris Horvat wrote: > Basically the code given bellow will throw an exception stating that this > is not an ajax request > > > >

Using javascript to submit a ajax form breaks it

2013-06-24 Thread Boris Horvat
Basically the code given bellow will throw an exception stating that this is not an ajax request value: ${value} - @Property @Persist private String value; @In

Re: Convert StreamResponse to Asset

2013-06-24 Thread Boris Horvat
Yea and when I think about it a bit more keeping it in memory will be a problem if the user is directed to a different server... OK I will solve this by uploading an image to some persistent storage (i.e. S3) and then server it as an asset. Thanks On Mon, Jun 24, 2013 at 10:38 AM, Lance Java wrot

Re: Class NotFound Error after deploying to Production Server

2013-06-24 Thread Thiago H de Paula Figueiredo
On Thu, 20 Jun 2013 16:40:35 -0300, Daniel Daud Buchafwe wrote: But after doing a bit of googling, I came across jersey java http library, which then solved my problem on posting xml data to the server, but then I encountered another problem, I am expecting the server to post xml data to

Re: Class NotFound Error after deploying to Production Server

2013-06-24 Thread Thiago H de Paula Figueiredo
On Thu, 20 Jun 2013 03:12:41 -0300, Daniel Daud Buchafwe wrote: Hi All; Hi! I am new in tapestry and trying to write my first application, I am utilizing httpclient in my application so that I can http request to other with xml content, all works okay in my localhost, but after deploying

Re: URLEncoderImpl throws exception when resource has ablank

2013-06-24 Thread Thiago H de Paula Figueiredo
On Mon, 24 Jun 2013 05:36:56 -0300, John wrote: Yes the URLs have spaces, I don't think they should but I don't control that content. Still invalid URLs. I think this is related to TAP5-1803 https://issues.apache.org/jira/browse/TAP5-1803 Actually, it isn't. 1803 is about *valid* charac

Re: DropdownDatePicker does not trigger event

2013-06-24 Thread Thiago H de Paula Figueiredo
On Mon, 24 Jun 2013 04:51:51 -0300, Haiming Zhang wrote: Hi All, Hi! I am using tapestry 4, I tried to trigger some event if the the value of the date changes. So I have the following code, but the onValueChanged event has never been triggered (I am not able to see message "show me").

Re: user rolle, tapestry +hibernate

2013-06-24 Thread Thiago H de Paula Figueiredo
On Mon, 24 Jun 2013 07:10:45 -0300, Will N. wrote: Hi, Hi! i am working on a project with tapestry and hibernate. My Application already has a login but I would like to give different users different roles so that some user can not acces some pages() or perform some queries to the data

Re: Error in GridCollapse

2013-06-24 Thread Lance Java
Looks like you're running an old version of the mixin. Update the mixin to the latest code and run again. You should get a better error message. As I've said before, I suspect you are trying to render an empty grid. Or you are rendering a cell with extra elements. The mixin expects the cell to ONL

Re: user rolle, tapestry +hibernate

2013-06-24 Thread Taha Hafeez Siddiqi
Hi Will I would suggest Tapestry Security. http://tynamo.org/tapestry-security+guide It is very easy to setup, use & configure. You will also find link to a Hibernate based Realm. http://svn.codehaus.org/tynamo/trunk/tynamo-federatedaccounts/tynamo-federatedaccounts-core/src/test/java/org/tyn

Re: user rolle, tapestry +hibernate

2013-06-24 Thread Lance Java
There's a few options: Tynamo's tapestry-security http://tynamo.org/tapestry-security+guide tapestry-spring-security http://www.localhost.nu/java/tapestry-spring-security/conf.html Or you could roll-your-own http://tapestryjava.blogspot.co.uk/search/label/security

Error in GridCollapse

2013-06-24 Thread Will N.
Hi, I have some problems using the GridCollapse class(http://tapestry-stitch.uklance.cloudbees.net/gridcollapsedemo) of Lance in my application. I get an error message. note that GridCollapse.java line 119 is: Node lastChild= topChildren.get(topChildren.size() - 1); thanks * ocation

user rolle, tapestry +hibernate

2013-06-24 Thread Will N.
Hi, i am working on a project with tapestry and hibernate. My Application already has a login but I would like to give different users different roles so that some user can not acces some pages() or perform some queries to the database. can someone tell me a good way to do that? thanks Will

How to overlay DateField pop-up over jquery/datatable

2013-06-24 Thread newbie newbie
Hi, When I have a DateField component above a grid, the DateField pop-up(calendar style) overlays the grid. However, when I use jquery/datatable, the DateField pop-up is obstructed by the datatable. How can I have the DateField pop-up overlays the datatable?

Limit the logging activity of the yuicompressor?

2013-06-24 Thread Andreas Bohnert
Hi, is there any way to control the logging activity of the yuicompressor? Provide options to the yuicompressor, provide your own ErrorReporter, switch off logging ... Any suggestions? Thanks, Andreas - To unsubscribe, e-m

Re: Convert StreamResponse to Asset

2013-06-24 Thread Lance Java
Firstly, it's dangerous to hold a reference to an UploadedFile instance after the request that created it has reached end of life. You must read the InputStream whilst the request is live and store it somewhere (either in a database, a blobstore or as a byte array in the HTTPSession etc). If you'd

Re: URLEncoderImpl throws exception when resource has ablank

2013-06-24 Thread John
Yes the URLs have spaces, I don't think they should but I don't control that content. I think this is related to TAP5-1803 https://issues.apache.org/jira/browse/TAP5-1803 I hacked the encoder for now to accept spaces and that seems to work but I'll try and get the content provider to remove th

DropdownDatePicker does not trigger event

2013-06-24 Thread Haiming Zhang
Hi All, I am using tapestry 4, I tried to trigger some event if the the value of the date changes. So I have the following code, but the onValueChanged event has never been triggered (I am not able to see message "show me"). Then I tried "onClick()" and "onMouseOver()", neither respond. Please