Re: Autocompleter of Struts 2

2009-04-27 Thread 周建新
check the doc,Tag Reference Parameters Name: resultsLimit Required: false Default: 30 Description: how many results are shown as autocompletion options, set to -1 for unlimited results On 4/27/09, NR031 wrote: > > > Hi, > >I am following the tutorial given > > http://www.roseindia.net/stru

Re: Open an excel in Struts application

2009-04-27 Thread musomesa
Here is the link to the discussion on Jasperforge http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=47545 I wasn't aware of a poi-plugin for Struts2 -- can't see it in the registry. I used the JasperReports plugin and the poi jar. You must have a different approa

[HELP] can we set multiple extended packages??

2009-04-27 Thread 白鹏
here defines the *authorityStack * // but the debugger told me it* could not find the authorityStack!* Does anyone can help? Thanks !

Re: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread Dave Newton
Martin Gainty wrote: //ping rainier as earlier suggested for a response on this opensymphony issue Is WW even being developed anymore? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

RE: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread Martin Gainty
//ping rainier as earlier suggested for a response on this opensymphony issue //Latest WW 2.2.7 distro d/l http://www.opensymphony.com/webwork/download.action /** Copyright (c) 2002-2003 by OpenSymphony All rights reserved.*/ package com.opensymphony.webwork.showcase.validation; //NOT xwork2..

Re: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread Dave Newton
mraible wrote: Does that mean there isn't a bug and I'm doing something wrong? (No, I haven't looked at the AppFuse stuff yet; just trying to figure out what the previous response was trying to say.) Dave - To unsubscribe

Re: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread mraible
newton.dave wrote: > >> //lets take a look at documentation on using visitor field validator from >> http://struts.apache.org/2.0.14/docs/using-visitor-field-validator.html >> public class VisitorValidatorsExampleAction extends >> AbstractValidationActionSupport >> >> //Latest WW 2.2.7 distro

RE: Struts and encoding ISO-8859-1

2009-04-27 Thread Niklas Johansson
Hello, I did download Struts2 trunk and current but count't build any without "BUILD FAILED". Will this be a problem (sorry for being a bit lazy, don't want to switch to 2.1.7 if it doesn't work...)? If I go back to UTF-8, do I need to upgrade to Struts 2.1.7 in order to get åäö working? Do y

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
I have a question. Why are you using PostConstruct anyway? AFAIK, a new action is created for each request. This is not going to work like a servlet where it is created, you perform some initialization. I think the problem is caused by the mixing of APIs. My guess is that whatever you are t

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Miguel
Check you only have one ocurrence of "myService" in your spring configuration specially if it's in more than one file. Maybe there is more than one instance and spring uses the "last wins" design principle. Si quieres ser más positivo, pierde un electrón Miguel Ruiz Velasco Sobrino On Mon, Apr

Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Burton Rhodes
I meant 'cssErrorClass' On Mon, Apr 27, 2009 at 1:25 PM, Burton Rhodes wrote: > I use 'cssError'  property with the simple theme. Works on text > fields, but still haven't been able to set css properly for the > datetimepicker. > > On 4/27/09, Dave Newton wrote: >> Cristian Peraferrer wrote: >

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread e_sli...@yahoo.it
Hi Norris and Dave! Thank you for your answers. Yes, I have get/set methods for myService. If you means declaring: in my struts.xml for my object factory, yes. I don't have @Component for Spring injection, but I suppose Spring work well as far as the myService bean is available in my context

Re: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread Dave Newton
//lets take a look at documentation on using visitor field validator from http://struts.apache.org/2.0.14/docs/using-visitor-field-validator.html public class VisitorValidatorsExampleAction extends AbstractValidationActionSupport //Latest WW 2.2.7 distro d/l http://www.opensymphony.com/webwork/d

RE: Upgrading AppFuse to Struts 2.1

2009-04-27 Thread Martin Gainty
Matt- http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html the advice to 86 the old xwork libraries (Your application is now dependent on xwork-2.1.x) is premature //lets take a look at documentation on using visitor field validator from http://struts.apache

Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Burton Rhodes
I use 'cssError' property with the simple theme. Works on text fields, but still haven't been able to set css properly for the datetimepicker. On 4/27/09, Dave Newton wrote: > Cristian Peraferrer wrote: >> Is there a way in struts2 to point out that there was validation >> errors in each input f

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Norris Shelton
Did you set Spring to be your object factory in your struts.xml. If you used Spring annotations, did you annotate your bean to be injected with @Component and designate a base package for Spring to scan for beans? Norris Shelton Software Engineer Sun Certified Java 1.1 Programmer Shelton Cons

Re: Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread Dave Newton
e_sli...@yahoo.it wrote: Hello everybody! I'm trying to use my service into a Struts action but with no success. My struts action contains : @Autowired private MyService myService @PostConstruct public void init() { // use here myService } Unfortunately myService is always null and I canno

Autowired and PostConstruct with Struts + Spring

2009-04-27 Thread e_sli...@yahoo.it
Hello everybody! I'm trying to use my service into a Struts action but with no success. My struts action contains : @Autowired private MyService myService @PostConstruct public void init() {   // use here myService } Unfortunately myService is always null and I cannot use myService in the init

RE: HTML:errors

2009-04-27 Thread McDowell, Paula
Thanks, this works for my needs. Paula -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Friday, April 24, 2009 2:57 PM To: Struts Users Mailing List Subject: Re: HTML:errors McDowell, Paula wrote: > So is "Globals" a session bean with constant variable ERROR_KEY?

class in applet-jar not found

2009-04-27 Thread Stephan Schröder
this is actually not a struts2-problem, but it came up in a struts2 projet of mine: a applet of mine won't start because the main-class can't be found, which is of course present in the applet. I appended the applet and a test.html-file ( http://www.nabble.com/file/p23256861/MosaicUploaderTest.zi

Upgrading AppFuse to Struts 2.1

2009-04-27 Thread mraible
This weekend, I attempted to upgrade AppFuse to use Struts 2.1 (formerly using 2.0.11.1). I used the following instructions: http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html After completing all the steps, I was able to get everything to compile and star

Re: Open an excel in Struts application

2009-04-27 Thread Dave Newton
Martin Gainty wrote: BTW: If you want Poi Action classes you will need the POI-plugin for Struts Can you provide a link to the POI plugin? Thanks, Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additio

RE: Open an excel in Struts application

2009-04-27 Thread Martin Gainty
which error is displayed? can you show the logs? BTW: If you want Poi Action classes you will need the POI-plugin for Struts Thanks, Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité

RE: How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-27 Thread Qunhuan Mei
Dave, Thank you so much for your reply. It is a big relief when hope is shown for solving the problem. Could you confirm that by your stylesheet overriding approach do you mean to write some css code for the below "tdLabel" (or "label", if applicable) class? Qunhuan ~~

Re: How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-27 Thread Dave Newton
While I haven't noticed this behavior, you can override the S2 stylesheet by including your own stylesheet with overriding definitions after the S2 head tag. Dave Qunhuan Mei wrote: Hi, I have a form which uses struts tag “textfield” and “text”. The default font style for label generated

Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Dave Newton
Cristian Peraferrer wrote: Is there a way in struts2 to point out that there was validation errors in each input field, like putting an error style using errorStyleClass (of struts1)? struts1 example: The xhtml theme does this by default. The style can be overridden by including your own st

Autocompleter of Struts 2

2009-04-27 Thread NR031
Hi, I am following the tutorial given http://www.roseindia.net/struts/struts2/struts2uitags/autocompleter-example.shtml HERE The autocompleter is working well and good but it is listing only the 1st 30 entries only (In the dropdown list). Why it is not showing the remaining items? Thank

How to turn the struts textfield label from default italic to normal (struts 2.1.6)

2009-04-27 Thread Qunhuan Mei
Hi, I have a form which uses struts tag “textfield” and “text”. The default font style for label generated for textfield appears to be italic while the one for text is normal. e.g. for The html code generated by struts are (seen by the browser’s view source.):

[s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Cristian Peraferrer
Hi, Is there a way in struts2 to point out that there was validation errors in each input field, like putting an error style using errorStyleClass (of struts1)? struts1 example: Thanks, Cris. -- GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch -

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread NR031
Hi Terry, My struts.xml looks like this : 405 The requested method is unsupported /JSPPages/Exception.jsp /JSPPages/LoginPage.jsp

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Lukasz Lenart
2009/4/27 NR031 : >   I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle > exception in Struts 2? Just define global result and put entries for given exceptions in struts.xml, like below 405 The requested method is unsupport

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Terry Gardner
Can you be a little more clear about your ask? Using the examples in the given URL, are you asking about: 1. How to code exception.jsp? 2. How to code SQLExceptionAction.java? 3. What is on the ValueStack in these examples and an Exception occurs? 4. something else? On Apr 27, 2009, at 4:34 AM

Exception Handling in Struts 2.0.11

2009-04-27 Thread NR031
Hi, I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle exception in Struts 2? I saw the tutorial given http://struts.apache.org/2.0.11/docs/exception-configuration.html http://struts.apache.org/2.0.11/docs/exception-configuration.html , but it doesn't contain a sample