Tiles nested definition (was: How to contribute ?)
Joe Germuska wrote: At 10:49 AM +0200 5/2/05, Jean Parpaillon wrote: Hello, I'm using Struts for some times and I would like to submit a patch for a bug in the tiles part of Struts. I RTFM but I have some questions : - When I execute maven in struts tiles, it tries to download struts-core-dev-1.3.0.jar which does not exist. How can I build it from struts-core, or another part of struts. - Can I have a jar for each part of struts (el, core, tiles, etc...) ? - If I can't, I have to build every part of struts, haven't I ? Because there have been no releases of 1.3.x components, right now the easiest way to build Struts from SVN source is to change to thecurrent/build directory and execute maven build-all This will build all of the current Struts components and install them to your local Maven repository as struts-xxx-1.3.0-dev.jar Once you've done that, you could then build individual components without repeating the process, as long as they don't depend on changes in other components. Once we've cut releases, I assume we'll mostly try to shift the dependencies to released versions instead of the dev versions, and then in most cases you won't have to do the build-all. It seems inevitable, though that we will occasionally have interdependencies based on unreleased code -- we'll either have to revert to what we're doing now (selectively) or perhaps consider using Maven's SNAPSHOT pseudo-versions. Hope this helps Joe Ok, thanks. I've found how to do it, and now I know the why :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts .13 tests
hi guys sorry about earlier post - i was using wrong JSP jar, nothing to do with servlets. the struts source download has no build-tests.xml file? is it possible to get it? riyaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Version 1.2.7
Martin I think Version 1.2.7 is ready to roll - do you mind if I take over as release manager and do that? Niall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FormBeanConfig extends
hi. wondering y a new instance of FormPropertyConfig is created? my understanding is that Config's r frozen after initialization is complete. so y not add the same object? if a new instance is required, y not have have a newInstance() method within the config? (shud load from the same class loader as this?) trying to get a better feel of the Config classes as i try out a general set-property key= value= / solution as it is, BeanUtils.copyProperties() only performs a shallow copy - does _not_ copy key/value pairs thanx riyaz codesegment file=FormBeanConfig method=inheritFormProperties // Do we have this prop? FormPropertyConfig prop = this.findFormPropertyConfig(baseFpc.getName()); if (prop == null) { // We don't have this, so let's copy it prop = (FormPropertyConfig) RequestUtils .applicationInstance(baseFpc.getClass().getName()); BeanUtils.copyProperties(prop, baseFpc); this.addFormPropertyConfig(prop); /codesegment - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version 1.2.7
On Tue, 3 May 2005, Niall Pemberton wrote: Martin I think Version 1.2.7 is ready to roll - do you mind if I take over as release manager and do that? The reason I didn't roll the release last weekend is because we still have three issues on the release page that need to be resolved, one way or another. One of these is in the sandbox, but since it's an issue that bit me in my day job, I was hoping we could resolve it, along with the other two. Once we've resolved the outstanding issues, either of us could roll the release in short order, I think. -- Martin Cooper Niall - 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]
[Struts Wiki] Trivial Update of BuildingShale by MikeKienenberger
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by MikeKienenberger: http://wiki.apache.org/struts/BuildingShale -- Follow these steps: 1. Switch to the SVN repository exploring perspective 1. Right mouse click on the Repository navigator and choose ''New'' ''Repository Location'' or click the ''Add SVN Repository'' button - 1. In the Add SVN Repository dialog use ''http://svn.apache.org/repos/asf/struts/shale/trunk/'' as the URL and ''http://svn.apache.org'' as the root URL + 1. In the Add SVN Repository dialog use ''http://svn.apache.org/repos/asf/struts/shale/trunk/'' as the URL and ''http://svn.apache.org'' as the root URL. (Leave username/password blank.) Click the 'Finish' button. 1. Expand the node in the navigator and choose the '''core-library''' node 1. Right mouse click and choose ''Check Out As'' then ''Java Project'' 1. Go to the project properties and select the ''Java Build Path'' node. @@ -129, +129 @@ - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34714] - [Shale] Clay PropUtil.setProperty should not fail silently if the property could not be set.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34714. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34714 --- Additional Comments From [EMAIL PROTECTED] 2005-05-03 19:51 --- (In reply to comment #4) Good point. Maybe this parameter name should be configurable through an initialization parameter in the web deployment descriptor where the default is allowBody. The change would effect several of the Builders. The ConfigBeanFactory might be a good place to make it available. It could be set by the ClayConfigureListener. What do you think? I think this would still be not optimal. Suppose the following scenario: A developer receives Clay component definitions from different sources and wants to assemble dialogues. But there is a big problem. Developer A has used 'allowBody', developer B 'myAllowBody' and so on. I see currently only two solutions to avoid that problem: 1. Define the special attribute names per file. 2. Remove the special attribute names and use independent tags. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Wiki] Trivial Update of BuildingShale by MikeKienenberger
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by MikeKienenberger: http://wiki.apache.org/struts/BuildingShale -- 1. Add ''core-library/src/java'' as the source folder and remove the existing source folder of Eclipse does not do it for you. 1. In the same dialog set ''Default output folder'' to '''core-library/target/classes''' 1. Also in the properties dialog, with the ''Java Build Path'' node selected, click on the ''libraries'' tab and define libraries for the various packages as defined above. + 1. [Describe best way to get the build.properties.sample file from the trunk into the core-library project -- the only way I could figure out how do it was by creating a build.properies file manually, opening build.properties.sample from svn, then manually copying and pasting the test into the new file. -mlk] 1. Finally copy the build.properties.sample file to build.properties and make the changes outlined in the next section. build.properties settings @@ -128, +129 @@ 1. Run the default Ant task from the Ant window, or expand the node and choose a specific task and run that. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Wiki] Update of BuildingShale by MikeKienenberger
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by MikeKienenberger: http://wiki.apache.org/struts/BuildingShale The comment on the change is: Documented dependency on Commons Validator 1.1.4 -- ||Commons Digester||1.6|| ||Commons Beanutils||1.7.0|| ||Commons Logging||1.0.4|| + ||Commons Validator||1.1.4|| ||JUnit||3.1.8|| You will also need Ant installed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34730] New: - Javascript Validation Functions
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34730. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34730 Summary: Javascript Validation Functions Product: Struts Version: 1.2.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P3 Component: Validator Framework AssignedTo: dev@struts.apache.org ReportedBy: [EMAIL PROTECTED] All the Javascript validation functions, like validateRequired, do not check to see if the field that is being validated actually exists on the form. In other words, they do not do a null check. I know you may be thinking that if the field is null, then there should be no validation done on that field. However, I have many pages that have one or more fields that may or may not be rendered on the page based on whom is logged in. If they are rendered, then they must be validated; if not, then they obviously do not need to be validated. So basically, I had to change the javascript functions to ignore fields that are null so they will be validated if they exist and ignored if they do not. The current code throws a javascript error if they field does not exist. This seems like a bug to me. Basically, all I do is the following in the looping of the validated fields, after the field is declared: if (field == null) { continue; } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r168011 - /struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java
Author: hrabago Date: Tue May 3 15:36:53 2005 New Revision: 168011 URL: http://svn.apache.org/viewcvs?rev=168011view=rev Log: Prevent NullPointerException when toString() is called before dynaClass is initialized. Modified: struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java Modified: struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java URL: http://svn.apache.org/viewcvs/struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java?rev=168011r1=168010r2=168011view=diff == --- struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java (original) +++ struts/core/trunk/src/share/org/apache/struts/action/DynaActionForm.java Tue May 3 15:36:53 2005 @@ -507,8 +507,13 @@ public String toString() { StringBuffer sb = new StringBuffer(DynaActionForm[dynaClass=); -sb.append(getDynaClass().getName()); -DynaProperty props[] = getDynaClass().getDynaProperties(); +DynaClass dynaClass = getDynaClass(); +if (dynaClass == null) { +return sb.append(null]).toString(); +} + +sb.append(dynaClass.getName()); +DynaProperty props[] = dynaClass.getDynaProperties(); if (props == null) { props = new DynaProperty[0]; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r168012 - /struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java
Author: hrabago Date: Tue May 3 15:39:10 2005 New Revision: 168012 URL: http://svn.apache.org/viewcvs?rev=168012view=rev Log: Prevent NullPointerException when toString() is called before dynaClass is initialized. Modified: struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java Modified: struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java URL: http://svn.apache.org/viewcvs/struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java?rev=168012r1=168011r2=168012view=diff == --- struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java (original) +++ struts/core/branches/STRUTS_1_2_BRANCH/src/share/org/apache/struts/action/DynaActionForm.java Tue May 3 15:39:10 2005 @@ -507,8 +507,13 @@ public String toString() { StringBuffer sb = new StringBuffer(DynaActionForm[dynaClass=); -sb.append(getDynaClass().getName()); -DynaProperty props[] = getDynaClass().getDynaProperties(); +DynaClass dynaClass = getDynaClass(); +if (dynaClass == null) { +return sb.append(null]).toString(); +} + +sb.append(dynaClass.getName()); +DynaProperty props[] = dynaClass.getDynaProperties(); if (props == null) { props = new DynaProperty[0]; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33355] - computeURLWithCharEncoding doesn't encodes the created by the response.encudeURL call
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33355. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33355 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 01:52 --- Firstly, could you provide more information - 1) the servlet container you are using and 2) the circumstances you are using the TagUtils's computeURLWithCharEncoding() method - is it using the Struts tags? Whatever the circumstances please provide actual usage examples. Secondly, I tried out the struts-examples and all the links on that page worked fine with url encoding - using Tomcat 5.0.27. Could you try out the html:link tags example page and see if you have any problems with the urls generated on that page? I also modified one of the links to the following... html:link action=/html-link-submit%3Flistid=1 which created a href=/struts-examples/exercise/html-link-submit% 3Flistid=1.do;jsessionid=x Tomcat didn't recoginse the encoded ? (i.e. %3F) you are using - so maybe thats the source of your problem. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 14183] - html:img does not support forward attribute
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=14183. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=14183 [EMAIL PROTECTED] changed: What|Removed |Added AssignedTo|[EMAIL PROTECTED]|dev@struts.apache.org -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. You are on the CC list for the bug, or are watching someone who is. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30292] - Replacement of LookupDispatchAction
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30292 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 01:59 --- Created an attachment (id=14923) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14923action=view) Different implementation of the same idea Attached is dispatch action, which uses 'name' attribute like ParameterDispatchAction submitted by Jean-Baptiste, but uses mapping like LookupDispatchAction, which provides level of indirection. The patch is not a diff, but a new class, extending DispatchAction. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34445] - use charsets given by browser for form field encodings
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34445. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34445 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 02:08 --- Firstly, the suggested fix is dependant on features in Commons FileUpload that have not yet been released. Therefore this patch cannot be considered until there has been a release of FileUpload and Struts has changed its depedency to the new version. Secondly, I agree with Martin regarding ParameterParser. From what I see, the solution is duplicating the logic in DiskFileItem's getString() method, which calls the getCharSet() method to parse the content type to determine the charset. Maybe the getCharset() method should be part of the FileItem interface (or getCharacterEncoding() to keep it in line with the Request's method) and that way the solution then becomes simple String encoding = item.getCharacterEncoding(); if (encoding == null) { encoding = request.getCharacterEncoding(); } Whatever the solution though, if the fix for Bug 20813 is supposed to enable FileUpload to handle item specific character encodings, then it seems wrong to me to have to duplicate part of that solution in Struts. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30292] - Replacement of LookupDispatchAction
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30292 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 02:12 --- Created an attachment (id=14924) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14924action=view) LocalStrings.properties patchfile -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30292] - Replacement of LookupDispatchAction
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30292 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 02:27 --- This enhancement is important, because it uses submit button name instead of value, allowing for arbitrary button caption. Niall, hoping for users to vote is imho not constructive. They don't vote, they whine that something (or everything) sucks. I don't think that majority of MS users browse MSDN every day and vote for enhancements. They just use ASP.NET because it provides easy-to-use environment and components. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34714] - [Shale] Clay PropUtil.setProperty should not fail silently if the property could not be set.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34714. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34714 --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 02:31 --- (In reply to comment #5) I think this would still be not optimal. Suppose the following scenario: A developer receives Clay component definitions from different sources and wants to assemble dialogues. But there is a big problem. Developer A has used 'allowBody', developer B 'myAllowBody' and so on. True. I see currently only two solutions to avoid that problem: 1. Define the special attribute names per file. Sounds to complicated for something that can be managed by a search and replace. 2. Remove the special attribute names and use independent tags. I like the simplicity of the current schema and would rather not have to many tags. How about we make it an optional attribute of the component node. Then we could keep the attributes as a direct mapping to the JSF component. !ELEMENT component (attributes?, converter?, validator*, actionListener*, valueChangeListener*, element*) !ATTLIST component jsfid CDATA #REQUIRED extends CDATA #IMPLIED componentType CDATA #IMPLIED id CDATA #IMPLIED allowBody %Boolean; #IMPLIED There is an open ticket that is related to this area: http://issues.apache.org/bugzilla/show_bug.cgi?id=34698 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Version 1.2.7
I had a look at the three outstanding bugs and IMO none of them should prevent a Struts release: 1) Bug 33996 - ChainAction does not support non-default catalogs Seems to me that this should be N/A since either its an issue against a sandbox item (and sandbox problems shouldn't stop a Struts release) or its a 1.3 issue and therefore shouldn't prevent a 1.2.x release. Also as a note - the release target in the 1.2.x ant build doesn't now include anything from the sandbox - whereas I believe 1.2.4 did include the contrib stuff. 2) Bug 33355 - computeURLWithCharEncoding doesn't encodes the I'm having difficulty understanding this bugzilla ticket properly, but I tried this out and couldn't re-create the issues its talking about and therefore I don't think it should prevent a release. 3) Bug 34445 - use charsets given by browser for form field encodings This is dependant on a release of Commons FileUpload and I think we should ship without it, rather than waiting for FileUpload - we can always do another 1.2.x version once FileUpload has been release. Niall - Original Message - From: Martin Cooper [EMAIL PROTECTED] Sent: Tuesday, May 03, 2005 5:22 PM The reason I didn't roll the release last weekend is because we still have three issues on the release page that need to be resolved, one way or another. One of these is in the sandbox, but since it's an issue that bit me in my day job, I was hoping we could resolve it, along with the other two. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Wiki] Update of StrutsNewFaqs by CharlieZhang
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by CharlieZhang: http://wiki.apache.org/struts/StrutsNewFaqs -- - Up to StrutsProjectPages - - This is an index of Struts Frequently Asked Question pages added to this wiki. + Hi, I'm a programmer. Using struts alot in my working. + Recently,I wrote some code to improve STRUTS! I believe it will be useful for all struts users. But how to publish my code? I can't receive any email from APACHE mail list. + Could somebody help me? Thanks alot! - I can change this. Isn't a security risk. - If you've had a question of your own answered on one of Struts lists, or elsewhere, please feel free to summarize here. - - For more Struts FAQs, see the Struts website http://jakarta.apache.org/struts/faqs/index.html . - - * ActionErrorsAndActionMessages - * ActionChaining - * RequestProcessor - * ForwardingWithDifferentParameter - - * DefinePita - - * StrutsAndMaven - * StrutsAndPortlets - * StrutsBeginnerValidatorFramework - * StrutsBenefits - * StrutsBuildingFromSource - * StrutsCommitters - * StrutsDeprecatedActionErrors - * StrutsFormBeans - * StrutsHowToUseNightlyBuild - * StrutsHtmlOptionsInternationalization - * StrutsInitialization - How to initialize your business logic or read configuiration files, etc... - * StrutsMaximumNumberOfTagsPerPage - * StrutsMessageResourcesDoc - * StrutsMessageResourcesFromDatabase - * StrutsMoreAboutJSF - * StrutsMyFavoriteIDE - * StrutsReloadingConfig - * StrutsSellMeOnTiles - * StrutsSubprojects - * StrutsUpgrade - Notes on 'upgrading' - * StrutsWhyOnlyOneInstanceOfActionClass - - - * - Up to StrutsProjectPages - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Wiki] Update of StrutsNewFaqs by CharlieZhang
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by CharlieZhang: http://wiki.apache.org/struts/StrutsNewFaqs -- + bI do publish my struts improvement code?/b + Hi, I'm a programmer. Using struts alot in my working. Recently,I wrote some code to improve STRUTS! I believe it will be useful for all struts users. But how to publish my code? I can't receive any email from APACHE mail list. Could somebody help me? Thanks alot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Struts Wiki] Update of StrutsNewFaqs by FrankZammetti
Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by FrankZammetti: http://wiki.apache.org/struts/StrutsNewFaqs -- - bI do publish my struts improvement code?/b + Up to StrutsProjectPages + + This is an index of Struts Frequently Asked Question pages added to this wiki. + I can change this. Isn't a security risk. + If you've had a question of your own answered on one of Struts lists, or elsewhere, please feel free to summarize here. - Hi, I'm a programmer. Using struts alot in my working. - Recently,I wrote some code to improve STRUTS! I believe it will be useful for all struts users. But how to publish my code? I can't receive any email from APACHE mail list. - Could somebody help me? Thanks alot! + For more Struts FAQs, see the Struts website http://jakarta.apache.org/struts/faqs/index.html . + + * ActionErrorsAndActionMessages + * ActionChaining + * RequestProcessor + * ForwardingWithDifferentParameter + + * DefinePita + + * StrutsAndMaven + * StrutsAndPortlets + * StrutsBeginnerValidatorFramework + * StrutsBenefits + * StrutsBuildingFromSource + * StrutsCommitters + * StrutsDeprecatedActionErrors + * StrutsFormBeans + * StrutsHowToUseNightlyBuild + * StrutsHtmlOptionsInternationalization + * StrutsInitialization - How to initialize your business logic or read configuiration files, etc... + * StrutsMaximumNumberOfTagsPerPage + * StrutsMessageResourcesDoc + * StrutsMessageResourcesFromDatabase + * StrutsMoreAboutJSF + * StrutsMyFavoriteIDE + * StrutsReloadingConfig + * StrutsSellMeOnTiles + * StrutsSubprojects + * StrutsUpgrade - Notes on 'upgrading' + * StrutsWhyOnlyOneInstanceOfActionClass + + + * + Up to StrutsProjectPages + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts Wiki] Update of StrutsNewFaqs by CharlieZhang
I reverted this FAQ page to #13, which appears to me to be the last truly valid version... I suspect someone was screwing around here because the FAQs listed seem to be valid content and I can't imagine the real intent was to remove them. If I am mistaken than I believe the person who made the last two changes (14 and 15) should come on the list and explain their intent. Apache Wiki wrote: Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by CharlieZhang: http://wiki.apache.org/struts/StrutsNewFaqs -- - Up to StrutsProjectPages - - This is an index of Struts Frequently Asked Question pages added to this wiki. + Hi, I'm a programmer. Using struts alot in my working. + Recently,I wrote some code to improve STRUTS! I believe it will be useful for all struts users. But how to publish my code? I can't receive any email from APACHE mail list. + Could somebody help me? Thanks alot! - I can change this. Isn't a security risk. - If you've had a question of your own answered on one of Struts lists, or elsewhere, please feel free to summarize here. - - For more Struts FAQs, see the Struts website http://jakarta.apache.org/struts/faqs/index.html . - - * ActionErrorsAndActionMessages - * ActionChaining - * RequestProcessor - * ForwardingWithDifferentParameter - - * DefinePita - - * StrutsAndMaven - * StrutsAndPortlets - * StrutsBeginnerValidatorFramework - * StrutsBenefits - * StrutsBuildingFromSource - * StrutsCommitters - * StrutsDeprecatedActionErrors - * StrutsFormBeans - * StrutsHowToUseNightlyBuild - * StrutsHtmlOptionsInternationalization - * StrutsInitialization - How to initialize your business logic or read configuiration files, etc... - * StrutsMaximumNumberOfTagsPerPage - * StrutsMessageResourcesDoc - * StrutsMessageResourcesFromDatabase - * StrutsMoreAboutJSF - * StrutsMyFavoriteIDE - * StrutsReloadingConfig - * StrutsSellMeOnTiles - * StrutsSubprojects - * StrutsUpgrade - Notes on 'upgrading' - * StrutsWhyOnlyOneInstanceOfActionClass - - - * - Up to StrutsProjectPages - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Struts Wiki] Update of StrutsNewFaqs by CharlieZhang
On 5/3/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: I reverted this FAQ page to #13, which appears to me to be the last truly valid version... I suspect someone was screwing around here because the FAQs listed seem to be valid content and I can't imagine the real intent was to remove them. If I am mistaken than I believe the person who made the last two changes (14 and 15) should come on the list and explain their intent. Good catch. Craig Apache Wiki wrote: Dear Wiki user, You have subscribed to a wiki page or wiki category on Struts Wiki for change notification. The following page has been changed by CharlieZhang: http://wiki.apache.org/struts/StrutsNewFaqs -- - Up to StrutsProjectPages - - This is an index of Struts Frequently Asked Question pages added to this wiki. + Hi, I'm a programmer. Using struts alot in my working. + Recently,I wrote some code to improve STRUTS! I believe it will be useful for all struts users. But how to publish my code? I can't receive any email from APACHE mail list. + Could somebody help me? Thanks alot! - I can change this. Isn't a security risk. - If you've had a question of your own answered on one of Struts lists, or elsewhere, please feel free to summarize here. - - For more Struts FAQs, see the Struts website http://jakarta.apache.org/struts/faqs/index.html . - - * ActionErrorsAndActionMessages - * ActionChaining - * RequestProcessor - * ForwardingWithDifferentParameter - - * DefinePita - - * StrutsAndMaven - * StrutsAndPortlets - * StrutsBeginnerValidatorFramework - * StrutsBenefits - * StrutsBuildingFromSource - * StrutsCommitters - * StrutsDeprecatedActionErrors - * StrutsFormBeans - * StrutsHowToUseNightlyBuild - * StrutsHtmlOptionsInternationalization - * StrutsInitialization - How to initialize your business logic or read configuiration files, etc... - * StrutsMaximumNumberOfTagsPerPage - * StrutsMessageResourcesDoc - * StrutsMessageResourcesFromDatabase - * StrutsMoreAboutJSF - * StrutsMyFavoriteIDE - * StrutsReloadingConfig - * StrutsSellMeOnTiles - * StrutsSubprojects - * StrutsUpgrade - Notes on 'upgrading' - * StrutsWhyOnlyOneInstanceOfActionClass - - - * - Up to StrutsProjectPages - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.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]
svn commit: r168075 - in /struts/shale/trunk/clay-plugin: build.xml src/conf/shale-clay.tld src/conf/view-config.dtd src/conf/view-config.xml src/java/org/apache/shale/clay/config/ClayXmlParser.java src/java/org/apache/shale/clay/config/Globals.java
Author: craigmcc Date: Tue May 3 22:36:31 2005 New Revision: 168075 URL: http://svn.apache.org/viewcvs?rev=168075view=rev Log: Automatically process a clay-config file in the META-INF directory of a JAR file (same as the approach used to process implicit faces-config.xml files). Also, add some docs in the DTD for configuration files. PR: Bugzilla #34698 Submitted By: Gary VanMatre gvanmatre AT comcast.net Modified: struts/shale/trunk/clay-plugin/build.xml struts/shale/trunk/clay-plugin/src/conf/shale-clay.tld struts/shale/trunk/clay-plugin/src/conf/view-config.dtd struts/shale/trunk/clay-plugin/src/conf/view-config.xml struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/ClayXmlParser.java struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/config/Globals.java Modified: struts/shale/trunk/clay-plugin/build.xml URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/build.xml?rev=168075r1=168074r2=168075view=diff == --- struts/shale/trunk/clay-plugin/build.xml (original) +++ struts/shale/trunk/clay-plugin/build.xml Tue May 3 22:36:31 2005 @@ -170,7 +170,7 @@ /copy copytodir=${build.home}/classes/META-INF fileset dir=src/conf - includes=*.tld faces-config.xml/ + includes=*.tld faces-config.xml view-config.xml/ /copy /target Modified: struts/shale/trunk/clay-plugin/src/conf/shale-clay.tld URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/conf/shale-clay.tld?rev=168075r1=168074r2=168075view=diff == --- struts/shale/trunk/clay-plugin/src/conf/shale-clay.tld (original) +++ struts/shale/trunk/clay-plugin/src/conf/shale-clay.tld Tue May 3 22:36:31 2005 @@ -1,65 +1,65 @@ -?xml version=1.0 encoding=UTF-8 ? - -!-- - Copyright 2004-2005 The Apache Software Foundation. - - Licensed under the Apache License, Version 2.0 (the License); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an AS IS BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --- - -!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN -http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; - -taglib - - tlib-version1.0/tlib-version - jsp-version1.2/jsp-version - short-namesh/short-name - urihttp://struts.apache.org/shale/core/uri - description/description - - listener - listener-classorg.apache.shale.clay.config.ClayConfigureListener/listener-class - /listener - - tag - -nameclay/name -tag-classorg.apache.shale.clay.taglib.ClayTag/tag-class - -attribute - nameid/name - requiredtrue/required - rtexprvaluefalse/rtexprvalue -/attribute - -attribute - namejsfid/name - requiredtrue/required - rtexprvaluefalse/rtexprvalue -/attribute - -attribute - namemanagedBeanName/name - requiredfalse/required - rtexprvaluefalse/rtexprvalue -/attribute - -attribute - nameshapeValidator/name - requiredfalse/required - rtexprvaluefalse/rtexprvalue -/attribute - - /tag - -/taglib +?xml version=1.0 encoding=UTF-8 ? + +!-- + Copyright 2004-2005 The Apache Software Foundation. + + Licensed under the Apache License, Version 2.0 (the License); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an AS IS BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +-- + +!DOCTYPE taglib PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN +http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd; + +taglib + + tlib-version1.0/tlib-version + jsp-version1.2/jsp-version + short-namesh/short-name + urihttp://struts.apache.org/shale/core/uri + description/description + + listener + listener-classorg.apache.shale.clay.config.ClayConfigureListener/listener-class + /listener + + tag + +nameclay/name +tag-classorg.apache.shale.clay.taglib.ClayTag/tag-class + +attribute + nameid/name + requiredtrue/required + rtexprvaluefalse/rtexprvalue +/attribute + +attribute + namejsfid/name + requiredtrue/required +
DO NOT REPLY [Bug 34698] - [Shale] add base clay config to META-INF and added DTD documentation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34698. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34698 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 07:36 --- Fixed in nightly build 20050504. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r168076 - /struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java
Author: craigmcc Date: Tue May 3 22:45:04 2005 New Revision: 168076 URL: http://svn.apache.org/viewcvs?rev=168076view=rev Log: Deal with problems on components that do not have a specified id not matching on a postback. PR: Bugzilla #34711 Submitted by: Manfred Klug manklu AT web.de Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java Modified: struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java URL: http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java?rev=168076r1=168075r2=168076view=diff == --- struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java (original) +++ struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.java Tue May 3 22:45:04 2005 @@ -132,7 +132,24 @@ * /p */ private ComponentBean displayElementRoot = null; + +/** + * p + * The output from UIViewRoot.createUniqueId() after the + * component tree has been constructed. + */ +private String lastUniqueId = null; +public void setlastUniqueId(String newId) +{ +lastUniqueId = newId; +} + +public String getlastUniqueId() +{ +return lastUniqueId; +} + /** * p * Returns the unique identifier used to build the component subtree @@ -228,7 +245,16 @@ if (log.isTraceEnabled()) log.trace(encodeBegin(FacesContext)); -if (getDisplayElementRoot() == null) { +if (getDisplayElementRoot() != null) { +// Call UIViewRoot.createUniqueId() until we have reproduced all +// IDs used during construction. +String currId = getFacesContext().getViewRoot().createUniqueId(); +String lastId = this.getlastUniqueId(); +while(!lastId.equals(currId)) { +currId = getFacesContext().getViewRoot().createUniqueId(); +} +} +else { if (!getJsfid().equals(Globals.RUNTIME_ELEMENT_ID)) { displayElementRoot = getRootElement(); } else { @@ -301,6 +327,8 @@ throw new RuntimeException(e); } +setlastUniqueId(getFacesContext().getViewRoot().createUniqueId()); + } super.encodeBegin(context); @@ -402,6 +430,7 @@ managedBeanName = ((String) aobj[2]); shapeValidator = ((String) aobj[3]); displayElementRoot = ((ComponentBean) aobj[4]); +lastUniqueId = ((String)aobj[5]); } @@ -413,12 +442,13 @@ * @see javax.faces.component.StateHolder#saveState(javax.faces.context.FacesContext) */ public Object saveState(FacesContext context) { -Object[] aobj = new Object[5]; +Object[] aobj = new Object[6]; aobj[0] = super.saveState(context); aobj[1] = jsfid; aobj[2] = managedBeanName; aobj[3] = shapeValidator; aobj[4] = displayElementRoot; +aobj[5] = lastUniqueId; return aobj; } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34711] - [Shale] Strange behaviour when Clay and JSF tags are mixed on the same page.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34711. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34711 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-05-04 07:46 --- Fixed in nightly build 20050504. Note that there is a small amount of risk in this approach, because it assumes that the JSF implementation will produce exactly the same set of identifiers each time the same page is rendered. That seems like a reasonable thing to expect, but it is not required by the API contracts. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]