Hi,
Below is a source code of a component that renders:
I'd like to do now is, a component that can render multiple tags like:
< div>
< span style="s1">text 1
< span style="s2">text 2
< /div>
any idea how to achieve this?
Thanks,
boolean beginRender(MarkupWriter writer)
I took a look at Select component and found the way to record error from
within "afterSubmit" handler. I don't have to fetch Form component (though
it's the way shown in documentation), but I can also inject
ValidationTracker via Environmental and record error there.
BTW, thanx for the tips bu
Thanks Jonathan,
That fixed the problem. Here is my code
t:grid rowsPerPage="20" pagerPosition="top" source="searchResultsList"
row="auxUser" add="userselect" inPlace="true" lean="true" empty="."
reorder="userselect, id, username, email, firstNameUppercase, lastName"
t:parameter name="first
Em Fri, 31 Jul 2009 18:53:16 -0300, b...@umd escreveu:
input t:type="upload" t:id="uploaded" value="uploadedValue" />
@Property
private UploadedFile uploaded;
@Property
private String UploadedValue;
Try input t:type="upload" t:id="uploaded" value="
I got this trouble while developing my tapestry-based web application. I do
not understand why the component property "uploaded" is always null after
submitting my form. Can you help ?
.tml :
input t:type="upload" t:id="uploaded" value="uploadedValue" />
.java :
@Property
private
Problem solved by using the tapestry-upload library.
b...@umd wrote:
>
> I am trying to add a FileUpload component, on my tapestry-based web
> application. So I retrieve this library :
> http://commons.apache.org/fileupload/
> http://commons.apache.org/fileupload/
>
> I found this component
I am trying to add a FileUpload component, on my tapestry-based web
application. So I retrieve this library :
http://commons.apache.org/fileupload/ http://commons.apache.org/fileupload/
I found this component in the "commons-fileupload-1.2.1.jar" library. So I
had it my maven dependencies.
Here
Adriana,
I guess the bottom line is that you can never trust what comes from the
client. That's why Tapestry validates fields server-side even when client
side validation is enabled. That's also why you have to be very careful
about using raw Inserts if you will be outputting data supplied by us
If you have a ComponentClassTransformWorker that converts the
annotation into meta-data on the ComponentModel, then you can just get
the correct ComponentModel without loading the page itself.
On Thu, Jul 30, 2009 at 1:35 PM, Robert Zeigler wrote:
>
> On Jul 29, 2009, at 7/297:00 PM , Thiago H. de
Em Fri, 31 Jul 2009 12:04:32 -0300, Vjeran Marcinko
escreveu:
Actually you mentioned something that interested me before and is
generalization of the problem I described below.
:)
There are frequent cases when I want to create some "edit" component for
some domain class which on the web
Actually you mentioned something that interested me before and is
generalization of the problem I described below.
There are frequent cases when I want to create some "edit" component for
some domain class which on the web page requires more than one HTML form
field. I noticed this AbstractFie
Em Fri, 31 Jul 2009 02:13:14 -0300, Vjeran Marcinko
escreveu:
Hello,
Hi!
I have created multi-form-field component (eg, DateRangeEditor component
that has two DatePickers inside that are used to set "start" and "end"
dates for DateRange domain class).
Why don't you subclass AbstractF
Em Fri, 31 Jul 2009 04:56:08 -0300, jose luis sanchez
escreveu:
It should be like that .. but i believe the @Persist tag stores the
value of the field at runtime, so it should get the field value .. but
looking at the tapestry source code i can't get HOW to do it .. do you
think i'm righ
Yes, but problem is that my component doesn't contain Form because Form is
contained in one of "parent" components, so there is nothing to inject...
- Original Message -
From: "Bryan Lewis"
To: "Tapestry users"
Sent: Friday, July 31, 2009 3:51 PM
Subject: Re: How to fetch Form from w
This might help:
http://tapestry.apache.org/tapestry5/guide/validation.html
You can access your form and input components by injection, and then do
form.recordError(field, ...).
2009/7/31 Vjeran Marcinko
> Hello,
>
> I have created multi-form-field component (eg, DateRangeEditor component
>
Ah scrub that - I just had a look and it is probably because I have ended
with 2 copies of commons-logging in the path - 1 is the slf4j override (as
below) and the other is commons-logging from ehcache. I have just commited a
fix by excluding it. If you add
co
Paul Field wrote on 28/07/2009 09:35:05:
> rolfst wrote on 27/07/2009 14:13:51:
> > Yes there are three groups involved in the suite.
> > How ever no other test from other groups are available.
> > It seems that when I remove the reference to groups in my testng.xml
it
> > works fine.
> >
> >
Thanks for your replies Robin and Shing,
@Robin,
Your answer did the trick. I created a master checkbox and added slave
checkboxes too. I think a simple javascript would help me get check/uncheck
and get master slave checkbox relations. Although i expected Tapestry to do
that bit too for me(too
This is a good place to start:
http://tapestry.apache.org/tapestry5.1/tutorial1/
Kind regards,
Peter
- Original Message -
From: "Eldred Mullany"
To: "Tapestry users"
Sent: Friday, 31 July, 2009 15:04:58 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: RE: how to use tapestry5
I
I already made that.
We were trying to change the popup position , style and associated event.
You just have to create a news JS that will override some of the existing
Tapestry.js class and method.
Look the Tapestry.ErrorPopup class in particular.
You will need some Prototype functions:
- Obje
Its just been updated to the latest framework. It's a good place to
start.
http://jumpstart.doublenegative.com.au/home.html
-Original Message-
From: Prajesh Kacha [mailto:prajesh.ka...@coriolis.co.in]
Sent: Friday, July 31, 2009 1:51 PM
To: users@tapestry.apache.org
Subject: how to use t
Hello,
I have used tapestry4, but I don't know how to start with tapestry5.
Please can any one help me for this.
--
Regards,
Prajesh J. Kacha.
Coriolis Technologies Pvt Ltd.
Hello!
Is there an easy way to change style of client side validation?
I would like to have the same look as in server side (not a bubble), but I
don't want to turn it off (by setting ' clientValidation="false" ').
--
Michał
--
View this message in context:
http://www.nabble.com/-T5.1--chang
Aargh this is my mistake - all our poms have a dependency on jcl-over-slf4j.
If you add the following in your pom that should fix it.
Regarding the module file - I will fix that - we tend to include using
@Submodule so probably wouldn't have noticed...
org.slf4j
jcl-over-slf4j 1.5.8
Ben Gidley
Hi,
in your tml file, provide an override for the usernamecell. You will
need to provide 2 attributes, username and usernameUppercase. Or you can
modify the DataSourceModel and add a usernameUppercase. The trick is to
tell the grid to use the usernameUppercase as the column data, but then
in t
http://tapestry.formos.com/nightly/ioko-tapestry-commons/tapestry-mixins/
On Fri, Jul 31, 2009 at 11:13 AM, Shing Hing Man wrote:
>
> In case you have not tried the following.
>
> I have a ControlCB component and a mixin ControlledCheckbox which turns a
> standard Checkbox component to be a cont
Hello.
I'm Trying to use Tapestry Caching from ioko. First run I became a
deployment-error with:
uk.co.ioko.tapestry.caching.uk.co.ioko.tapestry.jquery.services.CacheModule
Can this be right? I think 'No'.
So I changed the Manifest-file and it deploys. Now I'm getting:
#
Error invoking constr
I am using an AjaxFormLoop component. There is no database involved, so
the code should be simple.
The add operation in onAddRowFromVehicles() works. I can see that
because the list of vehicles has alwas the correct size. But Properties
of Vehicle (like vehicle.model) are never updated, no m
In case you have not tried the following.
I have a ControlCB component and a mixin ControlledCheckbox which turns a
standard Checkbox component to be a controlled checkbox.
There is an online demo (with source code of the demo) at
http://lombok.demon.co.uk/tapestry5Demo/test/components/checkbox
Hi Sandeep,
You may try to use the tag to customize the display of
your grid header cell.
Here is a small quote for the official documentation:
"The header for a column may be overridden in the same way, using a
parameter name of propertyheader . The parameter block will provide the
content ins
Yes, please, see (and vote for)
https://issues.apache.org/jira/browse/TAP5-712
P.S. I have another thought what can be the reason. I will investigate this.
On Thu, Jul 30, 2009 at 2:49 PM, Henning Petersen <
henning.peter...@daenen4.de> wrote:
>
> I am experiencing seemingly random problems when
It should be like that .. but i believe the @Persist tag stores the
value of the field at runtime, so it should get the field value .. but
looking at the tapestry source code i can't get HOW to do it .. do you
think i'm right ?
Em Thu, 30 Jul 2009 15:34:33 -0300, jose luis sanchez
escreveu:
As easy as
@Inject
private Locale currentLocale;
localeLabel = currentLocale.getDisplayName(currentLocale);
if (currentLocale.equals(Locale.FRENCH)) {
}
If i understood well what u need is the PersistentLocale. That's the
one that takes the local from the url
U can see more det
Hi Guys,
I wanted to have a master CheckBox while using the Grid Component. That
CheckBox would be present at the Header Row of Grid Components, and allow to
check the CheckBoxes below to be checked or unchecked.
Is there any way else to do it except for Copying the entire Grid Component
Source
What you could probably use in a service is ComponentSource:
ie: ComponentSource.getPage(getByClass()).getComponentResources().getMessages();
Peter
- Original Message -
From: "Komiwes Robin"
To: "Tapestry users"
Sent: Friday, 31 July, 2009 10:13:10 GMT +02:00 Athens, Beirut, Bucharest,
If i understood well what u need is the PersistentLocale. That's the
one that takes the local from the url
U can see more details here:
http://tapestry.apache.org/tapestry5/guide/localization.html
On Fri, Jul 31, 2009 at 5:36 AM, Angelo Chen wrote:
>
> Hi,
>
> I'd like to determine locale
This is because Messages is not a service.
It can be injected into pages thanks to InjectWorker / InjectionProvider /
CommonResourcesInjectionProvider which will call the ComponentResources of the
current component/page.
That's why, in fact, you can only inject Messages into a page or a component
Hi Angelo,
I don't think you can use Messages as a service dependency as Messages is based
around a ResourceBundle, for which the lookup is usually provided by your
page/component Class, kind of similar to ComponentResources in a way. Unless
someone is aware of a workaround, you may be better o
38 matches
Mail list logo