Please see the LocaleList component in the Workbench (the Table tab in
the example application bundled with the Tapestry distributions). It
does exactly, and if you look at the comments you will see a second way
to do that as well.
Ashish Raniwala wrote:
Hi,
This worked as long as I am on sa
An easy way is persistent properties, but that brings along the headache of
clearing the set at the appropriate time.
-Original Message-
From: Ashish Raniwala [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 5:37 PM
To: 'Tapestry users'
Subject: RE: Table with checkbox
Hi,
Hi,
This worked as long as I am on same page of the table. If I use pagenation
in table component, selected rows gets cleared.
Any idea on how to preserve selected set during pagenation.
Thanks,
Ashish
-Original Message-
From: Hensley, Richard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, S
Thanks, this will work for me.
-Original Message-
From: Hensley, Richard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 4:58 PM
To: Tapestry users
Subject: RE: Table with checkbox
This is from a sample application I teach from. The basic premise is to
allow the user to do
By the way, I can't take credit for this technique. I stole if from Howard
during our early days of learning Tapestry.
-Original Message-
From: Hensley, Richard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 28, 2005 4:58 PM
To: Tapestry users
Subject: RE: Table with checkbox
This
This is from a sample application I teach from. The basic premise is to
allow the user to do something with a set of selected Locales. Why Locales,
because when teaching the fewer dependencies the better.
This works by maintaining a set of locales. It uses the getter during the
render cycle to set
Checkout what Howard wrote below. That's basically it.
Though we'd like the framework to facilitate the redirect work (right
now it's like going against the framework).
--
Ing. Leonardo Quijano Vincenzi
Director Técnico
DTQ Software
Joseph Hannon escribió:
It appears that returning an ILink
Hi,
This must be a common question in forum, sorry for asking again.
How to create multi select checkboxes in table ? I need to include a
checkbox in each table row and save the selected records.
Should I create a HashMap of ids and bind the checkbox with map Or what is
the best way to do this ?
Th
Nifty thing about annotations is that when you have just a single
attribute named "value", you can omit the "value=" part, thus:
@Message("key")
public abstract String messageForKey();
Note that it is @Message not @InjectMessage
Also note that @Message tries to be smart about mapping the method
well, that was something i was wondering about. namely, is it possible
to launch the app in jetty and using something like djunit to mean
coverage on your pages as well as in the services? When I run my test
suite it runs both unit tests and integration tests and it would be good
to know that the l
Dan Adams wrote:
> Something Howard posting interested me in this. How do people test for
> test code coverage with tapestry? What's your environment? You using an
> eclipse plugin or something else? Just want to see what people think is
> good. :)
In general, I use the djunit plugin for eclipse.
Something Howard posting interested me in this. How do people test for
test code coverage with tapestry? What's your environment? You using an
eclipse plugin or something else? Just want to see what people think is
good. :)
--
Dan Adams
Software Engineer
Interactive Factory
Dan,
Using case 2 is going to give you better performance because web
servers are *really good* at serving static resources and the overhead of
serving a static is a *lot* lower than the overhead of running an
entire servlet just to serve back 12k of binary data.
The dow
@InjectMessage(value="key")
public abstract String getKeyValue();
if you do this:
@InjectMessage(value="key")
public abstract String getKeyValue(String param1, int param2);
it will use MessageFormat and the params as the replacement values.
- Original Message -
From: "Anjali Abraham"
--- Renat Zubairov <[EMAIL PROTECTED]> wrote:
> Apart from all that was said here, quickstart is a
> basis for my
> application, so, generally the whole application is
> made from the
> "Quick start". They are really usefull, however
> validation could be
> added to the Forms tutorial.
>
+1
Es
Apart from all that was said here, quickstart is a basis for my
application, so, generally the whole application is made from the
"Quick start". They are really usefull, however validation could be
added to the Forms tutorial.
Thank you.
On 28/09/05, Corintho R. de Assunção Filho <[EMAIL PROTECTED
Hi Dan,
just to confuse things we do 2.
I use gallery for users to upload images manage albums etc:
http://gallery.menalto.com/. Very slick, by streets the easiest OS web package
to install and configure.
Then the db refers to an image uri and that is inserted via a component
(tapestry 3.x code
I found them very helpful, specially for migration. It helps to learn the
new ways to do the old tricks.
I think the tutorial series could go on as:
- Using the new validation with various field types (having problems with
that, didn't have the time to dig into it...)
- Creating and injecting you
It appears that returning an ILink is working for you. I would like to do
whatever you have done so I can return an ILink. Please see list subject
'RedirectException issues' for more information about an exception I am
getting attempting to return an ILink. How did you get your stuff working?
What
Forrest has its rough edges but is generally useful. If I had
time/masochism to dig into its skin structure, I'd love to build a
custom skin for Tapestry.
On 9/28/05, The Chris Method <[EMAIL PROTECTED]> wrote:
> On 9/28/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
> >
> > It is a bit weird, but i
We do case 1 for most things. The images will generally be cached by users
browsers. As long as the url is the same, it'll usually stay cached. You
probably shouldn't put the object in the user's session. Just stick the id
of the object in the session and pull the object out when necessary.
On 9/2
Ok, this is related to my earlier post. If I have a business object that
has an uploaded image associated with it (as a field in the object) then
there are two approaches i'm looking at and i could use some insight
into which one is better in this situation:
1. The uploaded image gets serialized a
I see there was just a quicklinks section added to the code by Howard.
Thanks, Howard.
On 9/28/05, The Chris Method <[EMAIL PROTECTED]> wrote:
>
>
>
> On 9/28/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
> >
> > It is a bit weird, but if you click on the "Framework" tab, then the
> > "Reports" link
I'm making a component that should act as a image selector.
You should be able to, in the component, browse some images and add
them to a list, this
list is connected to a (out) parameter.
problem is that the list should not only be a prameter but also
persistent, in order to persist while you brow
On 9/28/05, Kevin Menard <[EMAIL PROTECTED]> wrote:
>
> It is a bit weird, but if you click on the "Framework" tab, then the
> "Reports" link on the left you'll see the link for the "JavaDoc".
Yeah, that seems really weird. Another developer had trouble finding it and
asked me, and I couldn't fin
Has writing an engine service changed since T3? And if so where can I
find some docs on it?
--
Dan Adams
Software Engineer
Interactive Factory
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi,
What would you think about adding one line of quicklinks on the top of
the tapestry homepage, just after the content links list, and just
before the "What is Tapestry" title.
Something like
components api hivedoc tapestry-3.0-docu
etc.
Cheers,
Ron
ציטוט Howard Lewis Ship:
http://jakart
Hi all,
Is this possible...
Say I have a page with an Area component. The Area component looks up
a file (XML), and in that XML file is defines a list of components
eg: PromoBox, OffersList.
The XML file also defines the parameters for the above components, so
the PromoBox's promoId para
http://jakarta.apache.org/tapestry/tapestry/apidocs/index.html
Under the framework tab (the framework is a module of the overall project)
It has a reports menu item, with Javadoc underneath that
On 9/28/05, The Chris Method <[EMAIL PROTECTED]> wrote:
> I'm having a hell of a time finding the AP
On 9/28/05 2:26 PM, "The Chris Method" <[EMAIL PROTECTED]> wrote:
> I'm having a hell of a time finding the API on the tapestry site. I find the
> navigation on that site really unintuitive.
It is a bit weird, but if you click on the "Framework" tab, then the
"Reports" link on the left you'll see
I'm having a hell of a time finding the API on the tapestry site. I find the
navigation on that site really unintuitive.
Howard- thanks.
In the meantime, have any suggestions to get any kind of redirect working so
I don't end up with page navigation as POSTs instead of GETs? I had this
working in Tap 3 and just moved to 4. I am attempting redirects from
validate listeners and other listeners like for image submits.
That did the trick. I was looking in the wrong page for the error. I have a
dummy home page that initializes the object graph with some test data and it
was calling subList.
Thanks for your help,
Rob
-Original Message-
From: Kent Tong [mailto:[EMAIL PROTECTED]
Sent: Wednesday, Septem
On 9/28/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Many have stated that using exceptions for this purpose (redirecting)
> is a mistake.
>
> They are right.
To be clear; I meant the Tapestry API is flawed, not the way people
are using it.
>
> In the meantime, add a bug and I'll check the
Many have stated that using exceptions for this purpose (redirecting)
is a mistake.
They are right.
In the meantime, add a bug and I'll check the affected code to
properly throw the RedirectException (currenlty, there are
catch/rethrows for PageRedirectException).
On 9/14/05, Eli Doran <[EMAIL P
Tapestry 4.0 beta 6, 7, and 8. I implemented what you discussed in returning
an ILink from a listener, but but it resulted in a
Hivemind.ApplicationRuntimeException. Failure invoking listener method
...ILink ...fooListener(...IRequestCycle) Parameter parameter is of type
$Foo... which is not compat
You can just write your own image service and then cache it there if
it's a high volume operation. Here, for example, is a snippet of code out of
a chart component I wrote. It's plucking png's out of cache and feeding them
back out in response to requests.
public void service(IEng
That may be reasonable in my situation. But how does that work with
using them as assets? Plus with an image that gets used frequently that
means that it can't be cached correct?
On Wed, 2005-09-28 at 10:07 -0700, Patrick Casey wrote:
> I put them as binary blobs in an attachment data table
I put them as binary blobs in an attachment data table in the DB.
--- Pat
> -Original Message-
> From: Dan Adams [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 28, 2005 10:06 AM
> To: Tapestry users
> Subject: [kind of OT] handling uploaded images
>
> Ok, I have
Ok, I have a business object where one of the properties is the filename
of an image which can be uploaded by the user. I'm wondering how people
normally deal with uploads as far as where they are stored and how they
are accessed. Thanks.
--
Dan Adams
Software Engineer
Interactive Factory
-
Mark Lehmacher gmx.de> writes:
> I just found out that BaseComponent#renderComponent(IMarkupWriter,
> IRequestCycle) only renders during rewind if the component is contained by a
> form (using Tapestry 4 - beta 8).
>
> Is that behaviour wanted?
Yes.
> It used to be different in T3.
It should
Robert Cole db.com> writes:
> private byte[] renderAndCaptureResponse(IRequestCycle cycle) {
>
> ByteArrayOutputStream output = new ByteArrayOutputStream(2046);
> IPage page = cycle.getPage();
> IMarkupWriter writer = page.getResponseWriter(output);
> try {
>
Rob Dennett tmit1.org> writes:
> Well I had already made all the objects serializable and it says it is
> choking
> on java.util.RandomAccessSubList. I made sure to upgrade to the latest beta
> just to make sure, but I am still getting the exception. I can't find
> anything that discusses t
Howard Lewis Ship wrote:
> I'm curious how many people have seen the Quick Start tutorials and
> what people's thoughts are about them?
They rock! Without them I wouldn't have chosen Tapestry for my new
project. Keep going! (And please finish the forms chapter :))
Cheers,
Igor
--
Rob Dennett tmit1.org> writes:
>
> But what if you have a page with a For component that doesn't have a Form
> component?
Then there won't be any rewind phase and therefore the For
component won't try to save the objects in "source" (or
their keys).
--
Author of a book for learning Tapestry
Ryan gmail.com> writes:
> True, what would be nice though if there were some way of telling the
> getter not to create the ASO if it doesn't exist. That way a client
> does not have to use the StateObjectPersistenceManager to determine if
> the ASO exists (similar to how tapestry3 getVisit() from
Patrick Casey adelphia.net> writes:
> Could you use a custom number pattern formatter?
It wouldn't help. The "." in a format pattern means "decimal separator", and the
actual character used will vary depending on the locale. For example, the format
"#0.00" applied to 10.3 with a pt_BR loc
They are excellent. I wish there were more, especially covering more advanced
topics.
Thanks,
Rob
-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 27, 2005 4:04 PM
To: Tapestry users
Subject: QuickStart Tutorials -- Anyone reading them?
I'm
Check out the NewWindowLink component on Tassel.
It basically allows you to pass a page name for a basic page .. or a
listener for a directlink with parameters etc.
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SNewWindowLink
It works really well.
Ashish
Hi anjali I am not convinced with your explanation. I don't know why eclipse
is showing as deprecated method and how you are using it . Even on tapestry
4 website they recommend to use the getMessage() method. Have a look at the
following link.
http://jakarta.apache.org/tapestry/UsersGuide/localiz
Ok thank you. We are having our own solutions for problems of tapestry3.0.3
so I don't work much with tapestry 4 and annotations. Ok what you said might
be true.
Muralidhar Y
Software Engineer,
Adastrum technologies-Nikai groups,
EmiratesGroup-I.T Division,
Dubai, UAE.
Mobile : 00971-50-225614
Thanks Muralidhar for all the replies with which I could finish my
localization work. Thanks once again.
Well let me try to explain:
There is a method called getMessage(key), but that need to be used along
with getMessages.getMessage(Key). And getMessages returns ComponentMessage
object.
So like in
OK in other words does Tapestry invalidate the session for me anywhere else?
Dan
Daniel M Garland wrote:
Hi all,
I decided to override the StaleSession page in Tapestry. Since the
requirements of my app don't really require the session to timeout for
any security reasons (e.g. to force a log
Hello anjali,
we are in development and suddenly we felt that we may use
depricated method as you said in tapestry 4 the getMessage() is being
depricated. But I don't think your statement is true. I had checked the
tapestry 4 docs and the following is from tapestry 4 doc.
__
On 9/28/05, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> I'm curious how many people have seen the Quick Start tutorials and
> what people's thoughts are about them?
Well they're very well formed and very useful to say at least, I've
found them missing to me since my first approach to T3.
I fo
Alternatively, you could try this component:
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SNewWindowLink
See ya
Ashish Raniwala wrote:
Hi,
I need to pop up a new window which opens up another tapestry page.
contrib:PopupLink component offers to point to a href
I take it by the deafening silence that this is either exceptionally trivial or
exceptionally hard. Has anyone got any ideas?
Thanks,
Rob Cole
CSA Web
Hi everybody!
My current solution required access access to the full lifecycle
of the page. The only way I know is through IMonitor.
Afaik this can be done by setting application extension
'org.apache.tapestry.monitor-factory' or by overriding
hivemind service point 'tapestry.monitor.DefaultM
Well, yes, I did.
It's a good starting point and I'm hoping for more to come.
This is especial useful if I want someone "proselytise"
(I hope this is the right word) to use Tapestry. The best
way to give them a feeling of success is to have some QickStart
Tutorials.
So yes, pls go on with them.
59 matches
Mail list logo