Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Robert Zeigler
Not sure that the DataObjects will work... the live service class reloading 
basically works b/c there's the public interface, and the "private" 
implementation, and the only class that has a reference to the private 
implementation is the proxy. At least, that's how I understand it. ;) Not sure 
how that would fly with the data objects, unless you defined an interface on 
top of each of your data objects... which sounds kinda ugly... 

Robert

On Dec 16, 2010, at 12/169:31 PM , Michael Gentry wrote:

> Early Christmas!
> 
> I'm curious to see how the page pooling changes work out.  About six
> weeks ago one of our production apps blew up on us due to the page
> pool.  We thought we had large enough sizes defined, but an external
> API we depended upon started responding very slowly (after months of
> responding quickly) and that led to our pages being checked out of the
> pool for minutes at a time, which quickly exhausted the pool.  I think
> with the removal of the page pool, our app would've survived better
> (even though the portion using the external API would've still been
> crippled).
> 
> I'm also going to see if I can treat my Cayenne DataObjects as a
> "service" for live class reloading now, too.
> 
> Thanks Howard and everyone else who contributed!
> 
> mrg
> 
> 
> On Thu, Dec 16, 2010 at 5:44 PM, Howard Lewis Ship  wrote:
>> With formatting:
>> http://tapestryjava.blogspot.com/2010/12/announcing-tapestry-52.html
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Yohan Yudanara
For me, replacing the version number on pom.xml is working.

If you use tapestry-spring, u should change spring version from 2.5.6
to spring 3.0.0.RELEASE or later..



On Fri, Dec 17, 2010 at 8:44 AM, Angelo C.  wrote:
>
> Congrats to the Tapestry 5 Team for a great job!
> now, how easy to upgrade from the 5.1 to 5.2? just replacing the version
> number? any upgrade guide?
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Announcing-Tapestry-5-2-tp3308716p3308860.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Michael Gentry
Early Christmas!

I'm curious to see how the page pooling changes work out.  About six
weeks ago one of our production apps blew up on us due to the page
pool.  We thought we had large enough sizes defined, but an external
API we depended upon started responding very slowly (after months of
responding quickly) and that led to our pages being checked out of the
pool for minutes at a time, which quickly exhausted the pool.  I think
with the removal of the page pool, our app would've survived better
(even though the portion using the external API would've still been
crippled).

I'm also going to see if I can treat my Cayenne DataObjects as a
"service" for live class reloading now, too.

Thanks Howard and everyone else who contributed!

mrg


On Thu, Dec 16, 2010 at 5:44 PM, Howard Lewis Ship  wrote:
> With formatting:
> http://tapestryjava.blogspot.com/2010/12/announcing-tapestry-52.html

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Angelo C.

that's good, will try that. talking about test, is there any sample where you
use Groovy to do the test?
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Announcing-Tapestry-5-2-tp3308716p3308913.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Howard Lewis Ship
For the most part, it is just changing the version number. See the release
notes for a few additional details, if you are doing some more advanced
things.  Of course, you should do some testing after changing versions!

On Thu, Dec 16, 2010 at 5:44 PM, Angelo C.  wrote:

>
> Congrats to the Tapestry 5 Team for a great job!
> now, how easy to upgrade from the 5.1 to 5.2? just replacing the version
> number? any upgrade guide?
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Announcing-Tapestry-5-2-tp3308716p3308860.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to learn
how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com


Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Angelo C.

Congrats to the Tapestry 5 Team for a great job!
now, how easy to upgrade from the 5.1 to 5.2? just replacing the version
number? any upgrade guide?
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Central-Announcing-Tapestry-5-2-tp3308716p3308860.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



T5 Guide: Building T5.2.4 Application Using Netbeans 6.9.1

2010-12-16 Thread ael

1. File->New Project
2. Choose->Maven->Maven Project
3. Maven Archetype->Click Add
4. Specify Archetype Detail
a. group id: org.apache.tapestry
b. artifact id: quickstart
c. version: 5.2.4
d. repository: http://repo1.maven.org/maven2
5. Select your created Archetype->Next
6. Project Name->Finish.
7. Wait for the Application to be created. (Processing Archetype)

Wait for the libraries to be downloaded. ^_^

You have a working Tapestry Application... 

Thank Guys GOOD JOB :)
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-Guide-Building-T5-2-4-Application-Using-Netbeans-6-9-1-tp3308754p3308754.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Howard Lewis Ship
With formatting:
http://tapestryjava.blogspot.com/2010/12/announcing-tapestry-52.html

On Thu, Dec 16, 2010 at 2:22 PM, Howard  wrote:

> I'm very proud to announce that the next major release of Tapestry,
> release 5.2, is now available as Tapestry version 5.2.4.
> This is the first stable release of Tapestry since 5.1.0.5 (back in
> April 2009), which is far too long a cycle. You might wonder: what's
> been the holdup? The answer, for myself personally, is that I've been
> using Tapestry on two very, very different applications for two very,
> very different clients and I've been updating Tapestry to embrace the
> real world concerns of both of them. At the same time, I've done about
> a dozen public and private Tapestry training sessions and gathered
> reams of input from my students.
> Let's talk about some of the major enhancements in this release:
> Removal of Page Pooling
> Prior versions of Tapestry used a page pool; for each page, Tapestry
> would track multiple instances of the page, binding one page instance
> to a particular request. This was an important part of Tapestry's
> appeal ... all the issues related to multi-threading were taken over by
> the framework, and you could code your pages and components as simple
> POJOs, without worrying about the threading issues caused by running
> inside a servlet container.
> Unfortunately pages are big: it's not just one object but instead the
> root of a large tree of objects: components and templates, bindings for
> component parameters, component resources, and all the extra
> infrastructure (lists and maps and such) to tie it together. Some of
> the largest Tapestry projects have hit memory problems when they
> combined deeply componentized pages with large numbers of parallel
> threads.
> Tapestry 5.2 rewrites the rules here; only a single page tree is now
> needed for each page; the page and component classes have an extra
> transformation step that moves per-request data out of the objects
> themselves and into a per-thread Map object. Now, any number of
> requests can operate at the same time, without requiring additional
> page instances. Even better, the old page pooling mechanism included
> some locking and blocking that also gets jettisoned in the new
> approach. It's just a big win all around. Live Service Reloading
> People love the ability to change page and component classes in a
> Tapestry application and see the changes immediately; prior to 5.2 the
> same people would be disappointed that they couldn't change their
> services and see changes just as immediately. Tapestry 5.2 eliminates
> that restriction in most cases.
> This is super handy for services such as DAOs (data access objects)
> where it is now possible to tweak a Hibernate query and see the results
> as immediately as changing some content in a template. This is another
> Tapestry feature that you'll find you can't live without once you use
> it the first time! ClassTransformation API Improvements
> At the heart of Tapestry is the Class Transformation API; the
> extensible pipeline that is the basis for how Tapestry transforms
> simple POJOs into working components. Prior to 5.2, if you wanted to do
> any interesting transformations, you had to master the Javassist
> psuedo-Java language.
> Tapestry 5.2 reworks the API; it is now possible to do all kinds of
> interesting transformations in strict Java code; Javassist has been
> walled off, with an eventual goal to eliminate it entirely. Query
> Parameter Support
> Tapestry traditionally has stored information in the HTTP request path.
> For example, a URL might be /viewaccount/12345; the viewaccount part of
> the URL is the name of a page, and the 12345 part is the ID of an
> Account object. Tapestry calls the latter part the page activation
> context (which can contain one or more values).
> That works well when the a page has a fixed set of values for the page
> activation context, but not so well when the values may vary. For
> instance, you may be doing a search and want to store optional query
> parameters to identify the query term or the page number.
> Tapestry 5.2 adds the @ActivationRequestParameter annotation that
> automates the process of gathering such data, encoding into URLs as
> query parameters, and making it available in subsequent requests.
> Testing
> A lot of work has gone into Tapestry's testing support, especially the
> base classes that support integration testing using Selenium. The new
> base classes make it easy to write test cases that work independently,
> or as part of a larger test, automatically starting and stopping
> Selenium and Jetty as appropriate. Further, Tapestry expands on
> Selenium's failure behavior, so that failures result in a capture of
> the page contents as both HTML and a PNG image file. It is simply much
> faster and much easier to write real, useful tests for Tapestry.
> JSR-303 Support
> Tapestry now supports the Bean Validation JSR, converting the standard
> validatio

[Tapestry Central] Announcing Tapestry 5.2

2010-12-16 Thread Howard
I'm very proud to announce that the next major release of Tapestry,
release 5.2, is now available as Tapestry version 5.2.4.
This is the first stable release of Tapestry since 5.1.0.5 (back in
April 2009), which is far too long a cycle. You might wonder: what's
been the holdup? The answer, for myself personally, is that I've been
using Tapestry on two very, very different applications for two very,
very different clients and I've been updating Tapestry to embrace the
real world concerns of both of them. At the same time, I've done about
a dozen public and private Tapestry training sessions and gathered
reams of input from my students.
Let's talk about some of the major enhancements in this release:
Removal of Page Pooling
Prior versions of Tapestry used a page pool; for each page, Tapestry
would track multiple instances of the page, binding one page instance
to a particular request. This was an important part of Tapestry's
appeal ... all the issues related to multi-threading were taken over by
the framework, and you could code your pages and components as simple
POJOs, without worrying about the threading issues caused by running
inside a servlet container.
Unfortunately pages are big: it's not just one object but instead the
root of a large tree of objects: components and templates, bindings for
component parameters, component resources, and all the extra
infrastructure (lists and maps and such) to tie it together. Some of
the largest Tapestry projects have hit memory problems when they
combined deeply componentized pages with large numbers of parallel
threads.
Tapestry 5.2 rewrites the rules here; only a single page tree is now
needed for each page; the page and component classes have an extra
transformation step that moves per-request data out of the objects
themselves and into a per-thread Map object. Now, any number of
requests can operate at the same time, without requiring additional
page instances. Even better, the old page pooling mechanism included
some locking and blocking that also gets jettisoned in the new
approach. It's just a big win all around. Live Service Reloading
People love the ability to change page and component classes in a
Tapestry application and see the changes immediately; prior to 5.2 the
same people would be disappointed that they couldn't change their
services and see changes just as immediately. Tapestry 5.2 eliminates
that restriction in most cases.
This is super handy for services such as DAOs (data access objects)
where it is now possible to tweak a Hibernate query and see the results
as immediately as changing some content in a template. This is another
Tapestry feature that you'll find you can't live without once you use
it the first time! ClassTransformation API Improvements
At the heart of Tapestry is the Class Transformation API; the
extensible pipeline that is the basis for how Tapestry transforms
simple POJOs into working components. Prior to 5.2, if you wanted to do
any interesting transformations, you had to master the Javassist
psuedo-Java language.
Tapestry 5.2 reworks the API; it is now possible to do all kinds of
interesting transformations in strict Java code; Javassist has been
walled off, with an eventual goal to eliminate it entirely. Query
Parameter Support
Tapestry traditionally has stored information in the HTTP request path.
For example, a URL might be /viewaccount/12345; the viewaccount part of
the URL is the name of a page, and the 12345 part is the ID of an
Account object. Tapestry calls the latter part the page activation
context (which can contain one or more values).
That works well when the a page has a fixed set of values for the page
activation context, but not so well when the values may vary. For
instance, you may be doing a search and want to store optional query
parameters to identify the query term or the page number.
Tapestry 5.2 adds the @ActivationRequestParameter annotation that
automates the process of gathering such data, encoding into URLs as
query parameters, and making it available in subsequent requests.
Testing
A lot of work has gone into Tapestry's testing support, especially the
base classes that support integration testing using Selenium. The new
base classes make it easy to write test cases that work independently,
or as part of a larger test, automatically starting and stopping
Selenium and Jetty as appropriate. Further, Tapestry expands on
Selenium's failure behavior, so that failures result in a capture of
the page contents as both HTML and a PNG image file. It is simply much
faster and much easier to write real, useful tests for Tapestry.
JSR-303 Support
Tapestry now supports the Bean Validation JSR, converting the standard
validation annotations into client-side and server-side validations.
Documentation
Tapestry's documentation has always been a challenge; for Tapestry 5.2
we've been doing a massive rework; doing a better job of getting your
started using Tapestry; it's still a work in progress, but since it's
based

Re: Problem for write actionLink with markup writer

2010-12-16 Thread Thiago H. de Paula Figueiredo
On Thu, 16 Dec 2010 14:09:31 -0200, Cucchietti Denis  
 wrote:



Thanks Thiago it's works !!


Yeah!


Solution :
writer.writeRaw("");

But use element() instead writeRaw ;-)


writer.element("a", "class", "delete", "href",  
componentResources.createEventLink("delete", childLevel.getId());

// anything you want to put inside the  element
writer.write("Delete"); // just an example
writer.end(); // closes 

There's no excuse to use writeRaw() here. Using element() frees you from  
using string concatenation or String.format().


By the way, your code generates multiple elements with the same id. That's  
why I've used class instead of id in my example.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



RE: Problem for write actionLink with markup writer

2010-12-16 Thread Cucchietti Denis
Thanks Thiago it's works !!

Solution :

writer.writeRaw("");

But use element() instead writeRaw ;-)

-Message d'origine-
De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Envoyé : jeudi 16 décembre 2010 16:49
À : Tapestry users
Objet : Re: Problem for write actionLink with markup writer

On Thu, 16 Dec 2010 13:39:21 -0200, Cucchietti Denis
 wrote:

> Thanks Thiago,
> Im trying to create a tree and for each node a menu.
> In this menu I have this action "delete" and I would like catch this
> event in order to delete the node from my page.

You need events for that, but not necessarily an EventLink or ActionLink.
Do what I said: generate an URL @Inject'ing ComponentResources and using
its
createEventLink(String eventType, Object... context) method. Pass the
object id as the context. If you use "delete" as your event name, you can
handle the event using a onDelete(int id) method. And just use writeRaw()
if you want to output HTML from other sources. You shoulde use element()
in your scenario instead.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


RE: Problem for write actionLink with markup writer

2010-12-16 Thread Cucchietti Denis
Ok Thiago i will try it, thanks !!

-Message d'origine-
De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Envoyé : jeudi 16 décembre 2010 16:49
À : Tapestry users
Objet : Re: Problem for write actionLink with markup writer

On Thu, 16 Dec 2010 13:39:21 -0200, Cucchietti Denis
 wrote:

> Thanks Thiago,
> Im trying to create a tree and for each node a menu.
> In this menu I have this action "delete" and I would like catch this
> event in order to delete the node from my page.

You need events for that, but not necessarily an EventLink or ActionLink.
Do what I said: generate an URL @Inject'ing ComponentResources and using
its
createEventLink(String eventType, Object... context) method. Pass the
object id as the context. If you use "delete" as your event name, you can
handle the event using a onDelete(int id) method. And just use writeRaw()
if you want to output HTML from other sources. You shoulde use element()
in your scenario instead.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


Re: Problem for write actionLink with markup writer

2010-12-16 Thread Thiago H. de Paula Figueiredo
On Thu, 16 Dec 2010 13:39:21 -0200, Cucchietti Denis  
 wrote:



Thanks Thiago,
Im trying to create a tree and for each node a menu.
In this menu I have this action "delete" and I would like catch this  
event in order to delete the node from my page.


You need events for that, but not necessarily an EventLink or ActionLink.  
Do what I said: generate an URL @Inject'ing ComponentResources and using  
its
createEventLink(String eventType, Object... context) method. Pass the  
object id as the context. If you use "delete" as your event name, you can  
handle the event using a onDelete(int id) method. And just use writeRaw()  
if you want to output HTML from other sources. You shoulde use element()  
in your scenario instead.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Referencing and displaying image asset from Webapp

2010-12-16 Thread Rich M

Thanks Josh and Thiago!

I was able to get something working last night based on Thiago's 
comments. But the code here also seems like it will be useful on other 
pages for me. Good to know about having Asset as a component parameter 
and the use of the AssetSource service to load context assets.


On 12/15/2010 06:13 PM, Josh Canfield wrote:

Ok, found it :)

I made a simple test:

public class image {

 @Parameter(defaultPrefix = "context")
 private Asset url; //<-- Note that it's an Asset, which is what
the Context binding returns.

 void beginRender(MarkupWriter writer) {
 writer.element("img", "src", url);
 writer.end();
 }
}



This works fine.

When you try to do this:


It fails, because this is no longer using the Context binding, it
becomes an AttributeExpansionBinding and thus you get a String. In my
test case I get an exception because there is no coercion from a
String to an Asset. I can't see a way to work around that...

I assume that you want to the asset url
(/assets/1.0-SNAPSHOT/ctx/layout/images/img01.jpg) so here's code that
treats the parameter as a string and grabs the asset url. Of course if
anything is wrong in your database this will result in a
RuntimeException "unable to locate asset"

 @Parameter(defaultPrefix = "literal")
 private String url;

 @Inject
 private AssetSource source;


 void beginRender(MarkupWriter writer) {
 Asset asset = source.getContextAsset(url, Locale.getDefault());

 writer.element("img", "src", asset);
 writer.end();
 }

You may want to just access the file directly. That should work if you
have the path correct since things in webapp are supposed to be
addressable by the url. If you were deploying to the root context you
probably never would have noticed a problem!

Josh

On Wed, Dec 15, 2010 at 2:18 PM, Rich M  wrote:
   

Resending, I think my local links to the files somehow resolved in there...

On 12/15/2010 05:16 PM, Rich M wrote:
 

Sure,

working:



[img  src="/app/assets/ctx/1.0/layout/images/products/filename.png "/]

  $5 - 250 MP
$5 USD!
Redeem


not-working:




[img  src="/layout/images/products/filename.jpg "/]

  $6 - 300 MP
$6 USD!
Earn more MP to buy this product!



I certainly agree the src attribute doesn't come out right between the
two. What your asking for here is probably the best demonstration of what
I've been trying to get at so far.

I can go even further and say that these same src attributes are already
set to those strings in the component. That debug code I have that reads the
imgRef is the same as the working and non-working src attributes
respectively.

What seems to be happening, is that when the call to  is
made in the Page TML, the BindingConstants.CONTEXT parameter is not able to
resolve "/layout/images/products/${prod.imageLink}" properly into the
context path, while it can resolve "/layout/images/products/filename.png".
I'm not completely understanding why, buy all evidence suggests as much to
me.

-Rich

On 12/15/2010 05:06 PM, Josh Canfield wrote:
   

Can you provide the HTML that is rendered for the image tag using
under the working and non-working scenarios? The only thing that makes
sense to me is that you are not generating the same src attribute
using the two methods.

On Wed, Dec 15, 2010 at 1:57 PM, Rich Mwrote:
 

On 12/15/2010 03:29 PM, Thiago H. de Paula Figueiredo wrote:
   

On Wed, 15 Dec 2010 18:25:44 -0200, Rich M
  wrote:

 

That doesn't quite solve it though, how do I get it to know
"yourpicture.jpg"? That's a dynamic String within the system that
changes
throughout the loop. The images themselves are static, but the
filename
string is not.
   



public String getPicture() {

}

 

Right, that was what I started out trying by several means before, as I
mentioned in previous e-mails, but I can't get it to resolve correctly.

example:

xxx.xxx.xx.xx -  -  [15/Dec/2010:21:43:44 +] "GET
/layout/images/products/filename.pngHTTP/1.1" 404 1330
"http://localhost/app/customer/Overview"; "Mozilla/5.0 Firefox/3.6.12"


Comes out as a 404 even though the image certainly exists.

Maybe the code will help? I included both what works and doesn't work.
In
the Page TML the firstis the one that works, using
hardcoded file name. Meanwhile the second instance does not work, even
though ${prod.imageLink} resolves to the same exact String as the
hardcoded
file name.

Page TML:

http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";

  xmlns:p="tapestry:parameter">




${checkIfUseable(prod)}





















Component Code:

public class ContentBubble {

@Inject

private Logger log;


@Property

@Parameter(required = true, defaultPrefix = BindingConstants.LITERAL)

private String title;


@Property

@Parameter(required = true, defaultPrefix = BindingConstants.LITERAL)

private Str

RE: Problem for write actionLink with markup writer

2010-12-16 Thread Cucchietti Denis
Thanks Thiago,

Im trying to create a tree and for each node a menu.

In this menu I have this action "delete" and I would like catch this event in 
order to delete the node from my page.



-Message d'origine-
De : Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com]
Envoyé : jeudi 16 décembre 2010 16:32
À : Tapestry users
Objet : Re: Problem for write actionLink with markup writer

On Thu, 16 Dec 2010 13:05:31 -0200, Cucchietti Denis
 wrote:

> Hi all !

Hi!

> I've a question : it is possible to write an actionLink with a
> MarkupWriter ?

Technically speaking, no, because you can only declare component instances
in templates. In addition, you can't instantiate components yourself for
use in other components or pages.

On the other hand, you can get the URL genarated for an ActionLink or
EventLink @Inject'ing ComponentResources and using it
createEventLink(String eventType, Object... context) method.

> writer.writeRaw(" href='../view.delete/"+childLevel.getId()+"?t:ac="+childLevel.getOrganism().getId()+"'>");

Why are you using writeRaw() instead of element()? Anyway, using hardwired
URLs is a very bad practice.

What you're trying to accomplish?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


Re: Problem for write actionLink with markup writer

2010-12-16 Thread Thiago H. de Paula Figueiredo
On Thu, 16 Dec 2010 13:05:31 -0200, Cucchietti Denis  
 wrote:



Hi all !


Hi!

I've a question : it is possible to write an actionLink with a  
MarkupWriter ?


Technically speaking, no, because you can only declare component instances  
in templates. In addition, you can't instantiate components yourself for  
use in other components or pages.


On the other hand, you can get the URL genarated for an ActionLink or  
EventLink @Inject'ing ComponentResources and using it  
createEventLink(String eventType, Object... context) method.


writer.writeRaw("href='../view.delete/"+childLevel.getId()+"?t:ac="+childLevel.getOrganism().getId()+"'>");


Why are you using writeRaw() instead of element()? Anyway, using hardwired  
URLs is a very bad practice.


What you're trying to accomplish?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Problem for write actionLink with markup writer

2010-12-16 Thread Cucchietti Denis
Hi all !

I've a question : it is possible to write an actionLink with a MarkupWriter ?

I've tried to do :

In my component :

writer.writeRaw("");

But when I click on it's doesn't work, the page respond : 
org.apache.tapestry5.ioc.internal.util.TapestryException: Component 
organism/department/View does not contain an embedded component with id 
'delete'.

Any ideas?

Thanks in advance





Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage 
exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant 
?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra 
?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne 
saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


Re: T5: Javascript problem

2010-12-16 Thread Richard Hill

One use case I have for putting javascript in .tml is to get a function
to execute after a zone update. Due to Tapestry attaching onclick event
handlers to actionlinks (as opposed to using onclick attribute), it's
not that easy afaik to guarantee your own method will get called
afterwards (the DOM standard does not specify in which order attached
events should be fired). So at the bottom of my zone I have a
myFunction(); block.

Seems to work, although is probably a horrible hack and not the right
way to do things... :)

R.



On Thu, 2010-12-16 at 11:45 -0300, Nicolas Barrera wrote:
> Yes, it's true it might not be the fastest or easiest way, but
> I think it's good that Tapestry "forces" you to things the right way.
> 
> Nicolás.-



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
Yes, it's true it might not be the fastest or easiest way, but
I think it's good that Tapestry "forces" you to things the right way.

Nicolás.-


Re: Form Inheritance

2010-12-16 Thread Kado
Oh sorry, finally I found the problem after a day trying. It was a zone 
id problem.


Nevermind.

Thanks!

On 12/16/2010 10:44 AM, Kado wrote:

Hi,

I am working with a form that is used in 3 different places, so I 
tried to create an abstract form and extends from it.

The problem with this is that Is not working the submit now.

Anyone had this problem?


Thanks.

P.S. I am usign Tapestry 5.1

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Form Inheritance

2010-12-16 Thread Kado

Hi,

I am working with a form that is used in 3 different places, so I tried 
to create an abstract form and extends from it.

The problem with this is that Is not working the submit now.

Anyone had this problem?


Thanks.

P.S. I am usign Tapestry 5.1

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
Hi Cameron,

On Thu, Dec 16, 2010 at 8:03 AM, Newham, Cameron wrote:

> > Should I be adding my JavaScript with JavaScriptSupport (and if so,
> > where is documentation or an example? The only mention of JavaScript I
> > can find is in the HOW-TOs which show it being added to the .tml file
> > directly in a script block).
> >
>

I haven't read precisely your mail but I think I can answer that part...

I 've been reading the mailing list for a while and I think adding
javascript blocks is not recommended, instead you should write javascript in
.js files and add them by means of annotations in the Java class.

About t5/js documentation I can tell you about this link I found useful:

http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained

please take into account that annotation's names may vary between version
5.1.x.x and 5.2.x.x... I don't remember quite well about that.

finally you can browse mailing list archives:

http://tapestry.1045711.n5.nabble.com/Tapestry-User-f2375125.html

hope that helps

cheers.

Nicolas.-


RE: T5: Javascript problem

2010-12-16 Thread Newham, Cameron

Thanks Andreas.

Yes, name attribute was the problem. I've changed to using getElementById and 
it's working again.

c.


-Original Message-
From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas 
Andreou
Sent: 16 December 2010 10:12
To: Tapestry users
Subject: Re: T5: Javascript problem

I dont like this way of refering to nodes (  document.entryForm.oosComment )
i'm not sure how many browsers fully support this but it looks like
this can work
when nodes have the name attribute set.

If i remember correctly, T5.1 used to include a name in each form but
this was removed
in 5.2 - see https://issues.apache.org/jira/browse/TAP5-796

So, anyway, see if your nodes have id, and just reference them in that
way using either
document.getElementById or prototype's $$

On Thu, Dec 16, 2010 at 10:51, Newham, Cameron  wrote:
> Hi!
>
>
>
> Another simple question.
>
>
>
> I had an application running under T5.1 and I've now moved to 5.2. I
> notice my Javascript is now broken. I have this function in my .tml
> file:
>
>
>
> 
>
>
>
> function checkOOS(myCheck)
>
> {
>
>   if(myCheck.checked)
>
>   {
>
>      document.entryForm.oosComment.disabled = false;
>
>      document.entryForm.oosComment.focus();
>
>   }
>
>   else
>
>   {
>
>      document.entryForm.oosComment.disabled = true;
>
>   }
>
> }
>
>
>
> 
>
>
>
> Which turns a select on and off by clicking a checkbox via onclick.
> While the JavaScript function is called, it no longer updates the
> disabled attribute of oosComment.
>
>
>
> Should I be adding my JavaScript with JavaScriptSupport (and if so,
> where is documentation or an example? The only mention of JavaScript I
> can find is in the HOW-TOs which show it being added to the .tml file
> directly in a script block).
>
>
>
> Also, why is this now partially non-functioning in 5.2? It seems that
> document.entryForm.oosComment.disabled is incorrect for referring to
> component oosComment. Yet this works fine under 5.1. My Form is called
> "entryForm" and oosComment is inside that. The page hasn't changed since
> it worked under 5.1 but, in that case, it seems I've been doing
> something wrong all along even though it worked.
>
>
>
> c.
>
>
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Advanced Grid

2010-12-16 Thread Taha Hafeez
Hi

Recently I had to a similar requirement. I created a new component, embedded
a grid in it. It took filter block as a parameter.

I extended GridDataSource to include filtering based on a filter object and
this object was the bean for the filter block form

Hope it helps
regards
taha

On Wed, Dec 15, 2010 at 9:39 PM, Michael Gentry wrote:

> I'm not a Grid expert, but I really doubt you can intermix the two.
>
> mrg
>
>
> On Wed, Dec 15, 2010 at 10:09 AM, Wechsung, Wulf 
> wrote:
> > Hello Michael,
> >
> > Great link, thanks a lot! Skimming over the documentation it should be
> possible to integrate this with Grid, perhaps even as a mixin.
> >
> > Kind Regards, Wulf
> >
> > -Ursprüngliche Nachricht-
> > Von: Michael Gentry [mailto:mgen...@masslight.net]
> > Gesendet: Mittwoch, 15. Dezember 2010 15:00
> > An: Tapestry users
> > Betreff: Re: Advanced Grid
> >
> > If using a Grid isn't a requirement, take a look at this
> JavaScript/JQuery
> > table component (there are many examples, but this one does per-column
> > filtering):
> >
> > http://www.datatables.net/examples/api/multi_filter.html
> >
> > mrg
> >
> >
> > On Wed, Dec 15, 2010 at 8:43 AM, Wechsung, Wulf  >wrote:
> >
> >>  Hello Tapestry Users,
> >>
> >> I'm writing to you because I would like to add a filter functionality to
> >> the Grid component. In short, this filter consists of a text field per
> >> column in the header row. Text entered there should filter out all rows
> that
> >> don't match the text. To make clearer what I mean, I've attached a
> >> (hopefully small enough) picture of my current prototype implemented by
> >> giving a header block as param to the Grid component:
> >>
> >>  Functionally, if the user enters i.e. *100* under "Size Header" the
> Grid
> >> should update and contain only the two matching rows.
> >>
> >> My question is this:
> >> Does anyone have any advice on what the smoothest way to add this (and
> >> maybe get the changes back into tapestry later, if my employer allows
> it)
> >> would be? My current plan is to simply copy the current Grid
> implementation
> >> and modify it to support the filter feature, creating a completely new
> >> component. Did I miss something obvious in tapestry that would allow me
> to
> >> this more easily? The route I took with the prototype doesn't get me
> father
> >> as I currently don't see how to supply the grid with these blocks both
> >> dynamically and generically.
> >>
> >> Thanks for the time you took to read this and thanks in advance for any
> >> response you send my way.
> >> Also thanks to HLS and all tapesty developer and testers for making a
> this
> >> framework.
> >>
> >> Kind Regards,
> >> *Wulf Wechsung *
> >>
> >>
> >>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: T5: Javascript problem

2010-12-16 Thread Andreas Andreou
I dont like this way of refering to nodes (  document.entryForm.oosComment )
i'm not sure how many browsers fully support this but it looks like
this can work
when nodes have the name attribute set.

If i remember correctly, T5.1 used to include a name in each form but
this was removed
in 5.2 - see https://issues.apache.org/jira/browse/TAP5-796

So, anyway, see if your nodes have id, and just reference them in that
way using either
document.getElementById or prototype's $$

On Thu, Dec 16, 2010 at 10:51, Newham, Cameron  wrote:
> Hi!
>
>
>
> Another simple question.
>
>
>
> I had an application running under T5.1 and I've now moved to 5.2. I
> notice my Javascript is now broken. I have this function in my .tml
> file:
>
>
>
> 
>
>
>
> function checkOOS(myCheck)
>
> {
>
>   if(myCheck.checked)
>
>   {
>
>      document.entryForm.oosComment.disabled = false;
>
>      document.entryForm.oosComment.focus();
>
>   }
>
>   else
>
>   {
>
>      document.entryForm.oosComment.disabled = true;
>
>   }
>
> }
>
>
>
> 
>
>
>
> Which turns a select on and off by clicking a checkbox via onclick.
> While the JavaScript function is called, it no longer updates the
> disabled attribute of oosComment.
>
>
>
> Should I be adding my JavaScript with JavaScriptSupport (and if so,
> where is documentation or an example? The only mention of JavaScript I
> can find is in the HOW-TOs which show it being added to the .tml file
> directly in a script block).
>
>
>
> Also, why is this now partially non-functioning in 5.2? It seems that
> document.entryForm.oosComment.disabled is incorrect for referring to
> component oosComment. Yet this works fine under 5.1. My Form is called
> "entryForm" and oosComment is inside that. The page hasn't changed since
> it worked under 5.1 but, in that case, it seems I've been doing
> something wrong all along even though it worked.
>
>
>
> c.
>
>
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry PMC / Tacos developer
Open Source / JEE Consulting

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5, jetty, jdbc drivers, class reloading

2010-12-16 Thread Jabbar
Thanks. I'll have a look at this later on.

On 15 December 2010 13:17, Michael Gentry  wrote:

> The Run Jetty Run plugin doesn't include Jetty Plus, so it doesn't
> support JNDI.  I run Jetty through Maven from the command-line (or the
> M2Eclipse plugin) and it works fine.  To use JNDI, you'll need a
> jetty-env.xml file in your WEB-INF similar to:
>
> 
>  "http://jetty.mortbay.org/configure.dtd";>
> 
>/QCsubmit
>
>jdbc/DS
>
> class="org.apache.commons.dbcp.BasicDataSource">
> name="Url">jdbc:mysql://server:3306/database
> name="DriverClassName">com.mysql.jdbc.Driver
>username
>password
>30
>10
>2
>5000
> name="MinEvictableIdleTimeMillis">25000
> name="TimeBetweenEvictionRunsMillis">3
>
>
>
> 
>
> And in your web.xml:
>
> 
>  jdbc/DS
>  javax.sql.DataSource
>  Container
> 
>
> This is for Jetty 6 -- Jetty 7 is a little different.  Change DS_NAME
> and jdbc/DS, plus the connection information.
>
> Some things from the pom.xml you'll want:
>
>
>8484
>6
>6.1.22
>5.1.0.5
>
>
>
>
>commons-dbcp
>commons-dbcp
>1.2.2
>runtime
>
>
>
>org.mortbay.jetty
>jetty-plus
>${jetty.version}
>
>
> and in the  section, I have this plugin defined:
>
>
>
>org.mortbay.jetty
>maven-jetty-plugin
>${jetty.version}
>
>
> implementation="org.mortbay.jetty.nio.SelectChannelConnector">
>${jetty.port}
>
>  ${jetty.max-idle-time}
>
>
>
>
>
>org.mortbay.jetty
>jetty-plus
>${jetty.version}
>
>
>
>
> implementation="org.mortbay.jetty.NCSARequestLog">
>
>true
>
>
>
>
> mrg
>
>
> On Wed, Dec 15, 2010 at 4:32 AM, Jabbar  wrote:
> > Hello all,
> >
> > I want to use JNDI to access my datasource and I also want to make use of
> > tapestry class reloading. I don't know how to notify the maven jetty
> plugin
> > of the JDBC drivers and setup JNDI. Is it any easier to configure the run
> > jetty run eclipse plugin?
> > --
> > Thanks
> >
> >  A Jabbar Azam
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Thanks

 A Jabbar Azam


Re: Tapestry 5, jetty, jdbc drivers, class reloading

2010-12-16 Thread Jabbar
Thanks. I'll try this sometime today.

On 15 December 2010 13:17, Michael Gentry  wrote:

> The Run Jetty Run plugin doesn't include Jetty Plus, so it doesn't
> support JNDI.  I run Jetty through Maven from the command-line (or the
> M2Eclipse plugin) and it works fine.  To use JNDI, you'll need a
> jetty-env.xml file in your WEB-INF similar to:
>
> 
>  "http://jetty.mortbay.org/configure.dtd";>
> 
>/QCsubmit
>
>jdbc/DS
>
> class="org.apache.commons.dbcp.BasicDataSource">
> name="Url">jdbc:mysql://server:3306/database
> name="DriverClassName">com.mysql.jdbc.Driver
>username
>password
>30
>10
>2
>5000
> name="MinEvictableIdleTimeMillis">25000
> name="TimeBetweenEvictionRunsMillis">3
>
>
>
> 
>
> And in your web.xml:
>
> 
>  jdbc/DS
>  javax.sql.DataSource
>  Container
> 
>
> This is for Jetty 6 -- Jetty 7 is a little different.  Change DS_NAME
> and jdbc/DS, plus the connection information.
>
> Some things from the pom.xml you'll want:
>
>
>8484
>6
>6.1.22
>5.1.0.5
>
>
>
>
>commons-dbcp
>commons-dbcp
>1.2.2
>runtime
>
>
>
>org.mortbay.jetty
>jetty-plus
>${jetty.version}
>
>
> and in the  section, I have this plugin defined:
>
>
>
>org.mortbay.jetty
>maven-jetty-plugin
>${jetty.version}
>
>
> implementation="org.mortbay.jetty.nio.SelectChannelConnector">
>${jetty.port}
>
>  ${jetty.max-idle-time}
>
>
>
>
>
>org.mortbay.jetty
>jetty-plus
>${jetty.version}
>
>
>
>
> implementation="org.mortbay.jetty.NCSARequestLog">
>
>true
>
>
>
>
> mrg
>
>
> On Wed, Dec 15, 2010 at 4:32 AM, Jabbar  wrote:
> > Hello all,
> >
> > I want to use JNDI to access my datasource and I also want to make use of
> > tapestry class reloading. I don't know how to notify the maven jetty
> plugin
> > of the JDBC drivers and setup JNDI. Is it any easier to configure the run
> > jetty run eclipse plugin?
> > --
> > Thanks
> >
> >  A Jabbar Azam
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Thanks

 A Jabbar Azam


Re: How i can have multiple components with t:id on the page.

2010-12-16 Thread Taha Hafeez
Hi
Hi

id and t:id are different. t:id is component id for server side tapestry use
and id is for javascript. So you can always use
a single onValueChangeFromEditor() for this use case to handle events from
the editor as t:id of the component for each iteration
in loop is the same.

Hope it helps
regards
Taha

On Thu, Dec 16, 2010 at 10:46 AM, Dmitriy Vsekhvalnov <
dvsekhval...@gmail.com> wrote:

> Hi all,
>  i'm doing grid editing, where each cell is in-place-editor and i'd like to
> use one listener in the page to react to value change (my row & column
> encoded to context),  but tapestry dynamically assigns suffix to id only
> when it's rendered multiple times in Loop.
>
> I need something like:
>
>  
> t:type="InPlaceEditor" value="item.zone" />
>   ..
> t:type="InPlaceEditor" value="item.self" />
>  
>
> any suggestions?
>


Re: Autocomplete mixin - Ajax request path

2010-12-16 Thread Robert Zeigler
You could use the url rewriting functionality introduced in 5.1 (note: the api 
for this changes between 5.1 and 5.2).  It allows you to rewrite incoming urls 
and links within the application.
It's a public api.

Robert

On Dec 16, 2010, at 12/162:06 AM , Inge Solvoll wrote:

> I believe the code that generates the link you're talking about is on line
> 150 of AutoComplete.java in T5.2.4.
> 
> 
> Link link = resources.createEventLink(*EVENT_NAME*);
> 
> 
> By doing a little bit of digging from there, I found that the
> (internal) service LinkSource does the hard work. I'm not the right person
> to say what's possible with internal services. But if it's possible, you
> could do an decoration/override/advice of that service and do some neat
> tricks there.
> 
> This is the beauty of tapestry, you can usually find the source of most
> information within a couple of clicks in eclipse, and the code is most often
> very readable because of the clear separation of concerns between services.
> 
> 
> On Wed, Dec 15, 2010 at 2:53 PM, Michael Bayer
> wrote:
> 
>> Hi there!
>> 
>> I have a tapestry powered site running behind an HTTP-Proxy that hides the
>> glassfish instance from the user.
>> Unfortunately it also hides the web-app context root:
>> 
>> http://doma.in:8080/contextRoot/page becomes http://doma.in/page
>> 
>> This causes a whole lot of problems, most of which I managed to fix (I use
>> an AssetPathConverter for example), but I wasn't able to find a way to
>> change the request path of the autocomplete mixin's ajax requests, the path
>> always contains the context root (but not hostname and port).
>> 
>> Is there a way to change the request path of those ajax requests?
>> 
>> 
>> Tapestry version: 5.2
>> 
>> --
>> Michael Bayer
>> Software Developer
>> 
>> Gameforge Productions GmbH
>> Albert-Nestler-Straße 8
>> D-76131 Karlsruhe
>> 
>> Tel. +49 721 354 808-0
>> Fax  +49 721 354 808-152
>> 
>> michael.ba...@gameforge.de
>> 
>> http://www.gameforge.de
>> 
>> Amtsgericht Mannheim, HRB 701682
>> USt-ID: DE 254 298 652
>> 
>> Geschäftsführer: Alexander Rösner, Christoph Jennen
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Autocomplete mixin - Ajax request path

2010-12-16 Thread Inge Solvoll
I believe the code that generates the link you're talking about is on line
150 of AutoComplete.java in T5.2.4.


Link link = resources.createEventLink(*EVENT_NAME*);


By doing a little bit of digging from there, I found that the
(internal) service LinkSource does the hard work. I'm not the right person
to say what's possible with internal services. But if it's possible, you
could do an decoration/override/advice of that service and do some neat
tricks there.

This is the beauty of tapestry, you can usually find the source of most
information within a couple of clicks in eclipse, and the code is most often
very readable because of the clear separation of concerns between services.


On Wed, Dec 15, 2010 at 2:53 PM, Michael Bayer
wrote:

>  Hi there!
>
> I have a tapestry powered site running behind an HTTP-Proxy that hides the
> glassfish instance from the user.
> Unfortunately it also hides the web-app context root:
>
> http://doma.in:8080/contextRoot/page becomes http://doma.in/page
>
> This causes a whole lot of problems, most of which I managed to fix (I use
> an AssetPathConverter for example), but I wasn't able to find a way to
> change the request path of the autocomplete mixin's ajax requests, the path
> always contains the context root (but not hostname and port).
>
> Is there a way to change the request path of those ajax requests?
>
>
> Tapestry version: 5.2
>
> --
> Michael Bayer
> Software Developer
>
> Gameforge Productions GmbH
> Albert-Nestler-Straße 8
> D-76131 Karlsruhe
>
> Tel. +49 721 354 808-0
> Fax  +49 721 354 808-152
>
> michael.ba...@gameforge.de
>
> http://www.gameforge.de
>
> Amtsgericht Mannheim, HRB 701682
> USt-ID: DE 254 298 652
>
> Geschäftsführer: Alexander Rösner, Christoph Jennen
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>