RE: Components to fry JSF and all other frameworks

2005-05-05 Thread Patrick Casey
For me I'm not interested in a soup to nuts framework. If I was, I'd be running on .net, Websphere, or JBoss. For me at least, I'd rather tapestry were a *smoking good* web gui framework, than a "quite good" full featured framework. In other words I'd like it to be narrowly focused but rea

Re: Components to fry JSF and all other frameworks

2005-05-05 Thread Michael Musson
Personally I am excited about the prospects of HiveMind and Tapestry together. I am relatively new to Tapestry but I work on large systems. Tapestry in its current version is a nice web GUI. However, Tapestry + HiveMind starts to look like a powerful application framework for building big complicat

Re: Intercepting Exceptions in Tapestry Listeners

2005-05-05 Thread Kent Tong
Schulte Marcus bmw.ch> writes: > Still, the way you have to unwrap your exception from the > ApplicationRuntimeException is somewhat unsatisfactory. It's just too tight > coupling to framework-internals. I suppose your user exceptions are checked exceptions? If no, just override the activateExc

Re: Any holes in my Wizard pattern?

2005-05-05 Thread Kent Tong
neovera.com> writes: > My question is -- does anyone see a problem with this? I was just concered > that > the method might not exit until the next page is rendered which I suppose > could > lead to some scalability issues under heavy user load. No. The cycle.activate() method will exit al

Re: Problem with ServletContext.getResource()

2005-05-05 Thread Kent Tong
Henry Chen gmail.com> writes: Try: ServletContext context = cycle.getRequestContext().getServlet().getServletContext(); String somefile = "/abc.zip"; //String outFileName = context.getResource(somfile).getFile(); String outFileName = context.getRealPath(somfile); As you're trying to write to

RE: Components to fry JSF and all other frameworks

2005-05-05 Thread Patrick Casey
Anyway... the point is, like ASP.NET, tapestry provides the framework and inner-workings to create the components; it's up to you to create the dazzling components. .NET does a lot more OOB than tapestry currently does though. Just looking at my .net debugger here, the OOB .NET package includes

Re: Components to fry JSF and all other frameworks

2005-05-05 Thread Mauro Sérgio Silva
Robert Zeigler wrote: Karthik Abram wrote: Checkout componentart.com's product lineup (checkout the demos for the components) - ASP.NET is the real competition. I've said it before and I'll say it again - Tapestry 4.0's focus & direction is, in my opinion wrong. People will use Tapestry if it pr

RE: Components to fry JSF and all other frameworks

2005-05-05 Thread Karthik Abram
I beg to differ - the framework's support for building components is still lacking and the core team would be adding more value by rolling out core components. I'm not saying plug n play layers is a bad idea. Just because something sounds good/technically cool/etc. isn't reason enough to do it. Y

RE: CheckBox Values on FormSubmit

2005-05-05 Thread Karthik Abram
If you have an unknown list of checkboxes, then put a hidden field before the list of checkboxes and bind the value to a list property . This way the right number of checkboxes will be preserved on form post. -Original Message- From: Shalini Seth [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: Components to fry JSF and all other frameworks

2005-05-05 Thread Robert Zeigler
Karthik Abram wrote: > Checkout componentart.com's product lineup (checkout the demos for the > components) - ASP.NET is the real competition. > > I've said it before and I'll say it again - Tapestry 4.0's focus & direction > is, in my opinion wrong. People will use Tapestry if it provides compone

RE: CheckBox Values on FormSubmit

2005-05-05 Thread Patrick Casey
You could do something like: Assign an internal identifier to each checkbox by setting its name property. Look for your internal identifiers during a directlink by manually reading from the servlet e.g. Enumeration en = cycle.getRequestContext().getRequest().getP

RE: CheckBox Values on FormSubmit

2005-05-05 Thread Shalini Seth
Hi Karthik, The checkboxes are rendered based on values from the database. So they do not have a fixed number. Rendering them is not a problem. Since the state changes after render, on formsubmit the server does not know. Shalini -Original Message- From: Karthik Abram [mailto:[EMAIL

Components to fry JSF and all other frameworks

2005-05-05 Thread Karthik Abram
Checkout componentart.com's product lineup (checkout the demos for the components) - ASP.NET is the real competition. I've said it before and I'll say it again - Tapestry 4.0's focus & direction is, in my opinion wrong. People will use Tapestry if it provides components of dizzying complexity and

RE: CheckBox Values on FormSubmit

2005-05-05 Thread Karthik Abram
Hey Shalini, Can you not put the checkboxe's value (Boolean) in an List and use a foreach to render them? If the number of your checkboxes will not change, this is the easiest solution. When the form posts, the boolean values will be set based on the checkbox states. -Original Message

Page recorder for page nn is locked after a commit(), but received a change to property aaa of component nn.

2005-05-05 Thread Pedro Martinez
This is an example in which is possible to reproduce the "lock after commit" problem. It happens when you do a click over the button "Accion 1" and immediately you do another click over de button "Accion 2", What's going on… well Tapestry is trying to resolve the first request when the brows

RE: ValidTextArea

2005-05-05 Thread Denis Souza
Hi Pablo, It doesn't exist in the Tapestry or contrib frameworks, but it's pretty simple to implement one. I created one for an app I'm writing. It's very reusable. I can send it to you if you like. Cheers! Denis -Original Message- From: Pablo Ruggia [mailto:[EMAIL PROTECTED] Sent: quin

CheckBox Values on FormSubmit

2005-05-05 Thread Shalini Seth
Hi, I have a form that renders multiple checkboxes. On FormSubmit I write whatever I have checked to a javascript component. Once that is done I write to the service parameters and the save is called. Is there any other way this can be done? Is there a ideal way of sending the values of checkb

ValidTextArea

2005-05-05 Thread Pablo Ruggia
Does exists a ValidTextArea ? Thanks !!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Components vs Pages?

2005-05-05 Thread Michael Musson
On 5/5/05, Kunal Ashar <[EMAIL PROTECTED]> wrote: > ...if my app requires data to persist or be passed across sessions, would > pages be better suited than components? Pages and Components are View entities. They may need to track some light state, but the sort of data you seem to be describing b

Problem deploying Tapestry webapp in Sun App Server

2005-05-05 Thread Szymon Dembek
Hello, I've already posted this message a few days before, but since I got no reply, I'd like to try once more... Sorry if this occurs to You as spamming... I've been trying to deploy my simple Tapestry app into Sun Java Application Server (version 8 2005Q1), but I've run into some problems. W

RE: Problem with ServletContext.getResource()

2005-05-05 Thread Henry Chen
This doesn't work. Even getResource(contextPath) doesn't work. -Original Message- From: Ivano [mailto:[EMAIL PROTECTED] Sent: Thursday, May 05, 2005 10:33 AM To: Tapestry users Subject: Re: Problem with ServletContext.getResource() Could it be: String somefile = contextPath + File.sep

Re: Components vs Pages?

2005-05-05 Thread Kunal Ashar
Thanks, Reusability is definitely one. Would another be the ability to be self-contained? The difference between reusability and self-contained seems blurred, but I'm looking at it from the point-of-view of data. How easy or difficult (or architecturally correct!) is it to pass (persist) data

[ANN] Customizing contrib:Table

2005-05-05 Thread Andreas Andreou
I've just written down in by blog some thoughts on customizing the contrib:Table component. I would be glad to hear your comments. Andreas Andreou http://andyhot.di.uoa.gr - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread John Anderson
On Thu, 2005-05-05 at 08:11 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > Thanks for your suggestion. I tried that, but the Global class seems to > > be destroyed every time one of the .class files in the app changes. > > But it will not be recreated until an http request h

Re: Problem with ServletContext.getResource()

2005-05-05 Thread Ivano
Could it be: String somefile = contextPath + File.separator + "abc.zip"; or about the same: String somefile = contextPath +"/abc.zip"; Henry Chen wrote: Hi, I want to write to a file. I use the following method: String contextPath = cycle.getRequestContext().getRequest().getContextPath(); Servlet

Re: Components vs Pages?

2005-05-05 Thread Ivano
As far as I know a first discriminator should be reusability: - components should focus on characteristics related to his own features and scope, in this way they can be reused in several contexts (different pages, embedded in other components...) - pages are usually more specific in their

Problem with ServletContext.getResource()

2005-05-05 Thread Henry Chen
Hi, I want to write to a file. I use the following method: String contextPath = cycle.getRequestContext().getRequest().getContextPath(); ServletContext context = cycle.getRequestContext().getServlet().getServletContext(); String somefile = contextPath +"abc.zip"; String outFileName = con

Re: "RenderListener" for both components and pages?

2005-05-05 Thread Vjeran Marcinko
Yeah, I knew that component could implement PageRenderListener, but it woud be triggered in the time when page starts to render, and not when component starts to render. I have 2 problems with using PageRenderListener in components as pre-render "initialization" method : 1. parameters are not set i

Components vs Pages?

2005-05-05 Thread Kunal Ashar
Are there are guidelines or user experiences out there that help users decide when to use pages and when to use components? In my project, I'm trying to find the right reason(s) for developers to develop a page instead of a component or vice versa, instead of arbitrarily selecting one or the ot

Re: "RenderListener" for both components and pages?

2005-05-05 Thread Howard Lewis Ship
Well, PageRenderListener works on both components and pages. In 4.0, there isn't such an explicit "parameters are set" stage; the generated bytecode for connected parameter properties is smarter and more dynamic and there's no reflection (outside of OGNL). You invoke getMyParameter() and it gets

Re: IMarkupWriter newline/auto-indent

2005-05-05 Thread Erik Hatcher
On May 5, 2005, at 2:09 AM, Massimo Lusetti wrote: On 5/4/05, Patrick Casey <[EMAIL PROTECTED]> wrote: You could do something similar to the DOM writers out there though and offer a "prettyprint" flag (false by default) that adds inserts and newlines to make the output more human reada

Re: newbie startup question

2005-05-05 Thread Massimo Lusetti
On 5/5/05, Ivano <[EMAIL PROTECTED]> wrote: > Did you have a glimpse at Trail? > https://trails.dev.java.net/ > It should be well suited to your needs, since you stated you need a > typical db app. Actually this app (and all my apps) are not data driven, of course i use a db back end but my dev m

Re: newbie startup question

2005-05-05 Thread Ivano
Did you have a glimpse at Trail? https://trails.dev.java.net/ It should be well suited to your needs, since you stated you need a typical db app. Massimo Lusetti wrote: I've been lurking on the list for a while now and it's time for me to start porting a real app based on XMLC to Tapestry The app

newbie startup question

2005-05-05 Thread Massimo Lusetti
I've been lurking on the list for a while now and it's time for me to start porting a real app based on XMLC to Tapestry The app is a typical CRUD web app backed up by a typical db, the app use hibernate. My first start was to look for a typical structure and have looked at spindle wizard (as I'm u

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread Kent Tong
John Anderson semiosix.com> writes: > Thanks for your suggestion. I tried that, but the Global class seems to > be destroyed every time one of the .class files in the app changes. But it will not be recreated until an http request hits your app again. --

Re: Hibernate Configuration and SessionFactory startup time

2005-05-05 Thread John Anderson
On Thu, 2005-05-05 at 01:01 +, Kent Tong wrote: > John Anderson semiosix.com> writes: > > > What I don't like is that every time I change something in the .java > > files for the project, I have to wait 8-15 seconds for the restart to > > happen. Which adds up to lots of what when it's part