Re: this is driving me nucking futs!

2009-03-13 Thread Chris Pratt
Seems to me that there's a lot of variable creation at the beginning of each page that is never going to be used. I know it gets compiled into Java, but it still takes time. I'd be afraid that if there were more than about 20 links you could be seriously slowing things down for a bit of syntactic

RE: this is driving me nucking futs!

2009-03-13 Thread dusty
Sorry it took me a while. Damn flu season... Anyways, its not really complicated but I have found it to be useful. It was inspired from some RoR projects I worked on and is a poor mans routing table. You create a JSP that you will include at the top of all your JSP views. In this JSP you add

RE: Required attribute - SOLVED

2009-03-13 Thread Phan, Hienthuc T
Thank you Dave. That is the file I was looking for. Initially I looked in the common-attributes.ftl and couldn't find it. -Hien -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Friday, March 13, 2009 5:26 PM To: Struts Users Mailing List Subject: Re: Required

RE: tag set

2009-03-13 Thread Martin Gainty
jsp: once inside the action class *mapped for viewJobDetail* you can pull each of the 3 params http://://viewJobDetail.action?fname=Giorgio&name=Armani Martin __ Dis

Re: Required attribute

2009-03-13 Thread Wes Wannemacher
On Friday 13 March 2009 20:49:34 Martin Gainty wrote: > > as I dont see required attribute (but I do see dynamic attributes=true) > do you want a required attribute in TextField > ? > Martin Martin, it's there, likely via inheritance. I'm pretty sure it's available on all UIBeans. As Dave and I m

RE: Required attribute

2009-03-13 Thread Martin Gainty
TextField.java contents: /* * $Id: TextField.java 651946 2008-04-27 13:41:38Z apetrelli $ * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright

Re: ajax:tabPanel and localization

2009-03-13 Thread Mileidys Gonzalez
Maybe u means the AjaxTags... http://ajaxtags.sourceforge.net/

Re: Required attribute

2009-03-13 Thread Dave Newton
Phan, Hienthuc T wrote: Is there a way to change the required attribute value in textfield, textarea, etc. from asterisk (*) to some other value like (required)? I'm using Struts 2.1.6 IIRC the "*" comes from the template file; it should probably be definable. Check controlheader-core.ftl.

Re: Required attribute

2009-03-13 Thread Wes Wannemacher
On Friday 13 March 2009 20:11:27 Phan, Hienthuc T wrote: > Is there a way to change the required attribute value in textfield, > textarea, etc. from asterisk (*) to some other value like (required)? > I'm using Struts 2.1.6 > You can change the labelSeparator, but the asterisk is hardcoded. It'd

action

2009-03-13 Thread PEGASUS84
this is my last question pleas help me; i want realize an action which map on the jsp page which has invoked the action (as a back button); excuse me for my english but i'm an italian user -- View this message in context: http://www.nabble.com/action-tp22507466p22507466.html Sent from the Strut

Required attribute

2009-03-13 Thread Phan, Hienthuc T
Is there a way to change the required attribute value in textfield, textarea, etc. from asterisk (*) to some other value like (required)? I'm using Struts 2.1.6 -Hien Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whiteho

Re: tag set

2009-03-13 Thread PEGASUS84
certainly; but how do i achieve this thing? <% reqest.setAttribute("key",user)%> can i achieve this thing? in this way? Nils-Helge Garli wrote: > > Maybe you could try explaining what you're trying to achieve? Usually, > input is passed to the action through a form or request parameters.

Re: Required field only works with text fields?

2009-03-13 Thread stanlick
The required attribute only paints the asterisk -- it has nothing to do with actually "requiring" input. Nice huh? Peace, Scott On Fri, Mar 13, 2009 at 4:14 PM, Griffith, Michael * < michael.griff...@fda.hhs.gov> wrote: > Hi all, > > I just noticed that the only required field validations that

Re: To .action or not to .action.

2009-03-13 Thread Musachy Barroso
It is not a bug, it is a feature! /friday musachy On Fri, Mar 13, 2009 at 5:56 PM, Greg Lindholm wrote: > > > > dchicks wrote: >> >> We recently discovered, quite by accident, that we can cause our app >> built on struts2 to NOT display ".action" on any of the URL's.  I'd >> simply like to find

Re: tag set

2009-03-13 Thread Nils-Helge Garli Hegvik
Maybe you could try explaining what you're trying to achieve? Usually, input is passed to the action through a form or request parameters. Nils-H On Fri, Mar 13, 2009 at 11:23 PM, PEGASUS84 wrote: > > good evenig > i would ask if i can get the value of variable x in an > action > -- > View this

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
I think Greg answered my question sufficiently - at least, enough for my needs. If you're still interested, I'll try to find a JSP over the weekend. We're not really doing anything strange, though. It's just tags, much like the one I posted earlier. Martin Gainty wrote: so you're saying t

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
Greg Lindholm wrote: There was a change sometime between Struts 2.0.11 and Struts 2.1.6 where the default list of action extensions (struts.action.extension) changed from just 'action' to 'action' plus "" (no extension). This will cause requests with no extension to be treated as an action. A

tag set

2009-03-13 Thread PEGASUS84
good evenig i would ask if i can get the value of variable x in an action -- View this message in context: http://www.nabble.com/tag-set-tp22506157p22506157.html Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: To .action or not to .action.

2009-03-13 Thread Greg Lindholm
dchicks wrote: > > We recently discovered, quite by accident, that we can cause our app > built on struts2 to NOT display ".action" on any of the URL's. I'd > simply like to find out if this is an intended feature or a possible > defect? The difference is in how we start off our interactio

RE: To .action or not to .action.

2009-03-13 Thread Martin Gainty
so you're saying that once .action is appended onto a URL its always in the URL sounds like a caching problem can you include a small jsp with relevant tags so we can reproduce the error? thanks, Martin __ Disclaimer and confidentiality note Everyth

Re: Actionerror's wont be shown when ajax call or when we do type="redirectAction" using struts2.1.6

2009-03-13 Thread Greg Lindholm
sajidbigler wrote: > > Hi Greg, > > its like there are two scenarios > > 1.When i do Ajax call if there is no user available i will allow him to > register if not i will need to show an error.i in action add action errors > which wont me shown to user instead they will be as part of output >

Re: Actionerror's wont be shown when ajax call or when we do type="redirectAction" using struts2.1.6

2009-03-13 Thread sajidbigler
Hi Greg, its like there are two scenarios 1.When i do Ajax call if there is no user available i will allow him to register if not i will need to show an error.i in action add action errors which wont me shown to user instead they will be as part of output response to Ajax call 2.Here we are no

Re: To .action or not to .action.

2009-03-13 Thread David C. Hicks
We don't really care whether Struts wants a ".action", or not. However, it's confusing when it seems to pick up the behavior based on the URL you used to enter into the system in the first place. Both URL's that I posted in the original note work, but the resulting behavior after the fact is

Required field only works with text fields?

2009-03-13 Thread Griffith, Michael *
Hi all, I just noticed that the only required field validations that seem to be working in my form are text field validations. Any HTML tag that renders a list, check box or radio button doesn't validate, even though the template shows the field as required. In other words, this tag: Sho

Re: Getting property with s:action tag

2009-03-13 Thread doahh
I didn't see your post before I posted again - thanks for the answer. Musachy Barroso wrote: > > "By name" means by the id in the "action" tag, like: > > > > > > > musachy > > On Fri, Mar 13, 2009 at 11:49 AM, doahh wrote: >> >> I have been playing with the s:action tag and have found i

Re: To .action or not to .action.

2009-03-13 Thread Dave Newton
Becky.L.O'sulli...@healthnet.com wrote: We've been posting our URLs that way (sans .action) I've been sans action for months now. Oh, URL mapping; I knew that. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.o

Re: To .action or not to .action.

2009-03-13 Thread Becky . L . O'Sullivan
We've been posting our URLs that way (sans .action) for a while now and we love it. Please don't make it go away. :) -B d...@holstein.com

Re: To .action or not to .action.

2009-03-13 Thread Musachy Barroso
I missed that memo :) musachy On Fri, Mar 13, 2009 at 4:24 PM, wrote: > > > I believe it's now the default behavior of struts 2.1. > > > > We recently discovered, quite by accident, that we can cause our app > built on struts2 to NOT display ".action" on any of the URL's.  I'd > simply like to

Re: To .action or not to .action.

2009-03-13 Thread DEck
I believe it's now the default behavior of struts 2.1. We recently discovered, quite by accident, that we can cause our app built on struts2 to NOT display ".action" on any of the URL's. I'd simply like to find out if this is an intended feature or a possible defect? The difference is in how

Re: To .action or not to .action.

2009-03-13 Thread Musachy Barroso
Are you using the Convention plugin? musachy On Fri, Mar 13, 2009 at 3:57 PM, David C. Hicks wrote: > We recently discovered, quite by accident, that we can cause our app built > on struts2 to NOT display ".action" on any of the URL's.  I'd simply like to > find out if this is an intended featur

To .action or not to .action.

2009-03-13 Thread David C. Hicks
We recently discovered, quite by accident, that we can cause our app built on struts2 to NOT display ".action" on any of the URL's. I'd simply like to find out if this is an intended feature or a possible defect? The difference is in how we start off our interaction in the browser. If we use

Re: send data

2009-03-13 Thread yogita sharma
In your action class, define the variable with the same name you are defining your element in jsp page, and put setter-getter for the same, you should be able to use the data. Actually in struts 2, they have eliminated action forms and combined it with action class. On Fri, Mar 13, 2009 at 8:34 PM

Re: ajax:tabPanel and localization

2009-03-13 Thread Jiří Chaloupka
I am not sure what do you mean. tablib is used from stadard ajaxtags distribution Jiri Alvaro Gomez napsal(a): What is url for download tablib the ajax? -Mensaje original- De: Jirí Chaloupka [mailto:k...@chalu.cz] Enviado el: Viernes, 13 de Marzo de 2009 02:51 a.m. Para: Struts Use

Re: Getting property with s:action tag

2009-03-13 Thread doahh
Looking again at the post from: http://www.nabble.com/-S2--s:action-in-value-stack--td21551483.html I see that the answer is I didn't understand the significance of

Re: Getting property with s:action tag

2009-03-13 Thread Musachy Barroso
"By name" means by the id in the "action" tag, like: musachy On Fri, Mar 13, 2009 at 11:49 AM, doahh wrote: > > I have been playing with the s:action tag and have found it impossible to > reference any property of the action in a struts2 like way. If I call an > action, ActionOne.java and r

Check Field Value in list using Annotation/Validation?

2009-03-13 Thread Griffith, Michael *
Hello all, Is it possible to check a field value against a list using the @ConditionalVisitorFieldValidator annotation? I'm thinking of something like this: @Column(name="VENDOR_TYPE", nullable=false) @ConditionalVisitorFieldValidator (expression="vendorType == 'COTS'&& vendorType == 'GOTS' &

Use struts2 with ejb (3.0)

2009-03-13 Thread Stefano Tranquillini
Hi all, i'm looking a method to use EJB3.0 inside struts2. There's a guide or a tutorial? i've some question: usually a Stateful session bean is used to store and share information, right? ActionForm (bean of struts) does the same thing. using EJB and Struts we are in conflict? we loose the powerfu

Getting property with s:action tag

2009-03-13 Thread doahh
I have been playing with the s:action tag and have found it impossible to reference any property of the action in a struts2 like way. If I call an action, ActionOne.java and return success then I am redirected to a page called one-success.jsp which has the following: Re: send data
thanks but i don't be able to realize this thing; laes1 wrote: > > i don't use struts 2.0 (i use struts 1.2) > so with this version, u can get a text value or a password through the > actionform > u define a class which extends from actionform > and u add the property u want (u generate for

Re: send data

i don't use struts 2.0 (i use struts 1.2) so with this version, u can get a text value or a password through the actionform u define a class which extends from actionform and u add the property u want (u generate for this properties a getter and setter method) and u get them whith a cast of the for

Re: send data

thanks but the data object isn't an input tag as or but a tag ; Can I get url in an action? -- View this message in context: http://www.nabble.com/send-data-tp22498337p22498771.html Sent from the Struts - User mailing list archive at Nabble.com. -

RE: ajax:tabPanel and localization

What is url for download tablib the ajax? -Mensaje original- De: Jirí Chaloupka [mailto:k...@chalu.cz] Enviado el: Viernes, 13 de Marzo de 2009 02:51 a.m. Para: Struts Users Mailing List Asunto: ajax:tabPanel and localization Hi, I need to use localization in ajax tab, but it is not ren

Re: send data

Hello, you can send them by the actionForm that u define 2009/3/13 PEGASUS84 > > good evening; > does someone know how can I send data from a jsp page to an Action? > -- > View this message in context: > http://www.nabble.com/send-data-tp22498337p22498337.html > Sent from the Struts - User mai

send data

good evening; does someone know how can I send data from a jsp page to an Action? -- View this message in context: http://www.nabble.com/send-data-tp22498337p22498337.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: S2: Using Outbound Rules with UrlRewriter

Hi Wes, Thanks for taking time to answer my question. Guess I was not clear with the the examples I gave. Yes, I am using all Struts actions, s:url, s:a tags, and everything. The thing is the Struts tags: nyc don't seem to implicitly call "response.encodeURL" as the c:url tag would

Type conversion exceptions

This is probably going to be a really simple solution, but after searching I still haven't quite found an answer so I appreciate any help with this. I'm using 2.0.14 and trying to do type conversion on a custom collection (called "settings" in this case, it is just an extended ArrayList). I'm gett

Re: YUI with Struts2

Aram Mkhitaryan wrote: I want to have YUI rich components that are built from markup and dojo from struts for ajaxifying the application If you're already using YUI why not just use YUI all the way? I'd be wary of mixing two completely different, comprehensive JavaScript frameworks, although

Re: YUI with Struts2

Yes, I want to have YUI rich components that are built from markup and dojo from struts for ajaxifying the application i hope there is a solution for this, I really hope On Fri, Mar 13, 2009 at 5:07 PM, Musachy Barroso wrote: > you are trying to mix YUI and Dojo? > > musachy > > On Fri, Mar 13,

Re: Do all actions in an action class (struts 2.1) have to inherit definitions from the same package?

yes On Fri, Mar 13, 2009 at 4:53 AM, wrote: > > Question on design intent: I noticed that the @Action annotation does not > have attributes for a parent namespace so if you have multiple actions in the > same class you only have the @ParentPackage class level annotation to > indicate the loca

Re: YUI with Struts2

you are trying to mix YUI and Dojo? musachy On Fri, Mar 13, 2009 at 8:46 AM, Aram Mkhitaryan wrote: > Hi All, > > I'm in a real truble, please help! > > I chose YUI (Yahoo UI) to use it's Layout, Menu, Tree, Tabs. > But I get problems when using Struts2's ajax tags from dojo plugin. > > The firs

Re: Actionerror's wont be shown when ajax call or when we do type="redirectAction" using struts2.1.6

sajidbigler wrote: > > Hi Friends, > > How can we show ActionErrors,ActionMessages,FieldErrors in Ajax call using > struts2.1.6.i tried to do the following > > http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ > > you can see my comments on this too

YUI with Struts2

Hi All, I'm in a real truble, please help! I chose YUI (Yahoo UI) to use it's Layout, Menu, Tree, Tabs. But I get problems when using Struts2's ajax tags from dojo plugin. The first problem was that I cannot create ajax link in YUI Tree node. The second problem was that when I put something ajax

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

Have you looked at this? http://struts.apache.org/2.1.6/docs/how-do-we-repopulate-controls-when-validation-fails.html Muthu Velappan wrote: > > Thanks for the reply, Chris.. > > My problem is that in there is no two separate actions for loading and > submitting the data back from this JSP..

Re: Struts 2 and GWT in Hosted Mode?

> Am i right in saying that if you use struts 2 as the server backend of gwt, > you can't use the hosted mode browser!? Ok, i was wrong. The trick is to use the hosted mode browser without the embedded tomcat server. Take a look here: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

Thanks for the reply, Chris.. My problem is that in there is no two separate actions for loading and submitting the data back from this JSP.. To be precise, while loading the page it will use the input() method where as while submitting it will use the execute() method in my Action class Actual

Re: ajax:tabPanel and localization

BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }... as you can see, I tried to use some of styles how to render, including %{}, ${} etc... Jiri On Fri 13/03/09 09:51 , Jiří Chaloupka k...@chalu.cz sent: Hi, I need to use localization in ajax tab, but it is not rendered. When

Do all actions in an action class (struts 2.1) have to inherit definitions from the same package?

Question on design intent: I noticed that the @Action annotation does not have attributes for a parent namespace so if you have multiple actions in the same class you only have the @ParentPackage class level annotation to indicate the location of definitions for custom inteceptors, results etc.

ajax:tabPanel and localization

Hi, I need to use localization in ajax tab, but it is not rendered. When I use: <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="ajax" uri="/tags/ajax" %> defaultTab="true" /> then the localization is not rendered an

Re: org.apache.jasper.JasperException: tag 'select', field 'list', name 'fieldTypeID'

Looks like your JSP pulls the data from one action, which I will call A, and posts to another action, EditField. When there is an error you are bounced back to the JSP (assuming 'input' leads back to this JSP but now the JSP is trying to populate the select from a property called fieldTypeMap