Re: Embedded Maps as arguments

2009-01-26 Thread Jeromy Evans
On 27/01/2009, at 4:57 AM, Matthew Seaborn wrote: As I have grid of checkboxes I am currently trying to use embedded maps as arguments in Struts 2, for example using @CreateIfNull( value = true ) @Element( value = HashMap.class ) public Map> getTestMap() { return testMap; } Using /testActi

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Jeromy Evans
en don't try to pretend it's not. eg. Have your action mapper direct the request to a different controller to create the alternative model. regards, Jeromy Evans - To unsubscribe, e-mail: user-unsubscr...@struts.ap

Re: IE ajax theme form data problem

2009-01-28 Thread Jeromy Evans
Try turning off the loading text. It's a guess, but it sounds similar to the loadingText bug due to Dojo in IE. If the target div contains the source form and loadingText enabled, the loadingText overwrites the form before the its new values are read. Details are mentioned several times i

Re: Problem with Dojo in struts2

2009-01-29 Thread Jeromy Evans
uses) Finally, is the tree supposed to contain anything? Your example doesn't provide sufficient attributes. Also don't do too much at once; ensure sitemesh works, then tiles works, then that the widgets work. Hope that helps a little, Jeromy Evans --

Re: struts2 and tiles

2009-01-31 Thread Jeromy Evans
s 1 to Struts 2 will help you understand this (plus the Struts2 pages on i18n). Hope that helps, Jeromy Evans - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to improve dojo performance in Struts 2.0.9

2007-10-10 Thread Jeromy Evans
As suggested, I've added these instructions to the community wiki. http://cwiki.apache.org/confluence/display/S2WIKI/Creating+a+custom+Dojo+profile+for+Struts+2.0.9 Wes Wannemacher wrote: This was my original suggestion to post it into the community wiki because any changes that would be made t

Re: Exception Logging

2007-10-13 Thread Jeromy Evans
isplayed. Hope that helps, Jeromy Evans Richard Sayre wrote: I am trying to log the exception that get cought by the struts exception handler. So far I have .jsp page that shows the exception: An Exception Has occured! = I am going to change this page

Re: OGNLException on passing request parameters in redirect-action type

2007-10-14 Thread Jeromy Evans
Are you using Struts 2.0.7 or below? That warning's present in those versions when you pass a literal string as a parameter. https://issues.apache.org/struts/browse/WW-1714 It will go away if you upgrade to 2.0.9. If you can't upgrade, you can turn off warn logging to hide it. Tuyen Dinh V

Re: datetimepicker tag

2007-10-16 Thread Jeromy Evans
Dipti, if you're using Struts 2.0.x, follow the example at : http://struts.apache.org/2.0.9/docs/datetimepicker.html It's likely you're just missing the essential <%@ taglib prefix="s" uri="/struts-tags" %> and/or tags mentioned at the top of that page. Note there are several issues with this

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Jeromy Evans
ostly solved in struts 2.1 already. If you let me know where the instructions fall-short maybe I can help a little better? regards, Jeromy Evans Jeromy Evans - Blue Sky Minds wrote: As suggested, I've added these instructions to the community wiki. http://cwiki.apache.org/confluen

Re: How to improve dojo performance in Struts 2.0.9

2007-10-18 Thread Jeromy Evans
a new project that has a high dependency on ajax and was happy to use Dojo, I'd use 2.1 right now (built from source). However I'm not migrating existing 2.0.x projects over to 2.1 yet though. Hope that helps, Jeromy Evans

Re: [struts] How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Jeromy Evans
I didn't notice any of these issues with the release-0.42 tag myself. The line "_4b=_4d.join("/")+".js";" is only present once in my compiled dojo.js file. Martin, dojo.js is compressed by shortening variable names and stripping out comments and whitespace. Use dojo.js.uncompressed.js to foll

Re: JSON RPC

2007-10-19 Thread Jeromy Evans
a swing client as libraries for XML RPC or SOAP RPC are more prevalent. http://cwiki.apache.org/S2PLUGINS/json-plugin.html http://xfire.codehaus.org/ http://ws.apache.org/axis/ http://ws.apache.org/xmlrpc/ Hope that helps, Jeromy Evans Frans Thamura wrote: hi anyone have successdevelop JSON on

Re: How to improve dojo performance in Struts 2.0.9

2007-10-19 Thread Jeromy Evans
h-maven.html <http://struts.apache.org/2.x/docs/building-the-framework-from-source.html,http://struts.apache.org/2.x/docs/building-with-maven.html> -Andre- Jeromy Evans wrote: Andre Prasetya wrote: Any dates for 2.1.x release ? I just tried struts 2.0.9 and i like it very much, feature

Re: AJax remote DIV flickering ...

2007-10-23 Thread Jeromy Evans
ble/datagrid that updates content only rather than the markup+content. cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2.1] url action mapping problem (restful)

2007-10-25 Thread Jeromy Evans
(which I haven't used and presume is superseded) does attempt to extract parameters as described at #3. Can anyone suggest how the packages/namespaces/Controllers(Actions) should be setup to get either 3a or 3b to work with the rest plugin in 2.1? Thanks, Jeromy Evans PS. I als

Re: [S2] Head parseContent in Struts 2.1.0

2007-10-25 Thread Jeromy Evans
-tags aren't you? ie. JSP: <%@ taglib prefix="s" uri="/struts-tags" %> <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> cheers, Jeromy Evans Mark P Ashworth wrote: Good Day, I got the following exception when using the nightly buil

Re: [S2] Datetimepicker in Struts 2.1.0

2007-10-25 Thread Jeromy Evans
le non-US locales through the head tag. I'm working from a clean build from trunk (mvn clean install -Pall). Hope that helps in some way. regards, Jeromy Evans Mark P Ashworth wrote: Good Day, I am trying to use the 2.1.0 build of the dojo plug-in and I am getting an InvalidReferenceExcep

Re: Highlighting the invalid field

2007-10-25 Thread Jeromy Evans
t contains the Id of an element in the form with an error. Change the style of those elements using javascript. Hope that helps, Jeromy Evans ashish agarwal wrote: Hi All, I am developing a form using jsp. If validation fails then I want those fields to be highlighted . I am able to print err

Re: [S2.1] url action mapping problem (restful)

2007-10-25 Thread Jeromy Evans
Don Brown wrote: You are correct, #3 isn't possible right now with the rest plugin, however, it is certainly on the near-term roadmap. What is needed is the ability to define wildcards in the namespace, also known as url templates. For example, you could do something like @Namespace("/states/{s

Re: [S2.1] url action mapping problem (restful)

2007-10-27 Thread Jeromy Evans
a/com/opensymphony/xwork2/config/impl/ R1663 svn info: https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2-rest-plugin Revision: 589249 URL: https://svn.opensymphony.com/svn/xwork/trunk Revision: 1663 URL: https://svn.apache.org/repos/asf/struts/struts2/trunk Revision: 589251 Thanks, Jeromy Evans

Re: [S2.1] url action mapping problem (restful)

2007-10-28 Thread Jeromy Evans
matchers to be supported at once? Anyway, I hope that's helpful feedback. I'm eargerly awaiting these updates because I think the new rest plugin is an important advance for struts2. I'd be happy to provide unit tests if it helps. regards, Jeromy Evans Don Brown wrote: Doh,

Re: RE [ANN] Struts 2.0.11 GA release available

2007-10-29 Thread Jeromy Evans
No, that improvement is included in the struts-dojo-plugin used by only 2.1.x. But you can do it yourself with a bit of effort: http://cwiki.apache.org/S2WIKI/creating-a-custom-dojo-profile-for-struts-209.html [EMAIL PROTECTED] wrote: I've read the release notes to see if something has been don

Re: [S2] Head parseContent in Struts 2.1.0

2007-10-29 Thread Jeromy Evans
each page needs the <@sx.head />. I cannot put it in both places because then I get a stack overflow. My environment --- Latest from struts 2 trunk Sitemesh Plugin Dojo Plugin Freemarker Regards, Mark P Ashworth Jeromy Evans - Blue Sky Minds wrote: Hi Mark, No such problem

Re: Struts 2.1.x trunk "Could not find property" in tests and running ..

2007-10-30 Thread Jeromy Evans
using 2.1 yet unless you know how to recognise the significance of issues and report or work-around them when necessary. In this specific case, it's just a new warning about an existing operation. You don't need to do anything about it, although someone probably will when they tire of

Re: Submit button property in ajax not sends value to action.

2007-10-31 Thread Jeromy Evans
I've read somewhere, but can't find the reference, that you're correct that dojo doesn't post the value of the submit button with XHR. Instead, I always post to different methods in the action - one for each submit button. eg. action="SomeActionMethodA" value="some"/> action="SomeActionMethod

Re: [s2] meaning of javascriptTooltip ?

2007-10-31 Thread Jeromy Evans
ut. The s:head tag is required to enable the tooltip as it depends on some of dojo's javascript. regards, Jeromy Evans Pedro Herrera wrote: What´s the meaning of attribute tooltip, javascriptTooltip ? Where I fin

Re: Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread Jeromy Evans
;t use it. The two submit tags are correct Don't forget to use s:url to define the URL for your div Finally, use Firebug or Fiddler to see what each post actually contains. Hope that helps, Jeromy Evans kingysball wrote: As part of my STRUTS 2 application i'm trying to use the AJA

Re: [S2] Change updateFreq in a DIV

2007-11-07 Thread Jeromy Evans
et = dojo.widget.byId("myDivId"); myWidget.updateFreq = 10; Use a breakpoint in FireBug to ensure the widget is found and that the updateFreq member is public. Hope that helps, Jeromy Evans Grish wrote: Ok I've made some progress but now i'm stuck. What I did was have a a div tag s

Re: Multiple AJAX submit buttons in STRUTS 2

2007-11-07 Thread Jeromy Evans
ng the previous code to work, I have a work around using the href attribute as below - formId="form1" /> Should the Action parameter be working in an AJAX button or is this workaround the way forward? Thanks, Steve Jeromy Evans - Blue Sky Minds w

Re: [S2] Change updateFreq in a DIV

2007-11-07 Thread Jeromy Evans
's running. myDiv.timer.setInterval(newInterval); As with members, public methods should be browsable in Firebug. If it is/extends a dojo timer, take a quick look at the implementation in: struts2-core-xxx.jar!/org/apache/struts2/static/dojo/src/lang/timing/Timer.js Jeromy Evans - Blue Sky Minds

Re: How Many Methods Must an Action Walk Down (was Re: Annotation Validation, per method?)

2007-11-07 Thread Jeromy Evans
Dave Newton wrote: Again, not one *method*. That'd be crazy! That's what's being discussed, I'm pretty sure, but with an eye towards a different "prepare" cycle: the whole Preparable lifecycle makes more sense if there are multiple (request-handling) methods in an Action class. If there's

Re: Dojo custom build and Struts ComboBox widget

2007-11-08 Thread Jeromy Evans
Max Pimm wrote: I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and "How to improve dojo performance in Struts 2.0.9") I have followed the instructions for doing this are carefully a

dojo version in struts 2.0.11?

2007-11-09 Thread Jeromy Evans
Does anyone know -exactly- which revision of dojo is bundled in Struts 2.0.11? A diff of the src dirs reveals it's not the tagged 0.4.2 release or tagged 0.4.3 release. I believe it's near 0.4.2 but can't find a match. The dojo plugin in Struts 2.1.x definitely uses the 0.4.3 tagged release.

Re: Dojo custom build and Struts ComboBox widget

2007-11-09 Thread Jeromy Evans
ild of struts2-core-0.011.jar? Jeromy Evans wrote: Max Pimm wrote: I am trying to make a custom build of dojo for my application in order to speed it up a bit. (See threads "[s2] Struts head tag KILLS (> 10s) page load time" and "How to improve dojo performance in Struts 2.0.

Re: Display tags within one line

2007-11-09 Thread Jeromy Evans
u want to create a lot of forms with similar layout creating your own theme can be worthwhile. Hope that helps, Jeromy Evans [1] http://struts.apache.org/2.0.11/docs/themes-and-templates.html Emi Lu wrote: Hello, May I know how to keep all checkbox in one line please?

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
uot;do" in their name can be executed. ie. ?method:update calls doUpdate() cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Jeromy Evans wrote: I always use the following configuration to minimise the vulnerability:: With that setting, only methods with the prefix "do" in their name can be executed. ie. ?method:update calls doUpdate() Even if that does exactly what you expe

Re: [struts] s2 and DispatchAction

2007-11-12 Thread Jeromy Evans
Dale Newfield wrote: Dave Newton wrote: Does that deal with the submit button name thing? --- Jeromy Evans <[EMAIL PROTECTED]> wrote: I don't believe so. It just makes /home_update.do execute the doUpdate() method (assuming it does the camelcase stuff implied). It doesn&#

Re: Getting an erro like Exception starting filter struts2

2007-11-15 Thread Jeromy Evans
SEVERE: Exception starting filter struts2 is most commonly caused by a classpath error - usually there's something missing from the lib directory of your webapp. In your case, the root cause is "name xwork has already been loaded by bean", which probably means you have two different versions of t

Re: concatenate Strings in tag attributes

2007-11-18 Thread Jeromy Evans
t this stage I'd search JIRA for a known problem and resort to something more reliable like calling a static method Hope that helps, Jeromy Evans PS: s:text evaluates the name attribute as a string,whereas s:set evaluates the value attribute as an object. This accounts for the different

Re: Upgradation from 2.0.8 to 2.0.11

2007-11-27 Thread Jeromy Evans
27;ve solved some other issues :-) regards, Jeromy Evans Shoaib Gauhar wrote: Regarding my previous mail, i have some how narrowed down the problem. Below is my action as described in my struts.xml. /WEB-INF/jsp/netsol/LibraryItemFor

[OT] session state (was Re: Wizard like Screens)

2007-11-28 Thread Jeromy Evans
ccording to REST purists and is becoming less popular as web developers move to SOAUI/SOFEA architectures. David Van Couvering's blog provides a good example: http://davidvancouvering.blogspot.com/2007/09/session-state-is-ev

Re: [S2.1] dojo plugin customization

2007-11-28 Thread Jeromy Evans
ut that on the dojo site Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to make Optiontransferselect Tag vertical in Struts2?

2007-11-29 Thread Jeromy Evans
the simple theme. hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: about linking two autocompleters using topics [never surrender :)]

2007-12-04 Thread Jeromy Evans
be to start firebug, load your page and place a breakpoint in your callback function. When the callback is fired, use firebug's DOM inspection to browse for public methods in the widget instance returned by dojo.widget.byId() and see if there's anything useful. Use the watch to cal

Re: Struts2: tabbedPanel with no cssStyle bug?

2007-12-04 Thread Jeromy Evans
elentz wrote: Has anyone else had the experience that using a tabbedPanel with no cssStyle specifying width and height doesn't work? For example, this works: This doesn't work: It would seem that both should work. By not working I mean that the tabs appear but no content within any of the c

Re: Scrollbar problem with tabbed panel in Struts2

2007-12-05 Thread Jeromy Evans
o be in dojo and unlikely to be fixed in 0.40/0.43. You may be able to search their archives for more information. It may be possible to listen for events from the widget when a tab is clicked/focus changes and change the behaviour but I&#x

Re: [S2] File upload in a tabbedpanel?

2007-12-04 Thread Jeromy Evans
you want to use XHR? If not, try placing a theme=simple explicitly on your form/form's submit button to see if that fixes it (or at least isolates it). I haven't tried a multipart XHR via dojo but it must be also possible. regards, Jeromy Evans ---

Re: DisplayTag - How to do sort?

2007-12-05 Thread Jeromy Evans
7;ll find a lot of good prior discussions about using displaytag with struts2 in this group. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Jeromy Evans
Johnson nickel wrote: Hi Jeromy Evans, Thanks for your reply. I would like to insert the images into my Databases. For that, i'm using byte[] array. In Struts 1.3, I used FormFile class. From this class i got the method getFil

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
ue != null) { return value; } else { return false; } } Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: S2.1.x declarative validation and primitive types: is this a bug?

2007-12-05 Thread Jeromy Evans
Giovanni Azua wrote: Personally, I never expose primitives as properties of an action because null values are always legal over this interface. In the special case of Boolean which can easily accidentally cause an NPE, I always make the getter return false if the value is null.. This validatio

Re: Struts 2 File upload to store the filedata

2007-12-05 Thread Jeromy Evans
loadFile(File file); void setAnUploadFileFileName(String name) void setAnUploadFileContentType(String contentType) For more information, see the FileUploadInterceptor: http://struts.apache.org/2.0.11/docs/file-upload-interceptor.html regards, Jeromy Evans ---

Re: [S2] Splitting a Struts 2 Application

2007-12-05 Thread Jeromy Evans
it may bite you later. Keep them nice and simple. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to solve the limitation of tag

2007-12-05 Thread Jeromy Evans
DJR wrote: What I'm doing now to solve the problem is to modify the source code of the tag. But it's a bit troublesome, I think. Are there any more elegant solutions?:thinking: DJR wrote: As is know to all, tag has a "buttonCssStyle" attribute, which will make all buttons look in a unified

Re: STRUTS Issue in IE

2007-12-06 Thread Jeromy Evans
manoharkundety wrote: I can be able to display the data in the Mozilla Firefox but I cant be able to display the same data in Internet Explorer(IE) Hi Manohar, I empathise with you but you'll need to be much more specific about what's not working to receive help.

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Jeromy Evans
nputStream getInputStream(); If you search, you'll find plenty of examples using StreamResult. regards, Jeromy Evans Johnson nickel wrote: Hi Evans, I want to display the images in browser from the database. I have added my code.It throws null pointer Exception.

Re: [struts] params and staticParams

2007-12-08 Thread Jeromy Evans
Dale Newfield wrote: Lets see if I can come up with an off-the-cuff example: Ok, I see what you're doing now. Because I still can't find people that are friends with both joe and amy: http://localhost:8080/social-networking-app-de-jur/users/friendsOf/joe/friendsOf/amy.html because one con

Re: params and staticParams

2007-12-07 Thread Jeromy Evans
n which case static params wouldn't be advantageous anyway. The benefit would have been less effort writing and configuring the actions (in that the URLs and params are implicit) had you decided to use SmartURLs in the first place. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 File upload to store the filedata

2007-12-07 Thread Jeromy Evans
tImageStream()). That ties it back into the code above. image/jpeg imageStream filename="image.jpg" 1024 Hope that helps. After you have that working, you can also experiment with getting the content type and filename from properties i

Re: [struts] params and staticParams

2007-12-08 Thread Jeromy Evans
Martin Gainty wrote: is this what jeromy refers to as 'sub-package'? I'd said/meant subclasses of the action. SmartURLs is convention and annotation-based. The namespace of the action is derived from the package of the action or the @Namespace annotation on the class. In Dale's case he

Re: REST Showcase

2007-12-08 Thread Jeromy Evans
Frans Thamura wrote: anyone have a binary distribution of newest struts with REST You could try downloading an unstable binary distribution of struts 2.1: http://people.apache.org/builds/struts/2.1.0/ However, REST is currently in the struts sandbox so I'm not sure it's included in

Re: Struts 2 and DateTimePicker tag

2007-12-09 Thread Jeromy Evans
Listener); } dojo.addOnLoad(init); The dojo.addOnLoad(init) line ensures the init function is called when the page is loaded. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans
Rajagopal_Yendluri wrote: Hi.. I am using 2.0.9, but for the nothing is displaying in jsp page except label. Included the ajax theme in jsp page. Checked the generated dojo script, it is also fine.. but nothing is displaying in my jsp page... Any Views... or ideas... what could be the reas

Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans
u don't have an equivalent source eg. it doesn't like your locale settings (just guessing) Rajagopal_Yendluri wrote: I am not accessing the page directly, am going to the page thru an action only... to display few other dropdowns. Any other reasons ??? -Original Message- F

Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans
Use Firebug! https://addons.mozilla.org/en-US/firefox/addon/1843 Jeromy Evans wrote: Use FireBug to see if there's any errors loading dojo, it's dependencies and datapicker images. It's has to be related to your specific setup. Rajagopal_Yendluri wrote: Hi, I teste

Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jeromy Evans
o.addOnLoad(init); </tt><tt> </tt><pre style="margin: 0em;"> Take a look at the generated HTML and you'll understand what I mean. Regards, Jeromy Evans Jugal wrote: Hi Jeromy, Thanks a lot for your reply. I am exatcly doing the same way a

Re: Getting form input from a remote tabbed panel

2007-12-10 Thread Jeromy Evans
will document.formName. If you want javascript inside a tab, don't forget to add the additional s:div parameters to ensure dojo doesn't strip it out. Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PR

Re: datetimepicker issue

2007-12-10 Thread Jeromy Evans
ype-conversion.html Then you can at least re-use the converter rather than repeating the conversion code in your actions. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jeromy Evans
Jugal wrote: Thanks for your reply Jeromy.. I have made changes according to the inputs provided by you... After change my JSP looks something like this... I recommend using the ajax theme until everything works, then step backwards to simple. It's too easy to miss something if y

Re: Validation Problem

2007-12-10 Thread Jeromy Evans
about your own struts2 validation problem, which means Adi's original question is essentially lost in the noise. It's not very courteous to do that. Next time, create a new thread by composing a new message instead of replying to an existing one. It also helps to change the subje

Re: Display tag and target div

2007-12-11 Thread Jeromy Evans
l It is possible to use display:table within remote divs with sorting. regards, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Display tag and target div

2007-12-11 Thread Jeromy Evans
quinquin2209 wrote: Thanks for reply. But I encounter this problem: In my main.jsp is the tab panel as follow: And in my memberList.jsp, the display tag is defined as follow: headerClass="sortable" /> when I click on the sort hyperlink, it direct me to http:/

Re: Custom Tags for Struts2

2007-12-11 Thread Jeromy Evans
The remaining steps allowing your tags to be uses within freemarker and velocity templates (rather than only JSP) 4. Create a TagLibrary and TagModels for Freemarker and Directive's for velocity 5. Create struts-plugin.xml that declares your TagLibrary bean Hope that help

Re: How to improve dojo performance in Struts 2.0.9

2007-12-11 Thread Jeromy Evans
Richard Sayre wrote: Is the $resources$ directory WEB-INF? On Oct 6, 2007 8:51 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: $resources$ refers to the directory that contains your web files (eg. the directory that contains /index.jsp and the parent directory of WEB-INF) Better descr

Re: Tabbed Panel and useSelectedTabCookie

2007-12-11 Thread Jeromy Evans
quinquin2209 wrote: I have tried to store the last selected tab by setting useSelectedTabCookie=true. It works fine as long as the tab remains. However, problem occurs when the last selected is removed as follow: 1. User select tab "B" 2. In the jsp, remove the tab with id "B" 3. Refresh the bro

Re: Is Struts2 ready for prime time?

2007-12-12 Thread Jeromy Evans
almost everyone trained in Java has some familiarity with S1. That has to be an important consideration for any new project.. I probably would not use S2 where the scale is so huge that I'd be treading into uncharted waters, and where Java 1.4 or below is mandatory. In the latter case I'd also

Re: struts2-showcase-2.0.11 ajax is not working under IE 7

2007-12-12 Thread Jeromy Evans
Christopher Cheng wrote: It seems that struts2-showcase-2.0.11 ajax under tomcat-5.5 doesn't work on IE 7 but IE6 and firefox only Is there a patch or a newer version of dojo will make it work? What happens (or doesn't happen)? I apply only one work-around and one patch for IE7: - work-ar

Re: [S2] why is javascript executed before DOM is updated

2007-12-13 Thread Jeromy Evans
hange as in 2.1, and build your own dojo release. Hope that helps a little, Jeromy Evans lbastil wrote: Is this the WW-1951 - issue? And if so, is there any workaround for 2.0.11 release? Thank you, basti lbastil wrote: I have a serious problem with an ajax submit. the scenario is th

Re: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
volnei Granado Munhoz wrote: Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies. My struts.xml contains the follow line and when i start my servlet container the NPE is throwed and aplication is broken... When remove or comment the xwork-conversion.propertie

Re: RES: Guice ObjectFactory injection into XWorkConverter problem (was Re: Struts + Xwork + xwork-conversion.properties)

2007-12-14 Thread Jeromy Evans
Sorry, that's what I meant - the guice plugin may not be setup for 2.1 correctly (as in a bug in the plugin). I'll take a look at it myself when I get a chance too. volnei Granado Munhoz wrote: Hi Jeromy, I think this is not a configuration problem (probably a Xwork|Struts bug), my object fac

Re: [S2]Checkbox formatting..

2007-12-14 Thread Jeromy Evans
Setting the checkbox theme to simple will give you a plain HTML checkbox: Otherwise you need to create your own theme for the checkbox: http://struts.apache.org/2.0.11/docs/themes-and-templates.html carmi_cd wrote: I have a table with four columns, the other three columns are a

Re: OpenSessionInView with Struts 2.x

2007-12-17 Thread Jeromy Evans
That's correct - if you make an entity dirty while it's attached to a session the changes will be committed when the session is flushed. You've made an attached object dirty, so you either have to detach it when validation fails or force hibernate not to commit it (don't allow it to flush). P

Re: OpenSessionInView with Struts 2.x

2007-12-18 Thread Jeromy Evans
Ted Husted wrote: On Dec 17, 2007 4:24 PM, Jeromy Evans <[EMAIL PROTECTED]> wrote: Personally I think writing to attached entities from the view is a bad idea precisely due to this issue (and exception handling, and others), even though it's recommended practice on the s

Re: Struts 2.0.9 + Ajax tags + IE7

2007-12-18 Thread Jeromy Evans
ise, start turning things off to isolate it. Hope that helps, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to use dojo 1.0?

2007-12-18 Thread Jeromy Evans
cations and they don't do Dojo any justice at all. Take a look at their hello world: http://dojotoolkit.org/book/dojo-book-0-9/hello-world-tutorial You can call a struts action directly via XHR and process HTML and/or JSON results from actions (via the JSON plugin) with

Re: How to use dojo 1.0?

2007-12-18 Thread Jeromy Evans
Alvaro Sanchez-Mariscal wrote: Surely I can use Dojo 1.0 with theme="simple". But in that case, I will not leverage Dojo Struts Tags in the server side. What I would like is to use the s:* (or sx:*) tags rendered with Dojo 1.0. And in the cases where there is not a suitable tag, I will have the

[ANN] FreeMarker template tool for Struts2 developers

2007-12-20 Thread Jeromy Evans
o someone else and apologise in advance for the teething problems. Let me know your thoughts, bug reports & feature requests (if you're on struts-users you've got my direct email address). regards, Jeromy Evans

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Frans Thamura wrote: hi all i am using JSON Plugins and RSS plugin in my S2Project and we know there will be REST in S2 2.1 anyone can give me the glue The JSON plugin can be used as a ContentTypeHandler with the REST plugin. Presumably the RSS plugin can also be used as a ContentTypeHandl

Re: REST and JSON

2007-12-20 Thread Jeromy Evans
Adam Hardy wrote: I have a couple of questions on this subject too, if it's OK to join in here: I was trying to find the low-down on 2.1 on the wiki or the jira, so i could get an impression of what and how much is implemented. I couldn't work out exactly what's what: there are 170 open jira

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Adam Hardy wrote: Jeromy Evans on 20/12/07 22:25, wrote: http://my.company.com/myapp/rest/orders/1 All you're supposed to do is assign a unique URL to each resource, which is exactly you've done. Other important aspects of the approach are: - you're binding the HTTP met

Re: REST and JSON

2007-12-21 Thread Jeromy Evans
Frans Thamura wrote: hi there i just want to map my architecture is the JSON Plugins will become part of REST or both are separated. They are separate. The REST plugin already includes a JSON ContentTypeHandler using xstream: http://xstream.codehaus.org/json-tutorial.html Essentially x

Re: struts 2 vs struts 1+spring

2007-12-21 Thread Jeromy Evans
s only. So in answer to your question, if you don't use Spring you'' lose all the features of Spring. If you don't use any specific features of Spring then you don't need it. Hope that helps, Jeromy Evans

Re: struts 2 vs struts 1+spring

2007-12-21 Thread Jeromy Evans
Or maybe you're just using Spring for one little thing (like an smtp library) and nothing else? I've seen this, too. Spring is like a buffet. You can take what you want and you can pretty much ignore everything else. You just want the pudding? Just eat the pudding. But it's when you

Re: How to improve dojo performance in Struts 2.0.9

2007-12-23 Thread jeromy . evans
Roberto Nunnari wrote: > Hi Jeromy and list. > > I'm trying a self built struts-2.1.1-snapshot with the dojo plugin > and I'm seeing very slow dojo performance.. I thought that the dojo > performance problem whould be solved in 2.1.1 using the plugin, but > it doesn't seam so now to me.. > Hi Rober

Re: form submission doesn't work with ajax theme

2008-01-01 Thread Jeromy Evans
autocompleter (see the html output when theme="html"). Set the autocompleter to use theme="ajax" only. It should be possible to get all tags to work with theme="ajax" but you'll have to ch

Re: Expression languages

2008-01-07 Thread Jeromy Evans
d and powerful. It's disadvantage compared to JSP EL is also that it's very sophisticated and powerful. I hope that's useful information and reasonably accurate. Jeromy Evans References: [JSP2.1] http://jcp.org/aboutJava/communityprocess/final/jsr245/index.html [JSP2.0] http://java

Re: getting namespace of action through OGNL

2008-01-07 Thread Jeromy Evans
a big fat nothing :( Hi Wes, Works for me! Outputs: /secure when used in a JSP result for an action within the package definition : in Struts 2.0.11 cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: struts 2 rest showcase example

2008-01-08 Thread Jeromy Evans
raju wrote: Hi, I am trying to find struts 2 rest showcase example and try it out.Can someone please let me know where i could find the code for download? Regards Raj If you download the trunk of the Struts2.1 source using subversion, you'll find it in struts2\apps\rest-showcase. http:/

  1   2   3   4   5   6   7   8   >