RE: [S2.1] problem ajax tag into a remote div

2007-11-28 Thread Desbois Arnaud
When I put the tag into the included page, it work fine, but the dojo.js (564ko) is loaded twice (one for the and one for its content which contains the ). It is normal/recommended to put several times the tag to render the final page? Arnaud -Message d'origine- De : Musachy Barros

Token problem in Struts 2.1

2007-11-28 Thread Shoaib Gauhar
Hello: I have been trying to migrate from 2.0.8 to 2.1. I had some problems which were solved yesterday (thanks to you guys). But, now i am facing another problem regarding tokenSession. The same piece of code was working in 2.0.8 but is not working in 2.1. Actually it does work but at the same

chart not getting refreshed

2007-11-28 Thread aruna123
hi, i included my chart in the jsp.but it's not getting refreshed with the data values present in the database untill i do export it to pdf.after exporting to pdf once after refreshing the page giving the correct results..can some body help me? -- View this message in context: http://www.nabble.

Problem Solved!

2007-11-28 Thread DJR
Thanks, Shoaib Gauhar. Your code does help us a lot. With "theme = simple", the tag can produce the right result. Shoaib Gauhar wrote: > > Try the following code. > > > > item1 > > > > > > item2 >

Re: [S2.1] dojo plugin customization

2007-11-28 Thread Jeromy Evans
Desbois Arnaud wrote: In Struts 2.1, how I can customize the widget dojo look? The simplest approach is to override the css. Using the web developer toolbar and firebug you'll be able to inspect the CSS and make alterations. Can I create a custom Dojo profile (like http://cwiki.apache.org/c

Re: Pitfall of , etc. tags in Struts2???

2007-11-28 Thread Shoaib Gauhar
Try the following code. item1 item2 - Original Message From: DJR <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Thursday, November 29

[OT] session state (was Re: Wizard like Screens)

2007-11-28 Thread Jeromy Evans
Gary Affonso wrote: Tom Schneider wrote: Both of those plugins, by default, would need the session to keep track of the state. Oh, duh. I didn't see that he wanted to avoid the session. What is up with that BTW? There seem to be quite a few posts lately from people wanting to do stuff and

Pitfall of , etc. tags in Struts2???

2007-11-28 Thread DJR
Well, the problem comes from a real project we're developing by Struts2 framework. We want to achieve the effect below: http://www.nabble.com/file/p14019492/rightresult.png Now we will use tag to achieve the above effect, our code is:

Re: WW-167 not working

2007-11-28 Thread Eric Martin
Martin, Yes, there is a problem with the output. The SubmitTextName should be inside the button tag, but in your example and others posted, the value gets placed outside the button tag (seems to get displayed before the rendering of the button. I would expect the output to be: SubmitTextName I

Re: Help with html:select multiple="true"

2007-11-28 Thread john feng
Did you use ctrl or shift key and mouse to select multiple elements(less than 5 in your case), then submit it? On 11/21/07, Adrian Marrero <[EMAIL PROTECTED]> wrote: > > Hi, > > Sorry about reposting this topic and forgetting to put a subject the first > time. > > Here is my issue. > > Goal: > I w

Re: Struts 2 tree tag question

2007-11-28 Thread john feng
I have created tree that each node displays several attributes of an object, i.e., top node is Dept object that user could see a checkbox field , DeptNo field, DName field, Location field. clicking top node + image, the second layer nodes display Employee object that user could see a checkbox field

struts action form vs # of multibox fields determined at runtime

2007-11-28 Thread john feng
I have a jsp page that produces a matrix page based on database queries for both column header records and row records. The column and row crossed fields are displayed as multiboxes, i.e., each vertical column of those is a multibox field named as "crossCheckBox0", "crossCheckBox1", "crossCheckBox2

Re: WW-167 not working

2007-11-28 Thread Martin Gainty
Eric- I just tossed this into a test.jsp page ..and this was the rendered html output.. SubmitTextName Submit anything wrong with the output??? Martin-- - Original Message - From: "Eric Martin" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 28, 2007 8:27 PM Subje

Re: WW-167 not working

2007-11-28 Thread Eric Martin
https://issues.apache.org/struts/browse/WW-1677 mgainty wrote: > > Alberto- > > which button component are you speaking of? > > Martin-- > - Original Message - > From: "Alberto A. Flores" <[EMAIL PROTECTED]> > To: > Sent: Wednesday, November 28, 2007 3:05 PM > Subject: WW-167 not wor

Re: FreeMarker Question

2007-11-28 Thread Martin Gainty
If I understand your question use in jsp use s:set to set the value and reference the value later with s:property (without the # to access root objects) http://struts.apache.org/2.x/docs/crud-demo-i.html M-- - Original Message - From: "Gary Affonso" <[EMAIL PROTECTED]> To: "Struts Users M

Re: Get the message from DB instead of from the default MessageResources.properties

2007-11-28 Thread mgainty
Will you need to support UTF-8 Encoding? Will you want a factory to create these class objects for you? Did you have anything specific in mind? M-- - Original Message - Wrom: WFAOBUZXUWLSZLKBRNVWWCUFPEGAUTFJMVRESKP To: "Struts Users Mailing List" Sent: Wednesday, November 28, 2007 2:48 PM

Re: WW-167 not working

2007-11-28 Thread Martin Gainty
Alberto- which button component are you speaking of? Martin-- - Original Message - From: "Alberto A. Flores" <[EMAIL PROTECTED]> To: Sent: Wednesday, November 28, 2007 3:05 PM Subject: WW-167 not working > Has anyone been able to confirm that this issue is working? I don't seem > to ge

Re: S2: Struts2 @SkipValidation does not work

2007-11-28 Thread Bionicoder
Hi, The IDE is JBoss IDE Eclipse 1.5 and the application server is JBoss 4.0.5. Yes, the app war file has been totally cleaned and rebuilt. It does not help. Now I already found other workaround to solve my project problem. But I still hope this weird problem can be figured out in order to benef

Re: FreeMarker Question

2007-11-28 Thread Gary Affonso
MassimoH wrote: How do I do something like this: public class CustomFreemarkerManager extends FreemarkerManager { @Override protected BeansWrapper getObjectWrapper() { BeansWrapper beansWrapperInstance = super.getObjectWrapper(); // !!! This won't

Re: [S2] Complex submit button issue

2007-11-28 Thread Eric Martin
Looks like this is a previously reported issue that was "fixed": https://issues.apache.org/struts/browse/WW-1677 However, I'm using 2.0.11 and it is still not working. Thanks, Eric Eric Martin wrote: > > I'm using the css_xhtml theme and trying to create a submit button that > outputs somethi

WW-167 not working

2007-11-28 Thread Alberto A. Flores
Has anyone been able to confirm that this issue is working? I don't seem to get it to work yet JIRA says it is. This is about having a tag with an image and text inside the button. Thanks, Alberto - To unsubscribe, e-mail: [

Get the message from DB instead of from the default MessageResources.properties

2007-11-28 Thread Zhang, Larry (L.)
Do we still need to create MessageResourcesFactory And MessageResources to facilate the requirment. Do we have an easier way to achieve the requirement? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [S2.1] problem ajax tag into a remote div

2007-11-28 Thread Musachy Barroso
Did you add to your page? musachy On Nov 28, 2007 1:26 PM, Desbois Arnaud <[EMAIL PROTECTED]> wrote: > When I put ajax tag such as into a remote div > (), I've the error: > > > > Exception : java.lang.NullPointerException > > at > org.apache.struts2.dojo.components.DateTimePicker.evaluate

[S2.1] problem ajax tag into a remote div

2007-11-28 Thread Desbois Arnaud
When I put ajax tag such as into a remote div (), I've the error: Exception : java.lang.NullPointerException at org.apache.struts2.dojo.components.DateTimePicker.evaluateParams(DateTim ePicker.java:256) at org.apache.struts2.components.UIBean.end(UIBean.java:493) at org.ap

Re: Configuring Struts to use UTF-8 character encoding

2007-11-28 Thread Ted Husted
On Nov 28, 2007 10:53 AM, Adam Gordon <[EMAIL PROTECTED]> wrote: > What about the use of a filter to set the character encoding? Is this > the only way to go for Struts? I'd say so. It might be possible to add something to the ActionServlet, but the solution wouldn't be any less "heavy handed" th

[S2.1] dojo plugin customization

2007-11-28 Thread Desbois Arnaud
In Struts 2.1, how I can customize the widget dojo look? Can I create a custom Dojo profile (like http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo +profile+for+Struts+2.0.x)? What is the best solution to customize (the CSS in fact) the dojo widgets? Regards Arna

[S2.1] problem with sx:head tag

2007-11-28 Thread Desbois Arnaud
I try to upgrade an application 2.0.11 to 2.1.0 (with Struts tiles plugin) But when I put a dojo tag such as into my JSP I have this error (see below). The is put into a tiles definition file (a JSP file in fact). But when I put the directly into ma JSP page (before ), it's Ok. Why the first

Re: FreeMarker Question

2007-11-28 Thread Frank W. Zammetti
I can't say with 100% certainty because the context of this isn't totally clear, but I'm relatively sure root is the root of the Freemarker data model, which means it's nothing but a plain old Java Map. Without seeing the rest of that class I couldn't tell you how to get a handle to root, but some

Struts 2 tree tag question

2007-11-28 Thread akash agrawal
Hi, Trying to build a form having a tree where each node in the tree needs to have a checkbox to take input from the user. How can I accomplish this using struts tree tag? Thanks, -Akash - Get easy, one-click access to your favorites. Make Yahoo! your

FreeMarker Question

2007-11-28 Thread MassimoH
How do I do something like this: public class CustomFreemarkerManager extends FreemarkerManager { @Override protected BeansWrapper getObjectWrapper() { BeansWrapper beansWrapperInstance = super.getObjectWrapper(); // !!! This won't compile due to "

Getting context properties

2007-11-28 Thread Pablo Vázquez Blázquez
Hello, How can I red my application name and the actions' extension? For example: http://localhost:8080/scheduler-admintool-1.0/Workspace.do I'd need a code to get "scheduler-admintool-1.0" and "do" from the context. Thanks. ---

Re: Wizard like Screens

2007-11-28 Thread Gary Affonso
Tom Schneider wrote: Both of those plugins, by default, would need the session to keep track of the state. Oh, duh. I didn't see that he wanted to avoid the session. What is up with that BTW? There seem to be quite a few posts lately from people wanting to do stuff and avoid the http sessio

Re: getText issue from javascript

2007-11-28 Thread Dave Newton
First I'd try moving your JavaScript in to actual JavaScript methods and calling them from onclick to avoid any potentially weird escaping/quoting/etc. issues. That eliminates any parsing-oriented issues. d. --- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > Hello, > > Any idea about how t

getText issue from javascript

2007-11-28 Thread Pablo Vázquez Blázquez
Hello, Any idea about how the first command (getText) works but the second one does not? 1.- executeScripts="true" onclick="var a = confirm('%{getText('Delete.Confirm')}'); if (a) {dojo.event.topic.publish('/borrarProject');}"> 2.- deleteEmail.inne

[S2] Complex submit button issue

2007-11-28 Thread Eric Martin
I'm using the css_xhtml theme and trying to create a submit button that outputs something like: ${ctx}/images/tick.png Save I would expect something like this to work: ${ctx}/images/tick.png Save But it outputs (formatted): Save Save

Re: css_xhtml theme -

2007-11-28 Thread Eric Martin
Agreed...the is irritating ;) Just to expand on what Dave said... 1) extract the template/simple/inputtransferselect.ftl file from the struts jar. 2) put the file in your classpath, we have it in WEB-INF/classes/template/simple 3) edit the file and remove the . For example: change: ${parameters

Re: Configuring Struts to use UTF-8 character encoding

2007-11-28 Thread Adam Gordon
Right, hence my last comment in the second paragraph... Incidentally, I saw that web page yesterday and was the one who added the anonymous posting about the URIEncoding attribute not appearing to do anything. What about the use of a filter to set the character encoding? Is this the only way

Re: css_xhtml theme -

2007-11-28 Thread Dave Newton
You can customize the templates by extracting them from the jar and putting them in your classpath. The thing is irritating. d. --- Angel Gruev <[EMAIL PROTECTED]> wrote: > Hello, > > I want to use the css_xhtml theme of struts 2. The > problem is that by > default, the results in HTML of > L

css_xhtml theme -

2007-11-28 Thread Angel Gruev
Hello, I want to use the css_xhtml theme of struts 2. The problem is that by default, the results in HTML of Label and input field that have between them. This makes it hard to align the lable and the input field on the same line using css. Why is this tag there?! An how can be removed easily?

S2.1.1 question on validation ...

2007-11-28 Thread Giovanni Azua
hi, I am trying to introduce a validation rule that checks that at least one element has been added to an optiontransferselect UI component. I use the expression type validation but does not seem to work ... see the details below. TIA, regards, Giovanni

2.0.8 => 2.1.0, was: Re: Upgradation from 2.0.8 to 2.0.11

2007-11-28 Thread Dave Newton
Interceptor names are camel-cased in S2.1.mumble. Try "tokenSession". --- Shoaib Gauhar <[EMAIL PROTECTED]> wrote: > Regarding my previous mail, i have some how narrowed > down the problem. Below is my action as described in > my struts.xml. > > name="LibraryItemFormInsertAction" >

Re: S2: Struts2 @SkipValidation does not work

2007-11-28 Thread Marcos Mendonça
Hi What IDE are you using? Have you tried cleaning up your app and rebuilding? On Nov 27, 2007 6:29 PM, Bionicoder <[EMAIL PROTECTED]> wrote: > > Hi Ted, > > Thanks for reply. Actually there is no validation XML for list method. Also > I delete validation XML files for other method too. However t

RE: @SMDMethod and servlet context

2007-11-28 Thread Daab, Andreas
I've added the defaultStack as first interceptor and it works now. Thanks! Andreas Daab -- -Ursprüngliche Nachricht- Von: Musachy Barroso [mailto:[EMAIL PROTECTED] Gesendet: Montag, 26. November 2007 18:12 An: Struts Users Mailing List Bet

Re: Upgradation problem from 2.0.8 to 2.1.0

2007-11-28 Thread Philip Luppens
Shoaib Gauhar wrote: > > > "SEVERE: Error filterStart > SEVERE: Context [/library] startup failed due to previous errors" > > (/library is my projects path.) > > Well, one of your listeners couldn't start. Check your logs (and if necessary, increase the log level to debug) for a clue on wh

Re: [ANN] Javapolis 2007

2007-11-28 Thread Philip Luppens
Ian Roughley wrote: > > Hi everyone; > The question: for those that are not "officially" attending Javapolis, > and those that are, is anyone interested in an informal get together > during the conference? Meet some new people, have some beers, and maybe > even talk about Struts2. > Count

Re: Download .zip of Struts 2 CRUD Example

2007-11-28 Thread Philip Luppens
codethought wrote: > > > On Nov 25, 2007, at 6:17 PM, hezjing wrote: > >> Hi >> >> Where can I download the .zip of the Struts 2 CRUD Example? >> See http://struts.apache.org/2.x/docs/crud-demo-i.html >> >> Should we add a download link in the tutorial? >> >> > > > I'd like to find this, to