For my applications I actually create special Hivemind service xxxFlow
which is wired with IRequestCycle.
This service has methods for getting pages from request cycle and
setting them with necessary parameters.
For example interface SampleFlow can looks like:
interface SampleFlow
{
IPage getLis
This kind of things is best implemented using hivemind / AOP
Interceptors. You can intercept Any hivemind service - its just the
question which one is the best -
RequestCycle is created for each request - also assets aso, so this
might not be the right thing to do -
You could for example inter
Michael,
You might want to look at implementing a WebRequestServicerFilter. This is the
Tapestry equivalent of the ServletFilter but since it is wired into the
Tapestry framework you should be able to inject the services you need into it.
Here is how you would define it in your hivemodule.xml:
Take a look at
http://jakarta.apache.org/tapestry/tapestry/ComponentReference/DatePicker.html
there is a translator parameter that allows you to format the date
anyway you want
Adam Zimowski wrote:
Not sure if I understand exactly, so please correct me if my
suggestion is not what you're lo
http://stitches.authsum.org (download, demo, etc)
Stitches is a tapestry library that provides a suite of components meant
for embedding into your tapestry application.
License: Apache (same as tapestry)
Version: T4 and JDK 1.5
Component Listing:
Grid Layout(a special for loop that wil
No, I definitely for one call for each page, which is why I added a
member to my IBasicTableModel which stores the count and returns the
same value repeatedly. However, when I moved from FormTable to Table,
I started seeing a second call to getCurrentPageRows(), once during
rewind and another duri
Do you have a log statement for each time getRowCount() is called in your
IBasicTableModel implementation?
I noticed Table (pretty sure it's TablePages that does it) calls that method
2+p times, where p is the # of pages in the result set. So if you have << <
1 2 3 > >> you'll see 5 calls to
Actually, there seems to be a bug in @Table in tapestry 4, compared to
using a FormTable (which results in at least one deprecation warning
at runtime). When I put a regular Table inside a form in Tap4, going
through the pages does work correctly, preserving all form values.
However, selecting a
::smacks forehead:: I used "components" in my subject-line ... to a
mailing-list for a component-based framework. Hehe, thanks for being so
gracious while connecting the ironically-enormous dots for me =)
Jim
-Original Message-
From: Robert Zeigler [mailto:[EMAIL PROTECTED]
Sent: Wedn
You certainly can do this sort of approach; I have a couple of instances
where it was useful to create objects that implemented IActionListeners
and use them instead of separate methods.
But :) It sounds to me like what you really want to do is to create
a component, the EditWidgetLink comp
Howdy!
Problem: I have 9 pages which each have the link: "Edit Widget". This
link invokes a listener that each page contains: "editWidget(Integer
widgetId)". This listener, as you'd suspect, queries out the widget by
its primary key and goes to the EditWidgetPage (or, if there's an error,
se
I like the good old book though... Nothing like being able to read
parts whenever you get time, especially when you got kids running
around slamming your laptop..
BTW, his book is awesome. Higly recommend to anyone. And Kent, if you
read this, you should think about contracting with Manning to do
I wish they would give you both copies when you buy the actual hard-copy
(don't know if this one does or not). I like hard copies at home because I
like to read them on the couch and stuff. But, as Jason said, it is VERY
nice to have full text search for real reference situations. Indexes don't
PDF is, of course, searchable...which is really handy at work.
On 3/1/06, Skriloff, Nicholas <[EMAIL PROTECTED]> wrote:
>
> It is easier over pdf.
>
> -Original Message-
> From: Patrick Casey [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 02, 2006 3:19 PM
> To: 'Tapestry users'
> Sub
I think that's how Hibernate does it. Do you have the "showsql" stuff
turned on? If you do, it will print out the actual SQL with the bind
variables in there. There should be statements following that something
like "binding parameter 1 as yadda yadda"...
[EMAIL PROTECTED]:19:51 DEBUG (org.hibe
Not sure if I understand exactly, so please correct me if my
suggestion is not what you're looking for.
DatePicker returns java.util.Date, and you could use DateFormat to get
any format you want, including String conversion. Is this what you're
looking for?
Regards,
Adam
On 3/1/06, Jorge Quiroga
Hi everybody,
as I'm still having problems with log4j and the hibernate logfile
output I would like to know how you've setup your development
environment (using Tapestry, perhaps Hibernate, Hivemind and
eclipse).
Do you use the WTP eclipse plugin or are you creating war
files which you deploy eve
On 3/1/06, Robert Zeigler <[EMAIL PROTECTED]> wrote:
> (Note: I'm assuming that you're using contrib:Table). Why not stick your
> table inside the form?
Yeah, I just figured it out. I started thinking about how I would
solve the problem if I were implementing table and decided that
autodetecting t
I've been working on one based on this html
http://www.cssplay.co.uk/menus/dropdown.html
The nice thing about this menu is there is no Javascript and it works
in IE, Safari, Firefox and most likely others. The drawback is the
html is different for IE and everyone else so you have to dup the
HTML.
(Note: I'm assuming that you're using contrib:Table). Why not stick your
table inside the form? Do that, and if you're using tap3, change
contrib:Table to contrib:FormTable. If you're using tap4, no change
(other than putting the table in the form) is required; clicking the
links will submit t
It occurs to me that I can stick the values of the various form fields
in the user's session and then restore them before every request, but
that gets ugly as the number of different forms and number of fields
increases. So I'm really looking for an automatic way to cause the
page and sort links w
It is easier over pdf.
-Original Message-
From: Patrick Casey [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 02, 2006 3:19 PM
To: 'Tapestry users'
Subject: RE: anyone buy Kent's Tapestry Book that has PDF version?
Is anything ever easier to read over PDF :)?
--- Pat
Hello:
Excuse me if the question is quite obvious, but I wanna be sure if the
String that return the DatePicker component is always with this format:
EEE MMM dd HH:mm:ss z with local in en_US.
Thanks in advance.
JQ
-
Hi,
in Tapestry 3.x we had subclassed the BaseEngine and had our own
protected IRequestCycle createRequestCycle(RequestContext context,
IEngineService service, IMonitor monitor)
method, because we wanted log4j MDC (map diagnostic context) information
per thread.
Basically we first called the or
I've got a form which causes a table to be rendered based on a sql
query that is built from the form fields. When I page through the
resulting table, I'd like the fields in the form to retain their
submitted value. Instead, after the first page, the go back to the
default values, since clicking o
Yes. Annotations are there to make it easier on developer by
minimizing inolvement with XML. But anything you do with annotations,
can be done with XML configuration wheather it's .page or .jwc file.
For example:
@InjectState("memberId")
public abstract Long getMemberId();
is the same as:
I
Dumb question but I keep seeing people refer to these Annotations in Tap4;
is there an alternative for the users who don't have the option of using
Java 1.5?
Sorry, figured it out myself:
getEngine().getOutputEncoding().
Alex.
Alex Kartashev wrote:
Hi guys,
One more question. I understand that the default-encoding is UTF-8,
which can be overwritten. What is the method to get the actual
encoding that a served page is encoded in?
Thanks a lot!
Hi,
I noticed that whether I do:
@Persist("session")
public abstract void setMemberId(Long id);
or
@InjectState("memberId")
public abstract void setMemberId(Long id);
new session is created. However, my:
@InjectStateFlag("memberId")
public abstract boolean isLoggedIn();
returns true only if
What happened to the JSP Tag Library in Tapestry 4.0?
I still have some legacy JSPs that I need to support
in my application and I need the external-link tag.
Are friendly urls meant to replace this?
If yes, How do I go about implementing this?
The documentation didn't mention anything about
suppor
Hi guys,
One more question. I understand that the default-encoding is UTF-8,
which can be overwritten. What is the method to get the actual encoding
that a served page is encoded in?
Thanks a lot!
Alex
-
To unsubscribe, e-m
Got it. Thank you very much!
Alex
Ron Piterman wrote:
AFAIK, tapestry properties will be reset, unless you specify them
persist.
If you want to reset also instance variables you use during the
request you should use the pageDetachListener interface (just
implement it, no need to addListener
I'd say it's a bug. It should do a lookup each time. But, it's doesn't
specifically say that it's supposed to work that way. We should file it in
the bug tracker (they use JIRA right).
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006
What I ended up doing is a hack...
The problem is that when the sub-class is being created (via Javassist), the
InjectObjectWorker injects the object through the constructor and adds a
simple getter method to access this. This is probably a bug.. for example if
you inject the request object (or
Several.
There are a couple of different ones in Tassel, for instance.
There is the Krysalis Menu:
http://equalitylearning.org/Tassel/app?service=direct/1/Search/viewComponent&sp=SgstampKrysalis+Menu
and "JSCookMenu":
http://equalitylearning.org/Tassel/app?service=direct/1/Search/viewComponent&sp=
what kind of menus?
http://metamorphosis.krysalis.org/krysalis-menu/ this isn't a bad pulldown
menu system but I think it's for T3 so you might have to tweak it for T4.
- Original Message -
From: "Rob Dennett" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Wednesday, March 01, 2006
You can achieve this using a MethodAnnotationEnhancementWorker the same way
Tapestry does to inject everything else. It shouldn't be difficult. Here's
a good example of how to do it. If you're not an expert with Javassist, I
might be able to "assist" you (couldn't resist, sorry).
http://jakart
Before I reinvent the wheel, is there a menu component out there (preferably
free)?
Thanks for your help.
Rob
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 2/28/2006
He's currently looking for approval at my company to see if he can
contribute the code to the community. Keep ya posted.
On 2/21/06, Cliff Zhao <[EMAIL PROTECTED]> wrote:
> Also like to know some detail about the InjectSpringBean annotation. Is it
> used in pages? Where is the place that your ann
you don't. - or rather, you can't.
there are some alternatives:
1. if the library of the page which contains the validated components is
predictable, you can access its message catalog by calling
getPage().getMessages() on the validated component.
You can add the validator's messages then to
Tapestry page structure is static. All of the components inside the @If
"exist", even if they aren't rendered. Since pageBeginRender is fired
before the rendering even starts, it can't possibly know which of those
components are going to render.
If you instead override AbstractComponent.prepareF
I use this component : http://137.132.69.134/tapestry4Demo/app
That page has the file, demos and docs.
It works very well for me, not sure if there are any JDK limitations.
Aleksej wrote:
Does anyone has an experience of using FCKEditor with TextArea component?
I did'nt ran into trouble jet
AFAIK, tapestry properties will be reset, unless you specify them persist.
If you want to reset also instance variables you use during the request
you should use the pageDetachListener interface (just implement it, no
need to addListener anywhere, tapestry will do that for you).
Cheers,
Ron
Al
It appears that even if the condition of the If component evaluates to
false, the components inside the If component body are still created (at
least the pageBeginRender is invoked).
volative has no effect on this.
Can someone explain what happens inside an If?
Thanks.
In the Validator.validate() method you get passed a ValidationMessages
instance. How do I have my validation messsages included in
ValidationMessages so I can use them in my validator?
--
Dan Adams
Software Engineer
Interactive Factory
---
The upload component in stitches functions correctly for T4 and it uses
commons-io 1.1 (this component just wraps the tapestry upload component
and a directory)
Please see the ivy-generated dependency report that shows commons-io (1.1)
and commons-upload(1.0) versions that work together in T4
ht
Very nice analogy on Unix symlink! I think I understand now the concept
of a component parameter (the Users Guide is an invaluable resource
there, I must say).
What about the lifecyle of a component property? All I want to make sure
is that they will be reset once the containing page goes back
Me again, same upload woes. The Upload component does work (with the
4.0.1and with
commons-io.jar) but it does not work within the context of my application.
The Tap App Servlet is wrapped by our servlet. So, here goes another
question with Upload I/O:
Does anyone know how to get the upload file f
- was renamed to
- attribute "type" was removed
Check out
http://jakarta.apache.org/tapestry/UsersGuide/spec.html#spec.property .
So try:
Regards,
Norbi
- Original Message -
From: <[EMAIL PROTECTED]>
To:
Sent: Wednesday, March 01, 2006 6:26 PM
Subject: property-specification
I am trying to convert an old example from tapestry 3 to 4.
When I try and access the page I get an error:
Could not parse specification context:/WEB-INF/Home.page.
The offending line is
The Home.page is:
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
What am
The difference is substantial:
Both Pages and Components have Properties associated which are set and
cleared for each instance.
Since you're reusing components inside pages and other containing
components you need to pass values that configure the inner component
for the individual use.
e.g
just another thing : parameters function very much like symlinks in
linux/unix -
when you read them you actually read the target of the link, and when
you write to them you change the target of the link -
The important thing is where the link is pointing to -
this you decide in the
Hi guys,
I
parameters are like java method parameters
properties are like java instance variables.
How you configure them what Tapestry does with them is the magic.
geoff
On 3/1/06, Alex Kartashev <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I am a new Tapestry 4 user. I've been researching Tapestry 4 for ab
properties are to maintain internal component state, while parameters
are the tying the component to its container.
properties are (in the simple case) a "shortcut" for implementing real
Pojo properties for your page/component - but they offer some extras,
like persistance -
parameters update
Hi guys,
I am a new Tapestry 4 user. I've been researching Tapestry 4 for about a
week now, even developed some toy apps. I am already sold on the value
proposition.
One thing I am a bit confused about is Component parameters and properties.
1. Is there any difference between a component par
Daniel Lydiard wrote:
Let Tapestry handle the getter/setter and use @Persist for the table model.
so
@Persist
public abstract List getProfiles();
public abstract void setProfiles(List profiles);
Then init setProfiles() in your pageBeginRender. Pretty sure you need
to do that for the column mo
You might want to rename that Editor ;)
Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Processing)
Cingular Java Components, QuickPay, Wedat
Sun Certified Java Developer
Sun Certified Java Programmer
12555 Cingular Way
Alpharetta, GA 30004
Office (678)893-2232
así
3) for me the most importent:
You can programm a component at one point and use it in many pages.
(component is reusable)
Dmitry Gusev wrote:
1) Page is a top level component
2) You can address page via URL but you cannot do this with component
On 3/1/06, Dimm, Jason <[EMAIL PROTECTED]> wr
1) Page is a top level component
2) You can address page via URL but you cannot do this with component
On 3/1/06, Dimm, Jason <[EMAIL PROTECTED]> wrote:
>
> What's the practical difference between when to create a "page" and when
> to
> create a "component"?
>
> The Tapestry app I've inherited has
What's the practical difference between when to create a "page" and when to
create a "component"?
The Tapestry app I've inherited has both *.page and *.jwc that correspond to
their respective *.java files.
thanks
Jason E. Dimm, Senior Analyst, Cingular Wireless
IT eCommerce/Payments (Payment Pro
Look on tassel, there is a t3/ jdk1.4 version of the fckeditor component.
This should still work for you in T4.
> It is sad, but we are limited with JDK1.4 :(
>> Still working on some bugs before I release, but there is usage of the
>> FCKEditor component in t4 here.
>>
>>
>> http://stitche
It is sad, but we are limited with JDK1.4 :(
Still working on some bugs before I release, but there is usage of the
FCKEditor component in t4 here.
http://stitches.authsum.org
Does anyone has an experience of using FCKEditor with TextArea component?
I did'nt ran into trouble jet, but I j
I recklessly use good old getRequestCycle() in such cases - or just return
the pagename as a String
> -Original Message-
> From: Inge Solvoll [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 01, 2006 2:35 PM
> To: Tapestry users
> Subject: Re: Tapestry Flash Issue on Resin
>
>
> I solv
Still working on some bugs before I release, but there is usage of the
FCKEditor component in t4 here.
http://stitches.authsum.org
> Does anyone has an experience of using FCKEditor with TextArea component?
> I did'nt ran into trouble jet, but I jut don't know where to start :)
> Maybe someon
Does anyone has an experience of using FCKEditor with TextArea component?
I did'nt ran into trouble jet, but I jut don't know where to start :)
Maybe someone can give a simple example of such usage.
-
To unsubscribe, e-mail: [EM
I solved this by recompiling the java-class in the correct JDK.
One more thing here. The code example from tapestry-flash suggests a coding
strategy for redirecting, that involves using the page service. I'm using
this persistence strategy to redirect to an error page, from a super class
that my p
I had the same problem once because I had a Firefox extension that tried
to be clever - it sent two partial requests, hoping that it would get the
content faster.
Seems weird for an extension to do that, I doubt the server's bandwidth
per request is ever an issue for clients.
On Tue, 28 Feb
For hibernate-integration, it will be at least difficult to combine them.
Differences are
- hivetranse is not in any way tapestry-specific. You won't find
data-squeezers, persistence strategies and other tapestry-things here which.
- hivetranse covers much more than hibernate (remoting, and o
Hi Jesse,
| Most people prefer using hibernate, if that is the case with you there are
| two projects to choose from (that I know of):
|
| http://hivetranse.sourceforge.net/
| http://honeycomb.javaforge.com/
Are that two projects you really have to choose from or can those
two projects be combin
Try iBatis (http://ibatis.apache.org/).
It is very easy to set up, very lean and mean, and especially useful for
people who are database savvy. Programmers who actually know how to
write sql statements and know to tune them, will love iBatis. Listen:
the configuration files for iBatis just con
70 matches
Mail list logo