It depends on how your Module is named. If you name it
PACKAGE.services.StartModule then it's Start.properties
(Start_LOCALE.properties). The archetype creates an AppModule.java
file, so the right name is App.properties.
Beginning from 5.0.6 - I suspect - you further have to put your
I've noticed from watching client side and server side logs that when
tapestry.form.submitAsync is called, it seems to go into a form of
stack, and is the request is only eventually made once a previous async
submit has responded.
I'm fairly sure of this because I had a js function setting a
People thanks a lot :)))
I solved a problem:
dhning-2 wrote:
Hi,
What's your tapestry version?
If is the latest version, you should not put the start.tml,
start.properties
in WEB-INF. They should be in parent level of WEB-INF(src/main/webapp/) or
in
This should be done with care though IMO. To me, one big advantage of T5 over
JSP's with EL or OGNL is that you are forced to keep the logic out of the
templates for the most part. Simple comparisons and single parameter accessors
seem okay, but I've always been surprised when seeing people on
public static void
contributeSchedulerFactory(@InjectService(ApplicationGlobals)ApplicationGlobals
applicationGlobals,
MappedConfigurationString, String configuration)
{
String configPath =
applicationGlobals.getServletContext().getRealPath(/WEB-INF/conf);
How easy is it to integrate T5 with DWR?
Are there examples of how to do this?
How do I need to configure the dwr.xml file?
Leon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Sven !!
- Original Message -
From: Sven Homburg [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008 12:43:40 PM GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: Access to ServletContext
public static void
This blog seems to have vanished:
http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html
As linked to from the wiki. Anyone know what's happened or have an archive of
this? I found it very useful.
-
To
Take a look at
http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry-4.1.5/core.js
tapestry.bind uses dojo.io.queueBind(parms) which should explain what
you're seeing
so, it seems that you just need to replace queueBind with your custom version
On Tue, May
Try enabling friendly urls for assets
contribution configuration-id=tapestry.url.ServiceEncoders
asset-encoder id=asset path=/assets/
/contribution
On Tue, May 13, 2008 at 8:23 AM, abhilash [EMAIL PROTECTED] wrote:
Hi all,
I am using Tapestry4.1.5
I have a custom widget.When i try to access
Hi Toby,
the correct attribute is t:blankLabel, not t:blankValue. And I recommend you
use a message from a message catalog, except a literal String.
Regards nillehammer
- original Nachricht
Betreff: T5 Blank option for select component
Gesendet: Mo, 12. Mai 2008
Von: Toby
adasal wrote:
Joachim what are your thoughts on OWL export of the object model? Where
would that be used?
The main use for me is for documentation purposes. It is very practical
to take the owl model, import that into protégé and use the Jambalaya
plugin to create a graphical representation
Hi
That's an interesting topic. Actually we had discussed it once with Igor,
and it seems that it shouldn't be too hard.
The question is which objects from the server-side you want to access from
DWR? If you will answer this question
then you can just start a DWR servlet in your web application
Hi all,
using an ActionLink one has to assign an id. By this id the event hander is
determined. So far so easy. But having assigned an id, a particular ActionLink
can only be used once per template. With EventLink one can assign an event
attribute and can put several links into a template
I make the component called button which is different compare with submit
component.
The questions I have now is. how can I get the value from textarea without a
submit button.
t:textArea t:value=task t:id=editplace / -- I put the value = task
And in the page class, i put
public void
We are about to add a new section to an existing struts1 application and I
was hoping that I could implement the new section using tapestry 5 with a
view to migrating some of the existing pages to tapestry 5 in the future.
The existing application has a couple of servlets for generating images
Hi,
I have a template wich look like this one :
...
t:grid source=clients row=client
t:parameter name=nameCell
t:actionlink t:id=clientLink context=client.id
zone=clientZone${client.name}/t:actionlink
/t:parameter
/t:grid
t:zone t:id=clientZone/
t:block t:id=clientBlock
Hi guys,
I'm trying to show/hide an html element based on Robert's recent suggestion
(Re: how do we secure our views) but I've hit a minor problem. The mixin's
@BeforeRender method is being called but then tapestry complains that the
component (textArea) is unbalanced. I'm using the component
hi toby,
i think i had the same issue some time ago
i was also trying to create a mixin for enabled/disabled
handling by short circuiting the render phases. but the
render phases (or at least the short circuiting) do not
work as i was expecting :).
maybe you can take a look at the problem
Version: 5.0.11
It appears that if you inject an application state manager into an
HttpServletRequestFilter and try to access an ASO, you get a null pointer
exception since the Tapestry Request object has still not been set up. This
means that if you do need to access an ASO, you are forced to
Obvious: Because you can't access the HttpServletRequest from within the
RequestFilter to access methods such as getRequestUri() (needed by 3rd party
library being called in the filter).
If I didn't have access to the ASO manager, then I could write up the filter
as a traditional Servlet
the RequestGlobals service can return the HttpServletRequest
and HttpServletResponse objects (getters) ... therefore you could
implement RequestFilter as well :)
g,
kris
kranga [EMAIL PROTECTED]
13.05.2008 16:51
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry
Leon,
I can't tell from that code where/how you've used the OnEvent mixin. I
see the @OnEvent annotation, but that's unrelated (as you probably
realize). This exact use case was discussed recently - see:
I'm actually done this (albeit using Spring MVC but similar issues apply). In
general it's pretty easy - the new activation context makes it much easier to
point to tapestry pages from a non-tapestry base (or indeed a bookmark). For
example you can now call
Why not use a RequestFilter, instead?
You can access the ApplicationStateManager from withing a RequestFilter.
Robert
On May 13, 2008, at 5/139:41 AM , kranga wrote:
Version: 5.0.11
It appears that if you inject an application state manager into an
HttpServletRequestFilter and try to access
I don't have that topic.
Is it easy to integrate DWR with tapestry, without Spring?
Leon
Renat Zubairov wrote:
Hi
That's an interesting topic. Actually we had discussed it once with Igor,
and it seems that it shouldn't be too hard.
The question is which objects from the server-side you want
I want to update a select, based on a value from another select.
I have tried the OnEvent mixin from the t5components, but only the first
selected value is printed to the screen.
When I select another value after that, it always prints the first
selected value.
How can I do this with
mixins are the best fit for the job, but there are some
pitfalls you have to be aware of when used with certain
components (see https://issues.apache.org/jira/browse/TAPESTRY-1805)
but there are other alternatives:
1) use a delegate and choose which representation of a page fragment
is to be
So if I've read the JIRA correctly does this mean that simply implementing
@BeginRender and @AfterRender in my mixin is not enough - I would actually have
the modify the component (in this case textarea)? to check for short-circuiting?
Toby
- Original Message
From: Kristian Marinkovic
your page class:
@Property
private ValueEnum _selectedItem;
@Component(parameters = {model=testModel, value=selectedItem,
event=change, onCompleteCallback=onSelectCompleteFunction})
@Mixins(value = t5components/OnEvent)
private Select _selectField;
public SelectModel
Something else i've noticed ... if i modify my mixin to always return true
during the @BeginRender phase I still get the exception!
- Original Message
From: Toby Hobson [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008 4:52:33 PM
Subject: Re:
sorry, one typo
@OnEvent(component = *selectField*, value = change)
public void onChange(String value)
{
System.err.println(value)
}
2008/5/13 Sven Homburg [EMAIL PROTECTED]:
your page class:
@Property
private ValueEnum _selectedItem;
@Component(parameters =
Hi Toby,
Try switching to @SetupRender. For /most/ things, doing:
@SetupRender
public boolean setup() {
return false;
}
Is going to work.
But check out the jira referenced by Kristian.
Robert
On May 13, 2008, at 5/1310:55 AM , Toby Hobson wrote:
Something else i've noticed ... if i modify
On Tue, May 13, 2008 at 2:21 AM, Blower, Andy
[EMAIL PROTECTED] wrote:
This should be done with care though IMO. To me, one big advantage of T5 over
JSP's with
EL or OGNL is that you are forced to keep the logic out of the templates for
the most part.
Simple comparisons and single parameter
That appears to be the result of (from: http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html)
:
If a method returns a true or false value, this will short circuit
processing. Other methods within the phase that would ordinarily be
invoked will not be invoked.
Most
I make the component called button which is different compare with submit
component.
The questions I have now is. how can I get the value from textarea without a
submit button.
You haven't shown us what your button does. Are you submitting the
form that the textarea is in?
Josh
On Tue, May
OK that makes sense ... I thought that returning true meant carry on as normal
Thanks guys
Toby
- Original Message
From: Robert Zeigler [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008 5:59:51 PM
Subject: Re: Mixin render phases
That appears
EventLink occured to me later than ActionLink, that's all. Perhaps if
I had thought of EventLink first, there wouldn't be ActionLink.
EventLink URL's need to explicitly identify the event name in the URL,
i.e., /page:myevent. ActionLink's need to identify the component
instead:
hi there,
if i click on the select/deselect button of the palette component
a page submit is initiated.
is this the wanted behavior ?
--
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
No, and that's odd behavior. I've tested Palette on FF Mac and FF Win
and IE Win, so something else is going on. Any chance you have some
client-side script attaching to those buttons?
On Tue, May 13, 2008 at 10:28 AM, Sven Homburg [EMAIL PROTECTED] wrote:
hi there,
if i click on the
I'm not sure I like the idea of a framework FORCING me to do something, IMHO
poorly structured code should be prevented by coding standards and peer
reviews, not a rigid framework. Just moving the logic from a JSP/Template to a
Java class doesn't necessarily mean it's cleaner. Sometimes it is
I've seen the behavior as well, in FF3 beta 5,
Not sure if it's a FF3 bug, or a javascript bug, but given that
Palette works in Safari 2, 3, IE 5.5, 6, 7, FF2 (win and mac), and
opera, my initial reaction when I experienced the bug was to think:
Well, I /am/ using a beta browser...
This may sound like a simple question but I can't work out how to change a
property programatically. Basically I'd like to disable a component from an
event handler. I know I can pass params in via TML or using annotations but I
can't find any setX() methods on the components
Thanks
Toby
Toby,
Components are just POJOs - as far as your application code they have no
common type; no common interface for such actions. There is a common
interface but it is fitted onto component classes at runtime. If you
need to set properties/call methods, you must provide such interfaces.
chris
Thanks Chris,
Does this mean that there is no easy way to disable a textfield at runtime for
instance? Would a mixin work for this?
Toby
- Original Message
From: Chris Lewis [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008 7:10:16 PM
Subject:
I seems like you'd want to use the 'disabled' parameter as Robert
mentioned, which many components have. Perhaps your dynamic behavior
could be solved by storing a flag in a page property and then using
something like:
input t:type=textfield disabled=disabled value=username/
Where disabled would
Chris correctly pointed out that classes are POJOs, but I'm guessing
he thought you were referring to your own components.
But I think you're thinking about framework-provided components, where
you don't have the easy ability to get/set properties.
First, for many of these properties, there
Is disabled a parameter for the component?
If so, then why not make the dynamic disabled a property of the
parent component or page, and bind the component parameter to the
parent property?
For example:
the component:
@Parameter
boolean disabled;
...
The page or component that
Yep, that makes sense - i was thinking that the parameter specified in the
annotation was a literal, but it's a prop so that will work nicely
Thanks guys
- Original Message
From: Robert Zeigler [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Tuesday, 13 May, 2008
I just realized I repeated Rob, so listen to him :-)
Chris Lewis wrote:
I seems like you'd want to use the 'disabled' parameter as Robert
mentioned, which many components have. Perhaps your dynamic behavior
could be solved by storing a flag in a page property and then using
something like:
sorry for my less detailed question.
i tested it now with IE6/FF2 too, only the FF3beta5 has this behaivor
2008/5/13 Robert Zeigler [EMAIL PROTECTED]:
I've seen the behavior as well, in FF3 beta 5,
Not sure if it's a FF3 bug, or a javascript bug, but given that Palette
works in Safari 2, 3,
Hello again :)
I've just added some validation to my custom component and I'm having trouble
with the regexp validator. As per the forms tutorial on the T5 site I've
placed a @Validate annotation on my getEmail() accessor:
@Validate(required,regexp)
public String getEmail() {
Fixed it!
It was because I defined the textfield as emailText, but the property as email.
so my message catalogue now looks like
emailText-regexp=(\\w+)@(\\w+\\.)(\\w+)(\\.\\w+)*
emailText-regexp-message=that appears to be an invalid email format, please
check it
On a minor point I think
I've just noticed something: If I have two validators and validation fails
twice, I only see one error message. E.g.
@Validator(required, regexp);
public String getEmail() {
return email;
}
message catalogue:
email-required=please enter your email
Hey Toby,
I'm not sure I like the idea of a framework FORCING me to do something
I agree with the sentiment, but in this case isn't it misplaced? I
suppose you are forced to consider which binding implementation to
use, but that feels more like flexibility. Tapestry should make
integrating and
Sorry, i forgot to describe the functions of the button.
The button is for doing the ajax, like retrieve the results from a
arraylist in page class, and display them when i click it. but not for
submitting the form, they are a normal button and a normal textarea.
joshcanfield wrote:
I make
I tried it out and it worked quite easy.
Spring is not a dependency of DWR as far as I know, so... ;)
Leon Derks schrieb:
I don't have that topic.
Is it easy to integrate DWR with tapestry, without Spring?
Leon
Renat Zubairov wrote:
Hi
That's an interesting topic. Actually we had
Hi,
I've noticed some quirks about the html generated by T5, and I was
wondering how I could go about changes these things. I would appreciate it
if someone could point out how to fix these things.
1) When using t:body/, an additional attribute xmlns=
http://www.w3.org/1999/xhtml; is added to
Sorry, i forgot to describe the functions of the button.
No worries, if you want a good answer though, you'll have to ask your
question with more details.
The button is for doing the ajax, like retrieve the results from a
arraylist in page class, and display them when i click it. but not for
Hi josh, Thanks for the help, I will try the zone 2nite.. thanks a lot
:working::working:
joshcanfield wrote:
Sorry, i forgot to describe the functions of the button.
No worries, if you want a good answer though, you'll have to ask your
question with more details.
The button is for doing
Hi all,
Is there any way to display the date picker widget always (not only when
clicked on icon).
please help me.
I tried giving toggle = false. no use.
Thnks in advance,
Sumanth.D
www.indygo.in
61 matches
Mail list logo