I am building a form with variable number of rolls by using a loop. The
problem is that upon submit, it appears that onValidate is called n times,
where n is the number of rows. The loop pulls its values from, and writes
into list of n elements.
Am I doing something wrong?
nged it to project.CompilerConfigView, it started rendering
the template.
So the 'autotrimming' doesn't seem to work reliably.
On Tue, May 12, 2009 at 8:34 AM, daniel joyce wrote:
> The component is in a subpackage projects under components,
>
> I use it via
> I know it I
The component is in a subpackage projects under components,
I use it via wrote:
> I have a method in the java file annotated with @SetupRender. Debug
> statements show it should be rendering. The code is being called. But
> no content is emitted by the .tml
>
> http://tapestry.apache.org/schema/t
I have a method in the java file annotated with @SetupRender. Debug
statements show it should be rendering. The code is being called. But
no content is emitted by the .tml
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
${cName}
elds()
On Wed, Apr 29, 2009 at 12:10 PM, daniel joyce wrote:
> So basically once I start using Injection, every class that uses a
> injected class needs to be injected itself.
>
> It would be nice if this could be improved upon, thus allowing
> 'services' and non-page, n
Something like "DecorateTransactionally" that could be used to tell
Tapestry IOC which classes are using injected fields, and do the
injection/instrumentation on them.
On Wed, Apr 29, 2009 at 12:10 PM, daniel joyce wrote:
> So basically once I start using Injection, every clas
;
> @Autobuild always creates a new instance.
>
>
> On Wed, Apr 29, 2009 at 11:27 AM, daniel joyce
> wrote:
>> I have a class C, that is not a service, nor a page/component
>>
>> I want to Inject a resource into it
>>
>> @Inject
>> SomeService servi
guration configuration)
> {
> configuration.addInstance(FooImpl.class);
> }
>
> This is an alternate way to inject an autobuild instance of the class.
>
>
> On Wed, Apr 29, 2009 at 10:56 AM, daniel joyce
> wrote:
>> Is there any way to have a non-component
Is there any way to have a non-component class work with injection,
w/o having to turn it into a service itself?
@Inject
private SystemProperties sysProps;
I have a class that simply zips up files, and it needs access to a
system properties service. IIRC, but when I tried this in the past, it
did
e are supplied by the
border component.
which is the style shown in the "Tapestry 5: Building Web Applications" book.
On Wed, Apr 15, 2009 at 8:43 PM, Thiago H. de Paula Figueiredo
wrote:
> Em Thu, 16 Apr 2009 00:39:42 -0300, daniel joyce
> escreveu:
>
I find that if my template uses a field in the backing model java file
that hasn't been inited yet, it throws exceptions in when rendering.
Is there a reason the tml file is rendered/reified before the backing
model class?
I usually have to stick a dummy instance or do some dummy
initialization v
Ok, found some info.
I can disable the pager, but is there a way to disable rows-per-page
so all rows are shown? Do I set it to -1, or is it automatic if you
disable the pager?
On Sun, Apr 19, 2009 at 1:26 PM, daniel joyce wrote:
> I've seen references to this being fixed in 5.0.6 in
I've seen references to this being fixed in 5.0.6 in Tapestry bug
TAPESTRY-1328, but no examples are given as to how it works, or how to
use it.
Is it just overriding the cell rendering via the usual method, and
then Tapestry makes it work?
Would simplify some code I am working on right now...
-
What I learned today
"If you think something is wrong with Tapestry/Hibernate, more than
likely you need to fix or override equals() and hashcode()"
On Sat, Apr 18, 2009 at 1:23 AM, daniel joyce wrote:
> Which method in a page class should I setup to ensure I can reattach
>
Which method in a page class should I setup to ensure I can reattach
my object to the HibernateSession which is being used by the render
request?
Nothing in the docs provides any hints.
On Sat, Apr 18, 2009 at 12:44 AM, daniel joyce wrote:
> Hmm, apparently tapestry doesn't keep the
Hmm, apparently tapestry doesn't keep the session open during the render phase?
What is the easiest way to fix this?
-Daniel
On Sat, Apr 18, 2009 at 12:34 AM, daniel joyce wrote:
> Also, lazy fetching is failing, even inside the OnActivate method.
>
> I am using objects th
() method ).
Problem is, inside OnActivate, when I try and read a lazy collection,
I get a error the session has already closed when the page renders.
Somehow, the collections aren't becoming 'real'? How can I get the
true underlying collection?
-Daniel
On Fri, Apr 17, 2009 at 11:54 P
ntext
OnActivate() << When is this called?
PageDetached() // Request has been sent
On Fri, Apr 17, 2009 at 10:34 PM, daniel joyce wrote:
> I am using the Generic Select model with a Hibernate selected object.
>
> if I jump to the page with a non persisted object, make changes in my
I am using the Generic Select model with a Hibernate selected object.
if I jump to the page with a non persisted object, make changes in my
form and hit save, it throws up a exception.
If I then reload the page, the form displays the object with all my
changes. The OnActivate/Passivate method rel
I need to add some updatable progress indicators to a page.
Any easy way to do that? I've seen both t:zone, but how do I hook it
up with Prototype?
-Daniel
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For addi
I have a datagrid that is embedded in a page. Its datasource is built
by a method in the page, and the grid component references it through
a property that calls that method.
It seems that method is getting called before the page's OnActivate is
ever called, and the data needed to initialize that
t;pageDetached"
I'll try your annotation suggestion.
On Thu, Apr 16, 2009 at 11:31 AM, Borut Bolčina wrote:
> Hi,
>
> I am doing this and it works:
>
> �...@inject @Symbol(SymbolConstants.PRODUCTION_MODE)
> private boolean productionMode;
>
> -Borut
>
>
This doesn't seem to work in a page model file
@Inject
@Symbol(value=SymbolConstants.PRODUCTION_MODE)
private Boolean productionMode;
I get a nullpointerexception when I try and use it.
Also, is the magic method name onPageLoad() for setting up vars at
page instance load time?
-
org.apache.tapestry5.ioc.internal.util.TapestryException
Failure parsing template
classpath:com/mobilesemi/trailblaze/pages/admin/ManageUsers.tml: The
entity "nbsp" was referenced, but not declared.
Am I doing something wrong?
Or is it due to the fact that
http://tapestry.apache.org/schema/tapest
Whats the best way to manually acquire and manage a
session/transaction in tapestry?
I am sending off 'build requests' to a build queue. I have a Executor
service set up to pull items from that queue. They of course need to
mark the build as done in the db when the build is finished. I don't
think
Also, when a entity is restored from @Persist('Entity'), is it
restored detached, or attached to current Hib session that is assigned
to the current request.
On Sun, Apr 12, 2009 at 7:38 PM, daniel joyce wrote:
> What classes are automatically decorated, and which ones need to be
&g
What classes are automatically decorated, and which ones need to be
set up in the AppModule with a "DecorateTransactionally" method per
the DAO example.
The reason I ask is that with Hibernate, I can define named queries on
the managed Entities. And then my DAOish methods simply reside on that
obj
When persisting with entity, when the page activates, is the entity
reloaded automatically via the injected session, so it is properly
attached to the session?
-Daniel
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.o
e hibernate Session object if you're using
> the tapestry-hibernate module. You'll get a per-thread session
> automagically.
>
> Robert
>
> On Apr 10, 2009, at 4/1012:21 AM , daniel joyce wrote:
>
>> public MyRequestFilter implements RequestFilter {
>>
vices ( so I
know how to write my service ).
On Thu, Apr 9, 2009 at 10:21 PM, daniel joyce wrote:
> public MyRequestFilter implements RequestFilter {
>
> private final HttpServletRequest servletRequest;
>
> public MyRequestFilter(HttpServletRequest request) {
>
public MyRequestFilter implements RequestFilter {
private final HttpServletRequest servletRequest;
public MyRequestFilter(HttpServletRequest request) {
servletRequest = request;
}
public boolean service(Request request, Response response,
RequestHandler handler)
{
r out.
Damned if I do/don't.
On Thu, Apr 9, 2009 at 9:49 PM, daniel joyce wrote:
> Still confused. So buildMethods allow proxies/per-thread? But using
> constructor style doesn't? Even if the class passed to autobuilding is
> annotated per-thread?
>
> On Thu, Apr 9, 2009 at
ct per-thread services into my RequestFilter implementation. For
> example, ApplicationStateManager is a per-thread-scoped service. So even
> through my filter isn't per thread, it's accessing thread-specific data when
> it accesses data from the ApplicationStateManager service.
&g
Also, build methods go in the appmodule, right?
Guess it wasn't my final question. :)
Also, are RequestFilters per-Thread, or Singleton? Can they be
per-thread if needed?
-Daniel
On Thu, Apr 9, 2009 at 7:42 PM, daniel joyce wrote:
> I also found a HttpServletRequestFilter.
>
>
ilter(HttpServletRequest request) {
> servletRequest = request;
> }
>
> public boolean service(Request request, Response response,
> RequestHandler handler)
> {
> //do stuff with the servlet request.
> return handler.service(request,response);
&
try 5 Request object supposedly wraps the
HttpServletRequest ( where remote user is set ), but provides no way
to get the raw request, from which I can grab RemoteUser which tells
me which user tomcat logged in.
-Daniel
On Thu, Apr 9, 2009 at 1:57 PM, daniel joyce wrote:
> Awesome, Thanks!
>
&g
Lets say a user bookmarks a path like view/123
This is supposed to allow them to go a tapestry page that will display
info on Project 123.
ViewProject.java has a onActivate(Integer projectNum)
What happens if the user types in view/hshqwueh ?
I know Tapestry will balk on trying to convert that
obert
>
> On Apr 9, 2009, at 4/92:11 PM , daniel joyce wrote:
>
>> What about using a requestfilter? Any better docs on how to implement
>> one? I see bits and pieces here and there, but nothing as coherent as
>> the Dispatcher howto.
>>
>> -Daniel
>>
>&
What about using a requestfilter? Any better docs on how to implement
one? I see bits and pieces here and there, but nothing as coherent as
the Dispatcher howto.
-Daniel
On Thu, Apr 9, 2009 at 11:38 AM, daniel joyce wrote:
> I looked at spring security, and it required yet-another annotat
that difficult.
>
> Good thing is that you can both secure by single page or by page folders.
>
> Beware that it is not compatible with 5.1.x yet (works only for 5.0.18).
>
> daniel joyce schrieb:
>>
>> So I want to use pages with context so that it is easily bookmarkable
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 bookm
If my tapestry app is under foo, on host somehost.com, then I know
that requests for somehost.com/foo pulls foo.pages.Start.tml
But if I go to somehost.com/foo/bar/, that request doesn't appear to
be pulling foo.bar.pages.Start.tml
Am I missing something? I thought this would work. Basically if a
how well does this play with the existing Tapestry-Hibernate
integration? Can I still grab the Session easily?
-Daniel
On Thu, Apr 2, 2009 at 2:26 AM, Christine Karman wrote:
>
>> From: daniel joyce
>> To: users@tapestry.apache.org
>> X-Virus-Checked: Checked by ClamAV
I want to use persistence annotations in my tapestry application, but
the documentation on the hibernate-tapestry integration is sparse and
contradictory.
Do I need to use Hibernate.cfg.xml, or can I use a persistence.xml
with hibernate as the persistence provider? I see references to
acquiring a
44 matches
Mail list logo