How do you get your logger in your code ?
The injection
@Inject
private Logger log;
is only useable in Tapestry pages, components, ...
It will log nothing in your other classes managed by Spring, Hibernate, ...
Outside of Tapestry, you should use something like the line below to use
slf4j :
Hi all,
I need to import in my tap5 project a library which includes tap5 pages
and components.
But when i try to extend a page from the library in my project, i get
the following exception :
java.lang.RuntimeException: Base class com.mylibrary.pages.FramePage
(super class of com.myproject.pages.
Hi all,
I have implemented a Dispatcher based on the wiki solution provided by
Chris Lewis in order to check the authentication of the users on several
pages of my application.
But instead of check the access rights of a user based on the URL, i
would like to check it against the Page instance
You just have to inject :
@Inject
private ComponentResources componentResources;
Then, you access page properties like this :
componentResources.getPage().get
Stephane
Mohammad Shamsi a écrit :
Hi,
i wanna access to a components page, from component code.
i wanna to know the pa
the event of my 'detaillink' in the
component ?
I've tried something like that :
@OnEvent(component="the_name_of_my_component_in_the_container.detaillink")
without success ...
Any advice is welcome
Stephane
Steph a écrit :
Hi,
I've got a strange behavior in event bubb
Hi,
I've got a strange behavior in event bubbling ...
I have an actionlink in a component :
Show
details ...
If I write an event handler in the component, the event is handle
correctly :
@OnEvent (component="detaillink")
Object detailLink(Long id) {
... do the handling based on the id
B
onActionFromA
onActionFromB
On Feb 18, 2008 10:26 AM, Steph <[EMAIL PROTECTED]> wrote:
Thanks Howard,
But if my event from A is seen as "FromB" in component C, all events
from components B are melted and one can't handle a specific event !
Shouldn't we be able to
a component (A or B) may change its structure, including the ids of
embedded components, without requiring changes outside the component.
On Feb 16, 2008 6:24 AM, Steph <[EMAIL PROTECTED]> wrote:
I've achieved to handle the event of my component in its container by
changing th
How do we set the format of the DateField component ?
I can't find any information or sample on that subject ...
Thanks in advance ?
avor Hrg a écrit :
please say more about your use case,
maybe a different approach can help :)
Davor Hrg
On Feb 18, 2008 10:47 AM, Steph <[EMAIL PROTECTED]> wrote:
Thanks Davor for the explanation.
I understand the event type is intact but can you confirm me that i
can't make a distinc
Has anyone already tried to implement dependant dropdown boxes with the
Ajax features of Tapestry 5.0.11 ?
I would like to implement a component to get a user address (country,
zipcode, city) and i would like to present the user the cities according
to the zipcode and the country just filled.
How can a form in Tap 5.0.11 include asynchronous components (select,
checkbox, ...) which update the form itself and a synchronous submit
which redirects on another page in its onSuccess event ?
Stephane
I can easily inject a service A defined in Spring like that :
in my tap pages :
@Inject
@Service("A")
private MyObject a;
That works fine.
But if i declare in Spring an alias B on my bean A :
when i try to inject my bean B in my tap pages :
@Inject
@Service("B")
private
I try to handle a tristate property (true/false/null) with a radiogroup :
true
false
not defined
but the selection of "not defined" set my property to true.
Is there a specific way to handle null values ?
Stephane
Stephane Decleire a écrit :
I've tried without success to add an "onchange" event on a select box
without firing the submit of the form.
@OnEvent(value="onChange", component="mySelect")
private String select() {
log.info("new item selected");
return null;
}
Did i miss something or is the
Is there a version number or deadline already planned for this
functionality ?
Thiago H de Paula Figueiredo a écrit :
> On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire
> <[EMAIL PROTECTED]> wrote:
>
>> I've tried without success to add an "onchange" event on a select box
>> without firing th
I've tried this but my WebApplicationContext is null ...
Stephane
SergeEby a écrit :
> Hi,
>
> Just import and inject the WAC in your page:
>
> import org.springframework.web.context.WebApplicationContext;
>
> class Foo {
>
> ...
> @Inject
> private WebApplicationContext wac;
>
> ...
> }
>
>
gt;
>
> And if the application context .xml files aren't in the standard place and
> named the standard way you've also included:
>
>
> contextConfigLocation
>
>
>
> ?
>
> Steph <[EMAIL PROTECTED]> wrote: I've tr
Your code Gabriel work as well without heartbeats ... ;-)
Stephane
Gabriel Landais a écrit :
> Michael Courcy a écrit :
>> If you look at this exemple : TreeGridComponent
>> http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/Tree
19 matches
Mail list logo