Modalbox Integration Example

2011-03-21 Thread Taha Hafeez
Hi I recently required some modal window in my application and found this http://okonet.ru/projects/modalbox/index.html So, I thought of integrating it with tapestry and it was so easy. Here is the code import java.util.List; import org.apache.tapestry5.BindingConstants; import org.apache.tap

Re: Customizing the Layout Component

2011-03-21 Thread Barry Books
If you have a Blue/Red that inherit from BasePage I'd use a Layout Environmental. Since you have a BasePage you can create the Environmental in your BasePage class. The Red/Blue pages should be able to set the color property and then the layout component can retrieve it. That way only those 4 c

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Rich M
Thanks for the replies so far, they have been helpful. I will be looking into both the application server's maintenance of the /tmp folder - where it does seem Jetty is unpacking the WAR - as well as the memory usage of the application and optimizations for that. The production version is froz

Re: google bot caches pages results in component not found errors

2011-03-21 Thread anton.litvinenko
Thanks! Filed as https://issues.apache.org/jira/browse/TAP5-1481 https://issues.apache.org/jira/browse/TAP5-1481 -- View this message in context: http://tapestry-users.832.n2.nabble.com/google-bot-caches-pages-results-in-component-not-found-errors-tp6191675p6193820.html Sent from the Tapestry U

Re: Customizing the Layout Component

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Mar 2011 15:22:30 -0300, stephanos2k wrote: Thanks for the quick response! Hm, I didn't know that this would break the class hierarchy. It doesn't. I understand the issue like this (hope it works in HTML/Mail): Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java <

Re: Customizing the Layout Component

2011-03-21 Thread stephanos2k
Thanks for the quick response! Hm, I didn't know that this would break the class hierarchy. I understand the issue like this (hope it works in HTML/Mail): Layout.tml > Page.tml --> Result <-- Page.java < BasePageRed.java < BasePage.java [read P]

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Thiago H. de Paula Figueiredo
Using 5.2.4 will help, as the memory consumption is lowered by not using a page pool anymore. On Mon, 21 Mar 2011 14:51:01 -0300, Kalle Korhonen wrote: I can confirm I've seen similar behavior on Jetty. It's linked to heap space running out and in my case it was directly related to sendin

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Kalle Korhonen
I can confirm I've seen similar behavior on Jetty. It's linked to heap space running out and in my case it was directly related to sending huge amounts gzipped form data. See related Jetty issue at http://jira.codehaus.org/browse/JETTY-1167 and my comments there. Apparently Jetty in some cases shut

Re: Customizing the Layout Component

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Mar 2011 14:27:35 -0300, stephanos2k wrote: In my Layout I'd like to distinguish between 2 states (let's just say red or blue). Those are known/set by each page individually - it inherits from BasePageRed or BasePageBlue (which go back to BasePage where the parameter Col is d

Re: [newbie] I cannot export my tapestry app

2011-03-21 Thread Nikola Milikic
Hi, Thank Nikola, it works .. I use "mvn package" command on my suse terminal > n it makes war file on target project :D That's great! because on my eclipse it just looks ->Run As->Run On Server | Java Applet | > bla bla .. > there's no Maven package menu.. indeed I ever install maven plugin fo

Customizing the Layout Component

2011-03-21 Thread stephanos2k
In my Layout I'd like to distinguish between 2 states (let's just say red or blue). Those are known/set by each page individually - it inherits from BasePageRed or BasePageBlue (which go back to BasePage where the parameter Col is defined). How do I 'get' the parameter value from the BasePage (cl

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Cezary Biernacki
Hi, on Linux or other Unix-like system, one possibility is that Jetty unpacked your WAR to /tmp and tmpwatch or something similar removed some not recently used files. Cezary On Mon, Mar 21, 2011 at 4:21 PM, Rich M wrote: > Hi, > > I've been running a production version of a tapestry applicati

Re: 5.1 : Available pages downgrade

2011-03-21 Thread Howard Lewis Ship
This is a troubling mystery, and doesn't sound familiar at all. On Mon, Mar 21, 2011 at 8:21 AM, Rich M wrote: > Hi, > > I've been running a production version of a tapestry application for a > couple months now. Just the other day it was reported to me that the > application was no longer resolv

5.1 : Available pages downgrade

2011-03-21 Thread Rich M
Hi, I've been running a production version of a tapestry application for a couple months now. Just the other day it was reported to me that the application was no longer resolving pages normally, but instead displaying a directory view from the root context. Restarting the application solved

Re: Select dropdown in grid

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 Mar 2011 10:26:09 -0300, nquirynen wrote: Any ideas on how I can get the value of the select component in the actionlink its event? Or maybe an idea on how to achieve what I want to do in another way? See the last example in http://tapestry.apache.org/current/tapestry-core/ref/or

Select dropdown in grid

2011-03-21 Thread nquirynen
I have a grid where i can choose which row i want to edit. When chosen a row it renders the row with a select in one of the columns instead of the objects value. This select contains all possible values for this property. After choosing an option you can click a actionlink in the row to save this r

Re: google bot caches pages results in component not found errors

2011-03-21 Thread Thiago H. de Paula Figueiredo
Hi! Please file a JIRA about it. That's a very good idea. :) On Mon, 21 Mar 2011 07:07:37 -0300, anton.litvinenko wrote: Hey! I have an app (devpulse.com) in Tapestry 5.1 which was indexed by Google bot. Some pages got cached and google uses this cached version to post requests. Recently,

Re: How to implement nested components?

2011-03-21 Thread Thiago H. de Paula Figueiredo
On Sun, 20 Mar 2011 22:50:20 -0300, leon wrote: Thanks a lot, I will try it, I looks Tapestry's component's relationship is build by component class rather than component template. Wrong. It's defined by template. Using @InjectComponent or getEmbeddedComponent() is just a way of getting th

google bot caches pages results in component not found errors

2011-03-21 Thread anton.litvinenko
Hey! I have an app (devpulse.com) in Tapestry 5.1 which was indexed by Google bot. Some pages got cached and google uses this cached version to post requests. Recently, we have renamed one of the components and now all those requests containing the old name/id of the component result in errors on

Re: T5.1 and Tynamo Security: override a Shiro Filter

2011-03-21 Thread anton.litvinenko
Damn, I only now find out that I have replies to my question. Kalle, I have an app that sometimes (depending on some conf init parameter) should use the typical login "inapp" sequence (tapestry login page and out of the box tapestry-shiro integration) but at other times the authentication should b