@Inject
private PageRenderLinkSource linkSource;
Object onMyEvent(){
Link link = linkSource.createPageRenderLink(Index.class);
link.addParameter("xyz", "abc");
return link;
}
On Jan 16, 2013, at 12:29 PM, mateen wrote:
> Hi,
>
> In my code after i validate the username and password
Hi,
In my code after i validate the username and password i redirect the user to
a new page by simply returning Index.class from my validation function. Now
i have a requirement to also pass some params in the Query String like
Index?xyx=abc. How can i do this ?
Kind Regards
--
View this mess
Hi,
I use the following code to show my alerts.
alertManager.alert( Duration.TRANSIENT, Severity.INFO,
"Transaction was processed successfully" );
Now can can i clear the previous alerts, otherwise each time a transaction
fails a user has to manually clear the error me
While I agree that there is not technically a true nested form in HTML, it's
the best term I have to describe it :)
What I'm trying to do in my evaluation is see where the sticking points will
be as developers, if the framework is chosen, will run into. This is one of
them.
It sounds like what I
That was exactly what I needed, works like a charm. Thanks!
Am 15.01.2013 17:48, schrieb Lance Java:
> Tapestry will only render an attribute that is not null. But you
> need to be aware of the following: 1. For foo="${x}" the value will
> be the empty string if getX() is null 2. For foo="prop:x"
On Tue, 15 Jan 2013 20:01:22 -0200, sthomps wrote:
No form fragments don't appear to be what I would need.
I'm still finding my way around Tapestry so I'll try and explain a bit
better in how I use Wicket with nested forms.
I would like to have a parent form that on submit will validate all t
No form fragments don't appear to be what I would need.
I'm still finding my way around Tapestry so I'll try and explain a bit
better in how I use Wicket with nested forms.
I would like to have a parent form that on submit will validate all the
nested forms contained within including it's own inp
I have a feeling you are not even asking about form fragments (see
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html,
also shows an example of using a nested bean editor) but just making a
component out of a bunch of related fields, and yes sure, i
I wanted to confirm that there is not nested form support in Tapestry 5?
I'm currently evaluating Tapestry coming from Wicket and I use nested forms
quite often.
It's nice to be able to componentize a form, include it as needed among
other forms/pages, and have a validation chain from parent to
FYI
Tapestry5 supports more than two execution modes. If you only need to
determine if current mode is production, then no need to inject value of
EXECUTION_MODE, you can simply inject value of PRODUCTION_MODE into boolean
field/variable, and build conditions on that boolean instead of using
Strin
Tapestry will only render an attribute that is not null. But you need to be
aware of the following:
1. For foo="${x}" the value will be the empty string if getX() is null
2. For foo="prop:x" the value will be null if getX() is null
So it's best not to use ${x} for attribute values.
--
View this
re-reading your question, I notice that you also want to use a different .tml
file. You might find help in Igor's post
http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/layout-component-selection-based-on-doma
Depending on your use case, you could either:
1. Contribute a ComponentRequestFilter to the ComponentRequestHandler or
2. Contribute a PageRenderRequestFilter to the PageRenderRequestHandler
Either way, the filter will push() an object onto the Environment which your
pages / components can then ac
On Tue, 15 Jan 2013 12:54:13 -0200, Arno Haase
wrote:
Hi,
Hi!
So - any ideas or suggestions?
Write a mixin that writes or not the attribute depending on a mixin
parameter.
--
Thiago H. de Paula Figueiredo
-
To unsu
Thanks.
my solution
@Inject
@Symbol(SymbolConstants.EXECUTION_MODE)
private String exeMode;
...
if (exeMode.contains(SymbolConstants.PRODUCTION_MODE)) {
- Original Message -
From: Lutz Hühnken
To: Tapestry users
Sent: Tuesday, January 15, 2013 10:15 AM
S
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
the following example is extremely simplified, but the underlying
problem is real.
I have a custom component with an optional parameter 'x'. If the
parameter is present, I want to render
Hello
otherwise I want the same thing but without the HTM
I would recommend using the static variable *SymbolConstants.PRODUCTION_MODE
* instead of *tapestry.production-mode*
On Tue, Jan 15, 2013 at 12:15 PM, Lutz Hühnken
wrote:
> Hi John,
>
> you should be able to inject its value into your class with
> @Symbol("tapestry.production-mode")
>
> See org.a
It turns out dom.js was being cached. What makes this tricky to figure out is
requirejs apparently adds the script tags to the DOM which makes it appear
prototype.js is being added by Tapestry when in fact it's being included by
the cached dom.js.
I'm looking forward to checksums in asset paths.
Hi John,
you should be able to inject its value into your class with
@Symbol("tapestry.production-mode")
See org.apache.tapestry5.ioc.annotations.Symbol for documentation and
org.apache.tapestry5.SymbolConstants for names.
Hth,
Lutz
On Tue, Jan 15, 2013 at 11:07 AM, John wrote:
> Hi,
>
> What
Hi,
you can inject a symbol EXECUTION_MODE:
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/SymbolConstants.html#EXECUTION_MODE
http://tapestry.apache.org/symbols.html
On Tue, Jan 15, 2013 at 2:07 PM, John wrote:
> Hi,
>
> What is a neat way to detect the execution mode? I want to
Hi,
What is a neat way to detect the execution mode? I want to know if my service
class is running with development mode so I can switch a feature off.
John
21 matches
Mail list logo