Hi Stefan,
Try injecting org.apache.tapestry5.services.Context into your service and
use its getInitParameter() method to retrieve your context parameters.
Regards,
Benny Law
On Fri, Oct 30, 2009 at 3:56 PM, Stefan wrote:
> Hi,
>
> is there a way to get access to the ServletContext inside a s
Hi !
Given these injections ...
@Inject
private PersistentLocale persistentLocale;
@Inject
private Locale currentLocale;
... what should be the value of currentLocale. I.e. after that the
persistent locale has been set, should curentLocale follow?
I will conduct tests tomorrow
Hi,
is there a way to get access to the ServletContext inside a service
bean?
I like to configure some parameters within the web.xml which i need in
some services.
How can i retrieve these parameters?
Injecting "ApplicationGlobals" does not work.
Where is my mistake?
Thanks in advance.
S
Hi Jamie,
Did you just modify the i18n property bundles or did you register the
locale with Tapestry as well?
--
Kevin
On Fri, Oct 30, 2009 at 2:49 PM, Jamie Counihan
wrote:
> Hi all,
>
> Quick question about localisation/language translation.
>
> I know tapestry supports different locales i
Hi all,
Quick question about localisation/language translation.
I know tapestry supports different locales i.e. en, fr, de, es etc.
This works fine.
What I would like is to support another english format other than "en" - for
example "en-us".
However, when I add the properties and change my br
Hi!
The code below is not PROD ready yet. The first section is to setup input
fields with label inside them.
Something that our "designers" seems slick!
The state locale is used it to remember the locale when called from a flash
menu
that "discarded" the persistent locale. The flash menu is feede
To what corresponds exactly this logs in your rendering scenario ?
[DEBUG] components.TellLayout <<< --- TELLGAMING --- >>>: 1:
TellLayout.setupComponent(
currentLocale.language=sv)
[DEBUG] components.TellLayout <<< --- TELLGAMING --- >>>: 4:
TellLayout.setupComponent(persistentLocale=en)
2009/1
Sorry i have missed
[DEBUG] AppModule.
ProtectedPageGateKeeper PPGK.path=/en/tellfriends
2009/10/30 Gunnar Eketrapp
> Hi!
>
> Well I have read that page over and over ...
>
> I am calling persistentLocale.set() in the action link connected to my
> language selector.
>
> But for some reasons th
is the locale present in the URL ?
2009/10/30 Gunnar Eketrapp
> Hi!
>
> Well I have read that page over and over ...
>
> I am calling persistentLocale.set() in the action link connected to my
> language selector.
>
> But for some reasons the persistentLocale is not used when rendering
>
> T
Hi!
Well I have read that page over and over ...
I am calling persistentLocale.set() in the action link connected to my
language selector.
But for some reasons the persistentLocale is not used when rendering
The page below is rendered in swedish even if the persistentLocale is
english.
[D
Hi all,
I am trying to build a test case with Selenium
(AbstractIntegrationTestSuite), but it seems that a new session is created
on each request.
I use IE.
Has anyone encounter this problem ?
Thanks in advance,
Christophe.
Hi
Have a look at 'Changing the Locale' here
http://tapestry.apache.org/tapestry5.1/guide/localization.html
to check if your are using the good scenario to change locale, since
Tapestry 5.1 uses URL to store Local and not a cookie (like in 5.0.18)
Christophe.
2009/10/30 Gunnar Eketrapp
> Hi!
>
thanks for this hint. i tried to adjust ClassPathURLConverter for JB 5.1 but
i'm not really sure what URL should I return to make it all working. this is
how sample incoming url looks like:
vfszip:/Users/janko/jboss-5.1.0.GA/server/myapp/deploy/myapp-ear.ear/myapp-webapp-1.0-SNAPSHOT.war/WEB-INF/
So this is maybe your image 'src' that does not exist and is considered by
Tapestry to be a call to index page :
You can find a similar behavior here :
https://issues.apache.org/jira/browse/TAP5-879
2009/10/30 Gunnar Eketrapp
> Hi !
>
> When creating a minimal reproduction (not an easy task)
Hi!
For some reason my pages are rendered accoring to currentLocale and not
persistentLocale.
Is there something I should now?
Thanks in advance,
Gunnar Eketrapp
Hi !
When creating a minimal reproduction (not an easy task) I realized that a
link in the footer seemed to part of the problem,
It was not tapified and included old links
When I commented it out my app started to behave again!
I.e. not activating the index page for each page reques.
thanks! it's really good solution!
in another side:
if we do some background-process such as "autosave" when user input a long form.
we should use ajax.periodUpdater method to save data automaticly,but
this way only can use url as target without ability to submit form.
so where can we get the form
Hi and thanks for the effort!
I will try to create a minimal reproduction.
/Gunnar
2009/10/30 cordenier christophe
> Hi
>
> I have made a test and cannot reproduce this behaviour, can you send a
> sample that reproduces it ?
>
> Regards,
> Christophe.
>
> 2009/10/30 Gunnar Eketrapp
>
> > Hi!
Hi
I have made a test and cannot reproduce this behaviour, can you send a
sample that reproduces it ?
Regards,
Christophe.
2009/10/30 Gunnar Eketrapp
> Hi!
>
> By some reason my index page is activated after each page request.
>
> What have I missed?
>
> Thanks in advance!
> /Gunnar Eketrapp
>
Hi!
By some reason my index page is activated after each page request.
What have I missed?
Thanks in advance!
/Gunnar Eketrapp
Hi!
I found a very strange thing ...
I have and Index page that just redirects to another page ...
public class Index {
@InjectPage
private com.tellpoker.pages.AboutUs about;
public Object onActivate() {
return about;
}
}
... which was an attempt to change the defaul
Hi sandeep,
The effekt that occurs is, that tapestry tries to provide a loop
context/state for the enclosing form. You need this if you have any fields
in your loop.
If you don¹t want/need to provide a context you may mark the loop as
voliatile. This looks like:
...
Otherwise you'll have to
Well i cannot reproduce on 5.1.0.5.
Can you give more details on how you use/declare your layout component ?
If it contains other @AfterRender... annotations ?
Christophe
2009/10/30 Gunnar Eketrapp
> Hi!
>
> I uninstalled both Firebug and Web Developer but the method is still called
> twice.
>
Hi!
I uninstalled both Firebug and Web Developer but the method is still called
twice.
Must be some other issue ...
/Gunnar
2009/10/30 cordenier christophe
> Hi
>
> I already encounter this kind of problems using Firebug (which make a
> second
> call to obtain JS of the current page)
>
> Re
Also, you can observe the Tapestry.ZONE_UPDATED_EVENT on the zone element
for your callback hook.
Like this: $('myZoneId').observe(Tapestry.ZONE_UPDATED_EVENT, myFunction);
See
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html
On Fri, Oct 30
Hi
I already encounter this kind of problems using Firebug (which make a second
call to obtain JS of the current page)
Regards
Christophe.
2009/10/30 Gunnar Eketrapp
> Hi!
>
> I have a layout component in which I have a method ...
>
> @SetupRender
> void setupComponent() {
>...
> }
>
> For
Hi!
I have a layout component in which I have a method ...
@SetupRender
void setupComponent() {
...
}
For some reason this method is called twice for each page request.
Can anyone explain why?
Thanks in advance!
/Gunnar Eketrapp
Hi all,
Thanks for your answers.
I've already stripped down the supported locale list to the only one
needed. We still have two missed hit for each tried locale.
The tapestry.file-check-interval doesn't help either. The
file-check-interval is seems to be used only for existing files.
I guess th
"Binding the zone parameter will cause the form submission to be handled as an Ajax request that
updates the indicated zone. Often a Form will update the same zone that contains it."
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html
So ju
Hi All,
I have the following
In MyComponent.tml
${MyDataObject.someothervariable}
Ofcourse there is supporting code for the same in MyComponent.java. ie.
having an istance variable of MyDataObject etc.
In my Page, there are 2 cases
1) I use the component wi
30 matches
Mail list logo