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.createActionLink-broke
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
}
}
==
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 Ai
--
View this message in context:
http://www.nabble.com/T5-5.0.10%3A
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 to do for T4, it should be quite
inobstrusive so
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
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 wrote
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,
You could use URLRewriter to do this job
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 cancel and
refresh
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://www.nabble.com/T5%3A-A-web-flow-idea-on-T5-tp14442158p14459461.html
Sent from
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-side they'll look the same
you want.
Cheers,
Jeffrey Ai
Sven Homburg-2 wrote:
hi there,
who can me explain the best practice to cancel edit page?
i have a save- and cancel button (both submit components) surrounded by
a form component.
if user press the cancel button, the edit form should make nothing than
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 I have a need to have
;
}
@SuppressWarnings(unused)
private Object onActionFromCancel()
{
return cancelLink;
}
...
}
Cheers,
Jeffrey Ai
--
View this message in context:
http://www.nabble.com/T5%3A-A-web-flow-idea-on-T5-tp14442158p14442158.html
Sent from
for the 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-
speed with Tapestry as fast
, 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--injecting-services-into-Domain
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 difficulty and got stuck
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
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
objects? i'm thinking of something like @Configurable in spring
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
Andrew Pietsch wrote:
Hi there,
I'm new to T5 so
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 components that can do that?
jeffrey
)
{
configuration.add( 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 preferable for localization
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 quickly. You may not be aware
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 display BBCode
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 general idea here in case you
to changes to 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
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:
t:radiogroup value=optn t:id=optn
)
RequestGlobals requestGlobals )
{
configuration.add( pmsg, new
PersonalizedMessageBindingFactory(requestGlobals) );
}
===
Cheers,
Jeffrey Ai
Howard Lewis Ship wrote:
Remember that service injection is ONLY through the constructor,
whereas component injection
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 archive at Nabble.com
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 skrev:
Hi Folks,
I think I'm
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-validation-result-page-tf4876723.html
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:
I have a problem
I think you are missing t:value in your template.
It should be :
input t:type=TextField t:id=username t:value=username
t:validate=required size=30/
Jeffrey Ai
Jean-Philippe Steinmetz-2 wrote:
Hi All,
I'm getting the following error
Error persisting field Users/Create:username
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 the subject of the original message I would have
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:
On Nov 20, 2007 4
.
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 écrit :
And your web.xml file has:
listener
listener
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 tapestry newbie
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 component with GenericSelectModel which
will be automatically populated to
your_value_list.
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 it to finish first version of
my
, 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 context:
http://www.nabble.com/How-to-initialize
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 looking for the best way to initialize a session variable(@Persist)
in
a page render request once, so I could access it in the next action
request.
I tried
/
/tbody
/table
-
It seems to me that the only way to add column 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
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 the Grid component
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], jeffrey
ai
[EMAIL PROTECTED] wrote:
I
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
feature
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 only I have to translate urls from
45 matches
Mail list logo