Re: Dojo trouble after upgrade

2009-09-21 Thread Scott Nesbitt
I had to change the JSP file from this: to this I think this is either a bug or an undocumented change to the 2.1 upgrade process, but I am happy it is working. Scott - Original Message From: Scott Nesbitt To: Struts Users Mailing List Sent: Thursday, September 17, 2009 2:56

Re: Dojo trouble after upgrade

2009-09-19 Thread Scott Nesbitt
baseRelativePath option but it changed only the stuff in djConfig, not the includes. Thanks, Scott - Original Message From: Scott Nesbitt To: Struts Users Mailing List Sent: Thursday, September 17, 2009 2:56:56 PM Subject: Re: Dojo trouble after upgrade Yes, I have read the Struts 2

Re: Dojo trouble after upgrade

2009-09-17 Thread Scott Nesbitt
: Dojo trouble after upgrade Dojo has been moved to a plugin in struts 2.1. There are more information on this on the struts 2 wiki site. You are much better of using dojo natively than the plugin [which you can call it an old hag now :) ] --- On Thu, 9/17/09, Scott Nesbitt wrote: > From: Sc

Dojo trouble after upgrade

2009-09-17 Thread Scott Nesbitt
I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo files. Before upgrade: After upgrade: Somehow "/myApp" is getting inserted into thepath instead of ".." Anybody know of how this replacement happens? Is there a way to make it use the relative pathing? Thanks

Re: struts2 portlet bug RenderRequest cannot be obtained in event phase

2009-08-07 Thread Scott Nesbitt
So Ajax actions do not work in Struts portlets? If not, do you know if there are plans for them to work in the future? Thanks, Scott - Original Message From: Nils-Helge Garli Hegvik To: Struts Users Mailing List Sent: Friday, August 7, 2009 4:41:53 AM Subject: Re: struts2 portlet

Mixing portlet with regular pages

2009-08-04 Thread Scott Nesbitt
I have an existing Struts 2.1.6 configuration that is working fine. I am interested in adding a new page that contains a single portlet, and also having the portlet be accessed from a totally different server. Is this possible with the Struts portlet plugin? I have read the portlet plugin a

Problem with IE6 after upgrading to 2.1

2009-07-20 Thread Scott Nesbitt
I recently upgraded from Struts 2.0.12 to 2.1.6. Everything works fine in IE8, but IE6 (sometimes) hangs before it finishes downloading everything. One one machine it works with IE6, and on another it hangs. Using Fiddler2 I see that IE6 is not requesting the very last .GIF file on the page t

Migration trouble

2009-06-03 Thread Scott Nesbitt
I am migrating from Struts 2.0.11.1 to 2.1.6 and have read the migration guide but am running into trouble. I changed my web.xml to struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 *.action struts2

S2: Bug in struts or dojo? was Re: S2: Getting info from server via topic

2007-07-26 Thread Scott Nesbitt
Is this a bug in Struts 2.0.6 or Dojo 0.4? Why would there be garbage in the data argument? Is this not the right way to subscribe to a topic? Surely somebody out there is doing this. Thank you, Scott --- Scott Nesbitt <[EMAIL PROTECTED]> wrote: > > Hmm, when I print out the

Re: S2: YUI plugin and autocompleter

2007-07-19 Thread Scott Nesbitt
parameter. Which > give this : > > > > myAutoComp.useIFrame = true; > > > > My 2 cents, > > > > Pierre Goupil > > > > > > > > 2007/7/18, Scott Nesbitt <[EMAIL PROTECTED]>: > > > > > > > > > Usin

S2: YUI plugin and autocompleter

2007-07-18 Thread Scott Nesbitt
Using the YUI plugin with the Yahoo autocompleter is working pretty well, but the autocompletion dropdown is not positioned under the textfield. Here is my markup: State: Is there something I have to do to get the dropdown positioned correctly? Does anyone else see this? Thanks, Scott

Re: S2: Getting info from server via topic

2007-07-18 Thread Scott Nesbitt
include file="sports.jsp" %> Thanks for the help, Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Anything that you write to the output stream on your > action will be > available on the "data" argument. > > musachy > > On 7/17/07, Scott

S2: Getting info from server via topic

2007-07-17 Thread Scott Nesbitt
For this topic: dojo.event.topic.subscribe("/saveTopic", function(data, type, e) { // data : text returned // type : "before", "load" or "error" // e: request object if ('load' == type) { } } When my action on the server is successful the type is set to load and things work great. Ho

S2: how to send infor back to a subscribed topic

2007-07-12 Thread Scott Nesbitt
I have a topic like this: dojo.event.topic.subscribe("/saveTopic", function(data, type, e) { // data : text returned // type : "before", "load" or "error" // e: request object if ('load' == type) { } } When my action on the server is successful the type is set to load and things wo

Re: S2: probable bug in updownselect tag

2007-07-11 Thread Scott Nesbitt
all elements. You can fix this by > overriding the templates in > the xhtml theme. Struts 2.1 will have a fix in place > to resolve this issue, but > until then the template fix is the only way to > resolve it I believe. > > James > http://jamesholmes.com/StrutsTCR/ > &g

S2: probable bug in updownselect tag

2007-07-11 Thread Scott Nesbitt
In 2.0.6 the updownselect tag only sends items that are selected to the server. The documentation says that all items in the list will be sent. Is this a bug? Will it be fixed in 2.1? Thanks, Scott Expect

S2: YUI plugin and yahoo calendar

2007-07-10 Thread Scott Nesbitt
I am evaluating the yahoo calendar and am having a bit of trouble with the YUI plugin. I would like to enable multiple select on calendar but do not see an option to set this through the plugin. Does anyone know of a way to do this? I tried the example code but the script in YAHOO.util.Event.ad

S2: Redirect question

2007-07-02 Thread Scott Nesbitt
We have the following: Select.jsp …… ……… Lineup History … Struts.xml globalUserInformation userDetailsBean true /html/lineup-history.jsp Upon clicking on the url d

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
","${o.code}"] > <#if o_has_next>, > > ] > > musachy > > On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > Hmm, I guess I could do that, though I would have > to > > learn a bit more about F

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
last comma from the list like > this: > > > > [ > > ["ALABAMA STATE UNIV HORNETS"], > > ["ALBANY ST UNIV GOLDEN RAMS"], > > ["BALDWIN-WALLCE CLG YELLW JCKTS"], > > ["BALL ST UNIV CARDINALS&

S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
Using the following code: I am getting what looks like a Dojo error: Object error at line 4871. Here is what Fiddler says is the JSON I return: [ ["ALABAMA STATE UNIV HORNETS"], ["ALBANY ST UNIV GOLDEN RAMS"], ["BALDWIN-WALLCE CLG YELLW JCKTS"], ["B

S2: updownselect

2007-06-23 Thread Scott Nesbitt
I am using the updownselect tag and things are almost working perfectly. Once I switched to a s:form it sends the sorted list to the server, but the select gets refreshed on the screen and scrolled to the bottom despite the fact that it is not in a refreshing div. Has anybody else run into this

S2: updownselect not sending complete list

2007-06-21 Thread Scott Nesbitt
I am using the updownselect tag and things are almost working perfectly. The only problem I have is that the list that gets sent back to the server only includes the rows that have been selected. I patterned my code after the showcase example (which does work), but despite my best efforts I cann

s2 if tag question

2007-06-15 Thread Scott Nesbitt
I am having a bit of trouble using the if tag. This code: Screen Alert: checked value="1">Yes checked value="2">No Gives this error: DEBUG util.OgnlValueStack - Caught an exception while evaluating expression 'userDetailsBean.userPreferencesBean.mmPrelimScreenAlert == 'N'' again

Re: S2: datetimepicker and multiple date formats

2007-06-13 Thread Scott Nesbitt
he right format). Warning! bad advise ahead: You can always do something crazy like: dojo.widget.byId("dp").setValue = function(dateObj) { }; and then do your thing there, or extend StrusDatePicker widget, which I would strongly advise not to :) musachy On 6/12/07, Scott Nesbitt <[EMAIL PRO

S2: datetimepicker and multiple date formats

2007-06-12 Thread Scott Nesbitt
I have this code: It works fine if the user uses the drop-down or types in a date in just the right format. However, we would like the following to work better: user input actual value desired value -- - 06-12-07 NaN-NaN

Re: S2: How to update two separate divs using one action call?

2007-06-12 Thread Scott Nesbitt
but adding a > semicolon at the end looks better :). You could also > make them listen to a > common topic an publish that one to make them > refresh, in any case it should > work they way you have it. > > musachy > > On 6/12/07, Scott Nesbitt <[EMAIL PROTECTED]> &g

S2: How to update two separate divs using one action call?

2007-06-12 Thread Scott Nesbitt
I have some code like this that is not working: dojo.event.topic.subscribe("/refreshTopic", function(data, type, e) { if ('load' == type) { dojo.event.topic.publish("/refreshCableHeadends") dojo.event.topic.publish("/refreshTDGrid") return; } } Only th

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
ache.org/struts/browse/WW-1945 > > musachy > > > > On 5/25/07, Musachy Barroso <[EMAIL PROTECTED]> > wrote: > > > > 2.1 is going to ship with 0.4.2 or 0.4.3, as for > 0.9 we don't have any > > estimated time. > > > > musachy > > >

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
etSelectedValue("value"); > > I can't try it myself now, but that's the only > method that seems to set a > value in the autocompleter widget. > > musachy > > On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > >

Re: S2: cannot access bean from dialog

2007-05-25 Thread Scott Nesbitt
> executes said Action, then forwards to a JSP. If > you have the browser > access the JSP directly, it won't be available. > > Don > > On 5/25/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > This is working fine

S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
I have an autocompleter like this: In some JavaScript I would like to set the state to, say, Arizona. This is not working: var t = dojo.widget.byId('states'); t.value = 'AZ'; Any ideas? I also tried statesKey, no luck. Thanks, Scott __

S2: cannot access bean from dialog

2007-05-24 Thread Scott Nesbitt
This is working fine in my main JSP: However, when I call a dialog like this: window.open('overlay-headends.jsp'); This JSP cannot access the fields in the userDetailsBean in the main JSP. Any ideas? The userDetailsBean is a session attribute. Thanks, Scott _

Re: S2: submit tag and handler

2007-05-04 Thread Scott Nesbitt
t;? > > musachy > > //if you really have to hack around reloadContent, > it is defined here: > > http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/dojo/src/main/resources/org/apache/struts2/static/dojo/struts/widget/Bind.js?view=markup > > On 5/3/07, Scott Nesbitt &l

Re: S2: submit tag and handler

2007-05-03 Thread Scott Nesbitt
Anybody have a suggestion on this? Or do I just need to wait until the next version of Struts? Thanks, Scott --- Scott Nesbitt <[EMAIL PROTECTED]> wrote: > > Well, I tried this: > > function handler(widget, node) > { >var beforeTopicsArray = > wid

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
t.beforeNotifyTopicsArray = null; > widget.reloadContents(); > widget.beforeNotifyTopicsArray = beforeTopicsArray; > > I will add a "refreshContent" method that will be > common for all of the > widgets (and part of the api), with one > parameter(boolean), to skip the > pu

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
t passed as a parameter, if you are using > the div tag, you can call > "refresh()" on it. These functions are not really > part of the api and might > change in the future (although it would be nice if > they were right?). > > musachy > > On 5/2/07, Scott Nesb

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
framework to do the ajax request, > Dojo, Prototype, YUI, > DWR, JQuery,zillion_framework_name > } > > is that what you are trying to do? do the request > yourself? > > musachy > > On 5/2/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > Does

S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
Does anyone know how to invoke a request from a submit handler function? I am using a submit tag like this: Div 1 My Javascript looks like this: function handler(widget, node) { alert("DEBUG in handler"); } dojo.event.topic.subscribe("/after", function(data, type, e) { alert("Lineup

Re: S2: Autocompleter and focus

2007-05-02 Thread Scott Nesbitt
ind posting the onload script? I'm having > trouble with it... > > Thanks... > > David M. > > Scott Nesbitt wrote: > > > > > > I am having trouble setting the focus on an > > autocompleter field. > > > > When I print o

Re: S2: Disable datetimepicker

2007-04-24 Thread Scott Nesbitt
Works great! Thanks, Musachy. Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Assign an id to your datepicker, lets say "dp1" and > do this: > > dojo.widget.byId("dp1").disable(); > > to enable it: > > dojo.widget.byId("dp1&

S2: Disable datetimepicker

2007-04-24 Thread Scott Nesbitt
I would like to enable/disable the datetimepicker when the user selects certain radio buttons. Here is my tag: I can disable (and clear) the textbox next to the calendar icon like this: var ud = getField('mainForm', 'untildate'); ud.value = ""; ud.disabled = true; But this does not

Re: S2: Autocompleter and focus

2007-04-19 Thread Scott Nesbitt
alue? It is > a Dojo thing and I'm not sure why, but there is > probably a good reason :). > The focus should be set on the visible one. > > musachy > > On 4/18/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > I am having trouble setti

S2: Autocompleter and focus

2007-04-18 Thread Scott Nesbitt
I am having trouble setting the focus on an autocompleter field. When I print out all the fields in my overlay, I see three for the sports team autocompleter: sportsTeam sportsTeamKey (one with no name) (why does it have no name?) Here is how it is declared: In my onbodyload() function

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
to it from the other autocopleter, using > "formId" > > musachy > > On 4/13/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > Well, there is not submit per se, the action is > > getting called when the user types the second c

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
ing /html/LookupSportsTeam with method execute. No mention of sportsOrg. Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > When you click submit, are they getting submitted to > the action (with > values)? > > musachy > > On 4/13/07, Scott Nesbitt <[EMAIL PROT

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
ed the value of what was looked up in the sportsOrg field, but I can't seem to get it. My sportsOrg and sportsOrgKey variables are always null. Scott --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Scott Nesbitt <[EMAIL PROTECTED]> wrote: > > Not sure why it should b

Re: Problem passing form fields with autocompleter

2007-04-12 Thread Scott Nesbitt
getFoo()" > > regards > musachy > > On 4/12/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > I have a form with an autocompleter like this: > > > > validate="false"> > >> action="LookupS

Problem passing form fields with autocompleter

2007-04-12 Thread Scott Nesbitt
I have a form with an autocompleter like this: I expected that my LookupSportsTeamAction class (which extends ActionSupport and has a getter and setter on foo) would be able to use the foo member variable. But it is always null, though the sportsTeam variable is being set co

S2: Simple way to pass data

2007-04-11 Thread Scott Nesbitt
In my app I have need menu items at the top of every page that are links do other pages. I also need a common date and dropdown selection on most pages. My challenge is how to componentize the date/dropdown selection so it can be re-used on each page, and then get the data passed to the action c

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
uot;NCAA BKBL BIG EAST CONF"], ["NCAA BKBL BIG SKY CONF"], ] That trailing comma is not a problem, is it? (It is there in the working and nonworking lookups.) Thanks, Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Looks right, and is it returning data f

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
like > > http://../LookupOrgs.action?org=ab > http://../LookupOrgs.action?org=abc > > ... > > regards > musachy > > On 4/10/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > I am using the autocompleter tag like

S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
I am using the autocompleter tag like this: When I type a two-char string in the text box it works fine: six items in the dropdown. However, when I add another char there is nothing in the dropdown. When I add a fourth char I get six items again. When I backspace to three chars

Re: S2: Better passing of fields by link

2007-04-06 Thread Scott Nesbitt
? Just do: > > > > like what you did for the autocompleter, there are a > few examples on > showcase also. > > musachy > > On 4/5/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > I have a link that calls an action and I would >

S2: Better passing of fields by link

2007-04-05 Thread Scott Nesbitt
I have a link that calls an action and I would like the action class to have some field values from my page. Currently I do this: Edit Lineup In rewriteLink() I manually create a list of parameter key/values. Is there a better way? In my autocompleter tag I can just do formId="dataForm" and

Re: S2: Passing paramaters with autocompleter

2007-04-05 Thread Scott Nesbitt
in, Scott --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > You can use the "formId" attribute, like: > > >//fields here > > > > > and it will pass the fields of the form as > paramteers when the autocompleter > is loaded. > >

S2: Passing paramaters with autocompleter

2007-04-05 Thread Scott Nesbitt
I am trying to use the Ajax autocompleter and would like to pass some parameters. This is my JSP: Select a Sports Team Unfortunately, state is not set and the only parameter that is passed (a 'p' was typed in the field) has no key: 10:

Re: S2: What do you forward to after a response writer?

2007-03-30 Thread Scott Nesbitt
n download it from struts2 website. > regards > joey > On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > Hmm, when I have this class > > > > public class PopulateGridAction extends > ActionSupport > > implements Paramet

Re: S2: What do you forward to after a response writer?

2007-03-26 Thread Scott Nesbitt
OTECTED]> wrote: > you can just register a custom result which > implement com.opensymphony.xwork2.Result. > > Find detail in struts2 document. > > > On 3/26/07, Scott Nesbitt <[EMAIL PROTECTED]> > wrote: > > > > > > I am moving an app from

S2: What do you forward to after a response writer?

2007-03-26 Thread Scott Nesbitt
I am moving an app from S1 to S2 that has a third-party grid component. In S1 it looked like this: public ActionForward perform( ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) { try { GetHandler myGetHandler = new

Re: Dynamic parameter question - S2

2007-03-13 Thread Scott Nesbitt
way to do this with a link, correct? Thanks for the response, Scott --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Scott Nesbitt <[EMAIL PROTECTED]> wrote: > > I would like to have a url pass a parameter based > on > > the value of a field on the JSP. My code look

Dynamic parameter question - S2

2007-03-13 Thread Scott Nesbitt
I would like to have a url pass a parameter based on the value of a field on the JSP. My code looks like this: Lineup History Sadly, in my action class this: log.debug("In execute, parameters size: " + parameters.size()); says zero. If I use the name of a select tag instead of a hi

Cannot find Struts taglib

2007-02-02 Thread Scott Nesbitt
I am getting the following when I try to use the taglib: Servlet failed with Exception java.lang.NullPointerException at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:56) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:51) He

NPE in TagUtils.getStack

2007-01-26 Thread Scott Nesbitt
I am getting the same NPE in TagUtils.getStack that was mentioned before at: http://www.mail-archive.com/dev@struts.apache.org/msg26104.html However, the resolution mentioned there (update web.xml, get other necessary files) does not seem to work for me. I have no doubt that there is a simple c

fileUpload redirect problem

2004-04-20 Thread Scott Nesbitt
" returns some posts from 2002, but no solutions other than upgrade to the 1.1 release version of struts, which I am running. Any suggestions would be greatly appreciated. Thanks, Scott Nesbitt __ Do you Yahoo!? Yahoo! Photos: H