Dissapearing attribute from session

2020-05-11 Thread Michał Więckowski
Hello everyone,

I'm expecting bizarre behavior and  I'm slowly running out of options
what can be wrong. Maybe someone had a similar problem.

I've got a tapestry app (T5.5) and sometimes when I refresh pages (this
behavior I can see in many pages across my app), my session attributes are
lost. By "lost" I mean they are set as null, as they were never set. To be
more precise, I can observe this in a Map object that is stored in the
session.
I've observed that this loss is happening during a full page reload (in
other words, running ajax "hits" don't cause it).
What's more, this lost I can only see in my prod env (which in this case is
Azure). In my local development env, everything is working like a charm.

I know that this is only a brief description, but I don't even know what
details may be helpful with the solution to this problem.  Please ask and
thanks in advance.


-- 
regards,

MW


Re: ProgressiveDisplay

2018-01-31 Thread Michał Więckowski
Hi Thiago,

Finally I change the whole idea, but this is a very good advice for the
future.

So many thanks to you :)

2018-01-25 12:22 GMT+01:00 Thiago H. de Paula Figueiredo <thiag...@gmail.com
>:

> Is you form inside ProgressiveDisplay or the other way around? If not, then
> the error is expected, since part of the form would be loaded in a request
> and the rest in another.
>
> The solution for your problem is creating a component which is basically
> the Select component but loading the options through AJAX (or finding some
> existing one that does that).
>
> On Wed, Jan 24, 2018 at 1:37 PM, Michał Więckowski <
> michal.wieckows...@gmail.com> wrote:
>
> > Hi Tapestry Users,
> >
> > I've got a question regarding ProgressiveDisplay component. I try to use
> it
> > combined with form element but each time it is complaining that there is
> no
> > form (*Component must be enclosed by a Form component*).
> >
> > I want to use *progressivedisplay *because data for my select are loading
> > long.
> >
> >
> > Example page:
> >
> > *Tml page:*
> >
> > 
> > 
> > Data 1
> > 
> >   
> >   
> >   Data2
> >   
> > 
> > 
> > 
> > 
> >
> >
> > Any ideas how this can get working will be appreciated :)
> >
>
>
>
> --
> Thiago
>



-- 
pozdrawiam

Michał Więckowski


ProgressiveDisplay

2018-01-24 Thread Michał Więckowski
Hi Tapestry Users,

I've got a question regarding ProgressiveDisplay component. I try to use it
combined with form element but each time it is complaining that there is no
form (*Component must be enclosed by a Form component*).

I want to use *progressivedisplay *because data for my select are loading
long.


Example page:

*Tml page:*



Data 1

  
  
  Data2
  






Any ideas how this can get working will be appreciated :)


Threads Tapestry 5.3.8 vs 5.4.3

2017-07-27 Thread Michał Więckowski
I've got an issue/question regarding threads in tapesty.

We have application that is using tapestry. When we updated from 5.3.8 to
5.4.3 I've found that ajax request are not handled in separate thread.

For example: I have a long process that was executed in controller/class.
However, I've got also a JS script that is generating ajax request for a
component. In Tapestry 5.3.8 those request were handeled normaly. When I
switch to 5.4.3 my request are not handeled, unitl my main process from
controller ends.

Does anyone know something regarding this behaviour?

-- 
pozdrawiam

Michał Więckowski


[T5.4 build 22] Exception in ExceptionReport.tml

2015-07-18 Thread Michał Więckowski
(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThrea

dPool.java:582)

-- 
pozdrawiam

Michał Więckowski


Re: [T5.4 build 22] Exception in ExceptionReport.tml

2015-07-18 Thread Michał Więckowski
This is not my excepton page - This is standard tapestry exception page.
It appears when there is an error in application and shows where is problem.
18 lip 2015 11:50 mailingl...@j-b-s.de mailingl...@j-b-s.de napisał(a):

 What exactly are you doing on your exception page? This error looks like a
 new thread is created which is not possible in GAE

 Jens



 Von meinem iPhone gesendet

  Am 18.07.2015 um 10:47 schrieb Michał Więckowski 
 michal.wieckows...@gmail.com:
 
  Hello everyone,
 
  I've got a question regarding tapestry 5.4. I try to integrate my
  application with tynamo tapestry security and Google App Engine.  After
  some development I started to get these exception when something in
  application is not working. I have written something because problem
  concerns ExceptionPage (as you can see on stacktrace attached below).
  Has anybody faced such a problem?
 
  Of course I can post some configuration files, but since I have no idea
  what can cause this exception of error page, I not posing any at the
  moment.
 
 
 HTTP ERROR 500
 
 Problem accessing /. Reason:
 
 org.apache.tapestry5.internal.services.RenderQueueException:
 Render
  queue error in SetupRender[core/ExceptionReport:loop_0]: Failure reading
  parameter 'source' of component core/ExceptionReport:loop_0: access
 denied
  (java.lang.RuntimePermission modifyThreadGroup) [at
  classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line
 110]
 Caused by:
 
 org.apache.shiro.subject.ExecutionException:
  org.apache.tapestry5.internal.services.RenderQueueException: Render queue
  error in SetupRender[core/ExceptionReport:loop_0]: Failure reading
  parameter 'source' of component core/ExceptionReport:loop_0: access
 denied
  (java.lang.RuntimePermission modifyThreadGroup) [at
  classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line
 110]
 at
 
 org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:385)
 at
 
 org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:54)
 at $HttpServletRequestFilter_12a67d391b5c.service(Unknown Source)
 at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
 at
  org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:59)
 at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
 at
 
 org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
 at $HttpServletRequestFilter_12a67d391b59.service(Unknown Source)
 at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
 at
 
 org.apache.tapestry5.modules.TapestryModule$1.service(TapestryModule.java:804)
 at $HttpServletRequestHandler_12a67d391b5f.service(Unknown Source)
 at $HttpServletRequestHandler_12a67d391b58.service(Unknown Source)
 at
 org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:166)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.api.socket.dev.DevSocketFilter.doFilter(DevSocketFilter.java:74)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.tools.development.ResponseRewriterFilter.doFilter(ResponseRewriterFilter.java:127)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:34)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:125)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 
 com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectRequest(DevAppServerModulesFilter.java:366)
 at
 
 com.google.appengine.tools.development.DevAppServerModulesFilter.doDirectModuleRequest(DevAppServerModulesFilter.java:349)
 at
 
 com.google.appengine.tools.development.DevAppServerModulesFilter.doFilter(DevAppServerModulesFilter.java:116)
 at
 
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 at
 
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216

[T5.3]Mulitfile upload

2015-01-27 Thread Michał Więckowski
Hi everyone,

For some time I'm struggling with such a problem, maybe you will be able to
advice me something usefull.

I need to find tool for handling multifile uploads. I did quite deep
searching with such a results:

1. Tawus-ajaxupload - it could be ok but it is based on commercial
library which make it non acceptable.

2. Tapestry5-jquerry - same as top

3. Tapestry5-xtensions - this look very promising, unfortunatley as far
as I can see it is working only for T5.4

4. http://swfupload.org  - web page is not working any more, so don't
know anything except that this used to be working with tapestry and allow
to upload many files with flash

So this is it - now your turn :). If you could advise me anything regarding
such component that will allow me multifile upload (and would be free) I
would be bery gratefull.

-- 
pozdrawiam

Michał Więckowski