Thank you!! it works as expected..
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/How-to-call-a-method-in-java-page-for-button-submit-action-tp5491713p5501622.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
Hi,
I dunno if this will work in your case, but you could render the
Ribbon *after* everything else so it all renders smoothly. Then in an
afterRender() (in the Layout or a mixin attached to it) use the T5 DOM
to move the Ribbon Div to the top of the page.
Steve.
---
"
Hi, I'm not really sure what's going on as the two classes you
mention, ValidatingMappedConfigurationWrapper &
AbstractConfigurationImpl, don't appear in your code snippet.
If you define your overriding service as an Interface (say in the
bind() method) then T5 will create a proxy for it.
public
Yes,
This is what i now do, initially the ribbon is hidden form the user, the
page builds up and fills the ribbon with blocks using a service.
Then afterrender i have a little piece of javascript which places the ribbon
on top of the document and removes the hidden style.
--
View this message in
I don't think it's a bug.
Can't find the place in the docs that describes this but I'm sure it's
somewhere written that you shall not store anything but page classes in the
page package.
Am 20.02.2012 um 04:05 schrieb Paul Stanton:
> Thanks Steve,
>
> I ran into this too upgrading from t5.1 t
Thanks for the reply Steve. The two classes I mention are Tapestry IoC classes,
not my own.
What you describe is how most of our overrides are implemented but this one is
conditional - we only need to override this service in a specific environment
and that's what causes the issue. If I define
I am using tapestry spring integration. I have three datasources defined in
my spring application context. When I try to inject one of them I get an
error
"Service interface javax.sql.DataSource is matched by 3 services:
dataSourceAnalytics, dataSourceFirewall, dataSourceUser. Automatic
depend
ok got the answer from here -
http://tapestry.apache.org/injection.html
@Inject
@Service("dataSourceFirewall")
private DataSource dataSourceFirewall;
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Error-Injecting-Spring-Datasource-when-there-are-more-than-one-Datasou
I'm updating the docs to be more specific about this.
On Tue, Feb 21, 2012 at 3:51 AM, Christian Riedel
wrote:
> I don't think it's a bug.
> Can't find the place in the docs that describes this but I'm sure it's
> somewhere written that you shall not store anything but page classes in the
> pag
It's be better if you could describe the specific problem you are
trying to solve. Often, what a filter does is put an override into the
Environment.
On Mon, Feb 20, 2012 at 6:51 AM, Barry Books wrote:
> I added a PartialMarkupRendererFilter to my Bootstrap module to
> support AJAX and it does no
I suspect the 302 redirect may be the correct solution, and Tapestry
could support this pretty reasonably.
The perfect solution would involve the following:
- The version number if replaced with the SHA1 hash of the resource's
(uncompressed) content
- All CSS is dynamically rewritten to convert re
Sounds good to me.
I, for example, use the Mercurial revision hash as the version number,
so in a sense 'earlier/later' version does not make sense in my context,
so if Tapestry would just redirect to the current version it would work great!
On Feb 21, 2012, at 2:05 PM, Howard Lewis Ship wrote:
This might work:
@Contribute(ServiceOverride.class)
public static void
setupApplicationServiceOverrides(MappedConfiguration
configuration, ObjectLocator locator)
{
SomeServiceType override = locator.proxy(SomeServiceType.class,
SomeServiceTypeOverrideImpl.class);
configuration.add(SomeS
What Steve is mentioning is doing this on the server side, leveraging
Tapestry's server-side DOM.
On Tue, Feb 21, 2012 at 2:38 AM, antalk wrote:
> Yes,
>
> This is what i now do, initially the ribbon is hidden form the user, the
> page builds up and fills the ribbon with blocks using a service.
>
I have a filter that manipulates the final DOM so that any components output
can be styled with Bootstrap CSS. In the real implementation the filter does
place an object into the environment to collect data along the way. The
filter works fine for plain requests but when used with partial renders i
Thanks howard,
maybe add some excerpt of the exception message so it comes up in search
engine results.
p.
On 22/02/2012 5:48 AM, Howard Lewis Ship wrote:
I'm updating the docs to be more specific about this.
On Tue, Feb 21, 2012 at 3:51 AM, Christian Riedel
wrote:
I don't think it's a b
I've got people running vulnerability scanners against a production site.
I've also got log4j configured to send email exceptions to me and
unfortunately this means I get a lot of email. For example the scanner
requests /index.php~
which results in the following log:
2012-02-21 14:17:37,324 [ajp
Here's my implementation:
// Copyright 2006, 2008, 2009, 2010, 2011 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.
> Recently I've discovered another one: Jelastic(.com). I haven't tried i yet.
Thanks for the link thiago.
Jelastic is brillant. two clicks and my Tapestry jQuery Mobile Web app is up.
http://techforum.jelastic.com/
-
To unsubs
Hi Barry,
I had the same issue a few months ago with various apps (Tapestry and non
Tapestry ones).
If you've got an Apache front-end, have a look at fail2ban (
http://www.fail2ban.org).
It basically scans your error_log and based on typical attacks forbids the
attacker IP to request your apps, by
On Mon, 20 Feb 2012 20:47:15 -0200, Paul Stanton
wrote:
Hi All,
Hi!
Don't patch: find the service that contains the logic you want to change
and override it through Tapestry-IoC.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
Thanks for the link. Something like that is pretty much what I want and I do
run an Apache front end but I don't control that machine. Unfortunately I
think my only real option is either a Tomcat filter or some Tapestry code.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/
Patches are best provided on JIRA; there's a checkbox that shows you
have granted the rights to the patch & code to the Apache Software
Foundation. Thanks!
On Tue, Feb 21, 2012 at 12:28 PM, Paul Stanton wrote:
> Here's my implementation:
>
> // Copyright 2006, 2008, 2009, 2010, 2011 The Apache S
hi,
i am new to Tapestry-Security and to this forum so am sorry if this is not
in the correct thread.
in version 0.3.1 I could do the thing described few lines down (securing to
specific IP).
I was wondering how to do this in AppModule.java in version 0.4.1 if
shiro.ini and com..util.HostF
Hi Thiago
__With respect__, and I don't know the innards of Tapestry-IoC so well or the
problems some of you have -
Do you do this and it works, or is it more
this-is-how-it-should-be-done-but-YMMV?
It sounds like the way to go.
here's the page for anyone to follow up
https://tapestry.apache.o
Didn't think there was a Jira yet, I'll try to get around to logging it
later this week.
On 22/02/2012 8:38 AM, Howard Lewis Ship wrote:
Patches are best provided on JIRA; there's a checkbox that shows you
have granted the rights to the patch& code to the Apache Software
Foundation. Thanks!
By the way all,
Here is a solution which does not require any changes to tapestry code.
All code is free to use.
1. contribute a dispatcher to MasterDispatcher, just before the regular
AssetDispatcher:
public static void bind(ServiceBinder binder)
{
binder.bind(Dispatcher.cl
Hi Thiago,
I'd love to not have to patch but how can I override the DateField
component (java & js) via tapestry-ioc?
I am aware that I could write a new component, "DateField2" for example,
however this would require more code to change in many sub-projects.
If I cannot replace the impleme
Perhaps the tapestry5-jquery project can give you some ideas. It
overrides the DateField component.
On Tue, Feb 21, 2012 at 7:55 PM, Paul Stanton wrote:
> Hi Thiago,
>
> I'd love to not have to patch but how can I override the DateField component
> (java & js) via tapestry-ioc?
>
> I am aware th
From what I can tell, it overrides the DateFieldStack, and the
javascript used - not the component class its self...
am i wrong?
On 22/02/2012 3:03 PM, Jonathan Barker wrote:
Perhaps the tapestry5-jquery project can give you some ideas. It
overrides the DateField component.
On Tue, Feb 21, 2
Hi,
I have used loop in my code to layout a table like structure and everything
works fine in that loop in UI (shows three rows with background color and
datas), However I have one doubt in that for all the three rows it shows the
same background color #CDCECC but I want to change the color like
1. use the 'index' attribute of loop:
2. add the indexProp to your page class
@Property private int indexProp;
3. use a property symbol for the appropriate style attribute (i'm
assuming the )
4. implement the logic in your page class
public String getAlternateColour()
{
return index
I was just started to work in that way, but you saved my time!!
Thank you so much it works as expected
And your explanation is really very simple for beginners!!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/how-to-get-the-index-in-tapestry-loop-and-change-background-co
33 matches
Mail list logo