Hi,
I have codes like this:
@InjectPage
private Feedback feedback;
Object onActionFromDelete(Long id) {
feedback.setid(id);
return feedback;
}
public Long onPassivate() { return currentUser.getId();}
This generates this http request:
http://192.168.254
Thanks, but when I put:
in the template, the generated html then looks like this:
Again, I can't seem to prevent it from interpreting the id as a literal
string.
However, if i put:
in the template, the generated html then looks like this:
So... it really seems that id is special. T
Hi
I'm new to tapestry so I'm not sure that's the right place to speak
about that but there's a small typo in the documentation :
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html
In the usage of the count component :
Ho!
Where actually it should be
Ho!
Michae
Thanks!
On Nov 3, 2007 6:55 AM, Michael Courcy <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm new to tapestry so I'm not sure that's the right place to speak
> about that but there's a small typo in the documentation :
>
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html
>
> In th
may i know how to set a property in .app file and read it into our page.
for instance, i have to create a property "applicationurl" in app and read that
in my page.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
I think you can use the app-property: prefix to do
that (or meta: ) :
http://tapestry.apache.org/tapestry4.1/usersguide/hivemind.html
On Nov 3, 2007 11:17 AM, cometta <[EMAIL PROTECTED]> wrote:
> may i know how to set a property in .app file and read it into our page.
> for instance, i have to cr
I'm trying to create my own resource type in addition to the
ClasspathResource (for returning a URL of "classpath:") and the
ContextResource(for returning a URL of "context:")
What I'm trying to achieve is to add a third resource type which I'm
calling HttpResource(so I can return a URL of
thanks jesse
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
can anyone give me an example on displaying a checkbox on each row of tableview
and action i can check which checkbox is checked ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
in my project, i currently use hibernate 3.2.5 (and hibernate-search
3.0.0) together with tapestry 5.0.6 (and tapestry-hibernate module). The
"normal" Hiberate works as excpeted, but the hibernate fulltext-search
runs against an exception - i think because of wrong init of the
hibernate s
Hi all,
I am new on Tapestry and try to become familiar with it, mostly through this
forum and the official site. I am trying to migrate a simple servlet into
tapestry.
I find myself search for days for tasks that seem simple. Currently I am
trying to achieve the following:
a) Load some init pa
In Tap 4, I can use translator:number,pattern=0.#
(which used NumberTranslator.java)
to format the numeric value in a TextField component.
How can this be done in T5.0.6 ?
I have checked the T5.0.6 API, it looks as though
T5.0.6 has no
NumberTranslator.java .
Must I implement a NumberTranslat
Hi Shing,
Try this http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, this is to output, not used in Textfield
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am a 100% new user for tapestry. Currently I'm working on 5.0.5, but I got
stuck from the just beginning.
I want to implement a kind of user access controller. All the pages, excepts
for the login page, can be accessed by authenticated users only. users who
hasn't passed the authentication will
HI lyifan,
Your first code should work, as Start.java extends BasePage.
just try:
...
public Object onActivate()
...
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Add getters and setters ASO.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T5 hast its own IoC container incorporated for which you could write a
new service and have it injected into your page classes using the
@Inject annotation. For more information consult the Tapestry IoC
documentation at http://tapestry.apache.org/tapestry5/tapestry-ioc/.
Uli
llonely schrieb:
Thank you Marcus.
But I can't understand where to add getters and setters. Do you mean put
getters and setters to ASO class or to a certain class where declares an
ASO?
Marcus-11 wrote:
>
> Add getters and setters ASO.
>
> -
>
Everything worked perfectly, but since I upgraded to T5.0.6, it fails for an
understandable reason!
I replaced my html by tml and placed them in the right place. I upgrade
log4j to get the latest and add the new logging api (to avoid runtime
error).
The thing is really strange...
My Start.tml
ht
Hello!
Still quite new to Tapestry. After my first steps I had a break because of
job load.
So still not really familiar with it.
I used a grid already for an overview table but now I would like to create a
form.
Looking for a way to create a form which contains a table/grid.
The table row (Grid
It still doesn't work, Marcus
I've changed the onActivate method to public
Marcus-11 wrote:
>
> Add getters and setters ASO.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED
This happens because the session becomes a proxy when you make a service of it.
I guess you have a thread scope on the hibernate session? well, then
tapestry-ioc will wrap the session in a proxy that will give you a new
session per request.
Actually its neither a tapestry-hibernate nor hibernate-s
>
> @InjectPage
> private Home home;
>
The error message seems a little strange, but the code above is injecting a
page called Home. Does that page load correctly if accessed directly?
Josh
On 11/3/07, Michael Bernagou <[EMAIL PROTECTED]> wrote:
>
> Everything worked perfectly, but since I u
Your BasePage class should be in /src/main/java//base/
Your Start class should be in /src/main/java//pages/ and extend
BasePage
Try adding a breakpoint in your BasePage's onActivate, and your Start's
onActivate to make sure they are getting called.
Josh
On 11/3/07, lyifan <[EMAIL PROTECTED]> wr
I have a project which consists of web and ejb modules. The web module
exploits Tapestry 4.0.2 and ejb is version 3. The EJB runs on Jboss 4.2.2. The
Operating System is Gnu/ Linux with kernel 2.6.16.
My first questions is, according to the document, I am able to disable tapestry
cache in
Try adding setters to your fields.
Cheers,
Nick.
Josh Canfield wrote:
@InjectPage
private Home home;
The error message seems a little strange, but the code above is injecting a
page called Home. Does that page load correctly if accessed directly?
Josh
On 11/3/07, Michael Bernagou <[EM
You've had the misfortune to run into this bug quicker than most.
Follow the advice here:
http://wiki.apache.org/tapestry/Tapestry5RootPathEmptyResponse
And everyone, please vote for this bug!
Cheers,
Nick.
Josh Canfield wrote:
Your BasePage class should be in /src/main/java//base/
Your Star
I need the RequestPageCache in onActivate() but its null, is there any
other way to get a page during that phase?
--
/ted
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, its not null. my bad..
2007/11/4, Ted Steen <[EMAIL PROTECTED]>:
> I need the RequestPageCache in onActivate() but its null, is there any
> other way to get a page during that phase?
>
>
> --
> /ted
>
--
/ted
-
To unsub
HI lyifan,
Rename page Login to Start,
/src/main/java//base/ProtectedPage.java
public class ProtectedPage
{
@ApplicationState
private Visit _visit;
// getters and setters of _visit
public Object onActivate() {
if (!_visit.isLogged())
I found out how to solve these problems.
For the first problem, that is because the password field requires one more
attribute to be set in the .page configuration file. The textField needs to the
property of hidden set to be true to enable the start sign on the screen.
32 matches
Mail list logo