Hi Josh,
What defined in the parameter block should be in the same
page(Somepage.html), can it refer to another html?
A.C.
somepage.html
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Add this additional to the sidebar
All of this goes into the content s
The page location is "http://localhost:8080/Somepage";
"http://localhost:8080/Somepage.html"; is the location of component "html"
on the page "Somepage". I.e. Tapestry 5 uses "." to specify components.
(Which might actually be a bad idea.)
Cheers,
Nick.
Angelo Chen wrote:
Hi Josh,
It works p
Hi Josh,
It works perfectly! thanks, It's my fault, I start the page directly:
http://localhost:8080/Somepage.html.
this works:
somepage
don't know what's the difference.
A.C.
Josh Canfield-2 wrote:
>
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">
>
> Could it be as silly as
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">
Could it be as silly as a space after the xsd?
I have run the following successfully
-
/src/main/resources/com/thedailytube/ui/tapestry/pages/SomePage.html
---
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
So
Hi Josh,
I added that but got another error:
Component Somepage does not contain an embedded component with id 'html'.
This is the Somepage.html:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
Add this additional to the sidebar
All of this goes into the content section
Jos
Sorry, I should have had the Layout.java in there too... What that error is
telling you is that it's looking for the 'sidebarContent' property in your
Layout.java class. You can define it as below:
public class Layout {
@Parameter
private Block _sidebarContent;
public Block getSidebar
In production,I don't want to check file system.I want to disable file
system check.
only give tapestry.file-check-interval a higher value?
--
regards,
Jun Tsai
To summarize, read the threads linked to by Angelo, and read the T5 docs.
1 - Validate in onActivate and redirect to the login page.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html
(You can redirect via "return Login.class;")
There is another login example here:
http://tape
Hi Jean,
For your #1, here is a related link:
http://www.nabble.com/T5%3ALogin-and-session-tf4312177.html#a12276631
Angelo Chen wrote:
>
> Hi Jean,
>
> I'm newbie too, and have asked similar questions in the last few days,
> here are the links to those threads that might be helpful to you:
>
Hi Jean,
I'm newbie too, and have asked similar questions in the last few days, here
are the links to those threads that might be helpful to you:
for #2:
http://www.nabble.com/T5%3ATiles--tf4310807.html#a12291330
for #3:
http://www.nabble.com/T5%3ALogin-and-session-tf4312177.html#a12276631
Hi Josh,
This looks interesting, I tried it with following steps:
1.put Layout.html in the myapp/components, add also a Layout.java
2. put Somepage.html under WEB-INTF, add Somepage.java in myapp/pages
when I access it with http://localhost:8080/Somepage.html, I got following
error:
Could not
Hello,
I need to build a web application that will act as an administration panel
for one of our systems here. It must be written in Java and unfortunately
I've never written a web app in Java before. I've only written standalone
Java apps. I have written many portals/content management systems
Hehe... I suppose if I'd read the old post more closely (as opposed to just
looking at #2) I could have figured that out. Sounds like the @EagerLoad
that Robin pointed to is what you want.
On 8/23/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:
>
> Doh.
>
> I meant #1.
>
> Thanks.
>
> Ben
>
> On 8/23/
Doh.
I meant #1.
Thanks.
Ben
On 8/23/07, Josh Canfield <[EMAIL PROTECTED]> wrote:
>
> I don't follow how invoking an init method in your builder is related to
> the
> problem of the html generation. Can you expand on that?
>
> I would use a component and the MarkupWriter in the
> beginRender/af
I don't follow how invoking an init method in your builder is related to the
problem of the html generation. Can you expand on that?
I would use a component and the MarkupWriter in the beginRender/afterRender
methods. Something like this: (this code has not been compiled so
compilation/functional
On 8/23/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:
> I have the same requirement mentioned in #2. What is the best approach to
> handle this with Tapestry 5? I am thinking of just eager loading a service
> and invoking the init method in the builder method of the module. Any other
> thoughts?
>
I have the same requirement mentioned in #2. What is the best approach to
handle this with Tapestry 5? I am thinking of just eager loading a service
and invoking the init method in the builder method of the module. Any other
thoughts?
I think this was the Tapestry 4 way:
http://tapestry.apache.
Hey there,
How can I make a PropertySelection auto-submit an async form when changed?
I tried the ordinary "onChange=this.form.submit()" but it causes
the entire page to reload and I just want parts of it to do so.
Thanks.
--
Marcelo C. Freitas
I'm not familiar with that kind of caching. Almost sounds like a
proxy could be sitting between you and the content - being overzealous
in caching..
I guess a header or similar things could be done of course to
eliminate this - at least until it's time to start doing perf
optimizations.
On 8/23
I personally use this exact process for builkding widget based pages.
Sent via BlackBerry by AT&T
-Original Message-
From: "Josh Canfield" <[EMAIL PROTECTED]>
Date: Thu, 23 Aug 2007 11:16:55
To:"Tapestry users"
Subject: Re: T5:Tiles?
I love delegate for this type of stuff. If yo
I added this tip to the wiki (Tapestry5ObtainingHttpServletRequest),
because is exactly that happened to me too. :)
Regards
Cesar.
On 8/23/07, Charles Mason <[EMAIL PROTECTED]> wrote:
> On 8/23/07, César Les <[EMAIL PROTECTED]> wrote:
> > may be you need to add the servlet-api.jar to your class
I am attempting to do this, but I am not getting the results I was wanting.
lets say I have an application called MyApp2, which I can access as
www.mycomp.com/MyApp2
(Now of course lots of things have this name in it, like the packages,
some hard coded paths in Javascript, etc)
And lets say a p
I love delegate for this type of stuff. If you want to define a layout and
let the page decide what goes in the layout define a block parameter and use
delegate to render it:
(this has been truncated and modified for brevity, so while this may not
work out of the box it's full size cousin does wor
On 8/23/07, César Les <[EMAIL PROTECTED]> wrote:
> may be you need to add the servlet-api.jar to your class path
Thanks for that. It wouldn't compile because servlet-api.jar wasn't in
my class path.
The reason I thought it had been removed was because I was using
eclipses auto complete drop down
In my case I´m not using an ajax request, normal request but I have to hit
the refresh button to see the changes.
2007/8/22, Jesse Kuhnert <[EMAIL PROTECTED]>:
>
> I don't know what an "auto link" is - but if you are creating ajax
> requests then you have to do something stupid like:
>
> // pseudo
Css is supposed to be auto-included only for the exception page
Regarding toaster - it's really cool... If you get tacos [1]
you use the dojo:Widget component [2] by:
and then, in an ajax listener:
cycle.getResponseBuilder().addStatusMessage(null, "info", "My custom status
message");
[1]
The style related css stuff you want might be helped by looking here:
http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html
(i thought that Andy had made the css style for that stuff inlined
automatically though, maybe there is some other weird collision
happening)
For cu
After upgrading from 4.0.2 to 4.1.3-SNAPSHOT, I'm getting some strange issues
in regards to validation. When the client-side validation pops up, all I see
is an "OK" button and nothing else. Are there some CSS styles I need to add
in order to see the messages?
Also, is it possible to have the er
I was able to fix the problem below by adding an @Shell component to my page.
However, now I'm getting a new issue:
JavaScript error loading page
http://localhost:9876/appfuse-tapestry-2.0-rc1-SNAPSHOT/signup.html: Wrapped
com.gargoylesoftware.htmlunit.ScriptException: unknown protocol: javascri
may be you need to add the servlet-api.jar to your class path
regards
César.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I tried it with 4.1.3-SNAPSHOT and Canoo WebTest R_1600 (which uses HTMLUnit
1.13). Unfortunately it doesn't seem to get past the first page:
ReferenceError: "dojo" is not defined.
(http://localhost:9876/appfuse-tapestry-2.0-rc1-SNAPSHOT/assets/static/dojo-0.4.3/dojo3.js#11)
Matt
Kalle Korhone
You can't get it from here?:
http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest
On 8/23/07, Massimo Lusetti <[EMAIL PROTECTED]> wrote:
> On 8/23/07, Charles Mason <[EMAIL PROTECTED]> wrote:
>
> > There was a proposal (TAPESTRY-1272) to add a get remote client IP
> > address meth
I think this issue is a moot point. But I will say that the tree
example is a perfect example because of it's nature.
> Any tree can be easily walked through like a list,
> but then rendered (indented) to look like a tree to the user.
Of course it can. That's not really the point. The point is tha
On 8/23/07, Charles Mason <[EMAIL PROTECTED]> wrote:
> There was a proposal (TAPESTRY-1272) to add a get remote client IP
> address method to the Request class, but it was decided not to
> because it was accessible using getHTTPServletRequest. Since that's no
> longer available that information i
[EMAIL PROTECTED] a écrit :
The OGNL Expression-Compiler falls back from the new, byte-code
generating mode to the old, interpreting mode when an error occurs.
That why I get a well rendered page.
Are you using the very latest and greatest OGNL-version? At least, try
version 2.7. If the err
The OGNL Expression-Compiler falls back from the new, byte-code
generating mode to the old, interpreting mode when an error occurs.
Are you using the very latest and greatest OGNL-version? At least, try
version 2.7. If the error persists, try 2.7.1-SNAPSHOT. If it's still
there you can file a bug
I have been trying to get the IP Address a request for a page
originated from. If you have access to the HTTPServletRequest you can
get it from one its methods, assuming no load balancers and proxies
get in the way.
Using Google, I found that the RequestGlobals object used to have a
getHTTPServlet
Hello
I come on a strange stuff. An ognl expression is well working but I see
a Hivemind exception in log.
In a html file I affect a value to a property :
value="ognl:currentlocaleCode=page.engine.locale.language"/>
The property is defined in the specification page :
The result works: if I
You can have one layout wrapping another component, like a menu or a
sidebar. Of course they are declared into separeted .html's. Then, into the
Layout component you can 'call' the other components, like this call to an
existing Menu component into your workspace:
http://tapestry.apache.org/schema
I can't really see why is not having recursive components
such a problem.
Any tree can be easily walked through like a list,
but then rendered (indented) to look like a tree to the user.
So, rendering recursive data, like BeanEditForm should be
no science fiction. Like any other thing, providing
Hi Marcelo,
This works, thanks. Is this documented in T5 site?
The difference between this(Border?) and Tiles is, in Tiles layout you can
specify multiple JSPs, T5's border can have only one, but you can have one
after the other. so the syntax is:
right?
Marcelo lotif wrote:
>
> If th
Hello,
I've started a page on the Tapestry wiki which present a component that
offer to the visitor to change the site Locale by clicking on a flag.
http://wiki.apache.org/tapestry/ChangeLocale
There is no explanations, I'll add some next hours and days ...
Comments and changes are welcome !
I've started a page :
http://wiki.apache.org/tapestry/ChangeLocale
Comments and changes are welcome.
cyrille
Ulrich Stärk a écrit :
If localeItem is the value of your for component, you can put all this
into your page class and thus simplify your template. The for
component will take car
Thanks for the reply.I am using tapestry4 with tomcat5
I am using friendly URLs and trying to manage someof my HTML pages
in subdirectories .By organising the .java files in the same stucture as
the HTML pages i am getting output as static html pages .All my
"userDefined tapestry components " ar
It seems to me that this component is broken. When I try to test this my
browser complains about javascript errors and the child list stays
empty. I don't know whats wrong with it and I'm too lazy to debug it.
You should contact the author of the component to get a fix.
Uli
Jacob Arnold schri
Just did. And what do you know; 1.13 does run successfully most of our (
http://trailsframework.org) functional tests that broke because of
Javascript execution errors when we moved to Tap 4.1.2 (and dojo) and
previously run on htmlunit 1.11.
Kalle
On 8/23/07, mraible <[EMAIL PROTECTED]> wrote:
Hi!
I got this problem too.
Until now I had the application packed as a war file and I had some pages in
a subdirectory (something like profile/AuthPage.html) and the layout
template in WEB-INF/layout/Border.html. It worked fine, but for some reason
I had to change the deployment type, I cannot use
Has anyone tried HtmlUnit 1.13 with Tapestry 4.1? They claim much better
JavaScript support in 1.13:
http://tinyurl.com/2lo6p8
Matt
nirvdrum wrote:
>
> Has anyone here tried to test their Web app with HTMLUnit using Tapestry
> 4.1? I'm getting a lot of errors related to embedded dojo stuff
Abhilash,
Are you using Tapestry 4 or 5?
There is a certain directory structure you should model after for
either case. I suggest finding a demo or tutorial and starting with
that, then grow your application from there. Start with something
that works.
With Tapestry 4, you may have to specify y
49 matches
Mail list logo