0 down vote favorite
i do debug on IBasicTableModel , on method
public IBasicTableModel getModel() {
return new IBasicTableModel() {
public int getRowCount() {
//this is called multiple times
}
public Iterator getCurrentPageRows(
int nFir
Christophe,
I think Paul's point is that there shouldn't be any overriding happening
: in his first case, these are private methods; hence, the @Override
annotation would be incorrect.
Sounds like a bug to me.
Regards,
Alex K
On Wed, Sep 1, 2010 at 2:27 AM, Christophe Cordenier <
chris
Hi !
Actually as far as i remember when method have the same name, the generated
code would simply call 'init' method without method selection in this case.
Anyway, Paul should use a protected or package visibility in his case and
call super.init() on the parent class.
2010/9/1 Alex Kotchnev
>
Also, i don't know how this would be possible in pure Java... without
modifying method prototypes.
2010/9/1 Christophe Cordenier
> Hi !
>
> Actually as far as i remember when method have the same name, the generated
> code would simply call 'init' method without method selection in this case.
>
Can anyone advise on the best approach to submitting XML via a T5 form? I
have a requirement to allow the user to submit XML via a form field - this
XML is then persisted in the database. What approach to CDATA etc. can I
use to ensure the form is posted / redisplayed correctly? Is there any
bui
Christophe,
I'm not sure that you understand the problem. Please review my initial post.
Regards, Paul.
Christophe Cordenier wrote:
Also, i don't know how this would be possible in pure Java... without
modifying method prototypes.
2010/9/1 Christophe Cordenier
Hi !
Actually as far as i
Christophe,
I guess a part of the problem is that if I subclass from a parent class,
I might not know what private methods it has. Thus, if the superclass ends
up having a private method annotated w/ @SetupRender, and I accidentally end
up having a private method in my class w/ the same name an
The "redisplay correctly" part should be handled by the default output
encoding in T5 - thus, if the XML that is submitted in a form field and it's
bound to a String property in your page or model, if you display/redisplay
the form, it should render properly.
I don't think you need anything specia
Right,
But actually, I don't think that setupRender method are meant to be private.
Strategy is parent before children. see
http://markmail.org/thread/u3t6xfa2mzopwgpz
2010/9/1 Alex Kotchnev
> Christophe,
>I guess a part of the problem is that if I subclass from a parent class,
> I might
Hi Thiago!
> You don't really need file handling nor buffer handling classes in
> Tapestry: just use the Java ones. Anyway, you don't need to worry with files
> nor buffering in your component: handle files in memory only. Make your
> component receive the PDF file to be rendered as an InputStrea
On Wed, 01 Sep 2010 10:04:42 -0300, Charith Madusanka
wrote:
Hi Thiago!
Hi!
Thank your comment.
http://download.oracle.com/javase/1.5.0/docs/api/java/io/InputStream.html
using this class is ok?
Yes.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate co
On Tue, Aug 31, 2010 at 7:57 PM, Paul Stanton wrote:
> I've found a strange issue with the @SetupRender annotation when used in a
> class hierarchy.
>
> Typically, in java 2 classes within a hierarchy can have the same signature
> for a private method and not effect each other, so I would expect t
I need a page that will start a long-running process involving heavy
use of a database. I'm trying to come up with an elegant way to
integrate this into my T5.1 app. I'd like to use Tapestry's IoC to
inject my Hibernate DAOs. Then I'd like to write status updates to a
stack and have an AJAX
FYI
http://dmitrygusev.blogspot.com/2010/09/gae-and-tapestry5-data-access-layer.html
--
Dmitry Gusev
AnjLab Team
http://anjlab.com
ParallelExecutor is a "service that allows work to occur in parallel
using a thread pool". I doubt it's usefulness in your case. Simply
create a new service, spawn threads in it as needed to do work and
implement a few get status operations that your page(s) can call. That
way, keeping the page up-
You can use ParallelExecutor service just fine,
and to use injection do not instantiate a task
yourself but make it a service with scope perthread.
Davor Hrg
On Wed, Sep 1, 2010 at 10:03 PM, Kalle Korhonen
wrote:
> ParallelExecutor is a "service that allows work to occur in parallel
> using a th
t 5.1.0.5
re jira, will do.
p.
Howard Lewis Ship wrote:
On Tue, Aug 31, 2010 at 7:57 PM, Paul Stanton wrote:
I've found a strange issue with the @SetupRender annotation when used in a
class hierarchy.
Typically, in java 2 classes within a hierarchy can have the same signature
for a priva
Will there be some issue with the injected services? This async
service when created will have it's injected services created in the
thread of the current web request. When the new thread is created to
process the data, the services will then be accessed from a different
thread.
Norman Fr
Thread safety is your responsibility, but services are singleton by
default and it shouldn't matter to your DAOs which threads they are
accessed from. What you need to worry about is the consistency of your
data. When you say "the new thread is created to process the data",
what do you mean by it?
The new thread is the one that will run in the background. My concern,
and it may not be a concern, is that the request processing will have
created my DAO objects associated with a Hibernate session in that
thread, and I'll access it from another thread (the one running in the
background.)
On Wed, Sep 1, 2010 at 2:46 PM, Norman Franke wrote:
> The new thread is the one that will run in the background. My concern, and
> it may not be a concern, is that the request processing will have created my
> DAO objects associated with a Hibernate session in that thread, and I'll
> access it fr
Right, so my question was, can I get Tapestry IoC to create me a new
session for this new thread that won't be affected by anything else. I
could duplicate the (lots) of code in the request filter, but that
seems wrong.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On
HibernateSessionSource.create();
On Wed, Sep 1, 2010 at 3:19 PM, Norman Franke wrote:
> Right, so my question was, can I get Tapestry IoC to create me a new session
> for this new thread that won't be affected by anything else. I could
> duplicate the (lots) of code in the request filter, but tha
Services in Tapestry IoC are always proxies(*); the proxies
encapsulate thread-safe instantiation of the service, as well as the
lifecycle of the service (singleton or perthread).
Please see the documentation of the PerthreadManager service for some
additional notes.
So, yes, it is valid for a se
Hi Thiago!,
I also use java.awt.Rectangle, java.awt.image.BufferedImage packages for my
code ... is it ok?
charith
On Wed, Sep 1, 2010 at 6:36 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Wed, 01 Sep 2010 10:04:42 -0300, Charith Madusanka <
> charithc...@gmail.com> wrote
On Thu, 02 Sep 2010 00:35:18 -0300, Charith Madusanka
wrote:
Hi Thiago!,
Hi!
I also use java.awt.Rectangle, java.awt.image.BufferedImage packages
for my code ... is it ok?
As long as you're dealing with images, it is ok.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapes
Hi!
Is there any simple way to get URL to file in T5 API? Like smiler to
"URLConnection con = url.openConnection();"
charith
ApplicationGlobals service gives you ServletContext, which provides the
usual access to servlet context resources. Nothing simpler than that I think
:)
On Thu, Sep 2, 2010 at 7:09 AM, Charith Madusanka wrote:
> Hi!
>
> Is there any simple way to get URL to file in T5 API? Like smiler to
> "URLCon
28 matches
Mail list logo