I just started using the Table component, it's very convenient for an
administration interface I'm building.
I noticed it outputs some rather weird markup - no thead/tbody, and each
header cell has an embedded together with an inline
Hello Mike.
I don't know, but I had a similar problem and fixed it by adding
URIEncoding="UTF-8" for that connector in server.xml:
--
Martin
On Mon, 17 Apr 2006 21:10:27 +0300, Michael Lake <[EMAIL PROTECTED]> wrote:
Just making a small test and outputting to the console shows that m
Try this:
foo="ognl:messages.getMessage(fact.name)"
the "message:" prefix is just a shorter syntax for the above expression.
Martin
On Thu, 13 Apr 2006 02:25:49 +0300, Apache
<[EMAIL PROTECTED]> wrote:
I have a case when the key for the message is returned from the ognl
expression like t
I don't think there's any easy way of doing it programmatically, but you
can replace those two annotations with xml in your .page file.
instead of @InjectObject, use :
http://jakarta.apache.org/tapestry/UsersGuide/spec.html#spec.inject
instead of @Persist, use (or
persist="session")
http:/
I guess you could do that, but if you only need the objects on the result
page, you should probably just use @Persist on their corresponding getters
in your page class:
http://jakarta.apache.org/tapestry/tapestry-annotations/index.html#Persist
Tapestry will then encode the object in the redire
Hi Mark.
If you make your form listener return an ILink, tapestry will redirect the
client to the new URL and any subsequent "refresh" will only reload that
page, not submit the form again.
Simple example:
public ILink submit()
{
addStuffToDatabase();
return getPageService()
o Hivemind makes things like that
extremely simple, it took me less than two minutes to do. :)
Martin
On Thu, 06 Apr 2006 02:46:17 +0200, Jesse Kuhnert <[EMAIL PROTECTED]>
wrote:
You could always send them to a "logging out" page that has en embeeded
meta redirect in the html
Hi all.
I've got a logout link and I want it to redirect the user to another
location (not the home page) after the session's been invalidated. The
listener looks like this:
public void doLogout()
{
try
{
IEngineService restartService = getRestartService();
yes, just add % in front of it:
value="validators:required[%validation-message-key]" />
and in your .properties:
validation-message-key = You are missed {0}
On Sun, 02 Apr 2006 14:29:11 +0200, Yura.Tkachenko
<[EMAIL PROTECTED]> wrote:
Hi, All
I have one trouble: I added almost full
I haven't tried it myself, but perhaps you could use a custom
ExceptionPresenter?
http://jakarta.apache.org/tapestry/tapestry/apidocs/org/apache/tapestry/error/ExceptionPresenter.html
http://jakarta.apache.org/tapestry/tapestry/hivedocs/service/tapestry.error.ExceptionPresenter.html
On Sat, 01
There's a CSS rule for that:
table-layout:fixed;
It also makes client side rendering faster for large tables.
On Fri, 31 Mar 2006 12:07:08 +0200, Nima Boustanian <[EMAIL PROTECTED]> wrote:
Hey all
Can I somehow make the contrib:Table columns static so that they don't
adjust to the row width
This should be helpful:
http://www.mail-archive.com/tapestry-user@jakarta.apache.org/msg12250.html
I'm not sure, but I believe this approach instantiates the ASO even if it's not
used (unlike @InjectState).
Martin
On Wed, 29 Mar 2006 18:43:41 +0200, Stanczak Group <[EMAIL PROTECTED]> wrote:
I don't know for sure, but I think this is what's going on:
When the session is first created, a cookie is set and JSESSIONID is
appended to all links. If your browser doesn't send back the cookie, the
JSESSIONID will continue being appended to all links. If your browser
accepts the cookie a
Amen, brother. I couldn't agree more.
On Wed, 22 Mar 2006 21:05:09 +0100, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
Most "good" development shops I've worked in didn't give a rats ass about
the technologies used so much as the perceived talent of the individual
being interviewed. That's not the
too,
like hivemodule_fr.properties).
http://jakarta.apache.org/hivemind/localization.html
The docs are kind of hidden. They're not with all the other general
information. They're in a section called "Tutorials and Information" on
the
website.
-----Original Message-
From: Martin
ivemind/hivemind/ThreadLocale.html) service
is for this purpose.
Regards,
Norbi
Martin Strand wrote:
Hi.
Newbie question... I wanna do some extra date formatting ("today",
"yesterday" and similar) in a HM service.
How do I inject the Locale for the current request?
Does this formatting se
Hi.
Newbie question... I wanna do some extra date formatting ("today",
"yesterday" and similar) in a HM service.
How do I inject the Locale for the current request?
Does this formatting service need to be model="threaded" or will HiveMind
handle that automagically? (since I'm injecting the cu
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
Hello Jonathan.
I'm no guru but maybe I can help anyway.
The problem is when your form is submitted and the form fields are
supposed to be inserted back into in the Report
(getReport().setName(...)). Since this is a new request, your old Report
(the one that was rendered) doesn't exist anym
I don't understand what the difference is between a transient page
property and a regular @Bean.
Could someone please explain?
public abstract ArrayList getList();
vs
@Bean
public abstract ArrayList getList();
-
To unsubscri
Until Spindle supports T4, you can substitute it with a regular XML editor
for Eclipse, like XmlBuddy:
http://xmlbuddy.com/
Works great.
On Wed, 01 Feb 2006 16:03:47 +0100, Geoff Longman <[EMAIL PROTECTED]>
wrote:
If you are using Spindle, be aware that the current version does not
support
I assume you've started creating your own components?
If so, you can just create a "Border" component with a template like this:
[Border.html]
Menu item
Menu item
Menu item
Page content will be inserted here
and then use that Border component in all your pages l
Perhaps you need to specify the *.properties file encoding. Put this in
your *.application config:
--Martin
On Tue, 31 Jan 2006 16:00:07 +0100, Brian Long <[EMAIL PROTECTED]>
wrote:
Gary,
same problem really, when tapestry sees "€" in the .propertiesfile
it converts the ampersand to &
"Home" is the default page.
You can use another default page by having this in your *.application file:
On Tue, 31 Jan 2006 13:58:56 +0100, Daniel M Garland
<[EMAIL PROTECTED]> wrote:
Hi all,
I've been seeing the odd ApplicationRuntimeException on my tapestry app:
org.apache.tapestry.Ap
or if you want l10n, add a %
value="validators:required[%this.is.my.message.key]"/>
Read more here:
http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.fields
On Fri, 27 Jan 2006 12:23:38 +0100, Rudolf Baloun <[EMAIL PROTECTED]>
wrote:
Hi,
i got this code in my *.p
Basically, you just use the "validators" binding to specify ids for any
validators you want to apply to the field:
the "validators:" prefix will look up the validator ids in the
"tapestry.form.validator.Validators" configuration point.
Some predefined validators are already available, read
I often find myself doing this, stuffing an object id into a DirectLink or
storing an object id in a persistent page property and then recreating the
object in pageBeginRender. Can't Tapestry handle this conversion instead?
I'm thinking of something like the "converter" parameter in the For
ion for each one. I still
prefer to extract the component binding part from my Java source and put
it in a .page file instead. :)
--Martin
Cheers,
Paul
On Jan 15, 2006, at 1:11 PM, Martin Strand wrote:
Personally, I hardly ever use the @Component annotation cause it makes
the sou
make it
impossible to have a meaningful DTD. Of course, you can do essentially
the same thing in your HTML:
Cheers,
Paul
On Jan 15, 2006, at 8:15 AM, Martin Strand wrote:
How about using attributes instead of the element?
i.e. we would have
instead of
The old way
How about using attributes instead of the element?
i.e. we would have
instead of
The old way would still work, but there would be a simplified alternative.
What do you think?
-
To unsubscribe, e-mail: [EMAIL PROTEC
As for debugging, I run Tomcat from Eclipse with these parameters:
-Xdebug
-Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n
And then I run a "remote java application" debug launch from Eclipse that
connects to localhost:8000 so that I can use breakpoints. Haven't used
JBuilder f
mymodule.MyService")
public abstract MyService getMyService();
would be equivalent to
(MyService)registry.getService("mymodule.MyService", MyService.class)
I hope that I haven't reinvent the wheel :)))
BR,
Norbi
- Original Message - From: "Martin Strand"
Just a thought, wouldn't it be nice if InjectObject by default injected
the service with an id equal to the return type's fully qualified name?
@InjectObject
public abstract MyService getMyService();
would be the same as
@InjectObject("service:my.package.MyService")
public abstract MyService
lol I bet you haven't heard that one before, Geoff
On Mon, 09 Jan 2006 13:57:38 +0100, Vincent <[EMAIL PROTECTED]> wrote:
Hi Geoff,
Is there any plans for the new released Tapestry 4.0?
best regards,
Vincent
On 1/8/06, Geoff Longman <[EMAIL PROTECTED]> wrote:
I know this is a letdown next
I had a virtual server once using UML
(http://user-mode-linux.sourceforge.net) and it's pretty much the same as
having a box of your own, except you're sharing the hardware (not
software, each customer's got his own OS) with a couple of others.
--Martin
On Mon, 02 Jan 2006 23:08:26 +0100,
Perhaps I misunderstood your question, but this should do the job:
--Martin
On Mon, 19 Dec 2005 12:56:56 +0100, Alex <[EMAIL PROTECTED]>
wrote:
Hi!
How do I affect the output of a boolean value?
I could write
X
-
But I would like to like to avoid using @components in my *
whereas a service may depend on other services.
Martin Strand wrote:
Hi. :)
I want a Settings class to be visible to most parts of my app and I
find one thing somewhat confusing... Could someone please explain what
the difference is between a HiveMind service and an ASO with
scope=&q
Hi. :)
I want a Settings class to be visible to most parts of my app and I find
one thing somewhat confusing... Could someone please explain what the
difference is between a HiveMind service and an ASO with
scope="application"?
Thanks,
Martin
--
PROTECTED]> wrote:
Keeping the 'old' list in a persistent property of the page might help.
Then on the "updated" view you can addidtionaly check if there were any
new posts if you want to prevent outdated view.
Martin Strand <[EMAIL PROTECTED]> wrote: I've got form
I've got form with a list of items and a delete button. On form submit, I
want to check the values of some checkboxes, delete the corresponding
items from a remote IMAP server, and then redisplay the page with the
updated list.
However, to prevent the "stale link" phenomenon, it seems I nee
I've got form with a list of items and a delete button. On form submit, I
want to check the values of some checkboxes, delete the corresponding
items from a remote IMAP server, and then redisplay the page with the
updated list.
However, to prevent the "stale link" phenomenon, it seems I need to g
;attachment; filename=\""
+ filename + "\"";
String bar = java.net.URLEncoder.encode(foo);
Reponse.setHeader(bar);
--- Pat
-Original Message-
From: Martin Strand [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 8:37 AM
To: tapestry-us
I've written a download service where I set the filename like this:
response.setHeader("Content-disposition", "attachment; filename=\""
+ filename + "\"");
It appears I have to encode non-ascii characters somehow, how do I do that?
--Martin
--
tin
On Mon, 28 Nov 2005 16:24:15 +0100, Pedro Abelleira Seco <[EMAIL PROTECTED]>
wrote:
Yes, it's caused by class enhancement. You have to restart tomcat from
time to time to avoid it. _And_ don't disable tapestry caching in
production.
Pedro
El Lun, 28-11-2005 a las 16:24
I keep getting this error from Tomcat:
java.lang.OutOfMemoryError: PermGen space
It seems to happen randomly. I read this article on TSS:
http://theserverside.com/news/thread.tss?thread_id=36743
"The permanent generation is special because it holds meta-data describing
user classes (classes th
I'm not sure, but I believe that when the session is first created, (1) a
cookie is set and (2) the jsessionid=xxx is added to each link. Then, if
the client sends that cookie on the next request, your app won't have to
add the jsessionid=xxx anymore since the client obviously accepts cookies
Not sure if it's the "correct" approach, but I use finishLoad() for
initialising properties to their defaults.
On Thu, 10 Nov 2005 17:58:11 +0100, Patrick Kelly <[EMAIL PROTECTED]>
wrote:
I have been playing around with pageBeginRender to set some vars when
the page first loads. The prob
f objects to a MIME64 stream. A
DataSqueezer is used for objects encoded as listener parameters or as
hidden form fields.
On 11/1/05, Robert Zeigler <[EMAIL PROTECTED]> wrote:
Create a custom data squeezer for your object and register it.
Robert
Martin Strand wrote:
> Hi.
> I want
Hi.
I want to persist a large object on the client, but it would be much
better if I could just persist its id and then re-create it on the server
on each request. Can Tapestry do this for me? I could do it myself,
something like this:
private User user;
public void detach()
{
user
Sounds like you removed the for /app...
is only used for the page service. Form submissions
are handled by the direct service. Since your direct service doesn't use
friendly urls, the form will be posted to /app as usual.
You'll need to either (1) add a servlet-mapping for /app so that th
Ok, thanks.
It's just that the "page pool" feels like the JDBC "connection pool". :)
-Martin
On Mon, 24 Oct 2005 14:48:46 +0200, Norbert Sándor <[EMAIL PROTECTED]>
wrote:
You needn't, Tapestry will do it.
BR,
Norbi
- Original Message - From:
Hi.
I'm using a login listener that does something like this:
--
try
{
page = cycle.getPage(...);
page.login(...); // throws AuthenticationException
return page;
}
catch (AuthenticationFailedException e)
{
// --> Is a cleanup necessar
gt;
Alex
GL> This sucks but it works.
GL> @[EMAIL PROTECTED]("ONE")
GL> Geoff
GL> On 10/4/05, Martin Strand <[EMAIL PROTECTED]> wrote:
Is there a way to reference an enum with OGNL?
package package;
class Class
{
public enum Enum
{
ONE, TWO, THREE
}
}
I t
Are ActionLinks and DirectLinks identical except the ActionLink doesn't
accept any parameters to its listener while the DirectLink does?
--Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EM
Thanks, that worked great! :)
On Wed, 12 Oct 2005 12:48:51 +0200, Kent Tong <[EMAIL PROTECTED]> wrote:
Martin Strand entcap.biz> writes:
I'm having problems with decoding åäö in a DirectLink parameter.
The parameter is: ännu
It's encoded like this: &sp=S%C3
Hi. :)
I'm having problems with decoding åäö in a DirectLink parameter.
The parameter is: ännu
It's encoded like this: &sp=S%C3%A4nnu
And decoded like this: ännu
I assume this is a configuration error, but I don't know where to start
looking.
Help?
--Martin
-
Thanks, that example works great. :)
-Martin
On Tue, 04 Oct 2005 09:37:05 +0200, Detlef Schulze <[EMAIL PROTECTED]>
wrote:
Look in the FAQ of the tapestry website. Section 2.6. That should be the
easiest way.
-Original Message-
From: Martin Strand [mailto:[EMAIL PRO
Is there a way to reference an enum with OGNL?
package package;
class Class
{
public enum Enum
{
ONE, TWO, THREE
}
}
I tried a couple of variations but couldn't figure it out. Perhaps it's
not possible?
ognl:@[EMAIL PROTECTED] ?
-Martin
--
Hi.
I need a stateful download function which simply streams a file to the
client.
I suppose I should write a "service" for this, but I have no idea on where
to start as I couldn't find any documentation about this on the Tapestry
site.
Help?
-Martin
--
Hi.
I want to use whitespace in one of my message keys:
props.put("key with whitespace", "value");
Normally, I would type this in my.properties file:
key\ with\ whitespace=value
but it appears Tapestry (beta-6) won't recognise the key if I do that. Is
there a way to fix this or will I have to sk
Perhaps this is a stupid question, but is this book for Tapestry 4? If I
recall, you had two different pdf books for different Tapestry versions.
-Martin
On Tue, 20 Sep 2005 20:50:02 +0200, Kent Tong <[EMAIL PROTECTED]> wrote:
Hi,
Hard copies of my book are now available at
http://www.lul
Hmm, beta-7 seems to have broken my app. I get this message when posting
my login form:
Unable to locate asset 'pages/MessageList.page' relative to context:/.
#
org.apache.tapestry.asset.ContextAssetFactory.createAsset(ContextAssetFactory.java:71)
# $AssetFactory_1067348fbf3.createAsset($As
Indeed it does. :) Thanks.
On Thu, 08 Sep 2005 12:09:15 +0200, Joe Trewin <[EMAIL PROTECTED]> wrote:
Hi,
I use the mail archive:
http://www.mail-archive.com/index.php?hunt=tapestry
Not the best interface, but does the job.
-Original Message-
From: Martin Strand [
Hi. :)
I was just wondering whether ther's a *searchable* archive anywhere for
this mailing list?
-Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
64 matches
Mail list logo