Hi T5:ers!
A suggestion ...
Wouldn't it be nice if URLEventContext implemented its own toString method
!?
I am using event contexts quite a lot and would like them to be displayed
properly by the @Log annotation.
I.e. now i get ...
[ENTER] onActivate(org.apache.tapestry5.internal.URLEventConte
In 1.3.2 you will need to implement the interface
public interface MultipleValueEncoder
{
String toClient(V value);
List toValue(String[] clientValue);
}
for the encoder
regards
Taha
On Sat, Apr 16, 2011 at 7:29 AM, TG wrote:
> I changed as suggested but can't move beyond compilatio
I changed as suggested but can't move beyond compilation errors -
GenericMultipleSelectModel is not in 1.3.2 anymore and what exactly are
selectables, YourObject.class, labelPropertyName, valuePropertyName?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-5-2-5-Se
Add parameter t:encoder='encoder' t:model='encoder'
and in you class file this method
@Inject
private PropertyAccess propertyAccess;
public GenericMultipleSelectModel getEncoder(){
return new GenericMultipleSelectModel(selectables, YourObject.class,
labelPropertyName, valuePropertyName, prope
I change . to / in t:type i.e.
* select more than once for multiple roles
and I got another error -
Caused by: org.apache.tapestry5.ioc.util.UnknownValueException: Could not
find a coerci
Hi
you can specify a third party component either like
or
suitableTagName will be select for select component, input for input
components etc
As MultipleSelect is a select component, you might right it like
or
regards
Taha
On Fri, Apr 15, 2011 at 11:49 PM, TG wrote:
> You are tal
You are talking to a person who is new to tapestry :) So I need exact
example. So my question is what should the namespace be like following?
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; ???
I code like this and it does not work -
On Fri, Apr 15, 2011 at 8:36 AM, Richard Hill wrote:
> Ok got it sorted. The solution is very simple, in your template you just
> do:
>
>
> and MailMessagePreparer automatically constructs a multi-part message.
>
> V useful!
>
>
>
>
> On Fri, 2011-04-15 at 15:48 +0100, Richard Hill wrote:
>> Hi,
I believe you would do
It's just like any custom component you might make that has a package
beyond *.components, you write out the extra packages in front of the
component class name to qualify it.
I checked my code and I guess I also do it a different way:
model="pageListModel" encoder="p
Ok that helps. Installed 1.3.2 but how do I use it in the .tml file? What is
the namespace I need to import?
I asked as I still have the same not found error i.e.
Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException: Unable
to resolve 'MultipleSelect' to a component class name. [at
You want ChenilleKit 1.3.2, 1.1.0 is for older version of Tapestry.
On 04/15/2011 12:26 PM, TG wrote:
I do not use maven2. But I downloaded chenillekit-tapestry-1.1.0.jar
manually, installed, run again and I got a new error during bootup -
Caused by: java.lang.ClassNotFoundException:
org.apache
I do not use maven2. But I downloaded chenillekit-tapestry-1.1.0.jar
manually, installed, run again and I got a new error during bootup -
Caused by: java.lang.ClassNotFoundException:
org.apache.tapestry5.internal.services.RequestPathOptimizer
Seems like RequestPathOptimizer is not part of Tapestr
Ok got it sorted. The solution is very simple, in your template you just
do:
Hi,
>
> We're using MailMessagePreparer to add a RenderedStream to
> javax.mail.Message.
>
> It works great, our page is being appended to the Message no problem.
> However there are images in the page, and I need to g
I understand how to create a form for a javabean or a form with a fixed
number of input elements but how do I handle variable numbers of beans/input
element.
Just surround the part of your form with a Loop component.
Something like:
If you want to add rows via AJAX use AJAXFor
Any way, Tapestry-provided components are not meant to be subclassed. It
is recommended to create mixins when possible.
Or use composition (not inheritance) - that's usually a good advice in OOP.
--
Chris
-
To unsubscribe, e
Just tried that - AJAX works for me as well.
Here's what I did:
1. Create app with archetype
2. Add form with t:mixins="autocomplete" />
3. In AppModule create a handler class
class AppModule
{
...
private static class ChangeContextPathnHttpServletRequestWrapper
extends HttpServletRequest
http://www.chenillekit.org/mvnrepo.html
It's a third party component so you need to download it.
On Apr 15, 2011 7:41 AM, "TG" wrote:
> Hey Josh,
>
> Thanks for your reply. But when I use MultipleSelect, I got this error -
>
> An unexpected application exception has occurred.
>
> org.apache.tapes
Hi,
We're using MailMessagePreparer to add a RenderedStream to
javax.mail.Message.
It works great, our page is being appended to the Message no problem.
However there are images in the page, and I need to get these embedded
in the message. At the moment this is what we're doing (semi-pseudo code
Hey Josh,
Thanks for your reply. But when I use MultipleSelect, I got this error -
An unexpected application exception has occurred.
org.apache.tapestry5.ioc.internal.OperationException
Unable to resolve 'MultipleSelect' to a component class name.
availableValues
Component types:
ActionLink
Ad
Hi,
I have a table to entities that I get from my database, the number of
entities can increase and decrease as these entities can be added or
deleted. I want to be able to edit the entities in the table. The first
column of every row has a check box to indicate whether that row should be
updated w
On Fri, 15 Apr 2011 10:38:10 -0300, Keio Kraaner
wrote:
The weird behaviour is the following:
eash subclass declaration in a tml-file results in 2 rendered fields in
output - at first Tapestry renders subclass instance, which is
correct, but after this it also renders the parent instance too,
The weird behaviour is the following:
eash subclass declaration in a tml-file results in 2 rendered fields in
output - at first Tapestry renders subclass instance, which is
correct, but after this it also renders the parent instance too, which is
not needed.
- Original Message -
From:
The path seems to be working now
but the problem with the ajax resists
in my generated site i have a autocompleter and in the sourcecode of the
site i found this
Tapestry.onDOMLoaded(function() {
Tapestry.init({
"autocompleter" : [
[
"nameInput",
"nameInput:menu",
On Fri, 15 Apr 2011 07:18:14 -0300, Keio Kraaner
wrote:
And what about the weird behaviour which results when rendering a child
of a Tapestry component?
Which weird behaviour?
Any way, Tapestry-provided components are not meant to be subclassed. It
is recommended to create mixins when p
Thanks guys. I am trying to avoid javascript and to do this with tapestry
components, so the ProgressiveDisplay method that François suggested seems
perfect. A bit of fiddling and it's working perfectly. For the record, and for
future searchers, here is the code that I used:
>From the tml:
Dom
Use ProgressiveDisplay component?
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/ProgressiveDisplay.html
see example
http://lombok.demon.co.uk/tapestry5Demo/test/core/progressivedisplaydemosource
or from tapestry test case
http://tapestry-test.a
A javascripty approach would be to popup the progress indicator onclick and
hide it when the ZONE_UPDATED event is fired on the zone.
Or you can look up that periodic zone refresh example, and have the zone
load over and over, with it saying "Still Loading" until the actual results
arrive. Not su
And what about the weird behaviour which results when rendering a child of a
Tapestry component?
Of course. Tapestry components are valid Java classes; you can extend any
existing component.
On Fri, Apr 15, 2011 at 11:43 AM, Keio Kraaner
wrote:
Thanks for the suggestion, Igor.
I made up
Hi, I'm just getting started with Tapestry5, and very impressed so far.
I have a zone on my page containing a grid component that takes about 20
seconds to calculate the contents of. I don't want the loading of the page
to hang while this occurs, so I initially have the contents of the zone
hidde
Hi Christian,
tank you for this great Tip! I overridden the getContextPath() method and it
gets called
but after i return "/" i get a timeout at the browser.
Your tip sounds good and i have to investigate further.
Thanks a lot!
Jochen
--
View this message in context:
http://tapestry.104571
Of course. Tapestry components are valid Java classes; you can extend any
existing component.
On Fri, Apr 15, 2011 at 11:43 AM, Keio Kraaner wrote:
> Thanks for the suggestion, Igor.
> I made up this use case just to keep it very simple.
> My real question is still the following: is it possible
Thanks for the suggestion, Igor.
I made up this use case just to keep it very simple.
My real question is still the following: is it possible to extend Select (or
any other tapestry-core component that extends AbstractField)?
- Original Message -
From: "Igor Drobiazko"
There is n
There is no need to extend the Select component for your use case. Just
create an instance of EnumSelectModel [1] and pass it to the Select
component.
[1]
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/util/EnumSelectModel.html
2011/4/15 Keio Kraaner
> Hi
>
> I'm trying to exte
Thanks very much for the explanation Howard!!
Cheers,
Peter
- Original Message -
From: "Howard Lewis Ship"
To: "Tapestry users"
Sent: Thursday, 14 April, 2011 19:21:03 GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: IllegalAccessError in IoC
On Thu, Apr 14, 2011 at 2:55 A
Hi
I'm trying to extend Tapestry's Select component.
My idea is to create EnumSelect class (class EnumSelect extends Select) that
takes an Enum class as a parameter, and based on this creates SelectModel
and ValueEncoder.
Everything works fine, but each EnumSelect in a tml-file results in 2
re
35 matches
Mail list logo