Uih, interesting, I just hope I'll never have to do portlets, then ;)
> -Original Message-
> From: Richard Kirby [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 31, 2006 6:35 PM
> To: Tapestry users
> Subject: Re: Rendering form submit response with the same page.
>
>
> Hi Aj,
>
> Si
It depends on how many collection-links there are between entities in your
db-model.
Try to enable hibernate-SQL logging. If you see a lot of eager loading here,
you'll be using a lot of mem (and a lot of cpu/network latency).
None of my Apps would run at a near-decent performance *without* lazy
I think there are several possibilities:
1. Create ServiceEncoder and say before="original service encoder id" in
contribution
2. Add URL rewriting as javax.servlet.Filter or WebRequestServicerFilter
--
Best, Simeon Koptelov
pgpQxX0QO8T2Z.pgp
Description: PGP signature
sean gao wrote:
Thanks Kent,
> class YourPageClass {
> void dispatch(IRequestCycle cycle) {
> String listenerName = (String)cycle.getServiceParameters()[0];
> ...
> }
> }
But what do I do after
String listenerName = (String)cycle.getServiceParameters()[0];
Use reflection t
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
Thank you for the quick response Chris (and Robert for another reply
to my email), I'll check the Border component stuff.
Really appreciate the code offer but let's see if I can figure it out
myself, if not I may impose again.
Alin
On Jan 31, 2006, at 8:27 PM, Chris Chiappone wrote:
Yeah
Ah cool, thanks for the link, I'm not sure how I missed that one :P
- Original Message -
From: "Christian Mittendorf" <[EMAIL PROTECTED]>
To: "Tapestry users"
Sent: Tuesday, January 31, 2006 5:13 PM
Subject: Re: Using fieldTrackings
Am 01.02.2006 um 02:03 schrieb Daniel Lydiard:
W
Yeah I would definatly go away from using frames these days. The page
you describe is basically what I use for my applications. It consists
of a Border component that has a header footer and then place holders
for components such as a left nav bar or left login area depending on
the sessions stat
People usually solve this by creating a "Border" component.
Search searching the mailing list for the Border component. :)
Incidentally, "including" something is normally done by making a
component in tapestry. :)
Robert
Alin Simionoiu wrote:
Hi folks,
I'm trying to build a small website th
Hi folks,
I'm trying to build a small website that will exercise some business
logic. I looked around for some framework that will help me build the
pages fast.
I choose Tapestry mainly because I can use the existing HTML pages as
templates, really cool thing.
The first thing that I did w
Am 01.02.2006 um 02:03 schrieb Daniel Lydiard:
When ever a user chooses the "noSelectionValue" which is the
default, it's recorded in the validation delegate.
Is this what you're going for?
No, not really (I do also need the selected value in the validation
delegate). But the hints and i
No, I only throw them if input was incorrect. i.e. checkbox not checked and
it's required (using validators:required), or the pulldown value selected
was equal to the "noSelectionValue" (see ValidPropertySelection source code
in link below).
example:
When ever a user c
That might be a solution: do ValidPropertySelection and ValidCheckbox
record their input values to the ValidationDelegate in any case, even
if no error occured?
Am 01.02.2006 um 01:44 schrieb Daniel Lydiard:
I was actually using the ValidPropertySelection and ValidCheckbox
in my T3 code (
I was actually using the ValidPropertySelection and ValidCheckbox in my T3
code (http://issues.apache.org/bugzilla/show_bug.cgi?id=29535) and ported it
over to T4. I basically took the existing T4 source for
PropertySelection/Checkbox and added in the code to work with
ValidationDelegate (by t
Am 01.02.2006 um 01:20 schrieb Jesse Kuhnert:
Hmmm...I know the tapestry workbench demo application has a sample
"ShowErrors" sort of component for this.
The biggest reason I suggested the ValidationDelegate approach is
because
you're guaranteed to get every fields value and error written ou
Am 01.02.2006 um 01:20 schrieb Jesse Kuhnert:
Hmmm...I know the tapestry workbench demo application has a sample
"ShowErrors" sort of component for this.
Ok, I think I'll have to check it.
The biggest reason I suggested the ValidationDelegate approach is
because
you're guaranteed to get eve
Am 01.02.2006 um 01:06 schrieb Jesse Kuhnert:
If you wanted to display error messages next to the fields in
question I
would highly reccomend looking at this (though it uses labels, you can
override whichever method points you want):
http://jakarta.apache.org/tapestry/UsersGuide/
validation.
Hmmm...I know the tapestry workbench demo application has a sample
"ShowErrors" sort of component for this.
The biggest reason I suggested the ValidationDelegate approach is because
you're guaranteed to get every fields value and error written out properly
as everything is passed in as a paramter
Error tracking is working really nice, that is not the problem. My
problem is that not every form field does record its input value to
the trackingFields. Textfields do always record their values, even if
no error occured.
On my page I'm iterating the trackingFields while I'm building up th
If you wanted to display error messages next to the fields in question I
would highly reccomend looking at this (though it uses labels, you can
override whichever method points you want):
http://jakarta.apache.org/tapestry/UsersGuide/validation.html#validation.delegate
On 1/31/06, Christian Mitte
We moved the discussion away from this list.
This goes for everyone, any other issues related with Tapidea please use
the Tapidea forum.
Cheers
Hugo
Frank wrote:
I do not think I disabled it.
Attached is the log.
Thanks
Frank
--
I don't know why checkbox propertySelection aso don't have validator, I
guess they are not that common, but you can validate them in your
submit/form listener and add trackings to the delegate, making the
errors apear on each IFormComponent...
you just call one of the error tracking methods on
Hello!
I'm currently exploring how Tapestry 4 is validating fields and
tracking error messages.
Can someone please tell me if I'm right with the following assumptions:
- _every_ error is tracked in the ValidationDelegates fieldTrackings
- _only_ the content of form elements that extend Vali
Howard may be on to something. In my WEB-INF folder i have /lib/tapestry-4 jars
but I also have a WEB-INF/old/tapestry 4 beta 11 jars. I thought the
only jars that get put in the classpath must be in WEB-INF/lib/.
Could it by its picking up the WEB-INF/old/* jars also??
On 1/31/06, Jeff Lubetki
Ouch, I hope this has nothing to do with the tacos component enhancement
pipeline contributions. It could very well be my fault somehow as well. I'll
double check the tacos contribution rules to see if it looks like it might
conflict with something in annotations.
it's this btw (for howard) :
It's possible that tacos has this problem, but that was not the issue in
our case, as we've custom rolled our AJAX stuff, and don't use tacos.
The issue was in the standard Tapestry component pipeline.
Later this afternoon I should have time to redo my debugging. I'll
annotate the JIRA issue with
I'm moving my Tapestry 3
application to version 4. I have many hardcoded urls (stored in DB as
menu links) in old Tapestry 3 style: /app?service=page/MyPage.
During the transition process I found that this link is unsupported and
produces error org.apache.hivemind.ApplicationRuntimeException: No
e
This looks very similar to a problem we encountered with
disable-caching=true and running parallel queries (such as when a
resulting HTML page contained multiple embedded asset requests, or AJAX
type requests).
Basically, if two queries run in parallel and disable-caching is true,
then when the fi
One thing that occured to me is that,possibly, you have two versions
of Tapestry on the classpath;were there any startup warnings? Can you
verify that you are using Tapestry 4.0's libraries and nothing else?
I mean, to the point of doing a find . -name tapestry\* -print on your
filesystem.
On 1/
I'm still trying to figure this out. Could this problem be associated
when disable-caching=true?
On 1/29/06, Chris Chiappone <[EMAIL PROTECTED]> wrote:
> New JIRA created:
>
> https://issues.apache.org/jira/browse/TAPESTRY-848
>
> On 1/29/06, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> > I don
When using Table. the "converter" binding is NEVER used, but if I use the
deprecated FormTable my converter binding method is used.
Nobody else has experienced this problem with T4?
Also, I noticed in debug messages for my IBasicTableModel implementation
that getRowCount() is called 3x first
Hi Aj,
Since you are using tapestry in a portlet, please read this to
understand your problem:
http://jakarta.apache.org/tapestry/tapestry-portlet/coding-issues.html
Hope that makes everything clear
Richard.
Aj Gregory wrote:
You're right that would be nice (and expected), but if I call
se
Hi,
I have a list of items. For each item I have to select a property from the
set of the predefined values.
If I just needed to display the items and the set of values I could have had
something like this:
Now since I need to both set initially selecte
I agree that maxing out 512 seems high. Looking at my currently running
Tomcat servers, here's my usage:
Server 1 -- 1 Tap4, 2 Tap3 -- Heap 140 MB, PermGen 85 MB
Server 2 -- 2 Tap3 -- Heap 134 MB, PermGen 35 MB
Server 3 -- 5 Tap3 -- Heap 59 MB, PermGen 46 MB
Server 4 (leaky) -- 1 Tap3 -- Heap 610
Hello!
I've got a question regarding the fieldTrackings of a form delegate.
From my understanding, this is a list of trackings that the delegate
stores. It does contain a tracking entry for each form field that is
being validated. A field tracking may contain the error message
(errorRender
You're right that would be nice (and expected), but if I call
setObject(...) on the current page in the listener it won't be set when
the page is rendered again. From what I can tell by logging messages in
PageAttachListener and PageDetachListener the page is re-acquired from
the pool before r
I had the same problem with Tapestry 3.02 and I think it is still in 4.0.
Somehow
Tapestry doesnt' set up content type properly. Looking at html source from
Tapestry,
the for content type is not the first but the second in
the .
I have read somewhere, that content type must be the first in
oth
Yeah I also know about this issue although it only takes me about 3
redeploys. I actually haven't ran out of memory when just starting
jboss for the first time although looking at my processes its nearly
at the max heap size so I'm concerned that concurrent users will cause
some problems.
On 1/31
Chris Chiappone wrote:
I am actually not using lazy connections. When I started this project
I was getting a lot of lazyinitializaition expections at the time. Do
you think this could be my whats taking up a lot of memory?
On 1/31/06, Schulte Marcus <[EMAIL PROTECTED]> wrote:
Seems a lot of M
Usually you should suspect somewhere a wrong encoding used through the flow
of your system.
Check the following points:
- is your database storing content in UTF-8 (should you use one)?
- are your Tapestry templates written in UTF-8 and specifying a proper
content type (<*meta* http-equiv="Content
I am actually not using lazy connections. When I started this project
I was getting a lot of lazyinitializaition expections at the time. Do
you think this could be my whats taking up a lot of memory?
On 1/31/06, Schulte Marcus <[EMAIL PROTECTED]> wrote:
> Seems a lot of Mem to me. We're running
Jérôme,
Good question, I'm using XP SP2 and the file was created from eclipse
using new file -> myproject.properties. I went back and checked to see
what encoding eclipse was using for the *.properties files and found
that these are encoded as ISO-8859-1by default, so I changed this to
UTF-8. Stop
Seems a lot of Mem to me. We're running a Tomcat with several small to
medium apps (1 Tap4, 1 Tap3, several legacy jsp) with some 100 concurrent
users. And 256 MB of Heap is way enough. So, maybe it's Jboss - or your app.
What's your hibernate cache-settings. Do you use lazy collections? Sorry for
If you try this, use:
>>
>> Use the correct html. I think it is something like: |€
>>
>> ||Gary|
>> ||
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
> Sorry thats:
Are you really sure that you .properties file is written using an UTF-8
encoding and nothing fancy like a windows encoding?
Regards,
Jérôme.
On 1/31/06, Brian Long <[EMAIL PROTECTED]> wrote:
>
> Martin,
>
> No joy, same problem, € becomes ? and "€" becomes "€" . . .
>
> Looks like I'll be us
Hi!
This solved my problem. Thanks for the reply Schabek (and the
contributions from the others)!
Here is what I've done:
* Replace (delete/paste) the writeInitializationScript() method in
the PageRenderSupportImpl class (as proposed at
http://issues.apache.org/jira/browse/TAPEST
I'm just curious what the recommended amount of memory should be
allocated to a medium sized appilcation running Tapestry 4 / Hibernate
in JBOSS 4.X? Currently on my Dev box I have JBoss heap size set at
512. When testing my application I notice that I am pretty much
maxing that out and am worrie
Martin,
No joy, same problem, € becomes ? and "€" becomes "€" . . .
Looks like I'll be using EURO (so long as tapestry doesn't try convert
it into YEN)!
Thanks, Brian.
On 1/31/06, Martin Strand <[EMAIL PROTECTED]> wrote:
> Perhaps you need to specify the *.properties file encoding. Put thi
Gary,
same problem really, when tapestry sees "€" in the .properties
file it converts the ampersand to & so I get something like the
following in my .html page
The price is €
same problem for € etc.
So I have to figure out how to escape the € symbol (or the & symbol)
or tapestry will conti
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 &
Hi all,
I have two small questions regarding the focus of fields in forms.
1) I have a password change page in which you must enter your old
password, your new password, and must verify your new password. Now
assume the user types his/her old password correctly but there is a
password mismatc
Hi,
I'm using .properties files in WEB-INF for localisation and using
on the html pages to generate the relevant
text for the users locale. I am however having a small problem at the
moment with the euro symbol €, when this is placed in the .properties
file, it is rendered as ? on the actual html
Gary Pampara wrote:
Brian Long wrote:
Hi,
I'm using .properties files in WEB-INF for localisation and using
on the html pages to generate the relevant
text for the users locale. I am however having a small problem at the
moment with the euro symbol €, when this is placed in the .properties
fil
Brian Long wrote:
Hi,
I'm using .properties files in WEB-INF for localisation and using
on the html pages to generate the relevant
text for the users locale. I am however having a small problem at the
moment with the euro symbol €, when this is placed in the .properties
file, it is rendered as
"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
Hello!
I've got a Form with a ValidationDelegate and a number of TextFields.
There are also fields for the errors, etc. Everything is working fine.
Now I've changed the first two TextFields to PropertySelection (but I
kept validators and DisplayName is also set) and while iterating over
t
Hi all,
I've been seeing the odd ApplicationRuntimeException on my tapestry app:
org.apache.tapestry.ApplicationRuntimeException Could not find template
for page Home in locale en_US.
Strange thing is, I don't have a page called Home - is this required by
Tapestry?
--
Dan Garland
---
Hi,
I have a tacos PartialForm and a tacos PartialLink. When a user clicks
on the link a javascript call first checks to see if anything in the
form has changed. If so, the form is submitted. The links onClick then
continues.
My problem is that I need the form to finish submitting before
Afaik it's just the stored properties. Having a look
at SessionPropertyPersistenceStrategy helped me in understanding the
interface.
> -Original Message-
> From: Norbert Sándor [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 30, 2006 2:53 PM
> To: tapestry-user
> Subject: Fw: property p
Ok, finally I got it. Uh, very embarrassing, because I already use this method
of injecting the PageService on another page in my app.
So
@InjectObject("engine-service:page")
public abstract IEngineService getPageService();
did it - hopefully for all cases that could appear.
So thank
:-)=)
Hi Howard,
thank you for pointing this out ;)
I did not expect this exception because I expect getService() to return a
PageService - not a DirectService.
In my understanding (which seems to be wrong :) ) the DirectService was
'consumed' on the Login-page to do the submit.
After this,
The FormTable component is deprectated so I simply changed it to Table, in
which the doucmentation says it will automaitcally perform the FormTable
functions when within a Form.
When using Table. the "conveter" binding is NEVER used, but if i use the
depcrecated FormTable my converter binding
sean gao wrote:
Thanks Kent,
> class YourPageClass {
> void dispatch(IRequestCycle cycle) {
> String listenerName = (String)cycle.getServiceParameters()[0];
> ...
> }
> }
But what do I do after
String listenerName = (String)cycle.getServiceParameters()[0];
Use reflection
I had the same problem. In the end, it was a missing (or duplicate, can't
really remember), close-tag somewhere else in the html.
> -Original Message-
> From: Martin Carel [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 30, 2006 5:02 PM
> To: Tapestry users
> Subject: DatePicker in IE: o
The result is exactly what it should be!
Why would you want a separate instance of your page? Just set your
"result-property" in the listener and return nothing from the listener. Then
render the result property in your page-template.
> -Original Message-
> From: Aj Gregory [mailto:[EMAIL
65 matches
Mail list logo