Re: [OT] Re: Struts2 and tag

2008-04-05 Thread Jeromy Evans
arum, Read this *entire* page paying particular attention to point 2 "dependencies": http://displaytag.sourceforge.net/11/install.html A ClassNotFoundException always implies you're missing a jar in the classpath. - To un

Re: Hi / Question - TabbedPanel with DisplayTag

2008-04-03 Thread Jeromy Evans
ve never used it. As you're using Dojo tabs you may like to consider Dojo's datagrid as well. I use YUI's version. [1] http://ajaxtags.sourceforge.net/usage.html Hope that helps! regards, Jeromy Evans Márcio Gurgel wrote: Hi All! This is my first e-mail. My name is Márcio Gur

Re: Freemarker (old version that struts2 uses) disappearing pages

2008-04-03 Thread Jeromy Evans
Jonny Cavell wrote: I have a problem that seems to occur periodically. My freemarker templates, served by struts2, stop appearing - I get a blank page. There are no useful messages in the logs, other than saying that it couldn't find the template (which it could find previously). First question

Re: Optiontransferselect list issue

2008-04-01 Thread Jeromy Evans
ryangr wrote: With that being said...I can populate the list "groups" just fine, but when I try to use "user.groups" to get the other list it throws an exception that says: "The requested list key 'user.groups' could not be resolved as a collection/array/map/enumeration/iterator type." What am I

Re: Inheritence of validator annotations

2008-04-01 Thread Jeromy Evans
Allen, Daniel wrote: Hi, all. I have a superclass where almost all of the subclasses will require several validations for a particular field, but one subclass will use some but not all of those validations. I know that you can add @SkipValidation to avoid all validators, but is there something t

Re: Struts constants

2008-04-01 Thread Jeromy Evans
Matthew Seaborn wrote: What I meant was if the following is defined in the struts.xml How does that make it to the URLTag#setIncludeParams method and how can make our own constants? Didn't I answer that? Repeated below again. --- If you want the value of a constant, use @I

Re: s:url escaping "+" character

2008-03-31 Thread Jeromy Evans
Did the recent release of struts 2.0.11.1 fix this? http://struts.apache.org/2.0.11.1/docs/release-notes-20111.html See the JIRA details. Blanco Emanuele wrote: Hello there, I've got a parameter, rendered by tag, that needs to be escaped of "+" character, because I can't get my action to w

Re: s2: Including Freemarker templates from JSP

2008-03-30 Thread Jeromy Evans
The Struts2 Component tag may be sufficient: http://struts.apache.org/2.x/docs/component.html hernan gonzalez wrote: I have some freemarker templates (general purpose, i.e. not specifically for struts2) that generate html fragments, which I would like to include in some jsp pages (in a struts2

Re: Possible to unit test actions through type converters?

2008-03-30 Thread Jeromy Evans
I think it is possible but haven't tried it myself. If you extend StrutsTestCase you'll have access to a Configuration object and the ActionProxyFactory. You should be able to setup your action and invoke it through the parameters interceptor. I couldn't find any example unit tests that do t

Re: dojo is not defined error message in firefox console.

2008-03-30 Thread Jeromy Evans
Are you deliberately mixing Dojo 0.40 with Dojo 1.x? The tag includes resources for Dojo 0.40. In addition to that you're referenced a local dojo installation that includes Digit (1.x) The "dojo undefined" message implies neither worked so there's a major error. Use FireBug to confirm that

Re: Struts constants

2008-03-27 Thread Jeromy Evans
tandard Struts2 constants, see StrutsConstants.class Hope that helps, Jeromy Evans Matthew Seaborn wrote: How can you get hold of the constants defined in the struts.xml? Matthew Seaborn Software Architect t +44(0) 208 484 0729 m +44(0) 7949 465 142 e [EMAIL PROTECTED]

Re: Using Javascript to change struts-generated forms

2008-03-20 Thread Jeromy Evans
y be safer generating the DOM nodes with JS programmatically rather than doing a clone. That way you'll be able to assign unique ID's for each node, add listeners for validation and use array notation in your field names to guarantee order for struts eg. "doctype[1]".

Re: authentication question

2008-03-19 Thread Jeromy Evans
mojoRising wrote: Thanks. That's interesting. I am using Weblogic9.2, and I seem to have no problem using the request object in the jsp( for getParameter at least). I am wondering what type of request object manipulation, as you are referring to, may cause issues? I don't recall specifi

Re: ModelDriven action with action property

2008-03-19 Thread Jeromy Evans
erty (and deeper in the stack). If you don't have a getter (getAddress()) it can't call the setter (getAddress().setCity(String)). Also ensure it can instantiate an address and set it (or that your action has created it) Other than that I don't see why you can't do

Re: [OT] Dupe msgs?

2008-03-19 Thread Jeromy Evans
Dave Newton wrote: Is anybody else getting a lot of dupes today? Dave Nope - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Dupe msgs?

2008-03-19 Thread Jeromy Evans
Dave Newton wrote: Is anybody else getting a lot of dupes today? Dave Nope - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab

2008-03-18 Thread Jeromy Evans
level nested). Will that cause this problem? thx Jeromy Evans - Blue Sky Minds wrote: Put a div inside tab2 and make that inner div the target. If you target the tab you're trying overwrite the markup for the tab widget. By targeting a div inside the tab you can replace just the co

Re: authentication question

2008-03-18 Thread Jeromy Evans
I've been told that some older containers don't allow you to forward to JSP's behind /WEB-INF. It wouldn't surprise me. Other than that I've found Ian's suggestion to be the most effective way to ensure users can't access JSPs directly, IMO a must for Tiles, html fragments and any page using str

Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab

2008-03-18 Thread Jeromy Evans
Put a div inside tab2 and make that inner div the target. If you target the tab you're trying overwrite the markup for the tab widget. By targeting a div inside the tab you can replace just the content of tab. You may also prefer to make the inner div a remote div and the tab non-ajax becau

Re: Struts2 Annotation based Validation

2008-03-17 Thread Jeromy Evans
ion object only if something puts them there for you (which is not the default case). The actionError tag applies a template. You may be better off creating a custom template. regards, Jeromy Evans - To unsubscribe, e-ma

Re: Struts2 URL problem

2008-03-16 Thread Jeromy Evans
Frans Thamura wrote: hi all if i want to create the url something like this, and withour .do or .action, like REST URLs without the extension is possible by setting the property: struts.action.extension=action,, Where the double comma indicates "no extension". is smartURL the answer or

Re: Struts2 URL problem

2008-03-16 Thread Jeromy Evans
At this point I'd either a) accept it, because it's unlikely to cause really problems or ever be noticed by a real user. It's just scrappy b) create a custom ActionMapper derived from the default one that removes that feature c) Use a plugin that does b for you I don't use the DefaultActionMap

Re: redirection problem

2008-03-15 Thread Jeromy Evans
This discussion should give you some ideas: http://www.nabble.com/Interceptors-with-Ajax-Actions-td15706322.html matthieu martin wrote: Hi all. I am handling login issue through an interceptor. Basically it looks in the session if a user entry exists before letting you go through to the admin

Re: Codebehind + zero config options

2008-03-15 Thread Jeromy Evans
fault-action-ref is used to specify the class to use where the class attribute is omitted on an action definition. It does not specify the action to execute in the case that no other actions were matched. cheers, Jeromy Evans Alex Shneyderman wrote: hmm, is this question too stupid to be ans

Re: How to initialize business service objects?

2008-03-13 Thread Jeromy Evans
. Use an IOC container. Spring and Guice. Guice is simple, elegant and does this single task extremely well; Spring knowledge is a must-have and reflects the community's consensus on best-practice in almost every imaginable aspect of a web application. Hope that helps. Je

Re: Struts2 URL problem

2008-03-13 Thread Jeromy Evans
ault ActionMapper. Try setting the struts property "struts.mapper.alwaysSelectFullNamespace" to true. It may be the one you need. Put it in struts.properties or a const in struts.xml. Hope that helps, Jeromy Evans Tauri Valor wrote: Thanks Jeromy! Ive tried creating a package with empty name space ie

Re: Struts2 URL problem

2008-03-12 Thread Jeromy Evans
No mistake. AFAIK that's a design flaw of the default action mapper. See: http://www.planetstruts.org/struts2-blank/example/somecrap/HelloWorld.action If there's no match in a package namespace it falls back to the default package and matches a little to generously. You may be able to avoi

Re: [s2] Question about Advanced Type Conversion/Collection and Map Support

2008-03-11 Thread Jeromy Evans
Nandana Mihindukulasooriya wrote: Hi, I want to use type conversion feature to convert set of values to a list in my action as mentioned in the type conversion documentation (Advanced Type Conversion/Collection and Map Support) [1]. I followed the steps but still no luck. I have few questions

Re: Instanting Error, when Upgrade Velocity in S2 2.0.10

2008-03-11 Thread Jeromy Evans
Frans Thamura wrote: hi there i got this error, when try to upgrade from 2.0.6 to 2.0.11, and upgrade velocity to 1.5 anyone can help me out [ERROR] DefaultActionInvocation - There was an exception while instantiating the result of type org.apache.struts2.dispatcher.VelocityResult < com.opensy

Re: struts zero configuration limitations and s2.1 availlability question

2008-03-08 Thread Jeromy Evans
be possible to place the annotation at the package level so it applies to all actions. I don't recall and haven't used it myself. Hope that helps, Jeromy Evans [EMAIL PROTECTED] wrote: Hi all, I've tried to apply the zero configuration in an already well running struts2 ap

Re: Load Template from Jar

2008-03-07 Thread Jeromy Evans
Hi Frans, Be careful not to cross-post questions. That gets some people very angry. Velocity's "resource.loader" property is a comma separated value Struts sets up a VelocityManager, the manager loads velocity.properties from a various locations in the webapp/classpath, the VelocityManager c

Re: Load Template from Jar

2008-03-07 Thread Jeromy Evans
So this thread didn't help ? http://www.mail-archive.com/user@struts.apache.org/msg73528.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts get string and is boolean

2008-03-07 Thread Jeromy Evans
Dave Newton wrote: For example Depending the circumstance I load setValue(boolean) or setValue(String). In S2 it could cause problems with the form tags; it expects form values to follow JavaBean standards. I'm not sure what would happen. Dave You can have the two setters if you want, bu

Re: Dynamic namespace in application

2008-03-07 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: Dude, that sounds very exciting! I was thinking you were just "tweaking" around the existing interceptor. Does it allow filtering on the action name? I wouldn't say it's very exciting, but I've found it useful. Yep, you can filter on the action name and can plugin

Re: Struts 2 Actions based on Security Roles

2008-03-07 Thread Jeromy Evans
package maps the actions in the package to a base path as you've described. What you have sounds correct. Create additional packages (eg. /jsp/proected/admin) if you like the look of that URL for those specific actions, or if you're like to apply different intercept

Re: Dynamic namespace in application

2008-03-07 Thread Jeromy Evans
t in the simplest applications. cheers, Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Dynamic namespace in application

2008-03-07 Thread Jeromy Evans
I've posted the snapshot jar, example source and an example webapp: http://code.google.com/p/struts2urlplugin/downloads/list The full source is being synsync'd to googlecode as I type. I won't make a formal release until there's user documentation, but you're welcome to ask me questions. The

Re: Dynamic namespace in application

2008-03-06 Thread Jeromy Evans
Dave Newton wrote: --- "jignesh.patel" <[EMAIL PROTECTED]> wrote: I am having struts2 + hibernate application.It uses static namespace(crud) like http://hax.mysite.com/crud/createUser.action. I want it to be dynamic like, i can be able to set it with my algorithm which is unique for eac

Re: Simple helloworld test fails with "Could not find action orresult"

2008-03-06 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: Any theories where the 4th package is being created? CLUE: take a harder look at web.xml in the original post. That's why I asked about the actionPackages element; is that it? Dave Precisely. I didn

Re: Simple helloworld test fails with "Could not find action orresult"

2008-03-05 Thread Jeromy Evans
I can reproduce it using David's source. In his original broken struts.xml configuration (no namespace specification, reposted below) , four packages are configured: "struts-default" in namespace "", "string-default" in namesapce "", "helloworld" in namespace "", and "com.wamu.struts.helloworld

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
? Karr, David wrote: -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2008 4:53 PM To: Struts Users Mailing List Subject: Re: Simple helloworld test fails with "Could n

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
nConfig. The latter will specify which results are defined and their types. You won't have to step far to find out whether it found the result and whether the result had an error. Karr, David wrote: -----Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, Marc

Re: Simple helloworld test fails with "Could not find action or result"

2008-03-05 Thread Jeromy Evans
I don't see anything wrong with it, provided MainAction returns "success" (MainAction.java wasn't attached). Is it possible you have a conflicting struts.xml deployed in the webapp, or any plugin jars deployed? The only other time I've seen the response you're returning the correct result cod

Re: Struts App - Tomcat on Windows in India and Poland

2008-03-05 Thread Jeromy Evans
Adam Gordon wrote: Maybe if we invented magic, it would allow him to do what he needed without following our advice. --adam Thanks Adam! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: REST and i18n

2008-03-05 Thread Jeromy Evans
xt few weeks I'll be sharing a new ActionMapper on GoogleCode that allows the latter case as the algorithm to select the action/controller can be plugged-in. In the meantime your only other option is to create a custom ActionMapper based on the RestActionMapper though.

Re: Struts 2: Creating custom JavaBeans from request parameters (not in action class)

2008-03-04 Thread Jeromy Evans
Cheng Wei Lee wrote: I know I can get the values of the request parameters in the action class and then use them to instantiate an object. Read from the API for ParameterAware interface, "One common use for this is to have the action propagate parameters to internally instantiated data objects.".

Re: Conversation Scope?

2008-03-04 Thread Jeromy Evans
r, I have found it useful with the REST plugin as I typical deal with a single resource type (the Model) and take care that it can be serialized into XML or JSON as well as populate a view. Again that's mainly about demarcation between the action and model and of no signifi

Re: Selecting over Static Maps from Resource Bundle

2008-03-03 Thread Jeromy Evans
Dave Newton wrote: --- Chris Pratt <[EMAIL PROTECTED]> wrote: Is it possible to place the data for the list attribute of an tag in a resource bundle (so that it can be internationalized)? I have tried adding the data to my application.properties file: gender.map='FEMALE':'Female','MALE':'M

Re: Struts App - Tomcat on Windows in India and Poland

2008-03-03 Thread Jeromy Evans
How bad is it? It the problem that: users in Poland see question marks but you don't them when you access their server; or you see question marks when you access their server but they don't; or you and they see question marks when you access the server? The issue is either: the pages inclu

Re: Problem with OGNL syntax

2008-03-03 Thread Jeromy Evans
oscar perez wrote: I see what you're trying to do; you're asking OGNL to evaluate companyType first, and use the string result in the outer expression to evaluate. The %{} notation won't do this for you. According to the OGNL guide you should use parentheses to evaluate part of the

Re: about DAO

2008-03-03 Thread Jeromy Evans
hns wrote: InputStream is = getClass().getResourceAsStream("/db.properties"); Don't include a leading slash unless you really mean the root directory (which you shouldn't do in a webapp). Instead, this line: InputStream is = getClass().getResourceAsStream("db.properties"); will

Re: about DAO

2008-03-02 Thread Jeromy Evans
hns wrote: i have use ms access database i have set in login.java that if user is valid then username and userid and connection object is stored in session now this connection object i have pulled in entire session to workout with common object is this good for security and performance? I little

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
Frans Thamura wrote: It looks like the templatePath init param is used only by the FileTemplateLoader though. (I've never needed to use that param) The classpath loader uses Thread.currentThread().getContextClassLoader().getResource(resourceName); (and a few other variations if unsuccessful)

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
Frans Thamura wrote: do this mean that struts2 automatically search template, when the template is not in the /web-inf/view , the struts2 will search in the classpath. is this right? Yes. Struts 2 configures a FreeMarker TemplateLoader that: - searches the filesytem templatePath if specif

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
The Struts FreemarkerResult and Struts 2 tags explicitly access a Freemarker template engine that's setup via the Struts container. Your example below references the FreemarkerServlet provided by Freemarker that's an distinct instance of the template engine. You don't require the FreemarkerSer

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
Frans Thamura wrote: Jeromy, i got this https://issues.apache.org/struts/browse/WW-676 is resolved issue = stable? Frans Resolved/Fixed is good/stable. It's also dated 2004 so it's safe to assume it doesn't apply any more. I had a look in FreemarkerManager.java and confirmed the templ

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
Frans Thamura wrote: we use velocity and freemarker :) is it possible? Good choice. You're in luck! The Freemarker Configuration searches for templates in your web application first and then in your classpath. Just place them in the jar and reference them by their classpath. eg /views/m

Re: Qs about Ajax abilities in Struts 2

2008-03-02 Thread Jeromy Evans
Yes, it's completely viable with Struts 2, however, the majority of what you've described is client-side functionality. What you need is a good client-side library. I wouldn't approach this problem using the Struts 2 dojo/ajax tags *at all*. They're too limited, especially as they're without

Re: Putting Template inside .jar

2008-03-02 Thread Jeromy Evans
Frans Thamura wrote: how to call the template inside a jar in struts development. so I can put all the code in one jar, and can be use in another project, and we still know, the template inside the jar. Is the template a JSP? If so, you're stuck. In the current container spec, they must

Re: Strange namespace/action scenario

2008-03-02 Thread Jeromy Evans
stanlick wrote: Here is the current solution: I avoid using the method attribute of submit. The problem is that it includes a special prefix on the submit's paramater that the default action mapper detects, strips and selects that target method of your action. That's fine a

Re: about current action name acsess

2008-02-29 Thread Jeromy Evans
hns wrote: please help i am waiting for your reply Kedar's example looks really good. Double-check that you've done everything he's asked Put a breakpoint inside your interceptor to see if postLoginURL is being built correctly. Assist your debugging by forcing it to return redirect every t

Re: Any idea on Struts 2.1.1

2008-02-28 Thread Jeromy Evans
sarat.pediredla wrote: I saw some posts on the dev list by Don B who talked about a 2.1.1 release but JIRA still seems to say that 2.1.1 is pending? Can anyone confirm if 2.1.1 is released or if not, any ideas on timescales? Don also said on the dev list that he hoped to volunteer time to m

Re: [struts] [S2.1.1] How to use an Interceptor from a plugin?

2008-02-27 Thread Jeromy Evans
Dale Newfield wrote: Jeromy Evans wrote: You're following the right approach. If you don't intend to have your application's package extend the package defined in your plugin (which doesn't scale to multiple plugins), what's the benefit of having this be a plugin a

Re: Tabbed panel problem

2008-02-27 Thread Jeromy Evans
Paranoid_Fabio wrote: Thank you. But the showcase didn't help me. I actually can do what is showed in the showcase. I'm able to call an action from inside the tab, and to show the resulting jsp inside the tab again. What I cannot achieve is to display inside the tab the result of the other action

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: Well... I think it's using s:url "value" attribute instead of "action" one. Isn't it? Ah, I see what you mean. Yes, via s:url, or s:form action="a url", or sx:submit href="a url" (for ajax tags). The tags include code to generate the URL to an action based on th

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: May I have 2 different action extensions in the same webapp? Where do I indicate the extension for each action? Now, I have set name="struts.action.extension" value="do"/> in my struts.xml file, so .do is the extension for all actions. Hi Pablo, That's simply a c

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Just a quick thought. Try this but include an empty div in the body. The "undefined" in IE may be because Dojo is inserting an empty string into the DOM using innerHTML. (Dojo extracts the scripts and executes them separate

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
It'll definitely be possible using pure Dojo but you'll have to explore their mailing list and wiki for 0.4 notes. I'd start by trying to include an alert("message") in the inline script, or window.status="messages" lines, to isolate what does and doesn't work. Also turn on debugging using the

Re: Interceptors with Ajax Actions

2008-02-27 Thread Jeromy Evans
Pablo Vázquez Blázquez wrote: - the interceptor can detect that the request is ajax either by the partitioning of your packages/URLs or by inspecting the http header; How can you know it is an ajax request by inspecting the http header? I looked in my request headers and I can´t know whether it

Re: Restric the values in S:TextFields.

2008-02-27 Thread Jeromy Evans
Sanjeewa Saman wrote: Thank you very much Jeromy , It works I used the java Scripts for this to validate in client side. You're welcome. Depending on how important the data is and how public the site is, also consider validating it on the server-side in case of users without javascript an

Re: Restric the values in S:TextFields.

2008-02-27 Thread Jeromy Evans
On the server-side, use an expression validator to ensure the input contains only valid characters. On the client-side either: - use ajax validation; or - use a javascript function that listens for the keypress event and rejects invalid keystrokes As usual, the javascript keypress event on IE

Re: Interceptors with Ajax Actions

2008-02-26 Thread Jeromy Evans
Grish wrote: I'm using the ajax theme with my struts tags, based on the struts 2 tutorial, to implement ajax functionality. Where can I define my code to catch the result and perform a redirect? I apologize for my inexperience. I'm a little unclear on how to hmm...ok, this is using Dojo 0.

Re: Interceptors with Ajax Actions

2008-02-26 Thread Jeromy Evans
cript callback, detect the odd result and perform a redirect Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Video sharing Website like YouTube

2008-02-26 Thread Jeromy Evans
Dave Newton wrote: --- Jeromy Evans <[EMAIL PROTECTED]> wrote: Before the sarcastic replies arrive [...] Hey! Dave rofl. You can still have your fun! - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Video sharing Website like YouTube

2008-02-26 Thread Jeromy Evans
r vendors. Research that first and everything else will either fall into place or be relatively trivial. Google "streaming flash" to get started. Sounds like a fun project for you. regards, Jeromy Evans - To unsubsc

Re: [s2] Date format in TextField

2008-02-26 Thread Jeromy Evans
Petzsch, Martin wrote: How is it possible to enforce that the textfield should show the date as dd/mm/? See this page: http://struts.apache.org/2.x/docs/formatting-dates-and-numbers.html It also applies to 2.0.x - To

Re: [S2.1.1] How to use an Interceptor from a plugin?

2008-02-26 Thread Jeromy Evans
27;t help. regards, Jeromy Evans Piero Sartini wrote: Hello, I am trying to write an authentication plugin for struts2. Goal is to reuse it across several projects so a plugin seems the way to go.. There is an Interceptor defined in struts-plugin.xml, lets call it AuthenticationInterceptor.

Re: Set an Action variable at runtime

2008-02-26 Thread Jeromy Evans
Serge Bornow wrote: Hello All, Thanks for any ideas. My Action class has a get/set homeid How can i invoke from JSP to set the value of that variable to a dynamic value I'm not quite sure what you're trying to do. If you're just try to set a property at the time of posting to your action the

Re: how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Jeromy Evans
on the right is a table containing text fields that triggers the same process, as too does selecting an example from the drop-down box in the top left. Hope that helps. regards, Jeromy Evans Prashant Khanal wrote: Do you mean to catch the response from server using javascript and update the text

Re: how to update text fields using ajax on making any change in master text field

2008-02-24 Thread Jeromy Evans
Dibesh Shakya wrote: Hello all, I have 3 text fields say A, B and C out of which A is a master text field whose value is distributed between remaining text fields. My requirement is if i give value say 20 to field say A then an action is called which will distribute the values between other text

Re: No javascript in sx:div

2008-02-24 Thread Jeromy Evans
aj2r wrote: Time ago I noticed that javascript were removed in the pages linked by . Parameters executeScripts and separateScripts don't solve the problem. Any idea? It's possible that it's removed but still executed. Dojo is responsible for parsing the html, extracting the scripts, insertin

Re: Conversation Scope?

2008-02-24 Thread Jeromy Evans
pain grappling with SWF and I find all justifications of its complexity unwarranted. Adam Ray Clough on 24/02/08 02:23, wrote: Thanks Jeromy. (usually my wife is the only one who notices my 'rants'). Jeromy Evans wrote: Hi Ray, I'm not sure, but check out Tom's new s

Re: Best practices for handling code/lookup tables in Struts 2

2008-02-23 Thread Jeromy Evans
Cheng Wei Lee wrote: What do you'll think of writing a stateful session bean to hold these data and make it gets the data from database once/twice a day? I wouldn't use a stateful session bean. It's not really the intent of them. When used, it's best that they only last a conversation. Y

Recommended practices for managing s2 resources bundles

2008-02-23 Thread Jeromy Evans
conclusion? eg. global resources vs package vs action vs model, consistent naming conventions, use of the text and i18n tags I know the answer is "it depends" which is why I'm especially interested in the why part of the answer. Any insight you can provide will be greatly appre

Re: Best practices for handling code/lookup tables in Struts 2

2008-02-23 Thread Jeromy Evans
Cheng Wei Lee wrote: Hi all, In most web applications, it is unavoidable to have some codes/lookup tables, for example, in a form we may need to display the country list. If we were to hit the database per request to get this list for displaying in the dropdown, it would be too expensive. If we

Re: Conversation Scope?

2008-02-23 Thread Jeromy Evans
and think this will be useful. cheers, Jeromy Evans Ray Clough wrote: JSF has a "ConversationScope" for extended series of requests/responses dealing with the same topic, and usually the same data model. I'm thinking of writing an interceptor to simulate ConversationScope, and

Re: error while try to write strtuts tags in decorater's main .jsp

2008-02-23 Thread Jeromy Evans
r the FreemarkerFilter is you use JSP) Hope that helps. Jeromy Evans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: change in struts tabbedpanel style

2008-02-22 Thread Jeromy Evans
The specific problem is that your inline CSS occurs before your link to tabs.css, so tabs.css overrides yours. Switch the order! I don't think you should be importing tabs.css yourself - dojo will import it for you (check in Firebug, it'll be listed twice if it's not needed). I've never im

Re: change in struts tabbedpanel style

2008-02-22 Thread Jeromy Evans
Just override the css by creating your own CSS file and including it in your page. Take a look at the showcase: http://www.planetstruts.org/struts2-showcase/ajax/tabbedpanel/example2.jsp If you view the generated source using the Firefox plugin I mentioned before you'll see this html:

Re: Does the tag (in Struts 2.1) supports non-Ajax submit?

2008-02-22 Thread Jeromy Evans
Yuval Rotem wrote: Hi, Does the tag (in Struts 2.1) supports non-Ajax submit? In other words, can it provide the functionality of the non-Ajax tag? (If I understand correctly it doesn't, just wanted to verify - maybe I'm missing something here). If the browser has javascript, then no. AF

Re: change in struts tabbedpanel style

2008-02-22 Thread Jeromy Evans
hardik_982 wrote: -->PS. The styles may be documented somewhere at www.dojotoolkit.org for 0.4.0 but I don't recall ever seeing it. i think you tell about http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/themes-and-design/overriding-and-combining-themes Yes, but that's for Dojo 0.9 whi

Re: change in struts tabbedpanel style

2008-02-21 Thread Jeromy Evans
hardik_982 wrote: can anybody say how i can change in s:tabbedpanel tabs color of tab and style thanks in advance Override the CSS. In Firefox, install the Web Developer Toolbar and inspect the generated source when you have tabs visible. You'll be able to see the styles on the html tags a

Re: struts2 design question

2008-02-21 Thread Jeromy Evans
[EMAIL PROTECTED] wrote: I wouldn't have seen that. Thanks, Jeromy. It's disturbing to see this kind of code in 2008 and makes me wonder what other antipatterns might exist in the struts2 codebase. Actually I only linked to that discussion to show that Dave had been courteous enough to fo

Re: [S2] IE does not refresh page

2008-02-21 Thread Jeromy Evans
t particular record having null values. also If I click a link that loads the list it does refresh because that link has showLoadingText set to true. Do you have idea how can i solve this? I think Struts are not working fine in IE.. please help me. Thanks again. Jeromy Evans - Blue Sky

Re: struts2 design question

2008-02-21 Thread Jeromy Evans
Maxx wrote: On Thu, Feb 21, 2008 at 2:03 AM, Jeromy Evans <[EMAIL PROTECTED]> wrote: Just thought I'd mention that Dave followed this up for you in struts-dev: http://www.nabble.com/StrutsStatics...-td15595866.html Just to let you know this link does not work (seems

Re: Tabbed panel problem

2008-02-21 Thread Jeromy Evans
You're dealing with Ajax here, so you have to think about it from the client-side. There is only one Document (or DOM), irrespective of where the parts have come from. Dojo requests the JSP that's going to be placed inside the tad and explicitly inserts it into the page. This means the JSP ca

Re: about sitemesh in struts 2.0.11

2008-02-21 Thread Jeromy Evans
hardik_982 wrote: i have solved it it is because in web.xml i had wrote struts2 *.do inspite of struts2 /* Ah, that would do it. Since you asked, FireBug is an extension for the FireFox browser. https://addons.mozilla.org/en-US/firefox/add

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: it shows javascript error on page 'dojo' is required That means the the dojo files were not found or were not even included. Does the head of your page (in html) include the scripts to load the dojo files? If not: does your JSP include does your decorator include If

Re: about sitemesh in struts 2.0.11

2008-02-20 Thread Jeromy Evans
hardik_982 wrote: when i try to use sitemesh and use s:tabbedpanel it can not work why? it is not give any error but tabbedpanel can not work Either: - you're missing in your decorator, so the javascript included by is missing; or - you need to an and excludes to decorators.xml because it

Re: s:datetimepicker version 2.0.11 issue

2008-02-20 Thread Jeromy Evans
akash agrawal wrote: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing list to post th

<    1   2   3   4   5   6   7   8   >