T5: Hibernate and services

2008-10-14 Thread Angelo Chen
Hi, I have some tapestry-hibernate related questions: 1) if I have two concurrent services(A and B), each has Session injected. do A and B have their own transaction? 2) I have a table config that has a field 'nextID': 2.1 IDService has a method 'NextID()' which get the value from 'nextI

Re: Tapestry 5 Integration with Spring Web Flow 2?

2008-10-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Oct 2008 20:51:10 -0300, John Jimmy Dondapati <[EMAIL PROTECTED]> escreveu: I am sorry if this has already been asked but is there anyway to integrate Spring Web Flow 2.x with Tapestry 5.x? Nabble has a very good archive of this mailing list: http://www.nabble.com/Tapestry---Us

Re: Tapestry 5.0.15 DateField localization problem [patch included]

2008-10-14 Thread Mikaël Cluseau
Well I still had stability problems under IE (surprise!) so I tried to fix the thing in Tapestry itself. AFAIK, it work flowlessly. Comments welcome ;) Index: /home/nwrk/workspaces/isi/hatch/tapestry-core-svn/src/main/java/org/apache/tapestry5/corelib/components/DateField.java ==

Tapestry 5 Integration with Spring Web Flow 2?

2008-10-14 Thread John Jimmy Dondapati
I am sorry if this has already been asked but is there anyway to integrate Spring Web Flow 2.x with Tapestry 5.x? Reasons : 1. I like the way SWF organizes the flow outside the code. 2. please add your own reasons. -- Cheers, John

Re: shows only one top level element

2008-10-14 Thread Howard Lewis Ship
It's meant for components, not pages. It should probably complain louder that the output document has multiple top level elements. On Tue, Oct 14, 2008 at 4:05 PM, Dude.Checkitout <[EMAIL PROTECTED]> wrote: > > According to the http://tapestry.apache.org/tapestry5/guide/templates.html > page ele

shows only one top level element

2008-10-14 Thread Dude.Checkitout
According to the http://tapestry.apache.org/tapestry5/guide/templates.html page element is used for displaying multiple top level components. I tried the following code in my tml file: http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> First Div! Second Div! Third

Re: TransformationException running tutorial

2008-10-14 Thread D Dart
Here's the answer in case somebody stumbles across this thread with the same issue: The web.xml file needed to be updated - org.apache.tapestry.TapestryFilter needed to be changed to org.apache.tapestry5.TapestryFilter Thiago H. de Paula Figueiredo wrote: > > Em Tue, 14 Oct 2008 13:56:04 -0300,

Re: TransformationException running tutorial

2008-10-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Oct 2008 13:56:04 -0300, D Dart <[EMAIL PROTECTED]> escreveu: Discovered that the WEB-INF/lib directory had 5.0.10 jars in it (new to eclipse too), so I removed those and added the 5.0.15 jars, restarted eclipse and fixed a few import paths, etc. Trying to run the app in Tomcat pro

Re: TransformationException running tutorial

2008-10-14 Thread D Dart
Discovered that the WEB-INF/lib directory had 5.0.10 jars in it (new to eclipse too), so I removed those and added the 5.0.15 jars, restarted eclipse and fixed a few import paths, etc. Trying to run the app in Tomcat produces this error, "The requested resource () is not available." I'm hoping t

Re: T5 Override 404 Page

2008-10-14 Thread Tobias Wehrum
Maybe this, for example? http://www.nabble.com/t5%3A-a-default-page-for-non-exist-path-tp18980767p18980767.html - Tobias Ulrich Stärk schrieb: There has been some discussions about this in the past. I can't give you a link without searching myself so I suggest you search nabble or markmail for

Re: T5 Override 404 Page

2008-10-14 Thread Ulrich Stärk
There has been some discussions about this in the past. I can't give you a link without searching myself so I suggest you search nabble or markmail for 404 and/or index. Uli Am Di, 14.10.2008, 17:22, schrieb Mike Leonardo: > Hey, > > Thanks for the responses, I've given this a go and I am having

Re: T5 Override 404 Page

2008-10-14 Thread Mike Leonardo
Hey, Thanks for the responses, I've given this a go and I am having a bit of trouble. When I add the: 404 /error404.jsp to the web.xml and restart - my application will still redirect all fake urls to my Index page. I'm running Jetty. Any thoughts? - Mike Leonardo - Original Mess

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-14 Thread Howard Lewis Ship
Or just: @Inject private Request request; hashHex = request.getParameter("hashHex"); On Tue, Oct 14, 2008 at 3:33 AM, Argo Vilberg <[EMAIL PROTECTED]> wrote: > Hidden field example : > > > > value="hashHex"/> > > And in tapestry > > @Inject > private RequestGlobals requestGlobals; > > h

Re: T5 Override 404 Page

2008-10-14 Thread Ulrich Stärk
Ahh OK, that's because I am using an Index page instead of Start. If I'm not mistaken, than the error page you see should be the ErrorReport page in o.a.t.corelib.pages. You can override that with your own one. An example is in the wiki. There are also some alternatives to handle 404s, search the

Re: T5 Override 404 Page

2008-10-14 Thread Peter Stavrinides
Adding a small article to the wiki for this may be a good idea since this question pops up from time to time: Add a directive like this to your web.xml: 404 /error404.jsp One thing to remember is that a 404 page overrides the servers error page so is outside of your application conte

Re: T5 Override 404 Page

2008-10-14 Thread Ulrich Stärk
I don't know which 404 page you are seeing. If I want to navigate to a non-existing page I just get the Index page... Uli Am Di, 14.10.2008, 16:37, schrieb Mike Leonardo: > Hello, > > I'm looking to override the 404 page with my own custom one. I've scanned > around the wiki how-to pages and can'

T5 Override 404 Page

2008-10-14 Thread Mike Leonardo
Hello, I'm looking to override the 404 page with my own custom one. I've scanned around the wiki how-to pages and can't find much. Can anyone point me to any resources or documentation that would help? Thanks! - Mike Leonardo ---

Re: Ajax Response in IE with HTML Entities (4.1.6)

2008-10-14 Thread lt
For those interested in getting around IE async updates (via updateComponents) this is what worked for me. Again the issue was html entities getting passed that were not allowed by IE's dom parser when parsing the async request xml. (& reg; or & raquo; for example). I had to extend the DojoAjaxR

Re: Grid component and available rows number

2008-10-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 14 Oct 2008 04:50:50 -0300, shymon <[EMAIL PROTECTED]> escreveu: As I mentioned in my first post, search engine which I use doesn't have suchmethods. The only one I have is Query({query_params}) which returns given portion of results and the total number of results. I can perform Quer

Re: hidden input field, TAPESTRY5

2008-10-14 Thread Jack Nuzbit
i just use Jack

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-14 Thread Ulrich Stärk
Shouldn't it be getControlName() for the name attribute? From the apidocs: "Returns the value used as the name attribute of the rendered element. [...]" Uli Am Di, 14.10.2008, 13:36, schrieb Geoff Callender: > A Hidden component will be in the next release of T5. > > https://issues.apache.o

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-14 Thread Geoff Callender
A Hidden component will be in the next release of T5. https://issues.apache.org/jira/browse/TAP5-265 In the meantime, JumpStart has one. You can see it in use (without any need for RequestGlobals) in http://202.177.217.122:8080/jumpstart/examples/input/edit2/1 Here's the co

Re: hidden input field, TAPESTRY5

2008-10-14 Thread Argo Vilberg
This tapestry5-components include 17mb jars. And finally i spent 2 hours to make tapestry5-components work, but no success. http://localhost/myapp shows me there is no such application, if i copy tapestry5 jar into my lib catalog. And much better solution for hidden field is use ANY component:

Re: [ANN] JumpStart 3.16 has arrived!

2008-10-14 Thread Argo Vilberg
Hidden field example : And in tapestry @Inject private RequestGlobals requestGlobals; hashHex = requestGlobals.getHTTPServletRequest().getParameter("hashHex"); Are there any better solution? Argo 2008/10/13, Geoff Callender <[EMAIL PROTECTED]>: > > Hi all, > > JumpStart 3.1

Re: T5 communication with applet

2008-10-14 Thread Argo Vilberg
Applet declaration: classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="400" height="80" codebase=" http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab#Version=1,4,2,0";> http://java.sun.com/products/plugin/index.html#download"; java_code="SignApplet.class" java_archive="Si

Re: T5 communication with applet

2008-10-14 Thread wesley
hi there, any super simple short samples? thanks wesley Argo Vilberg wrote: > > I use java applet that calls javascript method and after that javascript > calls tapestry actions. > > Argo > > > 2008/10/14, wesley <[EMAIL PROTECTED]>: >> >> >> hi all, >> >> is it possible that T5 page's rec

Re: Grid component and available rows number

2008-10-14 Thread Andy Huhn
Hi Shymon, The way I handle this is this: I use a DAO that I wrote as the source for my Grid. In a @BeginRender method on the page, I initialize the criteria in the DAO. Then, when the Grid calls prepare(), the DAO retrieves all matching rows from Hibernate (you could retrieve from XML-RPC), an

Re: [T5] How Add and Image to Grid Column Label.

2008-10-14 Thread Geoff Callender
Can anyone tell me if Penyihir's technique for adding a Delete column to Grid still works? Please note this is not the same as editing a flag in the source entity - this is different - it's editing a column that we've added to the model. On 10/12/2007, at 7:08 PM, Penyihir Kecil wrote:

Re: T5 communication with applet

2008-10-14 Thread Argo Vilberg
I use java applet that calls javascript method and after that javascript calls tapestry actions. Argo 2008/10/14, wesley <[EMAIL PROTECTED]>: > > > hi all, > > is it possible that T5 page's receive event from applet, eg. a click of a > button in applet will send an event to T5's page method. and

T5 communication with applet

2008-10-14 Thread wesley
hi all, is it possible that T5 page's receive event from applet, eg. a click of a button in applet will send an event to T5's page method. and passing parameter/object to applet? regards wesley -- View this message in context: http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006

Re: Grid component and available rows number

2008-10-14 Thread shymon
Andy Huhn-3 wrote: > > Hi Shymon, > > If you don't want the pager to show up at all on the grid component, you > can set > > pagerPosition="none" > > on the grid. This might prevent the row count from being generated at > all. > > Andy > > Uhmmm... you are kidding, right? :) Dou you

Re: Grid component and available rows number

2008-10-14 Thread Andy Huhn
Hi Shymon, If you don't want the pager to show up at all on the grid component, you can set pagerPosition="none" on the grid. This might prevent the row count from being generated at all. Andy On Tue, 2008-10-14 at 00:50 -0700, shymon wrote: > > > Renat Zubairov wrote: > > > > Hello > >

Re: Grid component and available rows number

2008-10-14 Thread shymon
Renat Zubairov wrote: > > Hello > > You may have a look on the implementation of the GridDataSource for > Hibernate > > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry5/hibernate/HibernateGridDataSource.java?view=markup > > BR > Rena

Re: ActionLink in component

2008-10-14 Thread moritzgilsdorf
The event handler method is in a class called CellHTSUpload.java and the actionlink in the corresponding CellHTSUpload.tml. CellHTSUpload.java looks like this: public class CellHTSUpload { private UploadedFile descript; private UploadedFile topTable; @Persist private Experiment