wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've got this problem : first page validate an userId selection (required) When this rules failes on page 2 or 3 (let's consider the user has used a bookmark), I'd like struts

Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
To be honest, I'm not sure exactly what the Struts framework is using to manage the file uploads. I simply create a FormFile member in my ActionForm and it gets populated correctly with the uploaded file data. Is this a parameter I can configure within Struts? Is there a feasible replacement

Re: Problem validating multipart form data

2005-11-03 Thread Collin VanDyck
Niall, Thanks for the reply. This certainly helps (at least, helps me believe that I'm not doing something egregiously wrong in my webapp :). Collin Niall Pemberton wrote: Parameters parsed from the Multipart request are stored in the MulitpartRequestWrapper. However before Struts

(Possible OT) Question using struts-layout TagLib

2005-11-03 Thread Martin Gainty
Greetings I am seeking a Grid control with column headings which when clicked will re-sort the individual items according to the clicked column sort algorithm I am presently looking at struts-layout Grid control and was wondering if anyone has experience with sorting characteristics of the

RE: [OT] Question using struts-layout TagLib

2005-11-03 Thread DGraham
Have you looked at DisplayTag? http://displaytag.sourceforge.net -Dennis Martin Gainty [EMAIL PROTECTED] 11/03/2005 08:37 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject (Possible OT) Question using

Re: [OT] Question using struts-layout TagLib

2005-11-03 Thread Martin Gainty
This is Fantastic Thanks Dennis! Martin- 617-852-7822 - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, November 03, 2005 8:50 AM Subject: RE: [OT] Question using struts-layout TagLib Have you looked at DisplayTag?

RE: wizard-style form and validator

2005-11-03 Thread bsimonin
Here is one way I did it using LookDispatchAction I am sure there are other ways to do this also: in my next section of the LookupDispatchAction I put: public class AddPSLUserWizardAction extends LookupDispatchAction { public ActionForward next(ActionMapping mapping, ActionForm form,

struts-action-intermediate page

2005-11-03 Thread sudip shrestha
Is it possible to display an intermediate page while struts action is doing work...e.g. uploading a large file to a ftp serverand at the end of the action will show the verfication/success page as usual.

struts-validator.tld question

2005-11-03 Thread Jim Reynolds
I want to try and use some client-side validation on a project. I have used the server-side quite a bit in the past. Anyway, I found an example of how this would work, and the first thing it shows is a taglib include like so: '[EMAIL PROTECTED] uri=/tags/struts-validator prefix=validator %'

Re: struts-action-intermediate page

2005-11-03 Thread gramani
sudip shrestha [EMAIL PROTECTED] wrote on 11/03/2005 09:49:18 AM: Is it possible to display an intermediate page while struts action is doing work...e.g. uploading a large file to a ftp serverand at the end of the action will show the verfication/success page as usual. -- Here you

Re: wizard-style form and validator

2005-11-03 Thread Michael Jouravlev
On 11/3/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've got this problem : first page validate an userId selection (required) When this rules failes on page 2 or 3 (let's

Re: wizard-style form and validator

2005-11-03 Thread Nicolas De Loof
I'll have a look, thansk for the link. Thanks also to bsimonin for code suggestion. Michael Jouravlev a écrit : On 11/3/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm building a wizard style webapp with 3 pages. I'm using the page attribute to make validator check inputs. I've

Shale timeline

2005-11-03 Thread Bernhard Slominski
Hi, does anyone know when the first release 1.0 of struts shale is expected? Are there any other milestone dates like alpha, beta versions? Thanks Bernhard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] Question using struts-layout TagLib

2005-11-03 Thread Christian Bollmeyer
Or eXtremeTable (www.extremecomponents.org), which is what we use in our current project. -- Ch. Martin Gainty schrieb: This is Fantastic Thanks Dennis! Martin- 617-852-7822 - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent:

Re: Validator 1.2.0 RC3 now available for review

2005-11-03 Thread Niall Pemberton
On 11/3/05, David G. Friedman [EMAIL PROTECTED] wrote: Niall, Some of those listed extensions are long awaited. :) Regards, David Great, if you get a chance to try it out, any feedback would be much appreciated. Niall -

[OT] Calendar/date control?

2005-11-03 Thread Scott Vickery
Hello, First off, a quick introduction. I am new to Struts. Actually, I have just now gotten back to Java and web programming after a long (and unfortunate) absence. I do have a fair amount of experience in both, so, am not too concerned about picking it back up. But, I do have a fair amount

[FORMDEF] Combining FormDef and Struts form definitions - 2

2005-11-03 Thread Michael Jouravlev
Started a new thread, so it were visible in GMail. On 11/2/05, Hubert Rabago [EMAIL PROTECTED] wrote: On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote: If it were possible to use form definitions made in struts-config.xml, then you would not have to reimplement this property in

Commons Validator or Struts Validator?

2005-11-03 Thread Jim Reynolds
I am a bit confused between the commons validator and the struts validator. I am trying to incorporate javascript:validations within some JSP files, and I am having a hard time deciding what to configure. I found a struts-validtor.tld, but it appears old, and when I search google for struts

Re: Commons Validator or Struts Validator?

2005-11-03 Thread Rafael Nami
Just for the record, I've tried to search about Validator in Struts docs yesterday, and it wasn't finding the page(405 error), but today is working fine. The link is http://struts.apache.org/struts-doc-1.2.x/userGuide/dev_validator.html. Best Regards Rafael Mauricio Nami 2005/11/3, Jim Reynolds

Re: [FORMDEF] Combining FormDef and Struts form definitions - 2

2005-11-03 Thread Hubert Rabago
On 11/3/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Started a new thread, so it were visible in GMail. That was the idea. If FormDef could somehow pull my definitions from struts-config.xml or, which is much better, from configured Java objects, I would not have to redefine the properties

RE: Commons Validator or Struts Validator?

2005-11-03 Thread bsimonin
WellI am not a Struts expert yetbut according the book Struts The Complete Reference Chapter 6 on page 91 a guy named David Winterfeldt created the Validator framework as a third party add-on to Struts. Validator was later integrated into the core Struts code base and has since been

Re: Shale timeline

2005-11-03 Thread Craig McClanahan
On 11/3/05, Bernhard Slominski [EMAIL PROTECTED] wrote: Hi, does anyone know when the first release 1.0 of struts shale is expected? Are there any other milestone dates like alpha, beta versions? As far as I'm concerned, the feature work I wanted to see for a 1.0.0release is complete --

Wiki dies from time to time

2005-11-03 Thread Michael Jouravlev
Or almost dies. Slow server? Low bandwidth? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Shale timeline

2005-11-03 Thread Bernhard Slominski
Hi Craig, thanks a lot for the answer, that's really helpful! Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 3. November 2005 17:57 As far as I'm concerned, the feature work I wanted to see for a 1.0.0release is complete You don't want to come up with a specific

struts download action

2005-11-03 Thread sudip shrestha
I have a struts action that downloads binary files from the database: e.g.: /actions/download.do?fileId=xxx, etc So, whenever users download any type of file with any id, the name of the file displayed on any browser is download.do, is it possible to set something in the response, so that I

Re: struts download action

2005-11-03 Thread Xavier Vanderstukken
sudip shrestha wrote: I have a struts action that downloads binary files from the database: e.g.: /actions/download.do?fileId=xxx, etc So, whenever users download any type of file with any id, the name of the file displayed on any browser is download.do, is it possible to set something in

Re: struts download action

2005-11-03 Thread Collin VanDyck
You'll want to do set a header in your response like this: response.setHeader(Content-Disposition,attachment; filename=+fileName); HTH Collin sudip shrestha wrote: I have a struts action that downloads binary files from the database: e.g.: /actions/download.do?fileId=xxx, etc So,

Re: [OT] Question using struts-layout TagLib

2005-11-03 Thread Michael Jouravlev
On 11/3/05, Christian Bollmeyer [EMAIL PROTECTED] wrote: Or eXtremeTable (www.extremecomponents.org), which is what we use in our current project. Home page is not shown if Javascript is turned off. Not even a message. In the online samples each page has unique URL, so after going three pages

Re: Commons Validator or Struts Validator?

2005-11-03 Thread Laurie Harper
The web site was recently reorganised and Google's still catching up with its indexes. Glad you found the page you needed. For the record, 'Commons Validator' is the general-purpose validation framework andd 'Struts Validator' is the component in Struts that wraps Commons Validator. The docs

jsp reload the same page

2005-11-03 Thread fea jabi
In my jsp there is a table with some contents. there is a delete and restore buttons at bottom. using LookupDispatchAction I am checking which action to perform and doing so. But after performing the Action it gets forwarded to the same JSP. according to what I had written i.e from

Re: [OT] Question using struts-layout TagLib

2005-11-03 Thread Christian Bollmeyer
Michael Jouravlev schrieb: On 11/3/05, Christian Bollmeyer [EMAIL PROTECTED] wrote: Or eXtremeTable (www.extremecomponents.org), which is what we use in our current project. Home page is not shown if Javascript is turned off. Not even a message. Yep. Wasn't so earlier, but according to

Re: jsp reload the same page

2005-11-03 Thread Michael Jouravlev
On 11/3/05, fea jabi [EMAIL PROTECTED] wrote: In my jsp there is a table with some contents. there is a delete and restore buttons at bottom. using LookupDispatchAction I am checking which action to perform and doing so. But after performing the Action it gets forwarded to the same JSP.

[shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Craig McClanahan
As part of my JavaOne session on Shale, I demo'd the fact that Clay lets you have two different views of the page: Designer view: http://localhost:8080/myapp/login.html Developer view: http://localhost:8080/myapp/login.faces To demonstrate that Clay was actually parsing the HTML template, in

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Dan Turkenkopf
Beyond the drama of the demo, I would definitely like to see Clay work the way you suggest. If the CSS styles are picked up from the span tag, then I can maintain the separation between UI designer and developer. If the style needs to be specified in the clay-config.html, then I need to have my

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Ryan Wynn
I believe that currently if the html attribute is not also an attribute on the underlying component, then the html attribute will be treated as a symbol. So, in this case if userNameMessage is actually a h:message, then span jsfid=usernameMessage class=errors styleClass=errors username error

Re: struts-action-intermediate page

2005-11-03 Thread sudip shrestha
I use struts dispatch actionwonder if this 'parameter' parameter will affect my method 'parameter' On 11/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: sudip shrestha [EMAIL PROTECTED] wrote on 11/03/2005 09:49:18 AM: Is it possible to display an intermediate page while struts

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Ryan Wynn
Or better yet you could put set name=styleClass value=@class/ in the attributes of the baseHtml component of clay and then it would be picked up by all the descendants. On 11/3/05, Ryan Wynn [EMAIL PROTECTED] wrote: I believe that currently if the html attribute is not also an attribute on

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Gary VanMatre
As part of my JavaOne session on Shale, I demo'd the fact that Clay lets you have two different views of the page: Designer view: http://localhost:8080/myapp/login.html Developer view: http://localhost:8080/myapp/login.faces To demonstrate that Clay was actually parsing the HTML template, in

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Craig McClanahan
On 11/3/05, Ryan Wynn [EMAIL PROTECTED] wrote: Or better yet you could put set name=styleClass value=@class/ in the attributes of the baseHtml component of clay and then it would be picked up by all the descendants. That makes sense to me ... all the JSF standarfd components (and I suspect

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Gary VanMatre
Ah, Ryan beat me to the answer. Figures, symbols was his idea anyway. ---BeginMessage--- I believe that currently if the html attribute is not also an attribute on the underlying component, then the html attribute will be treated as a symbol. So, in this case if userNameMessage is actually a

Re: java.util.Date in Action Form Bean

2005-11-03 Thread Yujun Liang
Hubert, Good morning! ( Since I am sending it from Australia.) I am reading the document on formDef, it is such a nice plugin so why don't you incorporate it into Struts? It will make project much productive. Question for you, Property type global converters Property type global converters

Re: java.util.Date in Action Form Bean

2005-11-03 Thread Hubert Rabago
On 11/3/05, Yujun Liang [EMAIL PROTECTED] wrote: Hubert, Good morning! ( Since I am sending it from Australia.) Good morning! How can I convert an input from user to the Date field base on the Locale? I mean the locale is a varible during the session and conversion can handle multiple

Urgent help needed : Printing Jasper Reports

2005-11-03 Thread Meenakshi Singh
hi all, I have to print a report(which I have created using jasper report). I m setting the content type as response.setContentType(application/octet-stream); then writing the jasper print object on the servlet output stream object. however when I try to execute this, it gives me a dialog box