Re: Skinning, themeing with stuts 2.1.x and the convention plugin

2009-03-31 Thread Adam Ruggles
solutions I've seen for struts will not work with >> the conventions plugin or they require sitemesh.  I'd prefer a more >> struts2 >> solution. >> >> Thanks, >> Adam >> >> >> Paweł Wielgus wrote: >>> >>> Hi Adam, &g

Re: $.getJSON(ur,params,function(data)(){}‏

2009-03-31 Thread Adam Ruggles
I'm not that familiar with the JSON result type, but it looks like data would contain the property methods of your SortTierVO bean. An easy way to see whats going on is to browse to SortTiersAction and see what spits out of the browser. It should look something like this: { method1: 'value',

Re: Skinning, themeing with stuts 2.1.x and the convention plugin

2009-03-31 Thread Adam Ruggles
; Also check the other thread about this subject, that was on the list > feew days (maybe weeks) ago. > > Best greetings, > Pawel Wielgus. > > 2009/3/31, Adam Ruggles : >> >> I'm looking for a way using the convention plugin to support custom >> themes/sk

Skinning, themeing with stuts 2.1.x and the convention plugin

2009-03-30 Thread Adam Ruggles
I'm looking for a way using the convention plugin to support custom themes/skins for a web page. Right now I can't really see a good way to implement this using struts2. -- View this message in context: http://www.nabble.com/Skinning%2C-themeing-with-stuts-2.1.x-and-the-convention-plugin-tp2279

Re: using inject with Convention Plugin

2009-03-30 Thread Adam Ruggles
If you're using spring, why don't you use spring to inject your property? Kumar Mettu wrote: > > Musachy, > >   This works great as long as default Struts Object Factory is used but > get the exception the following exception If I try to use > StrutsSpringObjectFactory > com.opensymphony.xwor

Re: Any issues with using OGNL ver 2.7.3

2008-12-08 Thread Adam Ruggles
Good news, thanks. Chris Pratt wrote: > > I've been using OGNL 2.7.2 with Struts 2.1.2 for a while and haven't > noticed > any problems. > (*Chris*) > > On Sun, Dec 7, 2008 at 9:34 PM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > >> >> A

Any issues with using OGNL ver 2.7.3

2008-12-07 Thread Adam Ruggles
Are there any known issues with using OGNL 2.7.3 with Struts 2.1.2? -- View this message in context: http://www.nabble.com/Any-issues-with-using-OGNL-ver-2.7.3-tp20889755p20889755.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Managing file attachment

2008-12-01 Thread Adam Ruggles
txt' and in case of > validation error messages read the file from that locaton ???* > > Please reply.. > > Thanks again, > > Shazad > > On Mon, Dec 1, 2008 at 1:02 AM, Adam Ruggles <[EMAIL PROTECTED]> wrote: > >> >> I could be wrong but I b

Re: connection to db with pooling in Struts

2008-11-30 Thread Adam Ruggles
You can use this little snippet to get a connection: public Connection getConnection(String url, String driverClassName, String username, String password) throws SQLException { try { Class.forName(driverClassName); } catch (ClassNot

Re: Managing file attachment

2008-11-30 Thread Adam Ruggles
I could be wrong but I believe you'd have to implement your own file upload interceptor and make sure the file is not removed after the execution of the action if a validation error occurs. Then you'd need to re-associate that saved file when the next request occurs. Also what happens if they ne

Re: [S2] Handling input result on a CRUD action

2008-11-30 Thread Adam Ruggles
it fails it will run >> prepareEdit. >> >> On 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: >>> >>> I have a problem I'm trying to solve when the validation fails on a crud >>> action. This action has add/create, edit/update, and list meth

Re: Pagination Questions

2008-11-29 Thread Adam Ruggles
Personally I think it would be a bad idea to buffer the data from the db, since most users when performing a search will only look at the first page of results. It would be better to simply return a limited set of results from the DB. Otherwise you might be fetching data the user will never see.

Re: [S2] Handling input result on a CRUD action

2008-11-29 Thread Adam Ruggles
prepareWhenErrors" or something. > > Dave > > --- On Sat, 11/29/08, Adam Ruggles <[EMAIL PROTECTED]> wrote: >> I have a problem I'm trying to solve when the validation >> fails on a crud >> action. This action has add/create, edit/update, and

Re: Best IDE for DOJO

2008-11-29 Thread Adam Ruggles
I've never used IDEA, but I do like Eclipse with the aptana plugin. I believe it even has a DOJO specific piece to their plugin. nikunj-2 wrote: > > > > Dear All, > > Which IDE is best to implement DOJO, eclipse, IDEA or other? > > Is any open source IDE available, which gives developer

[S2] Handling input result on a CRUD action

2008-11-29 Thread Adam Ruggles
I have a problem I'm trying to solve when the validation fails on a crud action. This action has add/create, edit/update, and list methods that all get called correctly. Now when the validation fails I have a list of items that I need loaded. Right now I have a prepareEdit and prepareAdd method

Re: Something special about action named "logout"

2008-11-16 Thread Adam Ruggles
n one of my applications. i don't have any > issue. i am using version 2.0.12 and struts-default package without any > modification to the interceptor stack. > > Adam Ruggles wrote: >> I logged bug for this https://issue

Re: Something special about action named "logout"

2008-11-15 Thread Adam Ruggles
I logged bug for this https://issues.apache.org/struts/browse/WW-2873 -- View this message in context: http://www.nabble.com/Something-special-about-action-named-%22logout%22-tp20513297p20523011.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: Something special about action named "logout"

2008-11-15 Thread Adam Ruggles
It looks like the action mappings didn't post correctly here is that piece again. /WEB-INF/pages/index.jsp /WEB-INF/pages/index.jsp

Something special about action named "logout"

2008-11-15 Thread Adam Ruggles
I'm having an issue with naming one of my actions logout and I'm trying to figure out why. I have a action named logout and another one called out. They both have the exact same class and results. However when I try to browse to logout.action I get a stack trace and when I browse to out.action

Re: Using validation with Hibernate...

2008-11-13 Thread Adam Ruggles
Use a struts interceptor instead of a servlet filter. That way you can check the return type of the action that gets executed and respond appropriately. Burton Rhodes wrote: > > I am having trouble getting Struts 2.x to implement validation and > hibernate using the HibernateSessionRequestFil

Re: Struts 2.1.2 type conversion failing for Integer method.

2008-11-13 Thread Adam Ruggles
iga Sibaja > __ > [EMAIL PROTECTED] > > divide et impera... > > > On Wed, Nov 12, 2008 at 11:31 PM, Adam Ruggles <[EMAIL PROTECTED]> > wrote: > >> >> I'm trying to figure out why struts/xwork is having issues doing the >&

Re: Migrating to 2.0.12 General Availability Release

2008-11-12 Thread Adam Ruggles
do you have the tag on your page? Tomi21 wrote: > > Hi everyone, > > I've migrated my web application to the last release 2.0.12 and all things > that require 'dojo' are not working correctly(datetimepicker, tooltip, > etc.). > The error message is "dojo is not defined". > > Does anyone know

Struts 2.1.2 type conversion failing for Integer method.

2008-11-12 Thread Adam Ruggles
I'm trying to figure out why struts/xwork is having issues doing the conversion on an Integer property. Here is the configuration. public class MyAction extends ActionSupport implements Preparable, ModelDriven { private MyObject obj; public void prepare() throws Exception { obj = new MyO

Re: Struts 2.1.2 client side validation doesn't get generated

2008-10-29 Thread Adam Ruggles
It looks like this is a Google Guice issue. When I swapped the guice plugin for the spring plugin everything worked as expected. -- View this message in context: http://www.nabble.com/Struts-2.1.2-client-side-validation-doesn%27t-get-generated-tp20221161p20240986.html Sent from the Struts - Use

Re: Struts 2.1.2 client side validation doesn't get generated

2008-10-29 Thread Adam Ruggles
Anyone? The server side validation works fine, when I post the form it comes back with the correct validation but the client side is not being generated because the performValidation is being set to false. The obvious work around is to edit the form-close-validate.ftl and remove (parameters.perf

Struts 2.1.2 client side validation doesn't get generated

2008-10-28 Thread Adam Ruggles
I'm trying to get struts to spit out the client side validation code and it doesn't seem to be working. The backend validation is working fine but when I use the xhtml theme with the , the script code under the form is not being generated. Looking at the code it looks like it's failing this chec

Re: [S2+AJAX]Which ajax libray did you use?

2008-01-16 Thread Adam Ruggles
ExtJS and jQuery. On Jan 16, 2008 5:56 PM, tzhang <[EMAIL PROTECTED]> wrote: > > I am doing some research ajax+struts2. you know struts2.0 has the built-in > supprot for ajax based on Dojo, but I found the components is not very > rich, > only have some basic function. I know there are a lot of a

Re: noobie .. breaking struts.xml ...

2008-01-02 Thread Adam Ruggles
Looking at this pretty quickly it looks like you left out the class for your action="test" On Jan 2, 2008 2:03 PM, Mufaddal Khumri <[EMAIL PROTECTED]> wrote: > I need to break my struts.xml into modules. So I came across this > page: http://struts.apache.org/2.x/docs/can-we-break-up-a-large- > st

Re: InputTransferSelect problem in Struts 2

2007-09-26 Thread Adam Ruggles
. Thanks for the reply Shoaib --- Adam Ruggles <[EMAIL PROTECTED]> wrote: Well I don't know about the javascript piece but the id on your input is invalid. Your input should look something like this: Shoaib Gauhar wrote: Thanks for the reply. Actually the code which i

Re: InputTransferSelect problem in Struts 2

2007-09-25 Thread Adam Ruggles
Well I don't know about the javascript piece but the id on your input is invalid. Your input should look something like this: Shoaib Gauhar wrote: Thanks for the reply. Actually the code which i have posted is valid for any other component than inputtransferselect and maybe other transfer sel

Re: [S2] Hooking up custom interceptors

2007-09-22 Thread Adam Ruggles
It looks like your action isn't defined to be in the cib-default package. Try configuring the action in the xml file instead of using the annotations. Eric D Nielsen wrote: I've written a pair of interceptors to implement my application's authentication and authorization requirements. I'm no

Re: file upload exception

2007-09-15 Thread Adam Ruggles
You copy the file to a new location in the action. It removes the file after the action method is executed. Session A Mwamufiya wrote: How do I stop the FileUploadInterceptor from firing and deleting the files? Is there a setting to put in struts.xml or web.xml? I copied verbatim what there

Re: [S2] Interceptor

2007-09-12 Thread Adam Ruggles
No they won't. Only the login interceptor will be called. hezjing wrote: Hi With the following struts.xml, index.jsp Will the interceptors configured in struts-default package be executed, followed by the login interceptor? Can we describe this

[S2] Validation Input page handling the display of lists

2007-07-26 Thread Adam Ruggles
I have a form that uses the validation framework so when the user submits a page I have a /myform.jsp statement that re-renders the input form and displays the fields that failed validation. The problem I'm running into is that I have a option transfer select field and once the form is re-rend

Re: Struts 2 Spring plug-in

2007-07-25 Thread Adam Ruggles
There is nothing wrong with the plugin, I'm using it on multiple apps. It looks like you have an error in your dataSource definition. I would post this on the springframework forum. Jiang, Jane (NIH/NCI) [C] wrote: Hi, Has anyone got Struts Spring plug-in to work? I am getting this error s

Re: Don't expose .action to user?

2007-07-19 Thread Adam Ruggles
wrote: I have not. Can you give me a link? Thanks, Kevin Adam Ruggles wrote: Have you looked at using the restful url stuff? Kevin Lawrence wrote: I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember

Re: Don't expose .action to user?

2007-07-19 Thread Adam Ruggles
Have you looked at using the restful url stuff? Kevin Lawrence wrote: I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than www.junitfactory.com/demo.action (or .htm or .html or .jsp) 2. I will

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-01 Thread Adam Ruggles
Have you tried this? Value of the arry is tom tom wrote: I did further investigation, I think this is a bug, I think this is a very scary bug. You dont need three iterators, I could reproduce this very easily, In your action class have the following, String[] testArray = new Stri

Re: [S2] OptionTransferSelect in 2.0.8

2007-06-26 Thread Adam Ruggles
https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243 WW-1993 Musachy Barroso wrote: What if the ticket number? That would be a major issue regards musachy On 6/25/07, Adam Ruggles <[EMAIL PROTECTED]>

Re: [S2] OptionTransferSelect in 2.0.8

2007-06-25 Thread Adam Ruggles
Something broke between 2.0.6 and 2.0.8 when posting collections. You will need to create a conversions properties file for your action. I've logged a bug but I haven't had any feed back on it yet. Felipe Rodrigues wrote: HI, I'm having a similar problem. My action only get's the really sele

Re: Spring Action Instantiation

2007-06-19 Thread Adam Ruggles
Are you specifying the entire class name in the action mapping definition instead of using the spring bean id? [EMAIL PROTECTED] wrote: It appears as though I am not getting a new Action instance created for each request! I have placed a logging statement in the constructor of my Action clas

Re: Gets ParametersInterceptor error when trying to set values in a list, eg. tmpList[0].name

2007-06-15 Thread Adam Ruggles
Try adding a conversions.properties file to your action. kris16 wrote: Hi, we have problems with setting HIDDEN values in an array list on a web page. The problem code in the jsp page looks like this: The problem seems to be that the object that are to be set is a list,

Re: Unable to submit lists with 2.0.8

2007-06-13 Thread Adam Ruggles
Ok it worked again once I added a conversion.properties file to the action. Why do I need a conversion properties file now? Did some default setting change in relation to this? Adam Ruggles wrote: My Form looks like this: ... ... My Action looks like this /** * A list

Unable to submit lists with 2.0.8

2007-06-13 Thread Adam Ruggles
My Form looks like this: ... ... My Action looks like this /** * A list of Invoices. */ private List invoices; /** * Sets invoices. * @param invoices The invoices to set. */ public void setInvoices(final List invoices) { this.invoices = invoices;

Re: Populate two fields with one value

2007-05-18 Thread Adam Ruggles
I have to ask... why don't you just set it in the action? public String execute() throws Exception { this.lastName = this.firstName; ... } Mansour wrote: Yes, I do have the correct setters for the Account object. Lance wrote: Do you have the approptriate getters and setters? eg action.

Re: how to disable refresh button and back button

2007-05-07 Thread Adam Ruggles
I don't believe you can. jalal udeen wrote: hi all can any one explain me how to disable both back button and refresh button thanks jalaludeen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: [S2] needs refresh to work properly

2007-05-07 Thread Adam Ruggles
sing the property tag i got no output at all. I'll try to use the webwork stuff. Is this really how it works? On 5/7/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: have you tried using the property tag instead? Diego Yasuhiko Kurisaki wrote: > Hi i've written the following

Re: [S2] needs refresh to work properly

2007-05-07 Thread Adam Ruggles
have you tried using the property tag instead? value="ca.name" /> Diego Yasuhiko Kurisaki wrote: Hi i've written the following in a JSP. ${ca.name} ${ca.description} remove edit I have a method in my action called getClients. Whe

Re: [S2] Initializing Actions from Spring page not found

2007-04-25 Thread Adam Ruggles
Looks like this is where it is trying to go http://cwiki.apache.org/S2PLUGINS/spring-plugin.html#SpringPlugin-InitializingActionsfromSpring wolverine my wrote: Hi! The page is not found when we clicked on "Initializing Actions from Spring" from http://struts.apache.org/2.x/docs/why-would-we-w

Re: [S2] Access DAOs in Spring actions

2007-04-25 Thread Adam Ruggles
If you are using the spring plugin then all you should have to do is add a setter to your action class and spring will handle it. ie public void setUserDAO(IUserDAO userDAO) { this.userDAO = userDAO; } wolverine my wrote: Hi! I have action classes configured in struts.xml and the DataSour

Re: Change the searchLimit for the autocompleter?

2007-04-17 Thread Adam Ruggles
be tackled for 2.0.8: https://issues.apache.org/struts/browse/WW-1886 musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Is there a way to change the default searchLimit on the autocompleter tag? I guess the default is 30 but I nee

Change the searchLimit for the autocompleter?

2007-04-16 Thread Adam Ruggles
Is there a way to change the default searchLimit on the autocompleter tag? I guess the default is 30 but I need that increased. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
de the div and make it visible again it still displays correctly. Musachy Barroso wrote: Follow the white rabbit :) //there could be a bug in the autocompleter anyway musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: The one in the showcase works. Interesting... Musachy Ba

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
The one in the showcase works. Interesting... Musachy Barroso wrote: 2.0.6? Does the page in showcase for the autocompleter display the arrows for you? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Nope. Still nothing displayed. Musachy Barroso wrote: > it is indee

Re: Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
Nope. Still nothing displayed. Musachy Barroso wrote: it is indeed. Do you see the arrow if you don't specify anything in "visibleDownArrow"? musachy On 4/16/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm starting to play with the autocompleter tag but I

Autocompleter showDownArrow doesn't work

2007-04-16 Thread Adam Ruggles
I'm starting to play with the autocompleter tag but I'm running into one issue. No matter what I set showDownArrow to it will never display a down arrow. The html that is sent to the browser looks like this: The code that is generated on the client side (view generated source on firefox) l

Re: Posting Java 5 Enum values

2007-04-16 Thread Adam Ruggles
nutes to write one so no biggy. Thanks for the feedback. Laurie Harper wrote: Adam Ruggles wrote: I have an object that contains a Java 5 enum class. I'm having problems getting this to post back to my action. Is there any documentation on how to do this? Do I need to create a c

Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Adam Ruggles
-fetching the data from the database, user 1 will not know of the change. Even if he/she refreshes the page. Mansour wrote: Adam Ruggles wrote: The problem with the store in session solution is what if two people are working on the same account at the same time? Hummm, Good point. But wait

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-15 Thread Adam Ruggles
The problem with the store in session solution is what if two people are working on the same account at the same time? Mansour wrote: Dave Newton wrote: --- Mansour <[EMAIL PROTECTED]> wrote: I see what you mean now. and after I call update, then I have to populate it again to redisplay the

Re: Validation Random Failures

2007-04-14 Thread Adam Ruggles
I haven't tracked it down yet, but I think it is in the type converters. Are you using dates or decimal values on your forms? Zach Calvert wrote: Has anyone figured out why Validation randomly fails??? On 4/14/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm having a simil

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
ription. Everything else is unchanged. So in my DAO update method I would check for non-null fields and add the ones that are not null to the sql statement. Then execute the statement. Mansour wrote: Adam Ruggles wrote: Then why don't you simply pass the id of the account you want to updat

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
fic. Mansour wrote: I am accessing the DB using JDBC. Adam Ruggles wrote: How are you accessing the database? JDBC, Hibernate, Another ORM solution? Mansour wrote: Ok Dave: you are really helping me a lot. I think I'll have to explain to you exactly what I am doing, and you give me an ad

Re: [OT] [RANT] Re: Preparable or interceptors - is there a better mailing list than this ? some thing for total newbies.

2007-04-14 Thread Adam Ruggles
How are you accessing the database? JDBC, Hibernate, Another ORM solution? Mansour wrote: Ok Dave: you are really helping me a lot. I think I'll have to explain to you exactly what I am doing, and you give me an advice about how to do it. Okay? I 've been trying to learn struts 2 for a week

Re: Validation Random Failures

2007-04-13 Thread Adam Ruggles
I'm having a similar problem. I'm extending the ActionSupport object and I have no validation specified and I'm experiencing the same issue. I did enable validation and the results didn't change. The application was previously built on webwork2 where I didn't experience these issues at all.

Posting Java 5 Enum values

2007-04-13 Thread Adam Ruggles
I have an object that contains a Java 5 enum class. I'm having problems getting this to post back to my action. Is there any documentation on how to do this? Do I need to create a custom type converter/annotation/properties file? -

Re: Eclipse WTP / Struts 2 - Not working!!

2007-04-11 Thread Adam Ruggles
Did you publish your project before starting tomcat through eclipse? [EMAIL PROTECTED] wrote: Hi all This problem has been driving me crazy and I know that it should be a simple problem. I have already posted this in this mailing list, but a simply configuration issue is stopping my developme

Re: Unknown tag error

2007-04-04 Thread Adam Ruggles
Do you have the uri defined in your web.xml file? [EMAIL PROTECTED] wrote: Hi all I am trying to run this sample application. http://struts.apache.org/2.x/docs/simplelogin-with-session.html I am getting errors in this page welcome.jsp <%@ page language="java" contentType="text/html; charset

Re: Changing location of struts.xml

2007-03-28 Thread Adam Ruggles
I put mine in the root of my jar file and it works fine. I don't even have a classes folder. Manu Mahajan wrote: Hello I want to know if it is possible to change the location of the struts.xml file. I don't want to keep it in the WEB-INF\classes directory. Ideally I would like to create a j

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
method on the action when in an iteration loop. For the time being, I'm taking Dave Newton's advice on using the index of the item in the valuestack array in order to access the correct object when in the iteration. I appreciate your help! Eric Rank On Mar 26, 2007, at 7:27 PM, Ad

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
stack that might give a more direect reference to the action? Eric. On Mar 26, 2007, at 5:10 PM, Adam Ruggles wrote: have you tried Eric Rank wrote: Hi Everyone, I'm having an interesting experience with the use of the iterator tag (Struts 2.0.6). I have an action with getter method si

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
have you tried Eric Rank wrote: Hi Everyone, I'm having an interesting experience with the use of the iterator tag (Struts 2.0.6). I have an action with getter method signature which is the same as the getter of an iterator item. As such when I'm within an iterator loop, and I call the g

Re: Cross site scripting issue

2007-03-16 Thread Adam Ruggles
/Nope. What about ? Or Javascript injection through CSS in IE? What about any new Javascript injection mechanism that some browser adds down the line... ;-) / Which browser did you get this injection to work on? Other than fixing the misspelling of alert, I couldn't get the javascript to exec

Re: Cross site scripting issue

2007-03-14 Thread Adam Ruggles
You should check out this site: http://iamcal.com/publish/articles/php/processing_html/ It's in PHP and Perl, but it only took me a couple of hours to translate it to Java. Sami Dalouche wrote: Hi, If you want to escape HTML, you can use Jakarta Commons-Lang StringEscapeUtils class : http:/

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Adam Ruggles
on %{zipUrl} is fetching the zip info from a database and populating the fields that the DIV is supposed to include in the form. I have programmed a bunch of JSP's using this technique with XmlHttpObject! Do you suppose S2 does not allow it? Thanks Scott On 3/14/07, Adam Ruggles <[

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-14 Thread Adam Ruggles
Hi Stanlick, I think I know whats going on here. Whatever %{zipUrl} in the DIV's href property is pointing to is generating the bad HTML. This part: City: State: Is what is being pulled in from your %{zipUrl}. [EMAIL PROTECTED] wrote: Hey Dave, how about *you* disregard this thread

Re: Need more comprehensive AJAX Implementation Instructions

2007-03-11 Thread Adam Ruggles
if you are using a tag with the default theme a form tag is rendered. Inside of that form tag is a table tag. If all you want is a simple tag then use the simple theme. Ian Roughley wrote: No - what I said was that I would be surprised if the s2 tag DOES NOT generate a HTML tag. This wa

Re: [S2] ModelDriven, Preparable and SessionAware do not work with Spring

2007-03-08 Thread Adam Ruggles
One quick thing I see wrong is you have singleton="false" that is a spring 1 attribute. Shih Lee wrote: Hi All, I think I know what is the trouble but am still not sure why is this a problem for Struts 2.0. I hope someone from the Struts community can help to shed some light. The problem is w

Re: NoSuchMethodException: $Proxy18.find()

2007-03-05 Thread Adam Ruggles
I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action s

Re: [S2] replacement for indexed="true"

2007-02-28 Thread Adam Ruggles
The first example you give on vitarara.org is the correct method. Mark Menard wrote: On 2/28/07 11:06 AM, "John Trollinger" <[EMAIL PROTECTED]> wrote: I am trying to use struts 2 and can not figure out how to do the following that I could in struts 1.3 is there still a way to do this

Re: Real time data display in a struts based application.

2007-02-28 Thread Adam Ruggles
The difference between using AJAX and just refreshing a page is a well designed AJAX application sends over just the information that is needed. For a JSP/HTML page refresh you're sending more data over the line. The key here is a well designed AJAX application. Maya menon wrote: Thank you

Re: [S2] Ajax Div bind function not working.

2007-02-26 Thread Adam Ruggles
dojo.widget.byId(id) it will return the widget for the div. musachy On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: The error I'm getting is "Error: elementDiv has no properties." in Firefox. Basically Window[elementId] is returning undefined. This worked fine when

Re: [S2] Ajax Div bind function not working.

2007-02-26 Thread Adam Ruggles
ts/widget/BindDiv.js?view=markup ) ajax docs: http://cwiki.apache.org/WW/ajax-tags.html Showcase has several examples also. regards musachy On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: Well the part it is dying on is the "elementDiv.href = href;" so it isn't even getti

Re: [S2] Ajax Div bind function not working.

2007-02-26 Thread Adam Ruggles
tead. Or "refreshListentTopics" if you wan to use topics. "bind" should have been there for backward compatibility (mea culpa) regards musachy On 2/26/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: I'm currently in the process of migrating my webwork 2 applicatio

[S2] Ajax Div bind function not working.

2007-02-26 Thread Adam Ruggles
I'm currently in the process of migrating my webwork 2 application over to struts 2. I only have one more remaining issue the function specified on this page doesn't seem to work (http://struts.apache.org/2.x/docs/ajax-div-template.html). function refresh(elementId, href) { var elementDiv =

Re: struts.xml problem

2007-02-25 Thread Adam Ruggles
Can you confirm that you have struts2-core-2.0.6.jar in you lib folder and it contains the struts-default.xml file in the root folder in the jar file. alex xander wrote: hi, im using struts 2.x and i have some problem here. i break up my struts.xml into smaller piece when i used struts 2.0.1

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
really is a problem with Struts, then the problem will persist (pun intended); but when you move them to the service layer, it will indicate whether you have mis-configured Spring or if Struts is at fault. Paul Adam Ruggles wrote: I am following the guide here http://cwiki.apache.org/S2WIKI/s

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
configured Spring or if Struts is at fault. Paul Adam Ruggles wrote: I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html For some reason when trying to map a method other than execute I recieve the following error: - Servlet.service() for servlet def

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
with what you're doing. --- Adam Ruggles <[EMAIL PROTECTED]> wrote: Ok I think I found the problem. If I remove the "extends ActionSupport" it works without any problems. I know "extends ActionSupport" works with Webwork 2, is this a bug or a change in imple

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Ok I think I found the problem. If I remove the "extends ActionSupport" it works without any problems. I know "extends ActionSupport" works with Webwork 2, is this a bug or a change in implementation? Adam Ruggles wrote: I am following the guide here http://cwiki.apache

NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html For some reason when trying to map a method other than execute I recieve the following error: - Servlet.service() for servlet default threw exception java.lang.NoSuchMethodException: $Proxy18.find() B