thank you, I will try it.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/annotation-on-t5-event-method-couldn-t-work-tp2471453p2471546.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Make sure your annotations have RetentionPolicy.RUNTIME
On Wed, Aug 11, 2010 at 3:52 AM, mfz2008 wrote:
>
> hey,I using annotation to do permission checking in t5.
> the following is what I have done!!
> In page class:
>
>
> @ProtectedPage({ "admin","editor","fmanager"})
> public class LibraryEd
look here for example:
http://svn.codehaus.org/chenillekit/trunk/chenillekit-access/src/main/java/org/chenillekit/access/services/impl/RestrictedWorker.java
with regards
Sven Homburg
Founder of the Chenille Kit Project
http://chenillekit.codehaus.org
2010/8/11 mfz2008 :
>
> hey,I using annota
Hi Markus!
Thank you for your response!
I tried to do that. But if I add id="something${counter}" where
counter is just a number it stops working at all.
It renders ok. But buttons do nothing - they cannot submit the form.
If I generate ${counter} as it Tapestry does ({"", "_0", "_1", ...
Are you saying that when you post the form you are getting the last value from
the form stored in the currentBetType and currentAvailableBet properties?
With loops you have to remember that you only have one property in the page so
it gets set repeatedly when you post the form. You can collect t
On Tue, 10 Aug 2010 21:30:04 -0300, Mite wrote:
Hi
Hi!
I have the following loop containing two select components.
I guess you need to provide a ValueEncoder to the Loop's encoder parameter.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, de
hey,I using annotation to do permission checking in t5.
the following is what I have done!!
In page class:
@ProtectedPage({ "admin","editor","fmanager"})
public class LibraryEdit extends BasePage {
//submit the form, it is a event handle method
@ProtectedMethod(value={"admin"})
It's best that the component knows nothing of what's around it. Instead, have
it trigger an event to bubble up to its container and let the container decide
what to do with it. Perhaps this example will help?
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajaxcomponentscrud
It helps us noobs see easy examples too though!
So thank you!
On 10/08/2010, at 11:23 PM, Borut Bolčina wrote:
> Thanks, embarrassing easy.
>
> 2010/8/10 Thiago H. de Paula Figueiredo
>
>> On Tue, 10 Aug 2010 10:07:21 -0300, Borut Bolčina
>> wrote:
>>
>> Hi,
>>>
>>
>> Hi!
>>
>> is it pos
i meant to say
...
You are redering one component instance "activityJournalItem" in your loop,
three times the same component instance. inside this component a component
zone with t:id activityAjaxZone. in the end you are rendering the same
component all the time... as t:id are uniques
2010
Another person had the same problem (differently and more simple)
I copy the mail with a tapestry commiter answer :)
Hi!
if if call mutliple type my component like :
>
>
>
>
You have two different instances (objects) of your count component.
>
>
>
Now you have one instance being r
Hi,
The second problem and I can't find out how to solve it - tapestry
rerenders always first component instance ActivityJournalItem. If with
loop we rendered 3 times, not depending what button was pressed always
exactly first zone is rerendered.
I didn't check your code google project, but I had
Each zone in a loop must have a unique id, so you have to create an id
for example like this:
${zoneId}
private int idcounter;
public String getZoneId() {
return "randomtext" + idcounter++;
}
Otherwise only the first zone will be updated. Use id instead of t:id
for zones.
Hi All! You are
Hi All! You are my last hope. I tried to resolve it by myself, I asked
(http://tinyurl.com/2btkmzk) at stackoverflow.com but with no success
yet.
A little background. I'm very interested in tapestry (and currently
considering using it in production) because it looks like very
efficient (in all s
> The Zone is just a component:
>
> MyPage.java:
>
> �...@injectcomponent @Property private Zone myZone;
>
> MyPage.tml:
>
>
>
myZone.clientId is null until Zone.beginRender is called. If
is rendered before the zone then zoneid will be
null.
Josh
On Tue, Aug 10, 2010 at 12:34 PM, Howard Lewis
The Zone is just a component:
MyPage.java:
@InjectComponent @Property private Zone myZone;
MyPage.tml:
This passes the client element id of the Zone to your component.
Alternately, you could pass the Zone itself (so that an ActionLink
inside YourComponent could return zone.getBody() to re
> I'm not sure how I can pass an embedded zone in the template as a parameter.
It sounds like what you are trying to do is have your inner component
render a block into a zone in the parent. What I would do is have the
page tell your inner component which block to render, and what zone to
update.
On Tue, Aug 10, 2010 at 8:27 PM, Paul Field wrote:
> Hi Joost,
Hi,
>
> I was waiting for T5.2 to settle down. I guess with the alpha release it's
> time for me to take a look :-) Probably won't be for a couple of weeks
> though...
>
> Paul
Great! I look forward to it. Thanks,
Joost
>
>
>
>
>
>
Hi Joost,
I was waiting for T5.2 to settle down. I guess with the alpha release it's
time for me to take a look :-) Probably won't be for a couple of weeks
though...
Paul
"Joost Schouten (ml)"
10/08/2010 16:41
Please respond to
"Tapestry users"
To
Tapestry users
cc
Subject
Testify a
Hi.
I use JfreeChart extensively with T 5.0.1.5 and I'm very happy with
it. Most likely your exception is caused by a bug in your .tml or the
underlying class. If you could reduce the template and the class to
the minimum size that still shows the bug and post both to a follow up
email
Hi,
On Tue, Aug 10, 2010 at 6:26 PM, Christian Koller wrote:
> Hi
>
> I'm not sure how I can pass an embedded zone in the template as a
> parameter. I tried for several hours but wasn't able to do that.
> I can inject the zone to the page but then, how can I handle the zone down
> to the sub com
Is your constructor protected or package private? There is a know issue in
5.2:
https://issues.apache.org/jira/browse/TAP5-1233
On Tue, Aug 10, 2010 at 10:30 AM, wrote:
> Hi Guys,
>
> Congrats on the milestone alpha release!
>
> I just tried the upgrade from 5.1, but having no luck getting it r
Hi
I'm not sure how I can pass an embedded zone in the template as a parameter. I
tried for several hours but wasn't able to do that.
I can inject the zone to the page but then, how can I handle the zone down to
the sub component as parameter?
I know about the publish params and inherit params,
Hello all!!
So I quite get mix up with the getters and setters ^^ but now the problem is
solved and you were right, the getter for Types was automatically generated
with @Property but I needed it to be constructed with BDD data, so I wrote
my own getter (and removed @Property) and now everything
Hi,
Does anyone know if there is a plan to upgrade the testify trunk to work
with tapestry 5.2? Would be great.
Thanks,
Joost
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: us
Thanks, embarrassing easy.
2010/8/10 Thiago H. de Paula Figueiredo
> On Tue, 10 Aug 2010 10:07:21 -0300, Borut Bolčina
> wrote:
>
> Hi,
>>
>
> Hi!
>
> is it possible to programmatically (rather then from localized properties
>> file) set label string to display
>>
>>
>>
>>
>> something like
On Tue, 10 Aug 2010 10:07:21 -0300, Borut Bolčina
wrote:
Hi,
Hi!
is it possible to programmatically (rather then from localized properties
file) set label string to display
something like
String getEmailLabel() {
return "something from database";
}
It is:
${emailLa
Hi,
is it possible to programmatically (rather then from localized properties
file) set label string to display
something like
String getEmailLabel() {
return "something from database";
}
Thanks,
Borut
> Does your class have nother constructors?
No
- Original Message -
From: "Thiago H. de Paula Figueiredo"
To: "Tapestry users"
Sent: Tuesday, 10 August, 2010 15:44:03 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: Tapestry 5.2.0 Alpha Release Now Available
On Tue, 10 Aug 2
On Tue, 10 Aug 2010 08:53:09 -0300, Peter Stavrinides
wrote:
Not quite, there is no explicit auto-loading,
Sorry Thiago, I misread you, yes the service is autobuilding since its
explicitly bound.
Does your class have nother constructors?
--
Thiago H. de Paula Figueiredo
Independent Java,
> Not quite, there is no explicit auto-loading,
Sorry Thiago, I misread you, yes the service is autobuilding since its
explicitly bound.
Cheers,
Peter
- Original Message -
From: "P Stavrinides"
To: "Tapestry users"
Sent: Tuesday, 10 August, 2010 14:49:21 GMT +02:00 Athens, Beirut, Buch
> I guess you're autobuilding a service (AlertFilterCacheRepositoryImpl)
> with a constructor that receives two Strings. Am I right?
Not quite, there is no explicit auto-loading, I simply build my IoC registry
adding a bunch of modules to it in the process... the constructor for that
service l
On Tue, 10 Aug 2010 05:30:32 -0300, wrote:
Hi Guys,
Hi!
I just tried the upgrade from 5.1, but having no luck getting it
running, I am getting this exception:
Caused by: java.lang.IllegalAccessError: tried to access method
com.albourne.db.alert.cache.AlertFilterDigest.(IILjava/lang/Str
Hi,
I want to display a line-chart for my application. I tested chenille-kit
chart component it worked quite good, but it does not support Dates on the
x-axis. I want to to draw time-series on the chart. So I decided to use
JFreeChart. The link
http://wiki.apache.org/tapestry/Tapestry5HowToCr
Hi Guys,
Congrats on the milestone alpha release!
I just tried the upgrade from 5.1, but having no luck getting it running, I am
getting this exception:
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Construc
really cool,I find out tapestry-conversation
component:http://tynamo.org/tapestry-conversations+guide
here is its
announcement:http://tapestry-users.832.n2.nabble.com/ANNOUNCEMENT-New-releases-of-conversations-and-hibernate-seedentity-modules-td4738484.html#a4738484
On Tue, Aug 10, 2010 at 2:59
Hi,dear all!
I sometime use @Persist annotation to make object store in session.
such as:
public class PageNav2 {
@Persist("session")
@Property
private Paging paging;
@SetupRender
void onLoad(){
if (paging==null)
pagi
37 matches
Mail list logo