Sorry, I don't quite get how is that related.
In this case, I am not using onActivate and onPassivate at all.
I am just trying to get an action link in an event handler method.
Cheers,
Jeffrey Ai
quick guess
are you returning any null values in onPassivate ?
Davor Hrg
--
View
Right. The javadoc of "createActionLink" doesn't tell anything when it
should be used.
To my opinion, it makes sense to allow it be used in event handler methods.
Cheers,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5-5.0.10%3A---ComponentResources.c
gic
// Navigation logic
}
}
==
What I noticed in 5.0.10 source code is that
"ComponentResources.createActionLink" is either called from "beginRender" or
"afterRender" method only. Does that imply that we cannot use it in event
handlers?
Cheers,
Jeffrey
milar. Basically you could choose the session strategy,
flash strategy or client strategy.
Also fields annotated as ApplicationState are shared by all pages.
You could find more information in the T5 guide.
Cheers,
Jeffrey Ai
Martino Piccinato wrote:
>
> This is exactly what I'm trying
You are right.
So far, I think our system will only support one flow at a time. This will
not only make design simpler, but also save some server resource. If a
system needs to support multiple flows, it needs a way to identify different
flows in one session.
Cheers,
Jeffrey Ai
Martino
That's great to know!
Thanks for your tips, Geoff.
Cheers,
Jeffrey Ai
Geoff Callender-2 wrote:
>
> Hi Jeffrey,
>
> What you do is change the submits and the links to look the same,
> which is not quite the same as the browser-generated button, but on
> the plus-sid
Geoff,
I am not quite familiar with CSS.
I think ActionLink or PageLink could only be rendered to an Anchor Link.
I doubt CSS can change its look like to a button.
Cheers,
Jeffrey Ai
Geoff Callender-2 wrote:
>
> Another technique is to use an ActionLink or PageLink for canc
n the data user inputed so far. Therefore, the next page
might not be DeleteConfirmationPage, but some other page. Spring framework
webflow supports this by configuring conditions in XML. But I think using
Java is much simpler and testable to developers.
Cheers,
Jeffrey Ai
--
View this message in context:
http:
I don't like xml configurations of web flow in Spring too.
Also another beauty to make a WEBFLOW a normal T5 page is : multiple
WEBFLOWs can be easily composed together to create a new WEBFLOW, just as
described in the Composite pattern of GOF.
Cheers,
Jeffrey Ai
Joshua Jackson-3
Yes, that's the one.
You could use it rewrite inbound and outbound URLs.
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> Hi Jeffrey,
>
> do you meant the third party URLRewriter, http://tuckey.org/urlrewrite/
> this one?
>
> jeffrey ai wrote:
>>
>> Angelo
nings("unused")
private Object onActionFromPreviousPage()
{
...
return previousPage;
}
@SuppressWarnings("unused")
private Object onActionFromCancel()
{
return cancelLink;
}
Angelo,
You could use URLRewriter to do this job for you. For details, pls see my
post at the following thread:
http://www.nabble.com/url-rewriting-in-Tapestry-5-to12823397.html#a12823397
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> Hi,
>
> T5's url is nice looking, however
. It's
almost the same with the ActionLink component, Instead of create a normal
link, it creates a button link like below:
In your page, you could have an onActionFromCancel() method to do whatever
redirection you want.
Cheers,
Jeffrey Ai
Sven Homburg-2 wrote:
>
> hi there,
>
web flow feature.
Cheers,
Jeffrey Ai
Geoff Callender-2 wrote:
>
> Hi all,
>
> I've reworked JumpStart to address Tapestry 5, and I need feedback on
> how to make it as good as it can be...
>
> If you don't know JumpStart, its purpose is to get newcomers up-to-
Geoff, I think your code is great for **ONE** edit-page.
Our project is looking for a web flow from T5, like the Spring one.
Do you have any idea about it?
Howard mentioned he may add this feature in the next release.
Might be a little late to us, but I am expecting to see it.
Cheers,
Jeffrey
There are several examples of how to use "Select" component in the following
link.
They may help you to figure out what's wrong with your code.
http://lombok.demon.co.uk/tapestry5Demo/
Cheers,
Jeffrey Ai
Penyihir Kecil-2 wrote:
>
> i tried select component but i have dif
tation in
your system for domain object use, you might choose the 2nd or the 3rd
way. In this case, I am favoring the 3rd way.
P.S.
We have used the combination of 1st and 3rd way in a medium-scale e-commerce
software.
Cheers,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/-T5
yBuilder and
publish it somehow, but I don't think that's a good practice to have a
registry in your class and retrieve services from it.
Cheers,
Jeffrey Ai
kristian.marinkovic wrote:
>
> hi all,
>
> is it possible to use tapestry-ioc to inject services into domain
>
It's hardly to say it's a bug.
I guess T5 will assume you meant to use literal binding when you use a value
with expansions, like "... ${val1} ... ${val2}".
So "literal" prefix is only necessary for a simple value, like "abc".
Cheers,
Jeffrey Ai
Andre
.
Besides that, performance is a minor concern of mine.
I did see some code are commented as "naive implementation" when I went
through some source code.
Cheers,
Jeffrey Ai
Howard Lewis Ship wrote:
>
> The nightly docs are now fixed.
>
> My hatred of Maven is growing
( "mymsg", new MyMessageBindingFactoryImpl() );
}
---
Cheers,
Jeffrey Ai
Doug Hauge wrote:
>
> Is there some reason Tapestry chose to use 'java.util.Formatter' style
> formatting as opposed to 'java.text.MessageFormat' style? The latter
> seems prefera
Sorry, I have no ideas about that.
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> hi jeffrey,
>
> thanks for the response, what I want to do is, the text has some bbcode ,
> I'd like to convert that to html tags, then use outputRaw to display it,
> any existing comp
Maybe I got your question wrong, could you just create a component to escape
special chars in your BBCode text. One choice is to use StringEscapeUtils in
Jakarta Commons-Lang.
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> Hi,
> I'd like to know know if there is a component that can
Anybody, any advice?
jeffrey ai wrote:
>
> Hi Folks,
>
> We have a need to provide personalized page for different user groups, so
> I tweaked some T5 services to make it possible to use personalized
> template based on a request parameter.
>
> I would like put the g
templates
componentTemplateSource.addInvalidationListener( service );
return service;
}
--
Thanks for any advice.
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5%3A-Personalizing-page-and-component-template-tf4925841.html#a14098291
Sen
Angelo,
You could find an example of radiogroup at the following great site created
by SH Man.
http://lombok.demon.co.uk/tapestry5Demo/
Cheers,
Jeffrey Ai
Angelo Chen wrote:
>
> Hi,
>
> How to use radio/radiogroup? I have following:
>
>
>
estGlobals requestGlobals )
{
configuration.add( "pmsg", new
PersonalizedMessageBindingFactory(requestGlobals) );
}
===
Cheers,
Jeffrey Ai
Howard Lewis Ship wrote:
>
> Remember that service injection is ONLY through the constructor,
> whereas compon
Thanks, Filip.
I tried to inject RequestGlobals, like I did for normal component, but that
doesn't work.
It's not correctly injected.
Filip S. Adamsen-2 wrote:
>
> Have you tried injecting the request directly into your BindingFactory?
>
> -Filip
>
> jeffrey ai
page expansion phase.
Thanks for any advice,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5%3A-Is-there-a-way-to-make-a-BindingFactory-request-aware-tf4884618.html#a13980504
Sent from the Tapestry - User mailing list a
Box fields
Persist("flash").
The same problem applies to Select component too.
Is this a problem? Why it's happening? Is my walk-around of this problem
good?
Thanks,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5%3A-Why-value-of-CheckBox-get-lost-at-validat
I havn't tried this, but I think it will work.
If your composite component inherits AbstractField, you could override
processSubmission() method to do your own validation. Actually, this is how
TextField component do the validation.
Cheers,
Jeffrey Ai
Markus Fischer wrote:
>
&g
I think you are missing "t:value" in your template.
It should be :
Jeffrey Ai
Jean-Philippe Steinmetz-2 wrote:
>
> Hi All,
>
> I'm getting the following error
>
> Error persisting field Users/Create:username:
> java.lang.NullPointerExc
in your page?
Jeffrey Ai
Ritesh.S wrote:
>
> Hello everybody,
>
> I am newbie to Tapestry. I am using Tapestry 5 for developing
> an application and I encountered following problem if anyone
> suggest a solution it will be very helpful for me. :)
>
> I have a select c
Well, in the life cycle guide, it is said it could be used for
initializations or caching.
Actually, I have confirmed it could do that, but just it doesn't work to
retrieve and mutate persistent variables.
Cheers,
Jeffrey Ai
Michael Courcy wrote:
>
> I may be wrong as I'm a
things going.
Cheers,
Jeffrey Ai
Stephane Decleire wrote:
>
> Yes, i've set this configuration.
> But my injection of the WebApplicationContext is not in a page but in
> another class. Is it a problem ?
>
> Stephane
>
> Ezra Epstein a é
Thanks Lasitha.
I did a search later of all guide. It's only mentioned in the page
navigation guide.
I still think it should be mentioned in the life cycle guide.
I think that's the first place for developers to look for that information.
Cheers,
Jeffrey Ai
lasitha wrote:
>
> O
No Carlos. Actually, you reminded me. The original message title is without
T5. I added it later after reading your message.
Thanks,
Jeffrey Ai
carlos f wrote:
>
>
>
> carlos f wrote:
>>
>> If you are using tap 4.x . . .
>>
>
> Maybe if I looked at t
#x27;t tell you why pageAttached doesn't work (haven't tried it) but you
> can use onActivate, or if it's for a form onPrepare.
>
> Josh
>
> On Nov 19, 2007 12:15 PM, jeffrey ai <[EMAIL PROTECTED]> wrote:
>
>>
>> Hi Folks,
>>
>> I am lo
urn someOtherVar;
}
Although it works, apparently, this is not a good place.
Is there a better place to do session variable initialization?
I believe it should not be put into constructor too because it will be
viewable to other sessions.
Thanks,
Jeffrey Ai
--
View this message in cont
ction request will be automatically populated to
.
cheers,
Jeffrey Ai
CarstenM wrote:
>
> Hello,
>
> I'd like to create a table with input fields (checkbox, textfield) inside
> a form.
> Does someone have an example?
>
> Help would be very nice. Need a solution for
That's right. Thanks for you suggestion!
Cheers,
Jeffrey Ai
nirvdrum wrote:
>
> Couldn't you just provide your own stylesheet? The header and cell class
> names are predictable.
>
> --
> Kevin
>
>
> On 11/15/07 1:26 PM, in article [EMAIL PROTECTED
width is to write your own
component.
Is there anybody could provide some hints?
Jeffrey Ai
Angelo Chen wrote:
>
> Hi,
>
> Is there a way to set the grid's column's width to a fixed size? without
> that, the grid changes its width from page to page. Thanks.
>
&g
I do noticed that the Grid component is not defined as "final" like some
other components.
I guess we could just inherit it and add a new template to extend its
feature.
Jeffrey Ai
jeffrey ai wrote:
>
> I am looking for the answer of the same question too.
> The template of
en central repository, which should work.
Good luck!
Jeffrey Ai
GUERARD Elisabeth wrote:
Dear all,
I try to run the tutoriel for Tapestry 5 at the following address:
http://tapestry.apache.org/tapestry5/tutorial1/first.html
I have problem with the first step: create an empty application by using
this method.
Cheers,
Jeffrey Ai
Britske wrote:
>
> Thanks these all seem valid approaches.
> What i'm looking for is a stretching the possibilities i guess but here it
> goes anyway: I want a way in which I can plug a 'rewrite strategy'. This
> means that not
45 matches
Mail list logo