Re: Wrong struts rendered tags
Look at setting xhtml theme. http://struts.apache.org/2.0.11/docs/themes-and-templates.html -- James Mitchell On Jan 14, 2008, at 1:20 PM, Schuenck wrote: Hi, I'm starting in Struts and already found a little problem. While rendering the html inputs, struts don't close the tags. For example: The tag renders: Instead of: The tag wasn't closed and the document can't be validated as XHTML. I've tried to use the and but the return was the same. Somebody knows any way of forcing struts to render xhtml compatible code? Thanks -- View this message in context: http://www.nabble.com/Wrong-struts- rendered-tags-tp14807997p14807997.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Funny, just got around to watching this JSF video..
Ya, don't EVEN get me started on some of the hacks I've had to do in the last 8 months to get our JSF app to behavesheeesh! -- James Mitchell 678.910.8017 On Jan 16, 2007, at 11:34 PM, Rick Reumann wrote: I just got around to watching this JSF presentation with Ed Burns.. http://event.on24.com/eventRegistration/EventLobbyServlet? target=lobby.jsp&eventid=25412&sessionid=1&partnerref=atssc_sitepost_0 1_16_07&key=1C3610AF899E09A2EFD26F0FD6B7875E&eventuserid=9113781 (the transcript you can view also). What is funny is this exact master-detail-situation is one of the things I found so frustrating about JSF (at least he admits it should be made easier). Almost all the tutorials (back when I was looking at JSF) always seemed to skip the "basic" CRUD concepts which really annoyed me. Why not show examples of what 99% of the developers are going to need to do with the framework? 18. TSS.com: I am sure it will be. Also looking around the educational efforts, the patterns and the blueprints around JSF, tend to avoid a lot of fairly simple patterns such as a simple master detail. It certainly shows lists, but not actually doing the crud around… Ed Burns: Right. 19. TSS.com: … master detail. Why -- I mean shouldn't that be normal for --? Ed Burns: I agree. The master-detail pattern is something that is a core thing, you most web apps do that. And as it turns out, I think one of the most difficult -- one of the reasons why it's not included so much is the lack of a conversation scope. With master-detail, you often have one page that's your master page and then a separate page, that's your detail page. You need to convey that information what have I chosen to drill down on and the absence of the conversation scope where you can say, okay, I am going to put this here and I want this to exist for the next request, what we have in the JSF Extensions Project I am working on is a simple Flash Ruby on Rails style Flash thing, where you put data in the Flash and it exists for the next request only and once you have that master-detail is simple and trivial, so… 20. TSS.com: So master-detail is not simple and trivial now or --? Ed Burns: Well, there are some other ways to do it now. You have to use an F: parameter tag to attach the value to a component. So -- but it's not as easy as it should be. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: file download without opening a window
Can you restate what you want? It's not exactly clear what you are asking. -- James Mitchell 678.910.8017 On Dec 6, 2006, at 4:56 PM, Søren Blidorf wrote: Does anybody know how to make a form button, that starts downloading myFile.xml What I want is to make an onclick = "Save target as" Med venlig hilsen Søren Blidorf Nolas Consulting Web: http://www.nolas.dk Mobil: +45 61676513 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Autocomplete attribute in Struts tags
You can also do this with a bit of javascript that manipulates the dom, which ultimately does as Rahul suggests, only no need for a custom tag. -- James Mitchell 678.910.8017 On Dec 4, 2006, at 4:12 PM, Albert L Sapp wrote: I think the original question was how to *avoid *displaying previous information that was entered by a previous user, I believe. Firefox does retain form field information to "help" the user enter information in the field the next time they use the form. If, however, more than one user makes use of the browser there is a possibility of the next user gaining access to that previously entered information. Short of disabling the feature in the browser options, I am not sure of any way to keep this from happening. But then, I am very much a novice at forms and browsers. Al Asthana, Rahul wrote: Extend html:text to support "autocomplete"? -Original Message- From: grifoxx [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 3:43 PM To: user@struts.apache.org Subject: Autocomplete attribute in Struts tags Hi I am developing a web application that allow the user to make online payments, so my question is: How can avoid the browser to redisplay or autocomplete an input when a user type in. For instance in firefox the user can see what other users typed before. I know that the html:text or any other struts tag does not use this attribute but there must be a way to do this because this kind of information is very important to show it. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts 2.0.x samples on java 1.4.2
I can't remember if these jars are included in the war, but they are required at runtime: retrotranslator-runtime-n.n.n.jar backport-util-concurrent.jar -- James Mitchell 678.910.8017 On Nov 24, 2006, at 9:31 PM, David Bloom wrote: I tried all the sample struts 2.0.1 wars individually in tomcat by placing each war in the webapps folder in tomcat. i.e The requested resource (/struts2-mailreader-2.0.1/) is not available. I placed libs from struts j4 zipin lib folder after wars get expanded after starting tomcat still no help. this link http://struts.apache.org/WW/why-is-my-action-unavailable.html did not help me out either - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Regarding Compatability for Struts-2.0.1
Struts 2 will not be backward compatible in the sense of allowing you to run things "as is". I would recommend taking a look at the migration guide. http://struts.apache.org/WW/migration-guide.html -- James Mitchell 678.910.8017 On Nov 23, 2006, at 5:55 AM, Jeevan Kumar Kade wrote: Hi All, I worked on Struts 1.1 for around 1 year. With that experience and knowledge, when i was looking into Sturts-2.0.1 document and example i really just woundering and have few queries on them which i am listing below. Please, clarify these queries. Queries 1. Architecture changes are more and complex to understand between the different layers 2. Code for Action class has been changed(Action has been replaced by ActionSupport and also signature of execute() method) 3. Form is missing 4. In JSP the taglibs are replaced by struts-tags 5. The big one is struts-config.xml replaced by struts.xml and the structure of the xml has been changed adding instead of and some other tags like etc If this is the case, then how struts 2.0.1 will support the comptability? As per my knowledge, things have to get change a lot and the learning curve will be challenging for developers. I need your suggestions/advices on this Thanks in Advance Jeevan - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: enctype="multipart/form-data" gives null values for ActionForm properties
With most browsers, you cannot autopopulate a file upload field on a form. The reason for this is security. If such a thing was allowed, malicious web sites could have hidden frames that uploaded sensitive files. For the browsers that do allow it, they will prompt and warn the user when submit is called. -- James Mitchell 678.910.8017 On Nov 23, 2006, at 5:29 AM, Morten Andersen wrote: I want to upload a file as a part of a form. This requires that the enctype of the form is set to: multipart/form-data. When that is set like that the autopopulate thing doesn't work. How can I make sure that the properties are autopopulated even though I use enctype="multipart/form-data". Thanks Morten Andersen www.blobcom.com Denmark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]