Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Thomas Ramapuram
We do this quite often. We have a method which goes through the array and inserts the elements as new dom input objects of type hidden and name the name of the element in the form bean with an array index. eg. do this for all the properties for each element in your array and you will have th

Re: Requests from a Struts Newbie

2007-05-15 Thread Kenton
Wow, thanks! My apologies, I should have figured that out before posting. But it works great! Thanks! Nabble is great as well. I couldn't be happier. Wendy Smoak-3 wrote: > > No, that's XWork 2 code, right where it should be. > Wendy Smoak-3 wrote: > > That's easy... Nabble! Here's the use

RE: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Jason Wyatt
Thanks Martin, Yes, I have been using Jason -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, 16 May 2007 11:02 AM To: Struts Users Mailing List Subject: Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page? while constructing your for

Re: Action View wiring

2007-05-15 Thread Mansour
Mansour wrote: I found it. I'll post it just in case someone needs it. I used "%{id}" instead of "${id}" and EL expression is evaluated immediately on the first load. I don't know why. I 'd love to hear explanation form someone. But it's working after all. OK I am closer. I just put this:

Re: [S2] Suggest a good tutorial?

2007-05-15 Thread Zoran Avtarovski
I just finished reading Struts2 from Square One by Ted Husted. It's not too bad as a starting document. It's still in draft form but worth the read if you're starting out. Once you get going, Laurie's right, you'll find the Wiki to be the best source of info. Z. > Can anyone suggest a good websi

Re: Action View wiring

2007-05-15 Thread Mansour
OK I am closer. I just put this: But, it works only sometimes. I notices that the values are set in the html only after I refresh the page ! Any one knows what going on ?? Mansour wrote: I have this little problem. Basically I am trying to iterate through a list and dispaly the results i

Action View wiring

2007-05-15 Thread Mansour
I have this little problem. Basically I am trying to iterate through a list and dispaly the results in a column using tableTag: This is giving me the expected results and things are ok. When I click

Interceptor execution

2007-05-15 Thread Ray Clough
I've got a large S1 app into which I'm putting S2 features - starting with a LoginInterceptor, because the S1 security-implementation was NG. The S2 mapping in web.xml is to the url "/*", which I figured would catch all requests, both from S1 actions and from S2 actions. The S1 Action servlet is

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Martin Gainty
while constructing your form *presumably* with html:form be sure to specify method= attribute here is the 1.x Taglib doc http://struts.apache.org/1.x/struts-taglib/tlddoc/html/form.html the 2.x Taglib doc http://struts.apache.org/2.x/docs/form.html HTH/ M-- This email message and any files tran

RE: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Jason Wyatt
Hi Marco, I tried using the code template you gave, but couldn't get it to do a *form submit* to the action... It just seems to just do a GET without form parameters. Does it do a form submit for you? Sorry, I mightn't have been clear... I wanted to *submit a form* inside a tab to that tab's Acti

Re: Struts and Tiles

2007-05-15 Thread Martin Gainty
create the layout http://www.allapplabs.com/tiles/create_a_tile_layout.htm and then assembling your page with pre-defined layouts ? http://www.allapplabs.com/tiles/tiles_layouts.htm#classic M-- This email message and any files transmitted with it contain confidential information intended only fo

[s2] Roller's Struts 2 migration notes

2007-05-15 Thread Don Brown
Apache Roller [1], the popular blogging software, is currently in the process of migrating from Struts 1 to Struts 2. The guy doing the migration has been kind enough to write up some thoughts on the migration that may be of use to anyone else considering or in the process of such a migration: h

Re: Struts and Tiles

2007-05-15 Thread Dave Newton
--- David Miller <[EMAIL PROTECTED]> wrote: > I'd like to be able to insert *portions* of another > page using tiles. I don't know how you would be able to do that. Why wouldn't you create the "portion" as a separate page and insert that tile into both pages? d. __

Struts and Tiles

2007-05-15 Thread David Miller
Greetings, I'm using tiles for the first time and am a little confused about what I should be able to do. I'd like to be able to insert *portions* of another page using tiles. For example, in the middle of a gigantic jsp I want to insert a small chunk of code that exists in a different jsp - a

Re: CheckBox and sitemesh

2007-05-15 Thread Mansour
Mansour wrote: For some reason, it is working I don't know why ! Anyway, I can't complain. Hello everyone: I just got sitemesh to work fine, but it's creating a "sitemess" when I use checkBox in my web page. Is this a sitemesh issue or struts? This happens on any page that uses checkbox ! Any

CheckBox and sitemesh

2007-05-15 Thread Mansour
Hello everyone: I just got sitemesh to work fine, but it's creating a "sitemess" when I use checkBox in my web page. Is this a sitemesh issue or struts? This happens on any page that uses checkbox ! Any one encoutered this or familiar with the solution ? I am getting an exception: *descrip

Re: [S2] Suggest a good tutorial?

2007-05-15 Thread Laurie Harper
Isaac Good wrote: Can anyone suggest a good website/tutorial to start off with? I need to work out all the tags and what-not. All of the Struts2 documentation is collected here: http://struts.apache.org/2.x/ That page has a links on the left hand side named 'Getting Started' and 'Tutorial

Re: Struts 1.2 and JSF

2007-05-15 Thread Laurie Harper
RathinaGanesh : Vancouver is beautiful !! wrote: Greetings: I was wondering, if I can combine struts 1.2 and jsf together..? I was trying to use the Ajax4jsf (Exadel's RichFaces)..It seems, this component needs JSF... Did any one use this this with Struts 1.2 before..?? Well, the JSF dependenc

Re: [S2] Understanding RestfulActionMapper and Restful2ActionMapper

2007-05-15 Thread Laurie Harper
I haven't used the restful mappers at all, so I'm just guessing, but it may be that you need to use prefix mapping instead of suffix mapping in web.xml. Either way, if you are going to use suffix mapping, the suffix would always be the last thing in the URL (not including any query part that

Re: [s2] Can someone with permissions update the wiki

2007-05-15 Thread Laurie Harper
Hmm, the struts.apache.org/2.x/docs site is a static export of the cwiki, so I wouldn't expect the link there to be pointing to the wiki at all. I do see the same thing when I follow the steps you outlined, though, so there's definitely something awry. Could you file this as an issue in Jira,

Re: How to set attribute of

2007-05-15 Thread Laurie Harper
red phoenix wrote: I read document from struts2 and I know has label,name,cssStyle,cssClass,so I use as follows: I want to set label "Your First Name" as red color and font size is 6,but when I execute above code,I found label "Your First Name" is still black color and not red color and its s

Re: java.util.List in FormBean

2007-05-15 Thread Laurie Harper
zuban wrote: Hi, in a FromBean I have a java.util.List (to populate a ). If I submit the form the List is set to null. For String datatypes I would use hidden input fields to solve this. But what should I do by a List? You can either reload the list each time the action is invoked or, if you r

Re: [S2]Dynamic List dissappears when validation fails

2007-05-15 Thread Laurie Harper
You didn't include your struts.xml action mappings so I'm guessing, but from the behaviour you describe it sounds like the 'input' result is pointing directly to a JSP, rather than to an action that knows how to do the data pre-fetch. L. Struts2 Fan wrote: Ok :) I will try to be more specific

Re: [s2] datetimepicker - how to preserve original value

2007-05-15 Thread Jon Wilmoth
I probably should've included the jsp/action code in the original post. MyAction { public Date getMyDate() {...} public void setMyDate(Date value) {...} ... } The problem is that the action's date property value isn't preserved. I did try but the same thing happens. - Origi

Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Frank W. Zammetti
You seem to be mixing server-side and client-side concepts... if I understand you correctly, you have a Javascript array ON THE CLIENT that you want to populate in the form bean ON THE SERVER. If that's not correct, could you explain it further? If that is correct, you need to pass the array back

Re: Problem with text encoding..

2007-05-15 Thread ஆமாச்சு
On Sunday 13 May 2007 19:04, Christopher Schultz wrote: > Did you make sure that ApplicationResource.properties was saved in > ISO-8859-1 encoding with your Tamil characters written in Unicode > escapes like \u1234? If you have bare Tamil characters in your file it > will not work. You must use the

[S2] Suggest a good tutorial?

2007-05-15 Thread Isaac Good
Can anyone suggest a good website/tutorial to start off with? I need to work out all the tags and what-not. Thanks! - This transmission (including any attachments) may contain confidential information, privileged material (i

Re: [s2] datetimepicker - how to preserve original value

2007-05-15 Thread Musachy Barroso
This problem is related to this: https://issues.apache.org/struts/browse/WW-1923 from 2.1 the "value", "startDate" and "endDate" will be evaluated as object, so we can support Calendar and any object whose toString() returns a parseable date. In short, use instead of so you won't have to m

Re: How to pass a javascript array to formbean array ?

2007-05-15 Thread Aviskaos
Sorry the var name in the jsp is var myArray = new Array() Aviskaos escribió: Hi! In my formbean i have this property: private String[] values; public String[] getValues() { return values; } public void setValues(String[] values) { this.values = values

How to pass a javascript array to formbean array ?

2007-05-15 Thread Aviskaos
Hi! In my formbean i have this property: private String[] values; public String[] getValues() { return values; } public void setValues(String[] values) { this.values = values; } Late, in my jsp, i have a global javascript v

[s2] datetimepicker - how to preserve original value

2007-05-15 Thread Jon Wilmoth
I'm using 2.0.7 and am getting errors when the user inputs an invalid date format. In addition to the stacktrace below, the field's value displayed to the user becomes "NaN/NaN/0NaN". Is this an oversite in the new tag that doesn't check to see if a field error exist before attempting to apply

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Musachy Barroso
You can also use topics to force the div to reload. musachy On 5/15/07, Marco Carnevale <[EMAIL PROTECTED]> wrote: I am doing this on my project. The tab refreshes when the user selects a button. 1) You should know the div name for the tab you are interested in. In this example the div name

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Marco Carnevale
I am doing this on my project. The tab refreshes when the user selects a button. 1) You should know the div name for the tab you are interested in. In this example the div name is: myTabDivId 2) You need a URL to submit to when the button is pressed that returns the contents (i.e. tile

Re: [s2] ajax multipart form submission

2007-05-15 Thread Musachy Barroso
We don't have an attribute to specify the "transport" for the the bindArgs. I logged a Jira ticket for it: https://issues.apache.org/struts/browse/WW-1925 thanks for reporting back :) musachy On 5/15/07, jf nuzbit <[EMAIL PROTECTED]> wrote: Here is how to make it work using dojo: The form:

Struts 1.2 and JSF

2007-05-15 Thread RathinaGanesh : Vancouver is beautiful !!
Greetings: I was wondering, if I can combine struts 1.2 and jsf together..? I was trying to use the Ajax4jsf (Exadel's RichFaces)..It seems, this component needs JSF... Did any one use this this with Struts 1.2 before..?? Thanks, Ganesh.

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Mansour
I found it. I think it was my fault. The documentation didn't say anything like "the plugin is not the sitemesh" so I assumed that I don't need to download sitemesh as it's included. That's not the case. You need to DOWNLOAD sitemesh. Antonio Petrelli wrote: 2007/5/15, Mansour <[EMAIL PROTEC

Best method for dynamic fields round trip

2007-05-15 Thread Al Sutton
I've got an application which has a dynamic number of customisable fields attached to each record. The customisable fields have a display name, an internal name, and a value. Some records have no fields and there is no way of determining at compile time the maximum number of fields a record can hav

Re: [s2] ajax multipart form submission

2007-05-15 Thread jf nuzbit
Here is how to make it work using dojo: The form: The javascript: function sendIt(){ var bindArgs = { transport: "IframeTransport", formNode: document.getElementById("myform"), mimetype: "text/html", load: function(type, data, evt){ doc

Re: session is not destroyed

2007-05-15 Thread Lance
HttpSession.invalidate() will remove all attributes from the session and consequent calls to getAttribute() on an invalidated session will cause an IllegalStateException. It could be that an attribute with the same name is in another scope (page, request or application) and is being picked up by

Re: [S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Musachy Barroso
If you put a whole tabbedpanel inside a remote div, then you can reload it anytime you want. regards musachy On 5/15/07, Jason Wyatt <[EMAIL PROTECTED]> wrote: Hi, we're using the Struts 2 tabbedpanel tag. One problem we're having is that whenever we do a submit from within a tab, we to reload

session is not destroyed

2007-05-15 Thread jalal udeen
hi im adding some object to list and the list is added to session finally i invalidate session but the values of list is again still there session is not destroyed what to do fo this pls thanks jalal

Re: struts2 exception handling

2007-05-15 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I would like to centralize exception handling in a > one class instead of handling them in all action > method. http://struts.apache.org/2.x/docs/exception-configuration.html d.

struts2 exception handling

2007-05-15 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. Hi all, my business classes that are called in my action methods may throw specific exceptions.

Re: url, fill collection

2007-05-15 Thread Lance
java.util.Set does not guarantee that the order of it's elements remain constant and does not provide set(int,Object) or get(int) methods. Use a List or an array in the web tier and perhaps convert to a set in validation / middle tier. Cheers, Lance. Jaan Tark wrote: continues so i can

Re: url, fill collection

2007-05-15 Thread Jaan Tark
continues so i can make it all work with vectors ... but not sets so if my action class has: private Vector asd; then, via browser url ... i can set it like: ?asd.name=smth but, if i'm using a Set instead the Vector ?asd.name=smth i'm getting "ERRROR ... ParametersIterceptor ... [setPara

Re: url, fill collection

2007-05-15 Thread Lance
You could use a lazy list and a factory to create your empty person objects. private List persons = org.apache.commons.collections.list.LazyList.decorate(new Vector(), new InstantiateFactory(Person.class)); Cheers, Lance. Jaan Tark wrote: problem solved, ignore gonna write the problem descr

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Antonio Petrelli
2007/5/15, Mansour <[EMAIL PROTECTED]>: Thank you: this is closer to what I need. I am trying sitemesh. Reading the guide in this page: http://www.opensymphony.com/sitemesh/decorators.html However, the taglib is not recognized, <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; pre

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Mansour
It's a struts 2 plugin. The lib reference is different in struts 2 and if it wasn't I wont be asking. So this the place to ask. Antonio Petrelli wrote: 2007/5/15, Mansour <[EMAIL PROTECTED]>: Thank you: this is closer to what I need. I am trying sitemesh. Reading the guide in this page: htt

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Antonio Petrelli
2007/5/15, Mansour <[EMAIL PROTECTED]>: Thank you: this is closer to what I need. I am trying sitemesh. Reading the guide in this page: http://www.opensymphony.com/sitemesh/decorators.html However, the taglib is not recognized, <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; pr

RE s:checkbox and generate

2007-05-15 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez à la mise à jour de votre carnet d'adresses. the struts struts.ui.theme constant is set to xhtml by default in the struts.properties file. Th

[S2] Understanding RestfulActionMapper and Restful2ActionMapper

2007-05-15 Thread Jordi Rubio Moreno
Hi, I'm testing HelloWorld struts 2 example with friendly url's. I have read http://struts.apache.org/2.0.6/docs/restfulactionmapper.html http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/d ispatcher/mapper/Restful2ActionMapper.htmlhttp://struts.apache.org/2.0.6 /docs/restf

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Mansour
Thank you: this is closer to what I need. I am trying sitemesh. Reading the guide in this page: http://www.opensymphony.com/sitemesh/decorators.html However, the taglib is not recognized, <%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"; prefix="decorator" %> how do I find th

Re: url, fill collection

2007-05-15 Thread Jaan Tark
problem solved, ignore gonna write the problem description and solution as soon as i have some extra time rgds On 15.05.2007 13:51, Jaan Tark wrote: Hello, i have a class public class Person { private String name; // gettter, setter } contained in public class Master extends Actio

url, fill collection

2007-05-15 Thread Jaan Tark
Hello, i have a class public class Person { private String name; // gettter, setter } contained in public class Master extends ActionSupport { private Vector persons; //getters, setters publis String execute() { return SUCCESS; } } i can retrieve persons in jsp

RE: [S2] Slow s:url execution

2007-05-15 Thread Jordi Rubio Moreno
Hi, Finally I have created the project from the scratch, with the minimum jar files possible, and now works fine! I believe there was a jar version conflict, and this was the cause of slow s:url execution. Thanks a lot! Cheers Jordi Rubio Moreno -Mensaje original- De: Jordi Rubio More

Re: s:checkbox and generate

2007-05-15 Thread Struts2 Fan
use theme="simple" it only puts the controls. -- View this message in context: http://www.nabble.com/s%3Acheckbox-and-generate-%3Ctd%3E%3Ctr%3E-tf3757613.html#a10620254 Sent from the Struts - User mailing list archive at Nabble.com.

s:checkbox and generate

2007-05-15 Thread Michał Letyński
Hi. I put s:checkbox UI tah to my jsp: in my generated html i get: ... ... How to disable this generated code ? i just only want those two inputs without td's,tr's - To unsubscribe, e-mail: [EMAIL PROTECTED

showcase file download in jetty server

2007-05-15 Thread sudeepj2ee
HI I am using jetty server and the zip file download part is not working in the jetty its giving the following error-: java.lang.IllegalArgumentException: Can not find a java.io.InputStream with the name [inputStream] in the invocation stack. Check the tag specified for this action. at

[s2] Is there a struts2 best practices site?

2007-05-15 Thread Al Sutton
Is anyone putting together a "Best Practices" site covering things like handling dynamic numbers of parameters on a single page, UTF-8 encoding, etc., etc., etc.? I think it's something that would be pretty useful because many people find learning by example easier than reading manuals. Al.

RE: [s2] Can someone with permissions update the wiki

2007-05-15 Thread Al Sutton
Hmm... Follow this path; 1) Log out of Confluence 2) Go to http://struts.apache.org/2.x/docs/tag-reference.html 3) Click Guides from the breadcrumbs at the top of the page 4) Click "struts.xml" under "Configuration Files" 5) Click the "struts.xml Examples" link near the bottom of the page. 6) Cli

[S2] How to refresh one tab in Tabbedpanel instead of whole page?

2007-05-15 Thread Jason Wyatt
Hi, we're using the Struts 2 tabbedpanel tag. One problem we're having is that whenever we do a submit from within a tab, we to reload the same tab with the results. At the moment we our submit button posts to an XAction mentioned in the tag for the given X tab. The XAction returns a TabsResu

Re: [s2] Can someone with permissions update the wiki

2007-05-15 Thread Laurie Harper
Just checked it, and it works for me as-is. L. Al Sutton wrote: Can someone with the correct permissions change the link on http://cwiki.apache.org/confluence/display/WW/struts.xml+Examples which is labelled Configuration El

[s2] Can someone with permissions update the wiki

2007-05-15 Thread Al Sutton
Can someone with the correct permissions change the link on http://cwiki.apache.org/confluence/display/WW/struts.xml+Examples which is labelled Configuration Elements to point to http://struts.apache.org/2.x/docs/configuration-e

Re: Problems getting started with Tiles2/S2

2007-05-15 Thread Antonio Petrelli
2007/5/15, Mansour <[EMAIL PROTECTED]>: I have another question, Is there a way to get all the pages and actions to have the same look through the template. Let's say I have 20 action and more than 20 plain jsp pages, Do I do this for each of them. I mean the configuration is a long job by itsel