nille,
maybe you wanna try adding the InjectService annotation. This at least
works for my services.
public static ConfirmationMailSender
buildConfirmationMailSender(
@InjectService(Messages)
Messages messages) {
return new ConfirmationMailSender(messages);
}
good morning,
Michael
PS: Get more infos on T-IOC here:
http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html
Michael Gerzabek schrieb:
nille,
maybe you wanna try adding the InjectService annotation. This at least
works for my services.
public static ConfirmationMailSender
buildConfirmationMailSender(
Hi Greetz,
You suggestion fixed the problem thank you :)
Petros
nille hammer wrote:
Hi Petros,
the problem is caused by the expression
context={account?.accountManager?.username}. With ?. you tell
Tapestry: The value might be null, please check before calling the
Method. As null
Jonathan,
That was the problem, it works fine now thank you
Petros
Jonathan Barker wrote:
Try using value=fromDate rather than the expansion.
-Original Message-
From: Petros Petrou [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 17, 2008 9:59 AM
To:
Hi Michael,
I have tried your suggestion. In my environment (5.0.11) it does not work. Even
with explicit id Messages provided, the ioc-container throws a
RuntimeException complaining that Messages is not a defined service. You must
have done sth. else to make your suggestion work in your
Hi Michael,
PagePool cannot give out ComponentPageElements, but PageElementFactory can.
Still I have the problem :)
I can now simply describe what I'd like to achieve:
The following is a class of a component:
public class ComponentSlot {
@Parameter(required = true, defaultPrefix = literal)
I think you may be better off using a MessagesSource service.
Check out ValidationMessagesSource for some ideas.
TapestryModule.java (in particular the contribute and build methods got
ValidationMessagesSource):
nille hammer schrieb:
Hi Michael,
I have tried your suggestion. In my environment (5.0.11) it does not work. Even with
explicit id Messages provided, the ioc-container throws a RuntimeException
complaining that Messages is not a defined service. You must have done sth. else to make
your
Hi Janos, List,
Wow, you digged into it ;) At the time there was no need for me to go so
deep with T5. So I think I cannot help with your conrete approach.
Rather I will share what I did, when I needed to load a Component at
runtime.
I have a checkout flow that has the opportunity to
a velocity service is also implemented but not documented
but use the same service interface
http://87.193.218.134:8080/t5components/t5c-contrib/http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html
2008/4/19, Michael Gerzabek [EMAIL PROTECTED]:
nille hammer schrieb:
Sven Homburg schrieb:
a velocity service is also implemented but not documented
but use the same service interface
http://87.193.218.134:8080/t5components/t5c-contrib/http://87.193.218.134:8080/t5components/t5c-contrib/howto_freemarkerservice.html
Oh, I will take a look at that. Thank you!
Hi Jonathan,
thank you for your suggestion.
Yes, @Persist(flash) works fine for one object of for a set of objects
that are always readed and showed into the page during the page
rendering. And it's fine for a CRUD page that shows only the entity to
manage.
To learn T5, I was sperimenting
Hi,
can a page be contributed to the web application by a JAR file (just like
component templates)? If so, how an URL can be constructed to such a page?
Concretely, is it possible for T5 to have a forum.tml residing in the
com.foo.bar package of a forum.jar file and use it in the application?
Hi Geoff,
yes, I read those threads and I modeled my CRUD page using the
suggestions listed on your Mk VI page. Thank you.
As I was trying to explain to Jonathan Barker in my previous mail (ah,
my poor english ;^) , my CRUD page already used @Persist(flash) to
store the entity to modify.
Hi Chris,
thank you !
I will read your article and I will try to use the mixin to implement
the confirmation dialog for my delete actionLink.
Give me some days to digest all this stuff and to implement it into my
test application ;^)
Regards,
Luca
Chris Lewis wrote:
Hi Lucca,
I'd been
Luca,
I can see that the flash persistence strategy wouldn't quite work for you in
that case.
Actually, I'm doing something very similar, and I'm using regular session
persistence and manually clearing things when necessary.
I think that the rewind phase would map closely to the split between
16 matches
Mail list logo