Re: Grids embedded in custom component interfer with each other

2010-12-15 Thread sprabhu
-- View this message in context: http://tapestry-users.832.n2.nabble.com/Grids-embedded-in-custom-component-interfer-with-each-other-tp5376183p5838045.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To

Autocomplete mixin - Ajax request path

2010-12-15 Thread Michael Bayer
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 ma

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

2010-12-15 Thread Dmitriy Vsekhvalnov
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:

Re: tapestry4 forward error randomly

2010-12-15 Thread asianCoolz
can advice how to fix this? it only happen like once/twice a month. or can guide how to troubleshoot this one - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Josh Canfield
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); w

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Dec 2010 20:16:03 -0200, Rich M wrote: working: Have you noticed that the working URL has '/app' and the non-working doesn't? I guess you should include the context in the URL unless your application is running as the root one. -- Thiago H. de Paula Figueiredo Independent Ja

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
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/fil

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
Sure, working: http://puck.moremagic.com:8080/mloyalty/assets/ctx/1.0/layout/images/products/topupfnf-android.png>"/> $5 - 250 MP $5 USD! http://puck.moremagic.com:8080/mloyalty/cai/index.pagelinker/RedeemTab?t:ac=5>"> Redeem not-working: http://puck.moremagic.com:8080/layout/im

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Josh Canfield
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 M wrote: > On 12/15/2010 03:29 PM

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
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 s

Re: How to create a custom component

2010-12-15 Thread hese
That one letter made a big difference...it worked! Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3307001.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: How to create a custom component

2010-12-15 Thread Robert Zeigler
Apologies... that tapestry_5_2_0.xsd should be tapestry_5_1_0.xsd. Robert On Dec 15, 2010, at 12/153:01 PM , hese wrote: > > I tried creating a custom component as you have mentioned...The problem is > the select box is not appearing on the page. Only the label 'Test:' I > created for it appea

Re: How to create a custom component

2010-12-15 Thread hese
I tried creating a custom component as you have mentioned...The problem is the select box is not appearing on the page. Only the label 'Test:' I created for it appears. Where am I going wrong? This my tml http://tapestry.apache.org/schema/tapestry_5_2_0.xsd";> Test: JA

Re: Things in a loop go null

2010-12-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Dec 2010 18:31:27 -0200, Tom van Dijk wrote: Alright, I suppose can add a context. But I find that it's not only the "Product" that's null, but also stuff like zones. Remember that everything is lost from one request (the one that render the page) to another (the one that handle

Re: Things in a loop go null

2010-12-15 Thread Tom van Dijk
Alright, I suppose can add a context. But I find that it's not only the "Product" that's null, but also stuff like zones. What I have, is a component inside a loop. Now within the component, I have a zone that I want to update as follows: zone="overviewOfStuff"> ... Because it's in a lo

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Thiago H. de Paula Figueiredo
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 g

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
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. On 12/15/2010 01:16 PM, Thiago H. de Paula Figueiredo wrote: On Wed, 15

Tapestry 5.2.4 and TSS 3.0.0 - AccessDeniedHandler not found

2010-12-15 Thread Tobias Marx
Has anyone managed to get Tapestry-Spring-Security http://www.localhost.nu/java/mvn-snapshot/nu/localhost/tapestry/tapestry-spring-security/3.0.0-SNAPSHOT/tapestry-spring-security-3.0.0-20101124.214847-2.jar to work with Tapestry 5.2.4 ? Also in the sample project: http://www.localhost.nu/sv

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Dec 2010 16:03:19 -0200, Rich M wrote: Hi, Hi! I'm sorry I don't completely understand what you are asking here. The images are static and sit within the webapp context. Then you can refer to them without Tapestry expressions at all, just an -- Thiago H. de Paula Figueire

Re: How to create a custom component

2010-12-15 Thread hese
Thanks for the quick response Robert! Looks pretty simple (probably because you've explained it well). Wil try one of those! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-create-a-custom-component-tp3306682p3306714.html Sent from the Tapestry - User mailing li

Re: Referencing and displaying image asset from Webapp

2010-12-15 Thread Rich M
Hi, I'm sorry I don't completely understand what you are asking here. The images are static and sit within the webapp context. The component that writes the image tag provides the context image name to the src parameter of the img tag. It seems that when I fill in the context image name param

Re: How to create a custom component

2010-12-15 Thread Robert Zeigler
Hi, If you know how to build pages, then you (largely) know how to build components. A page is just a specialized component. Here are the main differences: * Components go in the .components package (instead of .pages) * Component templates are optional because a component may choose to do a

How to create a custom component

2010-12-15 Thread hese
Hi, Can any one tell me where I can find a T5 example of how to build a custom component and what the different files I should create are? My need is - I have a select box that populates from a database (Something like a country list...). And I want to be able to include this select box in any

Re: Advanced Grid

2010-12-15 Thread Michael Gentry
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

Re: @Transactional needed in tapestry-hibernate?

2010-12-15 Thread Michal Gruca
for sake of backward compatibility imho @commitAfter should not be modified to work as @Transactional. Additional annotation is safer choice. Regards Michał Gruca -- View this message in context: http://tapestry-users.832.n2.nabble.com/Transactional-needed-in-tapestry-hibernate-tp5826487p583811

Setting locale based on domain

2010-12-15 Thread Kai Weber
Hi all, since version 5.1 the ComponentEventLinkEncoder determines and sets the locale for the current thread. In version 5.0 this was the job of a RequestFilter. We used a solution like the one in the wiki[1] to set the locale based on other request criteria. The RequestFilter still works for n

AW: Advanced Grid

2010-12-15 Thread Wechsung, Wulf
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

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

2010-12-15 Thread LLTYK
This is for jetty 7. Jetty 6 has different package names, different plugin names, etc. A chore to switch between the two but much of the syntax is the same. org.mortbay.jetty jetty-maven-plugin 7.2.0.v20101020

Re: Advanced Grid

2010-12-15 Thread Michael Gentry
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 Us

Autocomplete mixin - Ajax request path

2010-12-15 Thread Michael Bayer
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 ma

RE: [T5.2.4] Why does BaseURLSource use getLocalPort() rather than getServerPort() ? A bug?

2010-12-15 Thread Blower, Andy
This is more serious than I first thought, and was only introduced in T5.2.4 which is why it's not been caught before. Also it does not affect single server environments, so most people will not have noticed this. I think this must be fixed before the release of T5.2 > -Original Message

Advanced Grid

2010-12-15 Thread Wechsung, Wulf
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

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

2010-12-15 Thread Michael Gentry
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";>

Re: tapestry4 forward error randomly

2010-12-15 Thread Andreas Andreou
looks like infinite redirects/forwards On Wed, Dec 15, 2010 at 11:37, asianCoolz wrote: > anyone can decrypt below error and explain what cause this error? > > http://paste.ideaslabs.com/show/jrscSzhcW > > > - > To unsubscribe, e

Re: Things in a loop go null

2010-12-15 Thread Igor Drobiazko
Because the product set inside the loop is lost, when the user clicks on the ActionLink. You need to provide a context for your ActionLink in order to restore the state. On Wed, Dec 15, 2010 at 1:13 PM, Tom van Dijk wrote: > Hi, > > In an application, I'm making an editor for products in a group

[T5.2.4] Why does BaseURLSource use getLocalPort() rather than getServerPort() ? A bug?

2010-12-15 Thread Blower, Andy
Line 31 of BaseURLSourceImpl: int port = request.getLocalPort(); Which calls same method in the underlying ServletRequest. getLocalPort javadoc: "Returns the Internet Protocol (IP) port number of the interface on which the request was received." getServerPort javadoc: "Returns the port

Things in a loop go null

2010-12-15 Thread Tom van Dijk
Hi, In an application, I'm making an editor for products in a group and my client wants everything in one page. So, there are product groups, with products in each group and every product has a number of subproperties, and so on (4 levels deep). So what I get is a loop inside a loop inside a

Re: @Transactional needed in tapestry-hibernate?

2010-12-15 Thread Tom van Dijk
Modifying CommitAfter in that way isn't too hard, but what should happen if an exception is thrown? e.g. enter A change things 1 enter B change things 2 exit B change things 3 throw exception what should be committed? Op 11-12-2010 21:04, Howard Lewis Ship schreef: At the very least, I've bee

tapestry4 forward error randomly

2010-12-15 Thread asianCoolz
anyone can decrypt below error and explain what cause this error? http://paste.ideaslabs.com/show/jrscSzhcW - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apa

Tapestry 5, jetty, jdbc drivers, class reloading

2010-12-15 Thread Jabbar
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