Re: Dojo trouble after upgrade

2009-09-21 Thread Scott Nesbitt
I had to change the JSP file from this: sx:head/ to this sx:head baseRelativePath=../struts/dojo/ 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 scottnesb...@yahoo.com

Re: Dojo trouble after upgrade

2009-09-19 Thread Scott Nesbitt
/styles.css type=text/css/ When in 2.0 it generated link rel=stylesheet href=../struts/xhtml/styles.css type=text/css/ I tried tweaking the baseRelativePath option but it changed only the stuff in djConfig, not the includes. Thanks, Scott - Original Message From: Scott Nesbitt

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: script type=text/javascript src=../struts/simple/dojoRequire.js/script After upgrade: script language=JavaScript type=text/javascript src=/myApp/struts/ajax/dojoRequire.js/script

Re: Dojo trouble after upgrade

2009-09-17 Thread Scott Nesbitt
, Scott Nesbitt scottnesb...@yahoo.com wrote: From: Scott Nesbitt scottnesb...@yahoo.com Subject: Dojo trouble after upgrade To: user@struts.apache.org Received: Thursday, September 17, 2009, 5:03 PM I upgraded from 2.0.6 to 2.1.6 and am experiencing pathing trouble with Dojo files

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 nil...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Friday, August 7, 2009

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

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

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 filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class /filter

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 value of the data

Re: S2: YUI plugin and autocompleter

2007-07-19 Thread Scott Nesbitt
, Pierre Goupil [EMAIL PROTECTED] wrote: I'm not sure but maybe its due to a bug in IE. See : http://developer.yahoo.com/yui/autocomplete/ and look for the use iframe parameter. Which give this : myAutoComp.useIFrame = true; My 2 cents, Pierre Goupil 2007/7/18, Scott

Re: S2: Getting info from server via topic

2007-07-18 Thread Scott Nesbitt
=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 Nesbitt [EMAIL PROTECTED] wrote: For this topic

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: s:url id=statesUrl action=AjaxTest namespace=/nodecorate includeParams='none'/ div

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. However,

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 work

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

Re: S2: probable bug in updownselect tag

2007-07-11 Thread Scott Nesbitt
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/ On Wed Jul 11 14:25 , Scott Nesbitt [EMAIL PROTECTED] sent

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

S2: Redirect question

2007-07-02 Thread Scott Nesbitt
We have the following: Select.jsp …… s:head theme=ajax debug=true/ ……… s:url id=historyUrl action=LineupHistory/ s:a href=%{historyUrl} theme=ajax formId=selectedDataLineup History/s:a … Struts.xml action name=LineupHistory class=com.mycompany.action.LineupHistoryAction

S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
Using the following code: s:url id=autosportsteam action=LookupSportsTeam/ s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey theme=ajax formId=sportsForm

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
], [ALBANY ST UNIV GOLDEN RAMS], [BALDWIN-WALLCE CLG YELLW JCKTS], [BALL ST UNIV CARDINALS], [BAYLOR UNIV BEARS], [CATAWBA COLLEGE] -- removed comma ] On 6/26/07, Scott Nesbitt [EMAIL PROTECTED] wrote: Using the following code

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt
] 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 Freemarker above my simple template: [ #list options as o [${o.description},${o.code}], /#list ] However, when I went back

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

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

s2 if tag question

2007-06-15 Thread Scott Nesbitt
I am having a bit of trouble using the if tag. This code: labelScreen Alert:/label input type=radio name=pScreenAlert s:if test=userDetailsBean.userPreferencesBean.mmPrelimScreenAlert == 'N'checked/s:if value=1Yes input type=radio name=pScreenAlert s:if

Re: S2: datetimepicker and multiple date formats

2007-06-13 Thread Scott Nesbitt
= 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 PROTECTED] wrote: I have this code: s:datetimepicker id=selectedDate name=selectedDate

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 the

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

2007-06-12 Thread Scott Nesbitt
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] wrote: I have some code like this that is not working

S2: datetimepicker and multiple date formats

2007-06-12 Thread Scott Nesbitt
I have this code: s:datetimepicker id=selectedDate name=selectedDate displayWeeks=5 displayFormat= MM-dd-

S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
I have an autocompleter like this: s:autocompleter name=states id=states theme=simple autoComplete=false showDownArrow=false searchType=startstring forceValidOption=true

Re: S2: Want to set autocompleter value

2007-05-25 Thread Scott Nesbitt
, 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 On 5/25/07, Scott Nesbitt [EMAIL PROTECTED] wrote: That does not seem to do anything for me. After reading this: http

S2: cannot access bean from dialog

2007-05-24 Thread Scott Nesbitt
This is working fine in my main JSP: s:hidden id=selectedCallLetters name=selectedCallLetters value=%{userDetailsBean.selectedCallLetters}/ However, when I call a dialog like this: window.open('overlay-headends.jsp'); This JSP cannot access the fields in the userDetailsBean

Re: S2: submit tag and handler

2007-05-04 Thread Scott Nesbitt
, 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 [EMAIL PROTECTED] wrote: Anybody have a suggestion on this? Or do I just need to wait

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 = widget.beforeNotifyTopicsArray

Re: S2: Autocompleter and focus

2007-05-02 Thread Scott Nesbitt
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 out all the fields in my overlay, I see three for the sports team autocompleter: sportsTeam sportsTeamKey (one

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
, 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 anyone know how to invoke a request from a submit handler function? I am using a submit tag like this: div id

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
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 Nesbitt [EMAIL PROTECTED] wrote: Yes, I would like to do the request in the JavaScript

Re: S2: submit tag and handler

2007-05-02 Thread Scott Nesbitt
; 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 publishing of the topics. musachy On 5/2/07, Scott Nesbitt [EMAIL PROTECTED

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: s:datetimepicker name=untildate displayWeeks=4 displayFormat= MM-dd-/ I can disable (and clear) the textbox next to the calendar icon like

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).enable(); musachy On 4/24/07, Scott Nesbitt [EMAIL PROTECTED

Re: S2: Autocompleter and focus

2007-04-19 Thread Scott Nesbitt
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 setting the focus on an autocompleter field. When I print out all the fields in my overlay, I see three

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: s:autocompleter

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
. Scott --- Dave Newton [EMAIL PROTECTED] wrote: --- Scott Nesbitt [EMAIL PROTECTED] wrote: Not sure why it should be getBar(). The name of the hidden field is foo, so shouldn't that be the variable that has the getter and setter? You guys are both right. The argument to the 'value

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
/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 PROTECTED] wrote: Well, it is great

Re: Problem passing form fields with autocompleter

2007-04-13 Thread Scott Nesbitt
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 char in the lookup editor. Here is the log when the user types zz: DEBUG

Problem passing form fields with autocompleter

2007-04-12 Thread Scott Nesbitt
I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form-edit s:autocompleter name=sportsTeam id=sportsTeam keyName=sportsTeamKey

Re: Problem passing form fields with autocompleter

2007-04-12 Thread Scott Nesbitt
a getBar() defined on your action, not a getFoo() regards musachy On 4/12/07, Scott Nesbitt [EMAIL PROTECTED] wrote: I have a form with an autocompleter like this: s:form id=mainForm theme=simple validate=false s:url id=autosportsteam action=LookupSportsTeam/ div class=form

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

S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
I am using the autocompleter tag like this: s:url id=autoorgs action=LookupOrgs/ s:autocompleter name=org id=org keyName=orgKey theme=ajax href=%{#autoorgs}

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
?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 this: s:url id=autoorgs action=LookupOrgs/ s:autocompleter name=org id=org

Re: S2: Autocompleter strange behavior

2007-04-10 Thread Scott Nesbitt
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 for all of them? musachy On 4/10/07, Scott Nesbitt [EMAIL PROTECTED] wrote

Re: S2: Better passing of fields by link

2007-04-06 Thread Scott Nesbitt
? Just do: s:a theme=ajax formId=form .. / 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 like the action class to have some field

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: form id=selectForm s:url id=autosports action=LookupSports includeParams=all s:param name=key value=SearchString/ s:param name=value value=yarr/ s:param name=context

Re: S2: Passing paramaters with autocompleter

2007-04-05 Thread Scott Nesbitt
--- Musachy Barroso [EMAIL PROTECTED] wrote: You can use the formId attribute, like: form id=dataForm //fields here /form s:autocompleter formId=dataForm .. / and it will pass the fields of the form as paramteers when the autocompleter is loaded. musachy On 4/5/07, Scott Nesbitt

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: s:url id=editUrl action=EditLineup includeParams=all/ s:a href=%{editUrl} onclick=this.href=rewriteLink(this.href)Edit Lineup/s:a In rewriteLink() I manually create

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

2007-03-30 Thread Scott Nesbitt
read the document and source of result. you can 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 ParameterAware, Result With this method

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 =

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

2007-03-26 Thread Scott Nesbitt
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 S1 to S2 that has a third-party grid component. In S1 it looked like this: public

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: s:url id=historyUrl action=LineupHistory includeParams=all s:param name=foo value=%{barbar}/ /s:url s:a href=%{historyUrl}Lineup History/s:a s:hidden name=barbar value=%{'baz'}/

Re: Dynamic parameter question - S2

2007-03-13 Thread Scott Nesbitt
there is a 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 looks like this: Unless the field

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)

fileUpload redirect problem

2004-04-20 Thread Scott Nesbitt
(RequestDispatcherImpl.java:111) A search on Original request not available 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