Hi guys,
I've got a @Form which submits async, and a @Submit. I've also got an
onclick js event handler which is causing me some grief, but only for IE:
When the submit button is clicked, in Firefox the js is called, and then
the form submits as per expected. however in IE the js is called
hi,
I wrote those templates, and I use latest eclispe milestone,
The added import statements are there to make sure
right classes are imported along with the template,
http://download.eclipse.org/eclipse/downloads/drops/S-3.4M2-200709210919/eclipse-news-M2.html#JDT
under subject: Extended
the new xml is now added there (I just removed import statements),
http://wiki.apache.org/tapestry-data/attachments/Tapestry5HowToEclipseCodeTemplates/attachments/t5_eclipse_code_templates_before_E3.4.M2.xml
please try it out so I can confirm it works :)
Davor Hrg
On Wed, Apr 2, 2008 at 10:01
Sorry for the delay. I'm amazed over the help I get, and you
shouldn't really have to say Sorry. But I need to say Thanks!
I read Josh's answer as No, Tapestry should really treat all
parameters be it ListString, ListMyMap or MyObject the same. (?)
I'm on CET, and will come back into this
Natia Gdzelishvili wrote:
hi,
I'm using tapestry 5.0.10 version,
i hve a broblem with dandling submit component event handling
on page i have:
t:form t:id=registrationForm
/t:form
Hello,
Perhaps with a litthe more context ? For example, what are you doing in
the java class ? What do see
Hello
Have you tried this ?
@OnEvent(value=selected,component=submitButton)
I think there is also a defer attribute with the Submit component that can be
used the selected event to be triggered after form submission.
Christophe.
-Message d'origine-
De : Natia Gdzelishvili
Hello,
I'm using AJAX functionality in my Tapestry 4.1.2 application in the
following way:
Code that updates the component:
cycle.getResponseBuilder().updateComponent(standardArea);
Component to update:
div jwcid=[EMAIL PROTECTED]
...
/div
Everything works fine until I add HTML
Hi all,
I'm trying to arrange all the uploaded files into a folder outside of the
current context path. And to do that, I setup a virtual path by creating an
upload.xml under Tomcat:
?xml version=1.0 encoding=UTF-8?
Context docBase=D:/uploadfile reloadable=true debug=0 /
Now any file under the
on page Registration.tml i have:
t:form t:id=registrationForm
//...some component
input t:type=submit type=submit t:id=submitButton
value=submit/input
/t:form
and on Registartion.java
@OnEvent(component=submitButton)
void onSubmitButton() {
System.out.println(Submit button was
Natia Gdzelishvili wrote:
on page Registration.tml i have:
t:form t:id=registrationForm
//...some component
input t:type=submit type=submit t:id=submitButton
value=submit/input
/t:form
and on Registartion.java
@OnEvent(component=submitButton)
void onSubmitButton() {
I created a Layout component called Border.
According to the documentation, I have to setup my page something like this:
html t:type=Border xmlns:t=
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
Page content
/html
I want the template to be previewable though so the webdesigners can
hi,
I'm using tapestry 5.0.10 version,
i hve a broblem with dandling submit component event handling
on page i have:
t:form t:id=registrationForm
/t:form
Thanks!
Changing the return type from Object to Block solved
the problem.
Imants
Quoting Josh Canfield [EMAIL PROTECTED]:
What version of Tapestry are you using? This works in
5.0.11. Do you
have the matching afterRender block to close the div?
public Block beginRender(MarkupWriter
please close the tag: br/
On Wed, Apr 2, 2008 at 11:13 AM, caarney [EMAIL PROTECTED] wrote:
Hello,
I'm using AJAX functionality in my Tapestry 4.1.2 application in the
following way:
Code that updates the component:
cycle.getResponseBuilder().updateComponent(standardArea);
Component
I solved this by having a single form and generating dynamic radio
buttons instead, and have a single submit at the bottom.
As to your strategy, the problem is that submit component does not
pass context to select event so it's hard to pass in additional
information.
-adam
On Tue, Apr 1, 2008
Adam Zimowski wrote:
I solved this by having a single form and generating dynamic radio
buttons instead, and have a single submit at the bottom.
As to your strategy, the problem is that submit component does not
pass context to select event so it's hard to pass in additional
information.
The submitWithContext on wiki is out of date at lest in regards to
5.0.11 as the API changed somewhat since 5.0.4.
processSubmission(String) is now the function to be implemented, so:
@Override
protected void processSubmission(FormSupport formSupport, String
elementName)
needs to be
It looks like that T5 doesn't have such solution as $content$ in T4.
It is discussed before.
http://www.nabble.com/Writing-an-FAQ-for-Tapestry-5-to15719185.html#a15739812
Even though the t:container element can't help.
Thanks!
DH
- Original Message -
From: Julien HENRY [EMAIL
Hi Julien
thanks for your answer and that was what I expected to see happening, but it
doesn't.
So if it is supposed to work like that, then I must be doing something wrong
here.
My Start.tml:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
Hi Onno,
You don't need to do anything else. Everything outside of
div class=text-column t:type=Border
Page content
/div
will be discarded and the Layout component will be used instead. Is it not the
case?
Regards,
Julien
- Message d'origine
De : Onno Scheffers
Hi all,
JumpStart 3.5 is now available. It's for Tapestry 5.0.11. New in
this release:
* Examples for localization, Select, and EventLink.
* Fixed existing Selects to fit in with 5.0.11's new blank option
handling.
* Replaced Start page with 5.0.11's new Index page.
Hi DH,
thanks for your response. I missed that earlier discussion and t:container
indeed doesn't seem to offer a proper work-around for the lack of $content$
when using the Layout component pattern.
Does anyone know if something like $content$ will be added to T5 before the
stable release?
More and more mysterious... The relevant getters in the page is
getListSource() and getReport(), enclosing excerpts from page below.
The problems seems to be related to getListSource(). The call chain as
I understand it:
- ${orvar} in layout.tmpl is fetching data data from
Hi,
I just begin to learn T5 and simply use component t:beaneditform to create/edit
a simple entity User. But I found that the validation behavior are different in
IE6 and firefox.
Please help. My tapestry version is 5.0.11.
My entity code:
public class User implements Serializable {
Sorry Onno, I was wrong.
Because Layout is basically component it doesn't work the way you (and I)
expected. So it seems there is no official way to keep templates previewable
with additionnal ouside markup that will be discarded at runtime to only keep
the outside of the template.
-
That works, thanks.
Does it mean that the component must be in XHTML? Is it specified somewhere?
Igor Drobiazko wrote:
please close the tag: br/
--
View this message in context:
Geoff Callender wrote:
Hi all,
[..]
Geoff Callender
Again, so that we also say when things go well : thank you for that Geoff :)
--
Francois Armand
Etudes Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org
Hi.
Currently I am working on project using Tapestry 5. I need to use
select component and I found some missing features or/and possible
bugs.
1. At site
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Select.html
there is an example saying:
Hi,
In my application, i have got several forms with the same bunch of
fields and other different fields.
What i would like is to create a component with the bunch of fields and
include it in the forms.
But the validateForm event is only managed by the page where my form is
declared and i
Hi..
My html code is..
input id=supplimentalId class=button jwcid=@Submit value=Add/
and java code is
@EventListener(elements = supplimentalId, events = onclick)
public void watchText(IRequestCycle cycle)
{
// do something
Hi..
I am using tapestry 4.1
My html code is..
input id=supplimentalId class=button jwcid=@Submit value=Add/
and java code is
@EventListener(elements = supplimentalId, events = onclick)
public void watchText(IRequestCycle cycle)
{
// do something
Hi there, I believe I have a solution that works using parameters and
delegates. Basically instead of including t:body/ you will delegate the
content to a parameter of the component. See the source below:
Start.tml:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
Hello everybody,
I m using Tapestry4 with spring Hibernate. I am having a problem when i
call my own java servlet with-in appcalication. The calling servlet sends
response correctly but it causes HttpSession termination. i want tapestry to
ignore this servlet request and let the container
In regards to your color example, the reason you're getting an error
is likely due to missing required parameter. If you look at component
reference for Select, you'll see that besides model, another
required parameter is value. The example on the website is somewhat
flawed because it is
Those links are for Tapestry 5. I use multiple servlets in a single
application and haven't had a problem with Tapestry 4. I just map the
URLs uniquely in the web.xml.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Apr 2, 2008, at 10:06 AM, Imran Amajd wrote:
Hello
I had the same problem. It's not only unclosed br tags, but also hr
and others. It works with an unclossed img tag. Don't know why, but
it's not specified anywhere.
Igor Drobiazko schrieb:
please close the tag: br/
On Wed, Apr 2, 2008 at 11:13 AM, caarney [EMAIL PROTECTED] wrote:
Stephane Decleire пишет:
Hi,
In my application, i have got several forms with the same bunch of
fields and other different fields.
What i would like is to create a component with the bunch of fields
and include it in the forms.
But the validateForm event is only managed by the page where my
The ajax response is XHTML. Since your template is rendered to create the
response, it fails if the template is not XHTML.
On Wed, Apr 2, 2008 at 2:03 PM, caarney [EMAIL PROTECTED] wrote:
That works, thanks.
Does it mean that the component must be in XHTML? Is it specified
somewhere?
Igor
Thanks. Works fine in 3.3.1 (without the imports)
Steve
On Apr 2, 2008, at 3:15, Davor Hrg [EMAIL PROTECTED] wrote:
the new xml is now added there (I just removed import statements),
Hello,
I have a simple action link that update a zone with a Block.
I have implemented the Layout pattern and my Layout template starts with
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
Hi Peter,
thanks, but this still doesn't seem to solve the issue. The Start page still
renders all template-content around div class=text-column
t:type=Border.../div.
regards,
Onno
2008/4/2, Peter Beshai [EMAIL PROTECTED]:
Hi there, I believe I have a solution that works using parameters
have you tried adding a second xmlns element deeper in the document,
maybe around where the Zone is defined. Somewhere the partial render
will have it available?
The Namespace support is still not the best; though getting better bit
by bit. You should file this as a Jira bug even if you
What if you try making the html element the border object? Like so:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xmlns:t=
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:type=Border
Hey Alec,
Looking at small excerpts from a large file leaves too much to the
imagination. Can you create a minimal but complete page and component
that reproduces the problem?
It feels like there is a bad return type or something on one of the
methods in the chain, so having a complete
Hi,
Why do you think there is an ajax request sent? Last I checked client
side validation is done with javascript that is added to the page when
it is rendered. I don't use the beaneditform, so I can't be sure but I
doubt it's doing validation via ajax.
You're catching every action from
All,
I've noticed that if validation fails on my page, any field annotated
with @Persist(flash) is not retained when the response is rendered.
Per the documentation for @Persist(flash), this doesn't appear to be
expected behavior.
Should I put this in JIRA?
Joel
Josh Canfield wrote:
Hey Alec,
Looking at small excerpts from a large file leaves too much to the
imagination. Can you create a minimal but complete page and component
that reproduces the problem?
Yes, I should have done it long time ago, I know. Below is the complete
example, removing all
I'm accessing message catalogs using expansion with a prefix. e.g.
${message:this-is-my-key}
1) Is there a list of prefixes anywhere, or have I got them all now?
(literal, prop, message)
2) Is there a way of accessing a message with a key that's partially
generated by another expansion?
e.g.
Hm... looking more into your example As I understand it, your
example and my ReportSize component are really similar and both do
indeed work demonstrating that *is* possible to pass the arguments. So
it is something with the Layout component...
Feeling dumb, need a better brain.
--alec
1) I'm not sure if there is a list anywhere, but I know there are more
prefixes than those ; 'var' is one!
2/3) You most likely want to do something like this:
XX.properties:
product-name = Apple Sauce - %s
Then when you want to use it, you will need to add a property to your
page/component:
Hm... looking more on your example... Seems that yoyr example and my
ReportSize component are similar and both do indeed work. So it's
something with the Layout component...
--alec
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
1) See the Binding Expressions section.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html
2) Use your property like this in the template
${prop:myMessage}, and in code define it as follows:
@Inject
private Messages _messages;
public String getMyMessage() {
return
As an addendum, I shouldn't say any field. The culprit is a List that
gets iterated over in the TML.
-Original Message-
From: Joel Wiegman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2008 2:20 PM
To: Tapestry users
Subject: T5.0.11: @Persist(flash) values are not retained if
Can mixin render a component, for example TextField? I
know that that it does not support templates and that
it can render the input tag directly.
But I would like the mixin to add a component to form,
so that it can be processed when the form is submitted.
Is something like that possible with
Hey Alec,
I was hoping for something a little more minimal, but still
complete/compilable. :)
I still can't reproduce the problem, but maybe @Persist on your report
property is the culprit? Try it with out that. That's a shot in the
dark though, so if that doesn't help I think I'll need
I actually got the same idea, just after pushing the send button. It's
quite a task, though, to carve this out. But it's certainly my job.
I'll make a try.
In the meanwhile: an observation. Looking at the breakpoint in
BugPage.getListsource () I can see the call stack. At the top is
You may want to read this
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html
Andy Blower wrote:
I'm accessing message catalogs using expansion with a prefix. e.g.
${message:this-is-my-key}
1) Is there a list of prefixes anywhere, or have I got them all now?
I think you have not set the update component, you need to put some code into
watchText() like this:
cycle.getResponseBuilder().updateComponent(DialogContentSupplimental);
I have also had more success implementing my dialogs like this
div jwcid= [EMAIL PROTECTED] hidden=ognl:not showDlg
Could you give a simple example of the problem?
2008/4/2, Joel Wiegman [EMAIL PROTECTED]:
As an addendum, I shouldn't say any field. The culprit is a List that
gets iterated over in the TML.
-Original Message-
From: Joel Wiegman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April
don't double post please
kk4Nabble wrote:
Hi..
I am using tapestry 4.1
My html code is..
input id=supplimentalId class=button jwcid=@Submit value=Add/
and java code is
@EventListener(elements = supplimentalId, events = onclick)
public void watchText(IRequestCycle cycle)
{
//
Kavya,
The id should be part of the jwcid expression:
input class=button jwcid=[EMAIL PROTECTED] value=Add/
the component will create the id attribute for you.
Kavya K wrote:
Hi..
My html code is..
input id=supplimentalId class=button jwcid=@Submit value=Add/
and java code is
I've been thinking about adding support for this to the
MessageFormatBindingPrefix found on this wiki page:
http://wiki.apache.org/tapestry/Tapestry5HowToAddMessageFormatBindingPrefix
If you take a look at it the code, MessageFormatBindingFactory in
particular, you'll see that making the
any ideas guys .. it seems dojo can't attach the ajax submit handler if
i have an onclick on my button - therefore is there a way to pre-pend a
handler after dojo has attached to the form aka registerForm?
p.
Paul Stanton wrote:
Hi guys,
I've got a @Form which submits async, and a @Submit.
According the book[Tapestry.5.Building.Web.Applications] --Create own
component ,but when i create the dateinput component and run it in a simple
page,i get the follow error:
An unexpected application exception has occurred.
Exception constructing service 'ValueEncoderSource': Error invoking
Hi there,
Is there a longer stacktrace available? Anyhow, the problem is mostly
likely somewhere in your code, a configuration file or perhaps a
Tapestry page or component .tml file.
If you've got some code to show that would probably help as well. Also,
be aware that Tapestry has changed a bit
dojo.event.connectBefore
and make sure you stop the event (if you want to), otherwise the other
connected function will get executed.
On undefined, Paul Stanton [EMAIL PROTECTED] wrote:
any ideas guys .. it seems dojo can't attach the ajax submit handler if
i have an onclick on my button -
Hi all,
I am using Tapestry4.1.5 and tacos4.1.1
In my page i have dojowidget of type FloatingPane.
When i tried to include a form in FloatingPane i
am getting following exception
javax.servlet.ServletException: Component Error/$InspectorButton.link
requires r endering support, but no
OK, this is driving me crazy.
I have a .tml named FindCoops.tml that contains the following fragment:
t:label for=userPstlCodeField/
input t:type=TextField t:id=userPstlCodeField
t:value=userPstlCode /
In the same directory as the corresponding .java page file, I have a
file named
Why need hibernate.jar?I use tapestry5.0.11 but I do not need to integrate
with hibernate and my web.xml as follow:
?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
Maybe you also have tapestry-hibernate-5.0.11.jar in your lib
directory? Try removing it.
Regards,
Tomasz Dziurko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes,I remove the tapestry-hibernate-5.0.11.jar and hibernate3.jar,but the
error still has.
-邮件原件-
发件人: Tomasz Dziurko [mailto:[EMAIL PROTECTED]
发送时间: 2008年4月3日 13:37
收件人: Tapestry users
主题: Re: TapestryHibernate
Maybe you also have tapestry-hibernate-5.0.11.jar in your lib
directory?
hi everyone,
i am using tapestry 4.1
i have an custom dialog box which should be shown on button click
so i placed that (dialog).getComponent(custom dialog).show() in side the
listener method of button submit.Here it is going to the that line and
coming out but the dialog is not displaying i
72 matches
Mail list logo