Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Johnson nickel
Thanks for your quick response, In my Login.jsp, Instead of using , I used html image tag . If i used it works fine. newton.dave wrote: > > --- Johnson nickel <[EMAIL PROTECTED]> wrote: >> > @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="username",messag

AW: struts1 and struts2 together

2008-01-29 Thread Otto, Frank
hi nagendra, yes, you can use struts1 and struts2 together. take a look at: http://www.infoq.com/articles/converting-struts-2-part1 it's a good tutorial to migrate a app to struts2. kind regards, frank > -Ursprüngliche Nachricht- > Von: nagendrabvvs [mailto:[EMAIL PROTECTED] > Gesende

Re: #request scope

2008-01-29 Thread Dave Newton
--- WongTseng <[EMAIL PROTECTED]> wrote: > in S2, inside iteration, the item object is push onto the VS, so just > remove the pound key. Accessing a request attribute, however, still requires the "#" because it's a named value on the stack, not simply a pushed action or the current object of an it

Re: struts1 and struts2 together

2008-01-29 Thread nagendrabvvs
Hi Frank, Could i ask you a favour? As i am also trying to migrate our project to struts2 from struts1.1. I am in need of help regarding this. can i use both struts1 and struts2 together? So hope you have got knowledge in this, and as iam new to struts2, If possible could you please giv

Re: #request scope

2008-01-29 Thread WongTseng
in S2, inside iteration, the item object is push onto the VS, so just remove the pound key. -- Best Regards Wong Tseng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

s:if test with empty String

2008-01-29 Thread quinquin2209
Hi All, I have an array of String "members"... where member[0] is the member id and member[1] is the member's name. In the jsp, I want to display member[1] if it is not empty, or member[0] if member[1] is empty. However, the e

Re: [S2] Starter application in IE & Firefox

2008-01-29 Thread hezjing
Hi OK, the same problem occured even before the dependencies are modified. The following are the steps I performed, 1) Create the starter application > mvn archetype:create -DgroupId=com.fdar.apress.s2 -DartifactId=app -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId

Re: [S2] Iterator and Index

2008-01-29 Thread Laurie Harper
Dave Newton wrote: --- bradharris <[EMAIL PROTECTED]> wrote: Any Response to this question? I'm really hoping this wasn't left out of Struts2, but I can't seem to find anything indicating there is support for iterative form fields. This is a pretty big piece to be missing, so feedback on the c

RE: Struts 2.1.1 and Tiles

2008-01-29 Thread Dave Newton
--- Sanjeev Vijapurapu <[EMAIL PROTECTED]> wrote: > It's actually because of the standard taglib. I am using core taglib for > some use case and if I remove that code it works fine. But what I am not > able to understand is that why does struts2.0.9 works fine with it where > as struts 2.1.1 doesnt

RE: Struts 2.1.1 and Tiles

2008-01-29 Thread Sanjeev Vijapurapu
It's actually because of the standard taglib. I am using core taglib for some use case and if I remove that code it works fine. But what I am not able to understand is that why does struts2.0.9 works fine with it where as struts 2.1.1 doesnt -Original Message- From: Sanjeev Vijapurapu [mai

Re: [S2] Iterator and Index

2008-01-29 Thread Dave Newton
--- bradharris <[EMAIL PROTECTED]> wrote: > Any Response to this question? I'm really hoping this wasn't left out of > Struts2, but I can't seem to find anything indicating there is support for > iterative form fields. This is a pretty big piece to be missing, so > feedback on the correct approac

Re: [S2] Iterator and Index

2008-01-29 Thread bradharris
Any Response to this question? I'm really hoping this wasn't left out of Struts2, but I can't seem to find anything indicating there is support for iterative form fields. This is a pretty big piece to be missing, so feedback on the correct approach here would be appreciated. -- View this messa

Re: html:text

2008-01-29 Thread Dave Newton
--- "Arora, Parvinder" <[EMAIL PROTECTED]> wrote: > Can I hide the border which comes around html:text ? CSS; see the "styleClass" attribute [1]. (It may differ slightly depending on which version of S1 you're using; I honestly don't recall.) Dave [1] http://struts.apache.org/1.x/struts-taglib/t

html:text

2008-01-29 Thread Arora, Parvinder
A primitive question: Can I hide the border which comes around html:text ? ~Parvinder - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: #request scope

2008-01-29 Thread Dave Newton
--- stanlick <[EMAIL PROTECTED]> wrote: > I have a weird situation where I am losing a request > parameter inside a loop! > [...] > Doesn't "#request" retrieve request *attributes*? Dave - To unsubscribe, e-mail: [EMAIL PROTE

Struts 2.1.1 and Tiles

2008-01-29 Thread Sanjeev Vijapurapu
Hi, Has anybody tried using tiles2 with struts 2.1.1? I had a working app with tiles2 and struts 2.0.9; but when I upgraded to 2.1.1 it just stopped working. Stack Trace is: javax.servlet.jsp.JspException: Error executing tag: JSPException while including path '/layouts/layout-template.jsp'. Ser

#request scope

2008-01-29 Thread stanlick
I have a weird situation where I am losing a request parameter inside a loop! I understand the scopes and have trouble understanding how a #request scoped variable could be "masked" inside a loop! This outputs my value just fine: but once inside it no longer contains a value! Any clues?

Re: struts2 forms and css

2008-01-29 Thread xianwinwin
thanks, this solved it -- View this message in context: http://www.nabble.com/struts2-forms-and-css-tp15164776p15170582.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PRO

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels
Thanks, This works form me: ... niels On Jan 29, 2008, at 5:36 PM, Laurie Harper wrote: niels wrote: There is no target attribute in de a-tag: http://struts.apache.org/2.x/docs/a.html Correct, there isn't such an attribute. The Struts 2.0.9 documentation for that tag lists a 'targets'

Re: dojo 1.0 DateTextBox and ISO-8601

2008-01-29 Thread Jeromy Evans
Hi Roberto, This is precisely what a custom type-converter is for: http://struts.apache.org/2.x/docs/type-conversion.html It accepts a string and converts to an object, and vice versa. It's invoked by the conversion interceptor. However, I thought the default Date converter is already setup

Re: struts2 forms and css

2008-01-29 Thread Laurie Harper
xianwinwin wrote: hi there, I wonder how to change the font style of my form. Currently it is in a simple 'Times New Roman' and I would like to have it differently (say verdana). the jsp page looks like this (below) and I wonder where the code should be embedded? <%@ include file="/pages/la

Re: AJAX approach

2008-01-29 Thread Jeromy Evans
I would like to ask you if you know wheter YUI table lets me filter, order by column and paginate the table using AJAX (without refreshing the page) or doing it client-side. I couldn´t take a look to it yet. Sorry. Yes, all that's possible on the client side with the YUI datatable. I use

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
So, as I was saying, I don't like having to define multiple namespaces just to be able to define a default stack for a different group of actions. In the last example, if I give package B a namespace, it will work with each package having its own default stack. -- View this message in context:

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
When you specify a default stack for a package in which an action is part of, you do not have to specify an interceptor or interceptor stack on the action mapping. This makes maintenance far easier. In any case, I am referring to being able to do this:

Re: [struts] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: I turned debug level logging for struts and xwork packages. I see that the ParametersInterceptor is being called indeed for both scenarios (with or without execAndWait) However, one interesting thing is when I comment out the "delay" and "delaySleepInterval" pa

RE: [struts] help with execAndWait

2008-01-29 Thread Mazhar, Osman (Home Office)
I turned debug level logging for struts and xwork packages. I see that the ParametersInterceptor is being called indeed for both scenarios (with or without execAndWait) However, one interesting thing is when I comment out the "delay" and "delaySleepInterval" params from the execAndWait interceptor

Re: [struts] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: That is an interesting point. The bean is a hibernate object, however, I am not retrieving it from the database, but rather only trying to populate it from the form values. You should be able to tell from the call stack which interceptors have been called--ca

RE: [struts] help with execAndWait

2008-01-29 Thread Mazhar, Osman (Home Office)
That is an interesting point. The bean is a hibernate object, however, I am not retrieving it from the database, but rather only trying to populate it from the form values. So, it's a CREATE operation if you look at it from the CRUD perspective. After reading on HibernateAndSpringEnabledExecuteA

Re: [struts] help with execAndWait

2008-01-29 Thread Dale Newfield
Mazhar, Osman (Home Office) wrote: I am trying to use the execAndWait interceptor. If this bean is retrieved from your DB, then it's likely the DB session is being closed. http://wiki.opensymphony.com/display/WW/HibernateAndSpringEnabledExecuteAndWaitInterceptor -Dale -

help with execAndWait

2008-01-29 Thread Mazhar, Osman (Home Office)
Hello, I am trying to use the execAndWait interceptor. My struts.xml looks like: foo.jsp foo-success.jsp foo-wait.jsp foo.jsp foo.jsp Now in my action class, I have a bean with appropriate getter and setter methods on it. The foo.jsp has a form which is mapped to at

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: Dave Newton <[EMAIL PROTECTED]> > It's not like you have to define each interceptor for each action; > you can create a stack and use that. (Or a combination of stacks and individual interceptors.) Dave - To unsubscri

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > Right now, I am forced to define a different namespace > for each group of actions with a different default stack. Well, yeah... > I wish I did not have to define a different namespace just to be > able to define different default stacks. I'm not sure I k

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Right now, I am forced to define a different namespace for each group of actions with a different default stack. Unlike the example discussed thus far, my action definitions don't specify an interceptor. The code posted is a little unique in that only this action uses the shown set of interceptor

Re: Struts 2.0.11 Validation and Conversion

2008-01-29 Thread Adam Hardy
Hi Filipe, what is that regex that you are using in the annotations for setUnixGroupId()? Is it required? It seems like unnecessary overhead for validating and converting a long. Have you tried it without it? What is the reason for your own NullLongConverter? I guess it's because there is no

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > I have to disagree with you on customizing the interceptors. > It is just sloppy to use a generic stack that calls every interceptor. I guess I'm just "sloppy" then. I have a general-purpose interceptor stack that works quite well; I have *very* few actions

struts2 forms and css

2008-01-29 Thread xianwinwin
hi there, I wonder how to change the font style of my form. Currently it is in a simple 'Times New Roman' and I would like to have it differently (say verdana). the jsp page looks like this (below) and I wonder where the code should be embedded? <%@ include file="/pages/layouts/taglibs.jsp" %

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Dave, I have to disagree with you on customizing the interceptors. It is just sloppy to use a generic stack that calls every interceptor. Important issues also get lost when you do that. The true issue with Struts2 is the poor documentation. Worst is the fact that some of the defaults just aren'

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > The action validate() method gets called properly by the Workflow > Interceptor. > http://struts.apache.org/2.x/docs/workflow-interceptor.html Oh, you're right [for that version of XWork]. You'll need to change that when you upgrade S2, though; current XWork

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Musachy Barroso
"workflow" interceptor used to call "validate" in 2.0.x, on 2.1 "validate" is called by the "validation" interceptor. musachy On Jan 29, 2008 12:02 PM, specdev2 <[EMAIL PROTECTED]> wrote: > > Just to clarify, the following works as desired: > > class="com.tchegbe.demo.action.ToHtmlActions"> >

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Just to clarify, the following works as desired: toHtmlUtilityViewDef The action validate() method gets called properly by the Workflow Interceptor. http://struts.apache.org/2.x/docs/workflow-interc

Re: just a simple onclick

2008-01-29 Thread Dave Newton
From: Chris Pat <[EMAIL PROTECTED]> > What is impossible is that the very same onclick call placed > in the tag works perfectly. This word, "impossible", I do not think it means what you think it means. Without actually answering my questions it'll be impossible for me to help any further.

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > The Workflow Interceptor is the one that calls validate. > Hence, that's the interceptor I needed. No it isn't. The validator interceptor calls validate(). The workflow interceptor checks to see if there are any error messages on the action and goes (by def

Re: just a simple onclick

2008-01-29 Thread Chris Pat
Hi Dave It is really plain vanilla. I just set some form values. What is impossible is that the very same onclick call placed in the tag works perfectly. It calls the function, the values are set and inaddition it submits the form. I want to separate that and first call the function then ma

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Ok, I found the issue. The Workflow Interceptor is the one that calls validate. Hence, that's the interceptor I needed. The application now works fine. Thanks for all the help Dave. -- View this message in context: http://www.nabble.com/How-does-one-get-the-%22validate%22-method-to-be-called-

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
Reviewing your action configuration from a few emails ago; you've defined the interceptor as "validation" but the interceptor is actually named "interceptor". If you use the correct interceptor name does it work? Dave - Original Message > From: specdev2 <[EMAIL PROTECTED]> > To: user@

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Laurie Harper
That would seem to suggest that the validation interceptor relies on some work done by one of the interceptors you've removed from your stack, no? Try listing all the validators that are in the default stack and then commenting out the ones you don't want, one at a time, until you identify whic

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
A break point in debug mode. Again, I get to the break point if I use the default stack as follow: toHtmlUtilityViewDef newton.dave wrote: > > From: specdev2 <[EMAIL PROTECTED]> >> There is just no logical reason as to why my stack would not work.

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
I also have this: So: 1. I override the default stack. 2. I specify the exact interceptor(s) I need per action. This is to avoid useless processing. There is a fix in the work (a dtd fix) that will enable me to have a truely empty stack. Cu

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > There is just no logical reason as to why my stack would not work. Oh. > Again, here is my stack: What evidence do you have that your validate() method isn't being called? Dave - To

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Laurie Harper
niels wrote: There is no target attribute in de a-tag: http://struts.apache.org/2.x/docs/a.html Correct, there isn't such an attribute. The Struts 2.0.9 documentation for that tag lists a 'targets' attribute, but that's related to the Ajax theme and doesn't do what you're looking for. I am

Re: just a simple onclick

2008-01-29 Thread Dave Newton
From: Chris Pat <[EMAIL PROTECTED]> > I have a simple [onclick handler] > and it just does not fire the function. What does the generated HTML look like? What does the JavaScript function look like, and have you put an alert(...) in the function to ensure it isn't being called? Since you're n

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
This is the default stack: dojo\..*

just a simple onclick

2008-01-29 Thread Chris Pat
Hello I have a simple in a set. and it just does not fire the function. However if I make the same onclick call in a it calls the function perfectly. Can someone explain? It is not typos, I have copied and pasted perfectly. I am nonplused. tia.

Re: best way to handle multiple buttons in a form?

2008-01-29 Thread Laurie Harper
Jason Dolinger wrote: Hi all, I'm new to Struts 2 (and Struts in general), and I'm having a hard time figuring out how to handle the simple case of multiple buttons within a form. The method I'm trying to use is described in the Struts 2 cookbook here: http://struts.apache.org/2.x/docs/html

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
From: specdev2 <[EMAIL PROTECTED]> > In fact, my problem relate to an interceptor stack problem. > If I use the defautStack, it works. > But if I do the following it does not: > class="com.tchegbe.demo.action.ToHtmlActions"> > > > > > toHtmlUtilityVi

Re: Problem setting id property of texfield tag

2008-01-29 Thread David Tercero
Hi, it works fine :clap:, Dave you are a crack ;-) Thank you very much =) newton.dave wrote: > > From: David Tercero <[EMAIL PROTECTED]> >> It is a bit complicated, because house.id is not in the value >> stack but in the request. > > > ... > > > #attr will also search the request scope. >

Re: How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Thanks Dave. In fact, my problem relate to an interceptor stack problem. If I use the defautStack, it works. But if I do the following it does not: toHtmlUtilityViewDef newton.dave wrote: > > spe

Re: Problem setting id property of texfield tag

2008-01-29 Thread Dave Newton
From: David Tercero <[EMAIL PROTECTED]> > It is a bit complicated, because house.id is not in the value > stack but in the request. ... #attr will also search the request scope. Dave - To unsubscribe, e-mail: [EMAIL PROTE

Re: Problem setting id property of texfield tag

2008-01-29 Thread Dave Newton
From: David Tercero <[EMAIL PROTECTED]> > It is a bit complicated, because house.id is not in the value > stack but in the page context. The "#attr" expression will search the various JEE scopes, so the OGNL expression "#attr.house.id" should find the "house.id" value in page scope. http://str

Re: [S2] Starter application in IE & Firefox

2008-01-29 Thread Laurie Harper
hezjing wrote: Hi I created Struts2 starter application as shown below, mvn archetype:create -DgroupId=com.fdar.apress.s2 -DartifactId=app -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.9-SNAPSHOT -DremoteReposito

Re: Problem setting id property of texfield tag

2008-01-29 Thread David Tercero
Hi, thanks for the anwer. It is a bit complicated, because house.id is not in the value stack but in the page context. I use JSTL tag to complement the struts ones, so sometimes the property is in the page context. With the version 2.0.9 you could use the ${} expressions (Expression Langua

Re: How does one get the "validate" method to be called?

2008-01-29 Thread Dave Newton
specdev2 <[EMAIL PROTECTED]> wrote: > My action is extending ActionSupport and overriding the > "validate" method. However, the validate method is not > being called. 1. Are you using the default interceptor stack? 2. Have you configured any interceptors for the action in question? > I have s

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Dave Newton
David Tercero wrote: > Dave Newton wrote: >> > If you do that, the url will be printed on the html page. No it won't. I prefer this method primarily for tags since I can avoid using the tag for 's "href" attribute (if I use JSP EL I can avoid for as well) since will evaluate "href":

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread David Tercero
Hi, Something simillar happens to me when i started with Struts 2. I use appfuse and I realized that a message displays just above the field I'd validated, and where I included a messages.jsp (this jsp displays the action and error messages), usually at the top of the html page. To solve t

How does one get the "validate" method to be called?

2008-01-29 Thread specdev2
Hi, My action is extending ActionSupport and overriding the "validate" method. However, the validate method is not being called. I have set the form tag validate attribute to true, but it makes no difference. What am I missing? Thanks. -- View this message in context: http://www.nabble.com/H

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero
If you do that, the url will be printed on the html page. You can put it all together: " target="_blank">... You can use a html anchor (), and use the s:url tag to provide the url. This is the way I usually code the links in my web appli

Re: browse old posts?

2008-01-29 Thread Dave Newton
http://struts.apache.org/mail.html There are about a half-dozen archives listed there. Dave - Original Message > From: "Mazhar, Osman (Home Office)" <[EMAIL PROTECTED]> > To: user@struts.apache.org > Sent: Tuesday, January 29, 2008 9:31:42 AM > Subject: browse old posts? > > Hello, >

Re: browse old posts?

2008-01-29 Thread Julien RICHARD
Will be usefull for me too. Thanks. On Jan 29, 2008 3:31 PM, Mazhar, Osman (Home Office) <[EMAIL PROTECTED]> wrote: > Hello, > > > > Before I start asking questions, I wanted to know if there is a way to > browse existing posts to see if my questions have already been answered. > > > > So, is the

browse old posts?

2008-01-29 Thread Mazhar, Osman (Home Office)
Hello, Before I start asking questions, I wanted to know if there is a way to browse existing posts to see if my questions have already been answered. So, is there a way to look at old posts? - Osman __ This e-mail ha

Struts2 2.0.11 Validation with DWR

2008-01-29 Thread Julien RICHARD
I need some help with DWR. I have find and follow an example of utilisation of DWR for struts2 validation. this link : http://java-x.blogspot.com/2006/11/struts-2-validation.html Im really new about DWR and this example doesn't work for me. I think DWR is the correct way for me to ckeck my form i

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread Dave Newton
- Original Message > From: niels <[EMAIL PROTECTED]> > To: Struts Users Mailing List > Sent: Tuesday, January 29, 2008 8:00:16 AM > Subject: Re: Where did the target attribute go in the a-tag? > > David, > > I don't understand what you mean by "anchor" > imagine the next situation. .

Re: Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Dave Newton
--- Johnson nickel <[EMAIL PROTECTED]> wrote: > @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="username",message="UserName > is required") For a string field you'll probably want to use the @RequiredStringValidator: a text field will return an empty string, whereas @RequiredFieldVali

Re: Problem setting id property of texfield tag

2008-01-29 Thread Julien RICHARD
Do you tried : On Jan 29, 2008 12:32 PM, David Tercero <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm having troubles setting the id property in a textfield tag. I use > the version 2.0.11 > > The case is I'm not able to introduce a variable value into the id > property, I mean: > > >

Re: AJAX approach

2008-01-29 Thread Pablo Vázquez Blázquez
Hi Jeromy, Thank you very much for your explanation. I know it was a big question. Well, I liked your suggestion of having a function with 2 timestamps (that´s what I had thougth about), but, for "external" reasons, it won´t be so. Now, I will have a controller action that will keep at sessi

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels
David, I don't understand what you mean by "anchor" imagine the next situation. edit Niels On Jan 29, 2008, at 1:33 PM, David Tercero wrote: target belongs to the anchor, not to the s:url tag. niels-15 wrote: Thanks David, but according to the TLD target is not a valid at

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero
target belongs to the anchor, not to the s:url tag. niels-15 wrote: > > Thanks David, > > but according to the TLD target is not a valid attribute for tag url > > Niels > > > On Jan 29, 2008, at 12:44 PM, David Tercero wrote: > >> >> Hi niels, >> >> you can generate a html anchor, usin

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread niels
Thanks David, but according to the TLD target is not a valid attribute for tag url Niels On Jan 29, 2008, at 12:44 PM, David Tercero wrote: Hi niels, you can generate a html anchor, using the s:url tag to generate the href url, "some text hope this helps. niels-15 wrote: There

Re: Where did the target attribute go in the a-tag?

2008-01-29 Thread David Tercero
Hi niels, you can generate a html anchor, using the s:url tag to generate the href url, "some text hope this helps. niels-15 wrote: > > There is no target attribute in de a-tag: > http://struts.apache.org/2.x/docs/a.html > > I am a newbie, and want to open de link in another (specifie

Problem setting id property of texfield tag

2008-01-29 Thread David Tercero
Hi all, I'm having troubles setting the id property in a textfield tag. I use the version 2.0.11 The case is I'm not able to introduce a variable value into the id property, I mean: stockTotal_${house.id} stockList[${house.id}].number ${house.number} I generate several

Error messages is repeated Using Struts 2 Annotation validation

2008-01-29 Thread Johnson nickel
Hi Friends, I am using Struts 2 application for my project. Before I was used Struts 1 when compare to this Struts 2 is reduced lot of configuration problems. I have use the Annotation validation to validate the Username and password fields in my Login page. Code: @RequiredFieldValida

dojo 1.0 DateTextBox and ISO-8601

2008-01-29 Thread Roberto Nunnari
Hi. I have a form that posts to a ModelDriven Action. In that form I'm trying to use raw dojo 1.0 DateTextBox, but I have trouble with the formatting of the date.. According to the dojo docs, when communicating to/from the server, it uses ISO-8601. As java.util.Date doesn't know how to parse ISO

Where did the target attribute go in the a-tag?

2008-01-29 Thread niels
There is no target attribute in de a-tag: http://struts.apache.org/2.x/docs/a.html I am a newbie, and want to open de link in another (specified) browser window.. How to overcome this? Niels

Re: [STRUTS2] Error in Dojo / Howto update Dojo

2008-01-29 Thread Julien RICHARD
I use Struts 2.0.11 and i have an dojo error when i wants to used textearea with Ajax theme (this create an richtext box).* After little research, this is an bug in dojo resolved in 2007/11. Dojo works perfectly for other features in my code, so i need to update the dojo in the struts core. Current

Re: [struts] tag writers resources?

2008-01-29 Thread Joachim Ansorg
Dale, this is useful information for me. Thanks for pointing this out. I'll make use of this class, I think. Joachim P.P.S: If your question is really "how do i evaluate tag arguments that are really ognl expressions, then TagUtils.getStack() is probably what you're looking for: http://struts.

Re: tag writers resources?

2008-01-29 Thread Joachim Ansorg
Hi Darren, the example that I posted is just for JSP. But if you look at the struts2 examples it shouldn't be that hard to make a tag usable in freemarker or velocity as well. As you can see the information available on writing native Struts2 tags is quite hard to find. The most important reaso