Hi, there is a lot of place in my project where this situation occurs. There
is one of them (I removed unnecessary code):
Main template with parameter / property title (the title meant to be
displaed in head section):
public class MainTemplate {
@Parameter(defaultPrefix=literal)
On Fri, 11 Feb 2011 10:14:35 -0200, m!g gagau...@gmail.com wrote:
Hi, there is a lot of place in my project where this situation occurs.
There is one of them (I removed unnecessary code):
public class MainTemplate {
@Parameter(defaultPrefix=literal)
@Property
private
Pages usually don't have parameters. Components do!
g,
kris
Von:m!g gagau...@gmail.com
An: users@tapestry.apache.org
Datum: 07.02.2011 15:38
Betreff:Tapestry 5 error Caused by: java.lang.RuntimeException:
Literal values are not updateable
Hi everyone.
Here is a simple
On Mon, 07 Feb 2011 12:42:12 -0200, Kristian Marinkovic
kristian.marinko...@porscheinformatik.at wrote:
Pages usually don't have parameters. Components do!
I can't think of any reason for a page to have a parameter: instead, they
have the activation context and query parameters. Pages
I made only page just for simplicity. OK, Here is component with parameter:
public class TestPage {
@Component(parameters={test=false})
private Test test;
}
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
xml:space=preserve
head/head
body
div t:id=test/
/body
On Mon, 07 Feb 2011 13:44:53 -0200, m!g gagau...@gmail.com wrote:
Failure writing parameter 'test' of component TestPage:test: Literal
values are not updateable.
The message is quite clear: you're trying to change the value of a literal
value. This happens in the first line of your method:
Because it's literal false and where changes would be stored is not
specified. If you want to set it you have to have the parameter map to a
property of the container.
The example doesn't make clear what you are trying to do to begin with.
--
View this message in context: