thank all of you guys and your interestring discuss!
and i prefer jetty too.
but,who can solve my problem?
Peter Stavrinides wrote:
>
> Hi Szemere,
>
> I am very interested in JBoss, the reason is that we have J2EE
> applications that we need to combine with our Tapestry web application,
> and
in my service
i use cycle.getParameter("name") to get the paramter value. is there any
method that print the url i entered in browser.
for example get this -->
http://localhost:88/app?service=ProcessService&abc=1&def=2&cdf=4
--
In Idea, you just click the add button to add a new maven config (IJ
>= 7 only) after pressing the run button. In there, your goal will be
jetty:run. Specify the pom that is in your webapp module. You might
also need to specify maven home.
In your pom, you need a chunk like this in your bui
some more info on adding maven config in run's dialog? thanks.
Julian Wood wrote:
>
> We use it with jetty and maven.
>
> Just a standard directory structure - nothing special.
>
> To run jetty, add a new maven config in idea's run dialog - specify
> your pom (which configures the jetty plu
On 5/22/08, Toby Hobson <[EMAIL PROTECTED]> wrote:
> Yes, that works!
> Thanks Thiago - I should have read your earlier post!
You shouldn't, as it was a little unrelated to yours, and my
suggestion didn't help in the other thread. :)
--
Thiago
--
Yes, that works!
Thanks Thiago - I should have read your earlier post!
Toby
- Original Message
From: Thiago HP <[EMAIL PROTECTED]>
To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]>
Sent: Friday, 23 May, 2008 2:08:36 AM
Subject: Re: T5 assets and trailing slash on urls
On 5/22/08, To
On 5/22/08, Toby Hobson <[EMAIL PROTECTED]> wrote:
> type="text/css" />
> This works fine when I access the app at http://localhost/app/start for
> example.
> But when I try http://localhost/app/start/ the css and images are screwed.
> I've
> noticed that in the generated html, T5 creates rela
I have a slight problem using assets (images and css files) my app. within
Layout.tml I have:
This works fine when I access the app at http://localhost/app/start for
example. But when I try http://localhost/app/start/ the css and images are
screwed. I've noticed that in the generated html, T5
Oh, and since you are setting the messages in the action phase and
using them in your render phase you'll need to pass them through
probably using @Persist("flash") on your arraylist...
http://pastebin.com/m65d79b54
(nice tool...)
Josh
On Thu, May 22, 2008 at 4:38 PM, Josh Canfield <[EMAIL PROTE
Yea I've tried multiple different combinations of @Persist to get something
to work on my pages and component with no luck. Thanks anyways for your
help Filip.
Zack
Filip S. Adamsen-2 wrote:
>
> You say you added @Persist("flash") to your pages, but the information
> you're storing doesn't g
Ok, here is your problem:
private List messages = new ArrayList();
This is how you set up a default value for this page instance. When
the page goes in or out of the page cache the values are reset to
their initial state.
You need to create the list of messages during the request. One method
wou
You say you added @Persist("flash") to your pages, but the information
you're storing doesn't go into the page, but into the component. I think
you'll have to put @Persist("flash") on your list of messages in your
Layout component.
If that doesn't solve it, I'm afraid I don't know what the pro
Filip,
One of the first things I added was @Persist("flash") to my pages with no
luck. Still the same behavior. Even with the pages pooled should they
share attribute values across sessions?
Filip S. Adamsen-2 wrote:
>
> Working as intended. Tapestry uses a page pool which means that you hav
Hi Josh,
Always cautious not to include code that would just confuse things :P
My Layout component is here: http://pastebin.com/m4fd5d6a
In my tml I am using the same line in all places (sans actual literal):
A page of mine might look like this: http://pastebin.com/m415466a
Each of my pages e
Working as intended. Tapestry uses a page pool which means that you have
to use some sort of persistence to make this work:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html
-Filip
On 2008-05-23 00:45, zack1403 wrote:
No. Not using any persist. I really dont have anything
Hi,
This is most likely due to classpath conflicts. Make absolutely sure
that you don't have any old Tapestry jars around from before the package
rename.
-Filip
On 2008-05-23 00:54, Stephane Decleire wrote:
Hi,
I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT
but get
Hey Zack,
It's generally a good idea to post some code for us to look at when
asking a question.
You might be doing something like this:
What you want is
If that's not the case then show us some code from your template and java.
Josh
On Thu, May 22, 2008 at 3:33 PM, zack1403 <[EMAIL PRO
Hi,
I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT
but get the following error at startup :
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tapestry/ioc/MappedConfiguration
Looking at my AppModule class, i have :
import org.apache.tapestry5.ioc
No. Not using any persist. I really dont have anything else besides a title
and this list of messages. When I move from page to page I might inject my
layout and add a message to this list for display. They get persisted
without any sort of persist.
Daniel Jue wrote:
>
> I take it you are n
I take it you are not using @Persist("flash") ?
http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html
On Thu, May 22, 2008 at 6:33 PM, zack1403 <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I have a layout component with a List full of my own message objects as an
> attribute. F
Hello all,
I have a layout component with a List full of my own message objects as an
attribute. First off, it seems that these values are shared across
sessions/computers. Second, they persist until i either restart my server or
end the session. Any ideas why an attribute of the layout class w
Sorry, typo.. obviously AssetDispatcher :-)
On Thu, May 22, 2008 at 2:41 PM, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> Nothing changes other than JAR/not jar. Deploying under Jetty locally
> all along
>
> I did try class.getResourceAsStream() and I do get a non-null stream,
> so they are on c
Nothing changes other than JAR/not jar. Deploying under Jetty locally
all along
I did try class.getResourceAsStream() and I do get a non-null stream,
so they are on classpath. It just seems like request for resources
never makes it to AccessDispatcher.
On Thu, May 22, 2008 at 2:24 PM, Thiago
On 5/22/08, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> Thanks for all the input Thiago. I tried it with force-absolute-uris
> symbol, and it generated absolute paths with the effect of just "/"
> being prefixed to paths. So it took effect, but didn't help - still no
> resources. I've been fight
> This setup has some "unusual" artifacts. The main one being that root
> of the package hierarchy is always shared by workbench and the apps
> (it must be, as afterall at deploy time it's a single app). So
> programmer has com.foo.bar, and workbench.jar also has com.foo.bar.
This shouldn't be a
Thanks for all the input Thiago. I tried it with force-absolute-uris
symbol, and it generated absolute paths with the effect of just "/"
being prefixed to paths. So it took effect, but didn't help - still no
resources. I've been fighting with it for few hours now and I've run
out of ideas myself.
Working on it a bit today, should have something together pretty soon.
On Thu, May 22, 2008 at 2:20 AM, Blower, Andy
<[EMAIL PROTECTED]> wrote:
> Any update on this Howard? I'm trying to be patient and not check the svn
> repos too often... ;-)
>
>> -Original Message-
>> From: Howard Lewi
There's an outstanding issue about this; may be a tough nut to crack.
On Thu, May 22, 2008 at 9:13 AM, Toby Hobson <[EMAIL PROTECTED]> wrote:
> Funny you should ask that Dan ... I was just struggling with something very
> similar:
>
> BasePage.java
>
> public abstract class BasePage {
>
>@Inj
On 5/22/08, Adam Zimowski <[EMAIL PROTECTED]> wrote:
>
>rel="stylesheet" type="text/css"> (my own)
It seems to me that Tapestry is generating wrong relative URLs for
your assets. Try setting the tapestry.force-absolute-uris symbol to
true in your AppModule. Maybe it helps.
--
Thiago
-
Hi people. I've question about ie behavior when receive ajax response. When
update component with some value, example:
with that IE display correctly, but when update the some component with no
value (to hide element)
with that IE don't hid
I'll mention from high level the setup I have, to shed some additional
light. My main app (we call it workbench around here) is a general
purpose container which hosts applications written for it. It provides
for all apps the common layout, user interface, security,
infrastructure, etc etc. Progra
Hi, i am a relative inexperienced developer. I have worked with a couple of
presentation frameworks and there is a feature i would really like to have,
that no framework i know has. Here the thing: sometimes i do not like to
have getters and setters for all my classes because of my domain modeling
I never see requests come through that should be my assests. It hits
several times with path being "/" and once with path being "/home",
which is Index page in my "home" package. The links returned are:
(my own)
One of the anchors on my layout component generates like this:
My form's action
> I stepped through AssetDispatcher and it is getting called, but it
> never finds path that starts with "/assets/" so it always returns
> false:
Do you see requests come through that should be your assets? What is
getPath returning?
Can you paste the and tags that are created?
On Thu, May 2
I stepped through AssetDispatcher and it is getting called, but it
never finds path that starts with "/assets/" so it always returns
false:
String path = request.getPath();
// Remember that the request path does not include the context
path, so we can simply start
// looki
Yeah, everything works if it isn't jarred. Thanks for pointing out
AssetDispatcher. I'll try to debug it.
On Thu, May 22, 2008 at 12:52 PM, Josh Canfield <[EMAIL PROTECTED]> wrote:
>> What's weird is that internal Tapestry
>> resources aren't loading either.
>
> You said earlier that it worked if
Hello,
(sorry for the double post, the previous one got a wrong subject)
I'm trying to get a contributed data analyzer to work. Basically, the
new data type is mapped in several textfields. The component works ok,
setting it up as a data analyzer contribution was almost ok (the doc
could be bett
> What's weird is that internal Tapestry
> resources aren't loading either.
You said earlier that it worked if it wasn't jar'd, do the tapestry
assets work in that environment?
Are you getting anything in your log files?
You might try stepping into the AssetDispatcher to see if it's getting called
Hello,
I'm trying to get a contributed data analyzer to work. Basically, the
new data type is mapped in several textfields. The component works ok,
setting it up as a data analyzer contribution was almost ok (the doc
could be better on that point, there are some missing details), and it
displays
Hey Andy,
I've seen this work so I'm guessing there is something else going on
in the page or it's probably a browser compatibility problem.
What browser are you using? Do you see the same thing in other browsers?
Are you getting a javascript error when the page loads or you post the form?
Have
I tried that and no difference. What's weird is that internal Tapestry
resources aren't loading either. For instance:
/assets/tapestry/default.css
will not load either. This is consistent with the presentation. Again,
all functionality works, including data access, but on forms, for
instance, inp
>href="${asset:classpath:resources/css/layout.css}" />
Try ${asset:classpath:/resources/css/layout.css} (note the slash after
'classpath:').
--
Thiago
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
We use it with jetty and maven.
Just a standard directory structure - nothing special.
To run jetty, add a new maven config in idea's run dialog - specify
your pom (which configures the jetty plugin) and you're good to go.
Debug works fine too, as does class reloading with a cmd/ctrl-f9.
J
I suspect this might be a bug. I'm seeing warnings in my logs every now
and then that form submissions that should be XHR aren't and thus
returned a block which isn't a valid return value.
Howard, anyone?
-Filip
Blower, Andy skrev:
It's not being submitted using an XMLHttpRequest - that's th
I simply run Jetty through Maven inside IntelliJ. Works like a charm.
-Filip
Angelo Chen skrev:
Hi,
I have been using Intellij with T5 and it works very well, here are some
approaches:
1) Using the local tomcat server in the IDEA and run it directly, advantage
of this is, I can debug/step int
It's not being submitted using an XMLHttpRequest - that's the problem I need
help with. One of the elements passed to Tapestry.init() is
"linkZone":[["actionlink","lor"],["resort","lor"]] so the form should be linked
to the zone.
The zone looks like this:
Funny you should ask that Dan ... I was just struggling with something very
similar:
BasePage.java
public abstract class BasePage {
@Inject
private Session session;
@Property
private List items
private Class entityClass;
public BasePage(Class entityClass) {
th
Hi,
I have been using Intellij with T5 and it works very well, here are some
approaches:
1) Using the local tomcat server in the IDEA and run it directly, advantage
of this is, I can debug/step into the java code.
2) Using remote tomcat server, create a exploded directory, run/attach the
app in
Part of my application compiles into JAR, which contains pages,
components, dao services, CSS, javascript and images. When I deploy
that JAR, pages, components and DAO's (my custom services) load just
fine, but none of the CSS, JS or images load. The setup is as follows:
JAR
|_ com.foo.bar
|_ ME
I have a base class for add/edit pages that is genericized (sp?) to accepts as
the entity to edit as the activitation context when editing:
void onActivate(E entity) {
adding = false;
this.entity = entity;
}
E onPassivate() {
Hi Szemere,
I am very interested in JBoss, the reason is that we have J2EE applications
that we need to combine with our Tapestry web application, and whatever is
easier to work with gets my vote!
I have found Jetty to be the best, for development at least. In addition to the
hot code replace
I can certainly recommend JBoss as a wrapper around Tomcat to solve the
classloader issues. It's auto-deploy feature is really effective. You could
say it's a little like taking a sledgehammer to crack a nut, but you can
slim the sledgehammer (JBoss) down and it does the job effectively and so
muc
Hi,
If you're on Tapestry 5.0.12-SNAPSHOT you can set the inplace parameter
on Grid to true to automatically wrap it in a zone.
Does that solve your problem?
-Filip
Stephane Decleire skrev:
I would like to use a grid component in a zone. So how can i tell the
pager links to refresh only the
How is your zone defined?
Also, check if the form is really submitted using an XMLHttpRequest.
I've seen this fail a couple of times lately, hence my suggestion to
check Request#isXHR.
-Filip
Blower, Andy skrev:
Thanks for the reply Filip. I have bound the zone parameter on the form like
t
Thanks for the reply Filip. I have bound the zone parameter on the form like
this:
:
oldest
first
The action link works in an Ajax way, but the form submit doesn't. The even
handlers are:
Obj
Hi Andy,
Form has a zone parameter, if you bind it the zone will be updated when
the form has been submitted.
Just make sure to check Request#isXHR to see if it's actually an
Ajaz-request before you return a block/component or Tapestry will bark.
The solution, then, is to just do a normal re
Is it possible to update a zone as a result of a form submission, rather than
having the entire page refresh?
I have a form with a select box and submit button to change the sorting of a
list of search results, and when I return a zone from the event handler method
onSubmit() the entire page is
Any update on this Howard? I'm trying to be patient and not check the svn repos
too often... ;-)
> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
> Sent: 07 May 2008 17:42
> To: Tapestry users
> Subject: Re: AjaxFormLoop
>
> I expect to check this in over the weeke
I'm implementing security in a Dispatcher. No need to keep security
logic in a page.
On Thu, May 22, 2008 at 4:17 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote:
> I'd use the pageAttached method.
>
> Uli
>
> Am Do, 22.05.2008, 11:00, schrieb Leon Derks:
>> Hello
>>
>> Is the SetupRender method the co
I'd use the pageAttached method.
Uli
Am Do, 22.05.2008, 11:00, schrieb Leon Derks:
> Hello
>
> Is the SetupRender method the correct place to check if the user has the
> priviliges to view the page?
>
> For example something like this:
>
> @SetupRender
> boolean setupRender() {
> if(user has
Hello,
IMHO, I would have used @OnEvent("activate") phase. No need to wait for
rendering process.
Christophe.
-Message d'origine-
De : Leon Derks [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 22 mai 2008 11:00
À : Tapestry users
Objet : Setup render for authentication check?
Hello
Is the S
Hello
Is the SetupRender method the correct place to check if the user has the
priviliges to view the page?
For example something like this:
@SetupRender
boolean setupRender() {
if(user has priviliges) {
return true;
}
return false;
}
Leon
If there's not too much information to be stored, you could cache the
result of your queries using one of tapestry's persitence mechanisms [1]
or in an ASO [2] and only re-execute your queries when the data has
changed.
Uli
[1]
http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html
Hi, i got some ideas.
you can cache the index page as a static html page.
then use the static html page to response to the client.
you can extend tapestry to generate a static html page, just write the index
to a real html file.
then rewrite the client request, the apache httpd docs may help.
2008
Hi,
Nope, you'll have to work something out yourself, as nothing like this
is built into Tapestry.
-Filip
孟凡振 skrev:
Hi all,
I encounter a problem , in my index page a lots of query happens
each time when i reload the it.
so my question here is that is there some cache strategy to ca
65 matches
Mail list logo