Re: on the chrome bandwagon

2008-09-02 Thread Jukka Välimaa
This is one bandwagon I've been riding since I read that comic. I've done a brief overview of our app with Chrome, and mostly dojo tags seem to be working perfectly. Div, button and tree, listen- and notifytopics work just the same as in Firefox. There's one view with tabbedpanel where content from

on the chrome bandwagon

2008-09-02 Thread Jeromy Evans
I don't often jump on bandwagon's and I'm not really an early-adopter, but I think many struts users would appreciate the chrome comic strip: http://www.google.com/googlebooks/chrome/ javascript hidden class transitions... mmm... i like that To put this on topic, has any one tested the str

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks so much for those replys I got much clear about the URL patterns I could use with the plugin. Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> But there is still a question. >> >> With the namespace we have to place the parameter like prefix... >> eg. http://example.org/nam

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: But there is still a question. With the namespace we have to place the parameter like prefix... eg. http://example.org/namespace/page/1/posts to call postsController index() method. It seems it cannot handle urls like http://example.org/namespace/posts/page/1 The follow one is

Re: Struts 2 Buttons

2008-09-02 Thread dynamicd
I am not sure if this is some thing you looking for SOME table here or some fields Cancel I like using anchors.. you can use submit as well. important things here are the formId which shud be the same as in the form tag showloadingText =false by default its true and there is a problem in IE

RE: Dynamic form fields with s:div and ajax

2008-09-02 Thread Martin Gainty
from what I've heard an Action cannot return the same identical result more than one time since you want to create Action Classes on the fly I would suggest a workaround is to use a plugin which can create Action classes for you org.springframework.web.struts.ContextLoaderPlugInmatt tested it ou

Re: Struts 2 Buttons

2008-09-02 Thread Roger
On Tuesday 02 September 2008 21:11:00 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > Is it possible to define a button ( in such a > > way that, instead of of calling a method in the action > > defined in the tag, it calls a completely different > > action.method. Is it possible to jus

Re: Dynamic form fields with s:div and ajax

2008-09-02 Thread Kropp, Henning
Hello Gainty, thanks for your reply and effort! I do specify the href as />. Sorry I left that out. This calls the AddObjectAction, which populates the List of objects in the prepare method. This works greate! But I simply cant target the div with the action in the div. In your doc you use a

RE: Dynamic form fields with s:div and ajax

2008-09-02 Thread Martin Gainty
from doc located at http://www.roseindia.net/struts/struts2/struts2uitags/div.shtml you would either need to specify where the href value is coming from OR use the supplied value from property Output: Firstname : for results returned from action class pop

Dynamic form fields with s:div and ajax

2008-09-02 Thread Kropp, Henning
Hello, I am trying a common scenario, where I want to dynamically create form fields and either add or remove some fields. The fields are a List of objects. I using the following approach described in short: AddObjectAction: List myObjectList; prepare(){if == null (3x) add ... el

Struts 2 Buttons

2008-09-02 Thread Roger
Is it possible to define a button ( in such a way that, instead of of calling a method in the action defined in the tag, it calls a completely different action.method. Is it possible to just add a button that calls an action on the jsp. Alternatively, I know I can style a link to look like a b

Re: Struts 2 Buttons

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > Is it possible to define a button ( in such a > way that, instead of of calling a method in the action > defined in the tag, it calls a completely different > action.method. Is it possible to just add a button that > calls an action on the jsp. http://struts

RE: Struts 2 & Hibernate Examples?

2008-09-02 Thread Deepak Kumar
Hi Please check http://www.roseindia.net/hibernate http://www.roseindia.net/struts/struts2 Thanks -Original Message- From: Hardik Shah [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2008 3:33 PM To: user@struts.apache.org Subject: Re: Struts 2 & Hibernate Examples? you can ge

Re: How to use Tag? thx

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Mead Lai wrote: > the Action has a ModelData:userList > > private List userList; > for (int i = 0; i < 3; i++) { > user.setUserId(i + "i");// userId (useless comments) > user.setEmail(i + "@user.com"); // email > userList.add(user); > } > > my tag in jsp i

How to use Tag? thx

2008-09-02 Thread Mead Lai
the Action has a ModelData:userList private List userList; for(int i=0;i<3;i++){ user.setUserId(i+"i"); //userId user.setEmail(i+"@user.com"); //email userList.add(user); } my tag in jsp is showed following: -

RE: Include menu action with sitemesh

2008-09-02 Thread David Loup
Got it. Works way better with theme="ajax" in the s:div tag... -Original Message- From: David Loup Sent: 02 September 2008 14:22 To: Struts Users Mailing List Subject: RE: Include menu action with sitemesh Yup, firebug doesn't report any errors. When looking at the Net tab, it shows the

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Ashlon wrote: > http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html > for Model 2 The original poster wasn't asking for a tutorial on MVC, but for ModelDriven, an XWork interceptor/interface. Dave -

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Ashlon
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html for Model 2 also this http://struts.sourceforge.net/community/1st.html has other links for Java technologies newton.dave wrote: > > --- On Tue, 9/2/08, Ashlon wrote: >> I haven't completed this tutorial but this one loo

Re: [S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-02 Thread Ylva Degerfeldt
Hello again! This is kind of embarassing... It was a stupid spelling error (a "...list" instead of a "...List"). I seem to have been blind. (Due to stress probably.) I'm Sorry, Dave and everyone else for taking up your time. All the best to you. /Ylva --

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > I'm only using this stack as it's the out-of-the-box default. > Should I be using something else? I think the default stack is... defaultStack. You chose to define your default stack as paramsPrepareParams. I'd only use paramsPrepareParams if you need what it

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 16:33:35 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > The parameter "name" in the test case exists in the model > > (TestQuotation) but not in the action (TestAction) and > > Struts2 bleats in the Tomcat logs. It's definitely being > > set in the model > >

Re: Some Idea On REST mapping

2008-09-02 Thread Musachy Barroso
> >> > > I thought the RestActionMapper was already a copy of the RoR convention? I > think it already matches all your mappings except "new" is called "editNew". > I'm no expert though. > > You are right. "new" cannot be used for a method name, hence "editNew". musachy -- "Hey you! Would you h

Re: [S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-02 Thread Gabriel Belingueres
I'm just guessing here but consider the following: Is there any chance that you are being disabling the hidden field using javascript? (disabled form fields will not be submitted.) How many forms are in your page? (when you submit one form, other form's fields are not submitted.) 2008/9/2, Ylva

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
But there is still a question. With the namespace we have to place the parameter like prefix... eg. http://example.org/namespace/page/1/posts to call postsController index() method. It seems it cannot handle urls like http://example.org/namespace/posts/page/1 The follow one is more easily to ac

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Ashlon wrote: > I haven't completed this tutorial but this one looks > like a good one > > http://www.java-tips.org/java-tutorials/tutorials/ I don't see anything about Struts 2 there, let alone ModelDriven. Could you provide a direct link to the relevant tutorial? Dave --

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > The parameter "name" in the test case exists in the model > (TestQuotation) but not in the action (TestAction) and > Struts2 bleats in the Tomcat logs. It's definitely being > set in the model Like I said, it can be ignored, and the link I provided seems to in

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: Thanks Jeromy... There is not any document about this one.. So i missed that feature... Yeah, the NamedVariablePatternMatcher is only documented within messages in struts-user so far. I quite like it, although messing with the namespace introduces other complications a

Re: Dynamic include of a CSS stylesheet

2008-09-02 Thread Jeromy Evans
Alexander Baetz wrote: Hi, ok, this is not really a struts question but we came to it while creating tiles pages. it might be that i'm thinking wrong. scenario: in writing a tiles template. there i want to include an external stylesheet x. when an action (domain/namespace/myAction.action) is

RE: Include menu action with sitemesh

2008-09-02 Thread David Loup
Yup, firebug doesn't report any errors. When looking at the Net tab, it shows the page fetching my JS files, but not hitting the menu.action, though. My head tag looks like: -Original Message- From: Wes Wannemacher [mailto:[EMAIL PROTECTED] Sent: 02 September 2008 13:55 To:

Re: Some Idea On REST mapping

2008-09-02 Thread Ryan Wong
Thanks Jeromy... There is not any document about this one.. So i missed that feature... Jeromy Evans - Blue Sky Minds wrote: > > Ryan Wong wrote: >> I have changed the rest action mapper class to apply Ruby Style . >> there is draft, post here to find a better way to build RESTful app with >

Re: Model Driven Tutorial/Howto Here is one

2008-09-02 Thread Ashlon
I haven't completed this tutorial but this one looks like a good one http://www.java-tips.org/java-tutorials/tutorials/ Roger Varley wrote: > > Can anyone point me to a tutorial/howto on how to use Model Driven. I've > been > experimenting and I've verified that the parameters on the model

Re: [S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-02 Thread Ylva Degerfeldt
Thanks for your response, Dave. I'm sorry about the long mail but I really thought all of that was relevant stuff. The problem itself though is (like the subject says) that the hidden value "state" doesn't get submitted to the Action, but other hidden values (like the String "id" value and the int

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 15:42:53 Dave Newton wrote: > --- On Tue, 9/2/08, Roger wrote: > > Here is a stripped down version that shows the error > > message appearing in the Tomcat logs. > > Do you mean if you submit addressLine1 on a model that doesn't have that > property? Yeah, that'll log a

Re: [S2] One hidden value doesn't get submitted (another one does). Why?

2008-09-02 Thread Jim Kiley
Ylva, You will probably get better results from the list if you can isolate your problem precisely and describe it more succinctly. jk On Mon, Sep 1, 2008 at 1:32 PM, Ylva Degerfeldt <[EMAIL PROTECTED]>wrote: > Hi, > > My current problem is about a hidden value which isn't saved to the Action.

Re: Some Idea On REST mapping

2008-09-02 Thread Jeromy Evans
Ryan Wong wrote: I have changed the rest action mapper class to apply Ruby Style . there is draft, post here to find a better way to build RESTful app with struts2 I thought the RestActionMapper was already a copy of the RoR convention? I think it already matches all your mappings except

Re: [S2] REST Plugin + Validation

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, alvins wrote: > However the problem is that when validation fails - I need > an input result which is specific for each method. As Jeremy said you'll probably have to do something with a custom workflow; probably the easiest solution. I had a similar problem eons ago with wild

Re: Include menu action with sitemesh

2008-09-02 Thread Wes Wannemacher
You're right, tag look like? Have you tried loading up in Firebug? -Wes On Tue, Sep 2, 2008 at 7:54 AM, David Loup <[EMAIL PROTECTED]> wrote: > Hi Wes, > > Thanks for your reply. > > Am using Struts 2.0.11, so I tried: > > > > > Since I think sx tags only work with the Dojo plugin in Struts 2.

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Dave Newton
--- On Tue, 9/2/08, Roger wrote: > Here is a stripped down version that shows the error > message appearing in the Tomcat logs. Do you mean if you submit addressLine1 on a model that doesn't have that property? Yeah, that'll log an ERROR. If you don't care that you're sending a parameter you kno

Re: [S2] RestfulActionMappers and Namespace

2008-09-02 Thread Jeromy Evans
alvins wrote: I've added comments to the REST plugin wiki - not sure if these want to get filed as Jira's? Alvin I think that's worth raising as an issue. I don't understand why this happens. Thanks for reporting it!

Re: [S2] REST Plugin + Validation

2008-09-02 Thread Jeromy Evans
alvins wrote: Hmm I might just have to do that. I am guessing alot of people will run into this issue with the REST plugin - might be an idea to get some annotation into conventions or rest plugin (not sure where it would go) to allow for method specific result for validation failure? How do thes

Does Struts 1.3.x supports PUT and DELETE methods of HTTP

2008-09-02 Thread Kamlesh123
Hi, I want to know that whether Struts 1.3.x or any lower version of Struts support HTTP PUT, DELETE and HEAD methods. I need to use them to develop a REST based application. Regards, Kamlesh -- View this message in context: http://www.nabble.com/Does-Struts-1.3.x-supports-PUT-and-DELETE-meth

RE: Include menu action with sitemesh

2008-09-02 Thread David Loup
Hi Wes, Thanks for your reply. Am using Struts 2.0.11, so I tried: Since I think sx tags only work with the Dojo plugin in Struts 2.1. However, I'm not getting any error (Java or JS), but the DIV remains desperately empty. Any idea? -Original Message- From: Wes Wannemacher [mailt

Re: [S2] REST Plugin + Validation

2008-09-02 Thread alvins
Hmm I might just have to do that. I am guessing alot of people will run into this issue with the REST plugin - might be an idea to get some annotation into conventions or rest plugin (not sure where it would go) to allow for method specific result for validation failure? How do these things get pr

Re: [S2] RestfulActionMappers and Namespace

2008-09-02 Thread alvins
I've added comments to the REST plugin wiki - not sure if these want to get filed as Jira's? Alvin -- View this message in context: http://www.nabble.com/-S2--RestfulActionMappers-and-Namespace-tp10090004p19268677.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: REST Showcase 2.1.2

2008-09-02 Thread Jeromy Evans
Al Sutton wrote: Scott, Annotations serve a very useful purpose, and unless you're using a JRE less than version 5 they're worth the effort. Similar thoughts here. I found using validation annotations within actions and XML validation for models (visitor validation) was a good compromise.

Re: [S2] REST Plugin + Validation

2008-09-02 Thread Jeromy Evans
alvins wrote: Thanks for the response Jeromy. I am actually already using that setting actually - I have two sets of different validations - one on the create method and one on the update method. However the problem is that when validation fails - I need an input result which is specific for eac

Re: [S2] REST Plugin + Validation

2008-09-02 Thread alvins
Thanks for the response Jeromy. I am actually already using that setting actually - I have two sets of different validations - one on the create method and one on the update method. However the problem is that when validation fails - I need an input result which is specific for each method. I hop

Re: help required to install struts 1.2 plugin for eclipse 3.2

2008-09-02 Thread Hardik Shah
hi i am not well experienced ,but still i want to say my idea, why you require struts plugin for eclipse i never used that,there is a strtus-blank.war,like starter of any project you can just import it as war and start project infact i have created my own struts-sitemesh-yui-hibernate integratio

RE: Base64 & Newlines

2008-09-02 Thread Gundersen, Richard
Thanks Antonio That worked a treat (actually the method I need was the discardWhitespace method, which isn't public). But that gave me enough of a hint to implement my own method, and now it all works. Cheers Richard Gundersen Java Developer Email: [EMAIL PROTECTED] Phone: 01618302398 Fax: 01

Re: Struts 2 & Hibernate Examples?

2008-09-02 Thread Hardik Shah
you can get war of s2-h3 from http://www.learntechnology.net/content/struts2/struts2_hibernate.jsp another my blog from now http://hardik4u.wordpress.com/category/j2ee/ hope this will help - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View thi

Re: ServletActionRedirectResult and request params

2008-09-02 Thread Lukasz Lenart
> This is old, known behavior. Does it still work? > > (What do the Javadocs have to do with this?) > > See JIRA issues [1,2]. > > Dave > > [1] https://issues.apache.org/struts/browse/WW-1714 > [2] https://issues.apache.org/struts/browse/WW-2600 I've prepared some simple example and it's working a

Re: Base64 & Newlines

2008-09-02 Thread Antonio Petrelli
2008/9/2 Gundersen, Richard <[EMAIL PROTECTED]>: > It's a base64-encoded string, so I thought I'd be able to just pass it > through as a request parameter, but I found out it contains newline > chars every 64 characters (which I read is correct), so any JavaScript I > write etc gets all messed up b

Base64 & Newlines

2008-09-02 Thread Gundersen, Richard
Hi I'm stuggling a bit with a parameter I need to pass through to a JSP in a frame. It's a base64-encoded string, so I thought I'd be able to just pass it through as a request parameter, but I found out it contains newline chars every 64 characters (which I read is correct), so any JavaScript I

Re: Model Driven Tutorial/Howto

2008-09-02 Thread Roger
On Tuesday 02 September 2008 00:08:40 Dave Newton wrote: > --- On Mon, 9/1/08, Roger wrote: > > One of the (many) messages I'm seeing is; > > 02-Sep-2008 00:03:39 > > com.opensymphony.xwork2.interceptor.ParametersInterceptor > > setParameters > > SEVERE: ParametersInterceptor - [setParameters]: Un

Re: Using iterator tag to retrieve list from session

2008-09-02 Thread Lukasz Lenart
> Thanks guys, that did it. Lukasz, I will look into hibernate. In your > email about hibernate, what did you mean by 'use Database'? I am currently Read these list from DB on each request (if you will use Hibernate, it will be cached), don't store it in the session, but you have to consider th