Tomcat in eclipse has an Automatic publishing feature, which is not to
be confused with live class reloading. Publishing requires a partial
restart and republishes the war, you will notice the difference when
your web application grows, running the same app under jetty reloading
reloading is
Sorry, let me try rephrasing my question:
When I click on the checkbox, how do I modify the corresponding object
in the loop? The only way I can see of doing this is to iterate
manually, in which case a Tapestry checkbox component is not usable in a
loop.
Peter
Peter Stavrinides wrote:
Hi
Hi,
I think what you're asking is how to attach application event handlers
(on the server-side like void onChange()) like you would with other
components. If I've misunderstood you, I'm sorry. You're first problem
is how you create the select element. By manually writing a tag, you're
not
Well, let's see.
I use two different handlers because I think there are two different
events that manipulate the breadcrumb path.
One 'event' is when the application flows from one page to another. This
other page must have the opportunity to create its 'crumb' information and
have it stored in
please dont use OnChange, its deprecated.
use
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.htmlinstead
2008/4/24, Chris Lewis [EMAIL PROTECTED]:
Hi,
I think what you're asking is how to attach application event handlers
(on the
You're quite right, this is what's happening rather than the live class
reloading. My mistake.
-Original Message-
From: Peter Stavrinides [mailto:[EMAIL PROTECTED]
Sent: 24 April 2008 07:14
To: Tapestry users
Subject: Re: AW: Automatic class reloading on Tomcat 6 not working for
me
I have a grid component in the page of T5 and its sources is got from
db.There is also another search field to filter the records.
I defined 2 method in my service class:
ListCustomerInfo getAllCustomers()
ListCustomerInfo search(String key)
when init this page will
Perhaps some code would help us out.
.tml loop checkbox snippet
.java index getter setter snippet
? I can only try
On Thu, Apr 24, 2008 at 10:54 AM, Peter Stavrinides
[EMAIL PROTECTED] wrote:
I have also noticed that the value parameter on the checkbox component is
a read only boolean,
Stacktrace and some source and *.tml code will be helpful. Methods
definition is not enough to see the problem
滕训华 write:
I have a grid component in the page of T5 and its sources is got from
db.There is also another search field to filter the records.
I defined 2 method in my service
Peter Stavrinides wrote:
Hi All
I this scenario:
t:loop source=myDOA value=selectedDOA encoder=encoder
t:checkbox t:id=archived /
/t:loop
Have you tried something like this:
in .tml:
t:loop source=myDOA value=selectedDOA encoder=encoder
t:checkbox t:id=archived
Hi Nicholas
This is simply boilerplate code:
t:loop source=myDOA value=selectedDOA encoder=encoder
t:checkbox t:id=archived value=archive /
/t:loop
Archive is a read only boolean (no setter permitted), no model or encoder is
available, which = no easy way to update like say if this was a
Hi,
I created a request filter and registered with Tapestry. All is working
fine. Except for logging. I tried to obtain a logger, but nor inject nor
LoggerFactort.getLogger() seems to work, the logs are not seen.
I have this in log4j.properties
Hi Geoff,
Thanks for your link. It could serve as a good start for me.
I just wonder , is there a max-package for T5 ? I only saw min
package for T5, and I am very interested in the max package feature
like authorization, role-user etc.
thx
On Wed, Apr 23, 2008 at 6:36 AM, Geoff Callender
hi all,
is there a special reason for rendering the javascript includes on bottom of the page in latest
5.0.12 snapshot?
i got a fckeditor on my page and it seems like my editor field wants to initialize the FCKeditor
before the script ist even loaded?
any hints welcome,
harald
script
I don't know if my solution is 'suggested-way-of-using-logger-in-t5',
but it's working.
Here what you need to do:
0. Add to your project jars:
slf4j-api
slf4j-log4j
log4j // not sure if it's necessary
commons-logging /// not sure if it's necessary
1. Place log4j.properties file in your default
This a recommendation from YSlow,
because it helps wrowser render page faster by leaving
javascript part for the end.
you should put your initialization code in onload...
Davor Hrg
On Thu, Apr 24, 2008 at 2:13 PM, Harald Geritzer [EMAIL PROTECTED]
wrote:
hi all,
is there a special
Hi, Ken
May be it possible but will be hard to achieve, because T5 (you use T5,
don't you?) use hidden fields with internal information with every form.
Without this information form can't be processed.
As for your stacktrace:
You try to change character encoding for request when it is too late
Hi Tomasz,
now, that helped! :) With one remark. Injection does not work everywhere. As
I said I have a Dispatcher, which does not get the Logger injected (I get
NPE). But if I obtain the logger using:
Logger log = LoggerFactory.getLogger(MojitoDispatcher.class);
it works smoothly.
thanks
Hi Harald,
tapestry5-components has an editor component (which uses fck):
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html
A fix for this issue has just been committed to svn, if you're
interested in an already-integrated version. In any
Hi Ivan
This is precisely what I tried.
- Original Message -
From: Ivan Dubrov [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Thursday, 24 April, 2008 1:59:10 PM GMT +02:00 Athens, Beirut, Bucharest,
Istanbul
Subject: Re: How to update a list from a checkbox in a
I'm glad it helped. It's my first succesfull advice in this list :)
Earlier I was only shamelessly asking for help ;)
Regards
--
Tomasz Dziurko
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Like I do now :D
cheers,
Janos
On 24/04/2008, Tomasz Dziurko [EMAIL PROTECTED] wrote:
I'm glad it helped. It's my first succesfull advice in this list :)
Earlier I was only shamelessly asking for help ;)
Regards
--
Tomasz Dziurko
Perhaps trimming it back to the minimum might help... if it doesn't fix it,
it might help diagnosis.
I don't know why this isn't working.
1) remove the id attribute from the checkbox. T5 will generate one, and it
will be unique
2) remove the encoder. Just because _I_ don't understand it... and I
try this
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/mixins/OnEvent.html
2008/4/24, Leon Derks [EMAIL PROTECTED]:
Hello
Is it possible to catch the onChange event from a select component in the
java page?
I would expect something like:
Chris Lewis schrieb:
Hi Harald,
tapestry5-components has an editor component (which uses fck):
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html
ty,
guess in writeScript():
_value = _value.replace('\r', '\\'); //this is needed for
Hi Nicholas
An encoder is a fundamental Tapestry concept, used when you need to bind your
implementation of a translator to a component, it has no effect in this
example. The reason why it is not working is because the value property on the
checkbox is limited to read only boolean (a getter
I had the same issue as Leon some days ago (and this seems to be a very
common issue), and i tried your component. It's very good, with some ajax,
but the return type is a little bit limited for what i was trying to
achieve(update a combo with information from another combo, which has your
mixin).
the return type is not limited to StreamResponse.
all you can respond all that tapestry allowes here
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html
its up to you
2008/4/24, Marcelo Lotif [EMAIL PROTECTED]:
I had the same issue as Leon some days ago (and this seems to be a
the JSONObject/JSONArray response too
2008/4/24, Sven Homburg [EMAIL PROTECTED]:
the return type is not limited to StreamResponse.
all you can respond all that tapestry allowes here
http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html
its up to you
2008/4/24, Marcelo Lotif
Hi All,
A colleague of mine has discovered an anomaly with the the latest t5 snapshot,
it came up from April 23's nightly build jars. Here's a simple example where
this happens. If the action link is moved anywhere above the t:zone in the .tml
it works. If it is below the zone it does not
Unless https://issues.apache.org/jira/browse/TAPESTRY-2286 has been
addressed, you cannot respond with JSONArray, but you can with JSONObject.
Sven Homburg wrote:
the JSONObject/JSONArray response too
2008/4/24, Sven Homburg [EMAIL PROTECTED]:
the return type is not limited to
Yeah, i know this, but none of these responses suit to my needs (maybe a
Page response, but this will force a reload)... i tried to return a block
with the part of the code that i was trying to change, but i had no success
And i don't have the enough knowledge of the JSON api and javascript...
CG,
Sorry, no max version for T5 yet. At the moment min is gradually
mutating toward max with each release, but a full max version won't
exist for quite a while yet.
Regarding authentication and authorisation, I'm investigating
jSecurity and when I'm happy with it I'll release a min
I know Howard appreciates the need for conversations, but he's pretty
flat-out.
Actually, I'm not sure if there's a JIRA ticket for it.
On 24/04/2008, at 7:03 AM, Christoph Jäger wrote:
Hi Geoff,
it seems your JIRA describes just what I would like to have. I
especially like the idea with
Is there a way to access message catalog of some page or component
from another page or component? I know of two ways to do this, but
both are hacks IMHO:
class SomePage {
@Inject
private Messages _messages;
public getMessages() {
return _messages;
}
}
class Foo {
@InjectPage
private
One 'event' is when the application flows from one page to another.
...
The other event is when a user clicks on one of the individual crumbs on
the breadcrumb path,
Ah... I think I understand. I'm pretty sure then that the events you
are using don't work they way you think. Have you put
Harald,
Can I convince you to file an issue, if that is an issue?
http://code.google.com/p/tapestry5-components/issues/list
If you can, provide an example situation that would cause a problem.
thanks!
Harald Geritzer wrote:
Chris Lewis schrieb:
Hi Harald,
tapestry5-components has an
Injection does not work everywhere. As
I said I have a Dispatcher, which does not get the Logger injected (I get
NPE). But if I obtain the logger using:
For services you pass the logger as a constructor parameter and when
it is built Tapestry gives you a reference. Take a look at the
On 24 Apr 2008, at 07:14, Peter Stavrinides wrote:
Tomcat in eclipse has an Automatic publishing feature, which is not
to be confused with live class reloading.
I'm currently using Tomcat 6 with Eclipse/WTP. I'm not publishing
anything as I'm using the Serve modules without publishing
The way checkbox works out of the box you need to coordinate with the
loop via the index or value parameter, as others have suggested. This
works but can be dangerous if your loop source happens to change
between the form render and the form submit. Try this extension so you
can bind a data value
here some sample code sequences
your page class (simplified):
@Component(parameters={event=change
onCompleteCallback=onSelect1Changed})
@Mixins(t5components/OnEvent)
private Select _select1
@Component
private Select _select2
@OnEvent(component = select1, value = change)
JSONObject
Adam Zimowski zimowski74 at gmail.com writes:
Is there a way to access message catalog of some page or component
from another page or component? I know of two ways to do this, but
both are hacks IMHO:
class SomePage {
@Inject
private Messages _messages;
public getMessages() {
condition=meta:amplafi.production ?
On 23/04/2008, Patrick Moore [EMAIL PROTECTED] wrote:
Hi there --
O.k. I feel silly -- but how do I use hivemind variables directly in a
component. I know how to pass hivemind variables to services. But how to use
those values in the components? For
Really appreciate the feedback! Although the approach I currently use
works, yours looks far cleaner and better. I'll have a go at it tomorrow
and let you know how this works out.
Again - really appreciate it.
-J.
One 'event' is when the application flows from one page to another.
...
The
Of course, IE7 doesn't recognize that escape character - I would
imagine IE6 is the same - and so totally ignores the css rule. :-(
J
On Apr 22, 2008, at 2:05 PM, Julian Wood wrote:
Sweet! That is a good solution.
J
On Apr 22, 2008, at 1:57 PM, Jason Lea wrote:
or you could try looking
I just run into the same exact thing, using Tap 4.1.5, dojo that comes with
it, propertyselection and an eventlistener as well as prototype. Anybody
know if this is fixed in a newer snapshot, if there is a bug open on this or
any (better) workaround?
Kalle
On Sat, Oct 27, 2007 at 9:41 AM, lt
Hi,
Do I need to format dd / mm / is standard in Brazil but not worked.
Only worked 5.0.9
When can test, which is different 5.0.9 and 5.0.11
*Start.java (source) *
Public Class Start {
@ Persist
Date _dateTest private;
GetDateTest public Date () (return _dateTest;)
public void
Hi, Dmitry
Thanks for your advice.
May be it possible but will be hard to achieve, because T5 (you use T5,
don't you?) use hidden fields with internal information with every form.
Without this information form can't be processed.
Yes, I am using 5.0.11.
I should to write so.
As for your
Hi,
Do I need to format dd / mm / is standard in Brazil but not worked.
Only worked 5.0.9
When can test, which is different 5.0.9 and 5.0.11
Start.java (source)
Public Class Start {
@ Persist
Date _dateTest private;
GetDateTest public Date () (return _dateTest;)
public void setDateTest
Yes,I think you are right,follow is the relate source files
=== CustomerList.tml
t:pagelayout t:pageTitle=${message:label_pageTitle}
xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
head
/head
body
t:form t:id=customerListForm
table
Here's a solution that's still a bit ugly but at least a little less drastic
than commenting out parts of Dojo... Override dojo.dom.isNode in your code
as follows:
dojo.dom.isNode=function(wh){
if(typeof Element==function){
try{
//return wh instanceof Element;
return
Thank u for ur warm answer,your suggestion give me some idea indeed.
but I want to code something special.
first, a select(A) is rendered for ready,when a onchange event is
activated,there will be another select(B) which is a children set of some
value in select(A) is rendered...and it is in
i have the following code:
int onPassivate(){
System.out.println(passivate is running);
return 3;
}
void onActivate(int a){
System.out.println(onActivate:+a);
}
void onActivate(){
Hi, again.
I tried to using servlet for file uploading.
I wrote codes below.
Then selected a file and submitted.
But output is only like this:
Content-Type: multipart/form-data; boundary=...
Content-Length: 4699
Command: FileUpload
No #-s are displayed.
I excuted same code on
54 matches
Mail list logo