Hi there,
Am looking for the best way to enable live class/template reloading when
using netbeans 6.9.1. Any help will be appreciated.
Josh.
I met this problem before , I change the onActivatereturn type to void .
2011/2/17 Alessandro Badin
>
> Hello guys,
>
> What about I have something like this:
>
>Object onActivate() {
>condition = service.findSomething();
>return (condition == null) ? OtherPage.class : null;
Thank for your replies.
Finally ,I found TapestryFilter has put registry into servlet context,so I
do it like this,
MyHttpSessionListoner.java
@Override
public void sessionDestroyed(HttpSessionEvent se) {
//Get Tapestry IoC Registry
Registry registry = (Registry)
se.getSession().getServletC
I've been trying to figure out a weird bug today, and before I lose the
night over it I thought I'd ask the list. I'm using the cool new "chained
select" feature. One Select has a zone, and triggers an onValueChanged()
method that affects another Select. It works fine on my machine and when
most
Hi,
I'm having a hard time tracking down my issue at hand here. I have Form
components defined in a set of Block components in a Page class. The
entire set of Blocks is nested within a Zone that allows for navigation
between the Blocks without a page refresh.
Each form has supporting onValid
On Thu, 24 Feb 2011 18:19:39 -0300, Andreas Andreou
wrote:
That's exactly why i asked the question about implementation
mixins in the dev list ( http://markmail.org/thread/ft755d4vbkfaip4v )
Cool!
And there's no reason to restict it to onchange events - anyway, i'll
open some related jira
Hi,
I created a Github project for an Akismet service for Tapestry 5 .
For those who doesn't know Akismet, is a service for detecting spam comments
(specially useful for blogs). Is a paid service, but there is also a free
and open source alternative called TypePad AntiSpam
(http://antispam.typep
That's exactly why i asked the question about implementation
mixins in the dev list ( http://markmail.org/thread/ft755d4vbkfaip4v )
And there's no reason to restict it to onchange events - anyway, i'll
open some related jira issues tonight...
On Thu, Feb 24, 2011 at 21:12, Josh Canfield wrote:
>
Thanks HLS , I appreciate the quick response. I have already implemented a
simple case and its working. I am reading the user guide to make sure that i
dont miss anything out.
Josh.
On Thu, Feb 24, 2011 at 11:46 PM, Howard Lewis Ship wrote:
> If you look at the source parameter of the Grid, it i
If you look at the source parameter of the Grid, it is a
GridDataSource object. You can bind a List to the source parameter,
and Tapestry takes care of converting the list to a GridDataSource,
but for large result sets from a database, you really want to use the
GridDataSource interface, because i
On Thu, 24 Feb 2011 17:16:27 -0300, Josh Kamau
wrote:
Thanks guys.
:)
I will implement the GridDataSource. I didnt know it existed.
It's in the Grid component reference as the type of the source parameter.
Thiago, for some personal reasons, i prefer using mybatis(formerly
ibatis)
a
Thanks guys.
I will implement the GridDataSource. I didnt know it existed.
Thiago, for some personal reasons, i prefer using mybatis(formerly ibatis)
as opposed to hibernate (i had a very bad experience with hibernate in a
live environment, most of it caused by my limited understanding of hiberna
On Thu, 24 Feb 2011 17:00:33 -0300, Howard Lewis Ship
wrote:
If you look at the source parameter of the Grid, it is a
GridDataSource object. You can bind a List to the source parameter,
and Tapestry takes care of converting the list to a GridDataSource,
but for large result sets from a datab
Also have a look at Tapestry's Hibernate integration [1] which supplies a
HibernateGridDataSource
[2] that implements pagination and only fetches the necessary objects from the
database.
Uli
[1] http://tapestry.apache.org/hibernate.html
[2]
http://tapestry.apache.org/tapestry5.2-dev/apidocs/org
What Tapestry version? Just checked with 5.3.0-SNAPSHOT and it works like a
charm.
BTW: SECURE_ENABLED is only needed when PRODUCTION_MODE is set to false. In
production mode, secure
is enabled by default.
Uli
On 23.02.2011 19:40, Matias Moran wrote:
> Dear Tapestry users, how have you been?
>
If you look at the source parameter of the Grid, it is a
GridDataSource object. You can bind a List to the source parameter,
and Tapestry takes care of converting the list to a GridDataSource,
but for large result sets from a database, you really want to use the
GridDataSource interface, because i
Hi Users;
How does tapestry do the pagination on a grid? Does it retrieve all the data
from the database and then does the pagination on the clientside or does it
retrieve a page at a time from the database?
I have used wicket before and all i did was implement something like
getIterator(first, c
On Thu, 24 Feb 2011 16:12:10 -0300, Josh Canfield
wrote:
Yes agreed - I think t:select should take an optional context parameter.
I guess it's a little late to second guess the wisdom of adding a
"zone" parameter to the Select component in the first place... I
hadn't noticed it until now. T
> Yes agreed - I think t:select should take an optional context parameter.
I guess it's a little late to second guess the wisdom of adding a
"zone" parameter to the Select component in the first place... I
hadn't noticed it until now. This functionality could have been
provided as a mixin and then
I wonder how we can turn this into a FAQ? The cause and symptoms are
pretty obscure!
On Wed, Feb 23, 2011 at 11:08 PM, Marek Matus wrote:
> I had similar problem - the problem was that the class loader cannot load
> sax parser. I had to explicit define which sax parser should be loaded by
> sett
On Thu, 24. Feb 2011, Thiago H. de Paula Figueiredo wrote:
> That's strange. Your PropertyConduit implementation and use looks correct
> to me. Could you post the full stack trace please?
Of course:
org.apache.tapestry5.ioc.internal.util.TapestryException: The data type for
property 'myValue'
Tapestry-IoC symbols aren't updateable.
On Thu, 24 Feb 2011 14:17:10 -0300, Mark wrote:
I'm using ChenilleKitMail and I want to let end users update the SMTP
settings from the application.
So right now my AppModule has a contributeApplicationDefaults that
hard code all the values like:
/
That's strange. Your PropertyConduit implementation and use looks correct
to me. Could you post the full stack trace please? The datatype is defined
by the DataTypeAnalyzer service, and its configuration provided by
Tapestry alread maps BigDecimal to the "number" datatype.
On Thu, 24 Feb 20
I'm using ChenilleKitMail and I want to let end users update the SMTP
settings from the application.
So right now my AppModule has a contributeApplicationDefaults that
hard code all the values like:
// Email Setup
configuration.add(ChenilleKitMailConstants.SMTP_HOST, "smtp.a.com");
co
On Thu, 24. Feb 2011, Thiago H. de Paula Figueiredo wrote:
>> The resulting model contains properties with a null datatype.
> That surely looks like something you shouldn't do. How can the component
> know how edit an value which hasn't a data type? In this case, you either
> define a custom da
Yes agreed - I think t:select should take an optional context parameter.
I will file a JIRA.
As a work around I see two options:
1) In my case here I don't need to actually re-render a zone when the
user changes the selection. So I will probably just render the select
"manually" and attach my ow
On Thu, 24 Feb 2011 13:33:44 -0300, Stephan Windmüller
wrote:
List valueTypes = dao.getValueTypes();
BeanModel model =
beanModelSource.createEditModel(MyObject.class, messages);
for (String type : valueTypes) {
PropertyConduit propertyConduit = new PropertyConduit() { ... };
model
On Thu, 24. Feb 2011, Thiago H. de Paula Figueiredo wrote:
>> I tried to create one with BeanModelSource.createEditModel using my own
>> propertyConduits. But when the BeanEditForm loads, the datatype of the
>> property is null and I am getting this error:
>> "The data type for property 'name' of
On Thu, 24 Feb 2011 13:15:51 -0300, Richard Hill
wrote:
Thanks for this. I think I understand better what ValueEncoder does now.
However, this doesn't answer my question: when I say "context" I mean
the loop context - not the option value that was selected. This I know
how to get, but I don't
Thanks for this. I think I understand better what ValueEncoder does now.
However, this doesn't answer my question: when I say "context" I mean
the loop context - not the option value that was selected. This I know
how to get, but I don't know for which loop item it refers.
Let's say I have a list
On Thu, 24 Feb 2011 12:35:50 -0300, Stephan Windmüller
wrote:
Hello!
Hi!
Is it possible to extend the BeanModel of an object dynamically for a
BeanEditForm?
Yes!
I tried to create one with BeanModelSource.createEditModel using my own
propertyConduits. But when the BeanEditForm loads,
Hi Thiago,
Thanks for this. I think I understand better what ValueEncoder does now.
However, this doesn't answer my question: when I say "context" I mean
the loop context - not the option value that was selected. This I know
how to get, but I don't know for which loop item it refers.
Let's say I
Hello!
Is it possible to extend the BeanModel of an object dynamically for a
BeanEditForm?
I tried to create one with BeanModelSource.createEditModel using my own
propertyConduits. But when the BeanEditForm loads, the datatype of the
property is null and I am getting this error:
"The data type f
On Thu, 24 Feb 2011 11:58:26 -0300, Richard Hill
wrote:
Hi - again :)
Hi!
I am supplying select and option models, which seem to work fine. But
how how do I supply a context? The t:select component does not appear to
take one. Without this I cannot know to what object my state change
rela
Hi,
public void contributeMetaDataLocator(
> MappedConfiguration configuration) {
> configuration.add(MetaDataConstants.SECURE_PAGE, "true");
> }
>
didn't work for me either...
I 'm using tapestry 5.0.1.5,
can you confirm me if that configuration should work on this version?
thanks
Nicol
Hi - again :)
I have a simple select component in a loop: each object has some
property which can be one of three possible states. The user can update
this state by changing the value in a drop down.
I am supplying select and option models, which seem to work fine. But
how how do I supply a cont
An eventLink tells the application to do something. The context says
what you want to do it to.
When you aren't in a loop it is easy to figure out what to do things
to and you don't need a context because the thing you are doing the
action to is the same for the entire rendering of the page. Howe
Ak ok thanks. For some reason I thought it was for components too.
On Thu, 2011-02-24 at 14:56 +0100, Igor Drobiazko wrote:
> No, the activate method is specific to pages. It didn't change.
>
> On Thu, Feb 24, 2011 at 2:45 PM, Richard Hill wrote:
>
> >
> > Hi,
> >
> > Sorry another question
No, the activate method is specific to pages. It didn't change.
On Thu, Feb 24, 2011 at 2:45 PM, Richard Hill wrote:
>
> Hi,
>
> Sorry another question - I was under the impression that the
> onActivate() method mas called for all pages and components?
>
> However it seems never to be called for
Hi,
Sorry another question - I was under the impression that the
onActivate() method mas called for all pages and components?
However it seems never to be called for any of my components. Has this
behaviour changed in 5.2?
Thanks
---
Hi,
So I have the following:
window.onbeforeunload = function() {
return "You will lose your changes.";
};
I have a number of actionlinks on my page, all of which update a zone.
Clicking these the beforeunload event is not fired (which is the
behaviour I want).
When I do a page refresh
Thanks, guys, both approaches works.
I went with Renderable, because wanted to render some other markup, not only
text.
Quick question to Cezary:
- why are you updating class fileds withing separate RenderCommand? Any
pitfalls?
In my experiments rendering and updating class state is working fi
On Thu, 24 Feb 2011 04:58:26 -0300, Vjeran Marcinko
wrote:
Hello all,
Hi!
I just wanted to hear if current state of page configuration and
activation is the desired one?
What do you mean by page configuration?
(this is the reason for one of my architectural problems, but I don't
wan
First of all , thank you for your answers.
I thought that taking an action over other components when the radio is
clicked was a so common problem that a mixin or a similar component had been
already deveolped.
Well, i will do it using pure javascript.
If anyone has another idea, please write to
44 matches
Mail list logo