SV: [shale] using the eclipse ide (maybe ith ant or maven2)
Hi The problem lies with the eclipse plugin and the maven embedder. This is fixed in the next version of the plugin Hermod -Opprinnelig melding- Fra: stephan opitz [mailto:[EMAIL PROTECTED] Sendt: 14. juni 2006 19:16 Til: Struts Users Mailing List Emne: Re: [shale] using the eclipse ide (maybe ith ant or maven2) hello it works in eclipse... next important problem is... i can define lifecycles like compile package cargo:start etc.. if i do this in eclipse it does not work... compile works but if i use package or cargo:start eclipse throws [ERROR] project-execute : org.apache.struts.ShaleShop:ShaleShop:war:1.0-SNAPSHOT ( task-segment: [package] ) why? stephan 2006/6/14, Gary VanMatre <[EMAIL PROTECTED]>: > >From: "Wendy Smoak" <[EMAIL PROTECTED]> > > > > On 6/14/06, stephan opitz wrote: > > > i wanted start programming with shale... > > > so i tried to integrate the shale blank war into eclipse as a new tomcat > > project > > > > > > because i was not able to configure maven2 and shale into eclipse i'm using > > ant. > > > > If you'd like to try Maven 2 again, we have an archetype in the sandbox. > > > > Follow the instructions here for 'mvn archetype:create ... ': > > > DME.txt> > > > > Then change into your new project directory and run 'mvn eclipse:eclipse'. > > > > I don't use Eclipse, but it works great for IDEA ('mvn idea:idea'). > > > > I've just started using this plugin http://maven.apache.org/eclipse-plugin.html. > > You can generate the eclipse project files using "mvn eclipse:eclipse". After the plugin is installed, you have set the maven repository for each new workspace under the preferences. The maven "eclipse:eclipse" goal will generate a .classpath file that points the the maven repository. You still have to create a variable for "M2_REPO" under the project library tab to the maven repository. > > > Gary > > > > HTH, > > -- > > Wendy > > > > - > > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Shale's dialog manager is driving me nuts!
Hi The bottom of the page might be a clue : id:"null" | type:"javax.faces.component.UIViewRoot" Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 7. mai 2006 01:48 Til: Struts Users Mailing List Emne: RE: Shale's dialog manager is driving me nuts! Quoting [EMAIL PROTECTED]: > Quoting "David G. Friedman" <[EMAIL PROTECTED]>: > > > Sounds like you need (da da da) Faces Trace: > > http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace > > > > Okay, so I've never used it but it sounds like it might > > just help you figure out where, when and why your JSF + Shale > > application is stuck. > > > > Regards, > > David > > > > > OK. > > Applied Faces Trace. Do you see anything suspicious here (see attachment)? > > I'm too new to this. The snapshot was made after the "Next" button was > clicked. > > rgds Sander > Hehjust found out that attachments are a big nono. Ummthe result page is here: http://www.hot.ee/sandervall/editPerson.html rgds Sander - 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]
SV: Acegi with shale and clay
Hi A navigation case looks like this whatever < * maps all whatever As far as I know, the navigation case is always evaluated by the navigation handler. Since you start with an action, I take you have an outcome. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Ian.Priest [mailto:[EMAIL PROTECTED] Sendt: 24. april 2006 15:37 Til: Struts Users Mailing List Emne: RE: Acegi with shale and clay The main problem with that solution is that I'd rather not have to use redirect everywhere as it will affect performance. Secondly, how would I configure the navigation rule? My current view is /welcome.html so that's easy /welcome.html My navigation case outcome is dialog:secure... dialog:secure But what is my to-view id? Is it the first page of the dialog? /secure/page1.html That can't be right as my dialog starts with an action rather than a page view... ... So my to-view-id would somehow have to refer to the action that starts the dialog. Is that possible? Athird issue here is that (I believe) DialogNavigationHandler intercepts the outcome of dialog:secure and deals with it, so the navigation case is never invoked anyway? Cheers, Ian. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 April 2006 12:53 To: user@struts.apache.org Subject: RE: Acegi with shale and clay Hi Have you tried to define a navigation rule, and add to that rule ? Hermod -Original Message- From: Ian.Priest [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 1:28 PM To: Struts Users Mailing List Subject: Acegi with shale and clay Hi, I'm using Shale/Clay to create an application. I'd like to protect the app with acegi's URL protection but I don't see a way to integrate with the response rendering. Here's an example: (all pages are rendered via Clay full html). I have the structure /welcome.html /logon.html /secure/page1.html /secure/page2.html the secure pages should only be accessable by those who have logged on using logon.html. The secure/.. Pages are defined as a dialog called "secure". In welcome.html i have an actionlink whose action is dialog:Secure I configure acegi to protect urls as follows: CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /secure/**=ROLE_USER /**=ROLE_ANONYMOUS If I now hit my application at welcome.html I'm assigned role ANONYMOUS and all is well. However, if I click on the link to the "secure" dialog acegi doesn't redirect me to logon.html. The request generated when I click on the actionlink appears to be a request for /welcome.html which acegi says it's ok to access anonymously. Shale's dialog manager then works out that the action is dialog:Secure and causes page1 of that dialog to render, apparently without doing either a forward or a rediect to /secure/page1.html. (In web.xml I have the mapping to acegi as follows: Acegi Filter Chain Proxy /* FORWARD REQUEST So forwards should also fire the filter). That means acegi never has a chance to intercept the request. (Once I'm in the dialog on page1.html, if I click on the next button I am redirected to the logon.html page - acegi correctly intercepts the /secure/page1.html request that is made). How can I intercept Shale's page building and view rendering mechanisms to ensure that my site's urls are secured correctly? Cheers, Ian. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---
Tiles menu in 1.2.9
Hi I have an 1.2.1 Struts application that I have been looking into migrating to 1.2.9. As far as I have seen this should go along quite nice, with the exception of a Tiles menu that I have. This uses logic:iterate and logic:present amongst other things. I really like this Tiles menu, because it gets the job done with no hazzle, and directly support internationalization. Has anybody migrated this to 1.2.9 and JSTL or the likes? If not, does anyone know how to expose JSTL vars (ex. C:forEach's var) in jsp scriplet? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] Clay
Hi Take a look at the sample that I have provided for this: http://www.opstvedt.com/div/ClayMal.zip Don't pay to much attention the actual body contents for page 2 and 3. Hermod -Opprinnelig melding- Fra: Gregg Bolinger [mailto:[EMAIL PROTECTED] Sendt: 8. april 2006 18:38 Til: user@struts.apache.org Emne: [Shale] Clay I am evaluating Shale. I realize it is a work in progress and that nothing is fully finallized/stable and I expect there to be issues. I also expect great things from Shale in the future and want to help track down issues for development. Hence, my eval. I've got some questions about Clay... I have searched the mailing list archives and found psuedo answers to my issues but nothing concrete. I am trying to utalize tapestry like views and full HTML layout. I've read the online doc and downloaded and read the PDF doc. I have also looked at the code for the Use Case Roladex which seemed to just confuse me more. I know people have asked for a simpler example of using Clay already, so I won't. But I would like some clarification. If I want to use tapestry like views and full html layout, do I need the clay-template-suffix context param and do I need to map the servlet to the same extension. Also the documentation shows the clay-template-suffix as .clay and then the servlet mapping as .html. It states both should be the same. Is HTML preferred? Exactly what file should I place my component declarations in and where should this file reside? For full HTML layout, do I need a JSP that pulls in the appropriate template using the clay-shale taglib? Is there currently any other documentation that I am not aware of concerning Clay? Thanks a bunch and I look forward to Shale's growth. Gregg Bolinger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shale] Component name of f:facet
Hi I am almost done with at list that has a t:dataScroller attached to it (ref. the datascroller example of the MyFaces simple webapp). There they have : Since facet is not defined in the shale-clay clay-config.xml file, I added a definition in mine to just get going: Abviously it does not render in the same way as f:facet in MyFaces does. So I tried to track down what componentType this is, but have come up with nothing so far. Anybody know ? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shale] Shale and navigation rules
Hi I read a Wiki page on MyFaces : http://wiki.apache.org/myfaces/Custom_Navigation_Handler, When I attempted to try this receipe, I ran into a couple of issues: In the Wiki entry it states that I should be able to declare a navigation rule as follows: /view.jsp edit /view.jsp?objectId=#{view.objectId} However when I tried this with a Shale variant I got errors. First I tried the following: open$arrangement marathonside /open/marathonside.xml?arrid=#{open$arrangement.arrid} This gave me: java.lang.RuntimeException: Unable to find file /open/open/marathonside.xml. So next I changed to-view-id to: /marathonside.xml?arrid=#{open$arrangement.arrid} Which gave me: java.lang.RuntimeException: Unable to find file /marathonside.xml. Also, will it resolve the open$arrangement.arrid into a value? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] Clay views and managed beans.
Hi Thanks, I will give it a try. If it does not work, I'll just have to create two separate viewcontrollers. Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 5. april 2006 23:13 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: [Shale] Clay views and managed beans. >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > I have the following situation: I have a page with some buttons on it, which > leads to actions that are handled by navigation rules. This is working ok > for all but one of the pages. > > This page uses the same viewcontroller as the originating page. On the > originating page I have a hidden input that holds a value that is supposed > to be used by the viewcontroller for getting data for the destination page. > Now, what I see is the following when I press the Button > > The hidden value is set on the viewcontroller (instance 1) by > ViewViewHandler.restoreView. The value is null. > Then the value is set on the viewcontroller (instance 1) by > Clay.processUpdates. The value is now the correct one. > The method that is backed by the button is called on the viewcontroller > (instance 1). This method returns an outcome which is mapped to the > destination page by the navigation rules. > > So far so good. > > Now, what happens next is not what I expected: > The setter method for the hidden value is called again on the viewcontroller > (instance 2!!) by ViewViewHandler.renderView, and with a value of null. > And finally the method that backs the data for the destination page is > called on the viewcontroller (instance 2!!) by ViewViewHandler.renderView. > > I would have thought that since this is one request, that the to pages would > share the same instance of the viewcontroller, and not that a new instance > of it would be created for the second page. Have I misunderstood something, > or I am just way out on the field with this one. > I don't think that both pages can share the same view controller instance because they are registered as managed beans based on the name of the page/ view id. This could happen if page1 and page2 are both identified by the same URI (same page). Even then, the view controller would have to be in session scope to keep state between the first and second page requests. Now the shale subview component would allow you to tie multiple pages to the same view controller instance if placed in session scope. The "id" attribute is the name of the view controller. page 1: page content page 2: page content commonbean org.acme.MyBean session I've not actually tried this but can't see why it wouldn't work. Gary > Hermod > > > - > 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]
[Shale] Clay views and managed beans.
Hi I have the following situation: I have a page with some buttons on it, which leads to actions that are handled by navigation rules. This is working ok for all but one of the pages. This page uses the same viewcontroller as the originating page. On the originating page I have a hidden input that holds a value that is supposed to be used by the viewcontroller for getting data for the destination page. Now, what I see is the following when I press the Button The hidden value is set on the viewcontroller (instance 1) by ViewViewHandler.restoreView. The value is null. Then the value is set on the viewcontroller (instance 1) by Clay.processUpdates. The value is now the correct one. The method that is backed by the button is called on the viewcontroller (instance 1). This method returns an outcome which is mapped to the destination page by the navigation rules. So far so good. Now, what happens next is not what I expected: The setter method for the hidden value is called again on the viewcontroller (instance 2!!) by ViewViewHandler.renderView, and with a value of null. And finally the method that backs the data for the destination page is called on the viewcontroller (instance 2!!) by ViewViewHandler.renderView. I would have thought that since this is one request, that the to pages would share the same instance of the viewcontroller, and not that a new instance of it would be created for the second page. Have I misunderstood something, or I am just way out on the field with this one. Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shale] CLayForEach and var attribute
Hi I have a situation that I am struggling a bit with. On a page that I have, I have a page that displays different races and has a clayForEach tag that is supposed render a jsfid that displays information about a classes in a race, and a dataTable on that jsfid that displays the results for each class. What happens is that when I first hit that page, the method that backs the clayForEach is called, but when I change to a different race, the method is never called again, but it displays the classes w/results from the initial load of that page. I seem to remember something about the clayForEach tag and the var being session scoped? Should I explicitly do a getExternalContext().getSessionMap().remove("myvar") in my backing beans init method? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: SV: [Shale] Backingbean beeing created twice -Solved!!!!
Hi Yeah, this is my sentiment to. I guess since it does not have any uri to it, it is treated like a postback. Anyways, I think we should document this some ware (Wiki?) so others don't have to spend a couple of days figuring out why a double instantiate occurs. Gary: I had a misspelled allowBody (i.e allowbody). Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 17:16 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: SV: SV: [Shale] Backingbean beeing created twice -Solved Hermod, You should really set this to be a blank or transparent pixel image. Setting things to a blank source should re-invoke the current page so that makes perfect sense to me that your bean is being called twice: because the src="" makes your page calls itself! This isn't a clay issue but (basic) html that I learned about when I started making web pages.. The same thing happens with the ref tag if you use a blank src="" attribute. Regards, David -----Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Saturday, April 01, 2006 7:19 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: SV: SV: SV: [Shale] Backingbean beeing created twice -Solved Hi This is what makes things go wrong : In my template I have som mockup html code that gets excluded by Clay because of the allowBody=false. Within the mockup html I have the above image. This can be reproduced by creating an empty clay html template, and then run once with the empty template and once with the above in it. The backing bean will be instatiated once with empty content, and twice with the image on it. Hermod -----Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 13:50 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: SV: SV: SV: [Shale] Backingbean beeing created twice - Almost solved! Hi It seems that this might be a problem with Clay. I created a brand new web project, and got it working so that it showed a page with Hello on it, and with a corresponding backing bean, which was being called once. Then I replaced the "empty" template with the one that I have been using, and voila my backing bean is suddenly being instantiated twice. Next step was to start to strip this down, eliminating any possible culprit. So all clay replacement symbols where removed first, then all meta tags, then all javascript an stylesheet imports. Still my backing bean is being instantiated twice. So now I had come so far that I was left with just a straight forward page with only html tags on it. Still being instantiated twice. So drastic measures had to be taken - Strip away all except a basic html-head-body with nothing in it. VOILA - Backing bean is being instantiated once again. So now I am going to rebuild the page with the html content, bit by bit until I can see where it is going wrong. Hermod - 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] - 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]
SV: SV: SV: [Shale] Backingbean beeing created twice -Solved!!!!
Hi This is the reason I was seeing to Threads when debugging. The second thread is a new request from the browser get the image resource. For some reason Shale/Clay or MyFaces is trying to handle this instead of letting the container serve it. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 14:19 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: SV: SV: SV: [Shale] Backingbean beeing created twice -Solved Hi This is what makes things go wrong : In my template I have som mockup html code that gets excluded by Clay because of the allowBody=false. Within the mockup html I have the above image. This can be reproduced by creating an empty clay html template, and then run once with the empty template and once with the above in it. The backing bean will be instatiated once with empty content, and twice with the image on it. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 13:50 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: SV: SV: SV: [Shale] Backingbean beeing created twice - Almost solved! Hi It seems that this might be a problem with Clay. I created a brand new web project, and got it working so that it showed a page with Hello on it, and with a corresponding backing bean, which was being called once. Then I replaced the "empty" template with the one that I have been using, and voila my backing bean is suddenly being instantiated twice. Next step was to start to strip this down, eliminating any possible culprit. So all clay replacement symbols where removed first, then all meta tags, then all javascript an stylesheet imports. Still my backing bean is being instantiated twice. So now I had come so far that I was left with just a straight forward page with only html tags on it. Still being instantiated twice. So drastic measures had to be taken - Strip away all except a basic html-head-body with nothing in it. VOILA - Backing bean is being instantiated once again. So now I am going to rebuild the page with the html content, bit by bit until I can see where it is going wrong. Hermod - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: SV: [Shale] Backingbean beeing created twice -Solved!!!!
Hi This is what makes things go wrong : In my template I have som mockup html code that gets excluded by Clay because of the allowBody=false. Within the mockup html I have the above image. This can be reproduced by creating an empty clay html template, and then run once with the empty template and once with the above in it. The backing bean will be instatiated once with empty content, and twice with the image on it. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 13:50 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: SV: SV: SV: [Shale] Backingbean beeing created twice - Almost solved! Hi It seems that this might be a problem with Clay. I created a brand new web project, and got it working so that it showed a page with Hello on it, and with a corresponding backing bean, which was being called once. Then I replaced the "empty" template with the one that I have been using, and voila my backing bean is suddenly being instantiated twice. Next step was to start to strip this down, eliminating any possible culprit. So all clay replacement symbols where removed first, then all meta tags, then all javascript an stylesheet imports. Still my backing bean is being instantiated twice. So now I had come so far that I was left with just a straight forward page with only html tags on it. Still being instantiated twice. So drastic measures had to be taken - Strip away all except a basic html-head-body with nothing in it. VOILA - Backing bean is being instantiated once again. So now I am going to rebuild the page with the html content, bit by bit until I can see where it is going wrong. Hermod - 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]
SV: SV: SV: [Shale] Backingbean beeing created twice - Almost solved!
Hi It seems that this might be a problem with Clay. I created a brand new web project, and got it working so that it showed a page with Hello on it, and with a corresponding backing bean, which was being called once. Then I replaced the "empty" template with the one that I have been using, and voila my backing bean is suddenly being instantiated twice. Next step was to start to strip this down, eliminating any possible culprit. So all clay replacement symbols where removed first, then all meta tags, then all javascript an stylesheet imports. Still my backing bean is being instantiated twice. So now I had come so far that I was left with just a straight forward page with only html tags on it. Still being instantiated twice. So drastic measures had to be taken - Strip away all except a basic html-head-body with nothing in it. VOILA - Backing bean is being instantiated once again. So now I am going to rebuild the page with the html content, bit by bit until I can see where it is going wrong. Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: SV: [Shale] Backingbean beeing created twice
Hi I think somebody should have a look at PluggableLookupCommand that is called from Clay.encodeBegin. It is throwing IllegalArgumentExceptions, and PropertyNotFoundExceptions on mass. Using Exceptions for programlogic has never been a great idea, not speak of how costly it is. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 10:21 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: SV: SV: SV: [Shale] Backingbean beeing created twice Hi This is getting really weird - I was stepping through the calls, and when the call was returning, I got as far as having the following rest of my call stack: CoyoteAdapter.service(Request, Response) line: 164 Http11Processor.process(InputStream, OutputStream) line: 799 Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection, Object[]) line: 705 TcpWorkerThread.runIt(Object[]) line: 577 ThreadPool$ControlRunnable.run() line: 684 ThreadWithAttributes(Thread).run() line: 595 When a second! Thread kicked in and called the constructor of my backing bean. I am running this on Tomcat 5.0.30. Funny thing is that I am not seeing this with the shale-use-cases app. Hermod - 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]
SV: SV: SV: [Shale] Backingbean beeing created twice
Hi This is getting really weird - I was stepping through the calls, and when the call was returning, I got as far as having the following rest of my call stack: CoyoteAdapter.service(Request, Response) line: 164 Http11Processor.process(InputStream, OutputStream) line: 799 Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection, Object[]) line: 705 TcpWorkerThread.runIt(Object[]) line: 577 ThreadPool$ControlRunnable.run() line: 684 ThreadWithAttributes(Thread).run() line: 595 When a second! Thread kicked in and called the constructor of my backing bean. I am running this on Tomcat 5.0.30. Funny thing is that I am not seeing this with the shale-use-cases app. Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: SV: [Shale] Backingbean beeing created twice
Hi Well, renaming did not do the trick. I have tried to reduce this down to something simple: I have a index.html file with only 1 line in it: Then I have a index.xml file like this: A managed bean defined as: View controller for forsiden index com.opstvedt.osseil.viewcontrollers.IndexPage request nyhetService com.opstvedt.osseil.hibernate.service.NyhetService #{nyhetService} On invocation the first call to the index bean the callstack is ( Objectid for ViewViewHandler=1708593): IndexPage.() line: 42 NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method] NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 Constructor.newInstance(Object...) line: 494 Class.newInstance0() line: 350 Class.newInstance() line: 303 ClassUtils.newInstance(Class) line: 274 ClassUtils.newInstance(String) line: 265 ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 WebApplicationContextVariableResolver.resolveVariable(FacesContext, String) line: 87 ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, boolean) line: 235 ViewViewHandler.createView(FacesContext, String) line: 126 LifecycleImpl.restoreView(FacesContext) line: 127 LifecycleImpl.execute(FacesContext) line: 66 FacesServlet.service(ServletRequest, ServletResponse) line: 106 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 252 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173 ShaleApplicationFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 285 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 202 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173 OpenSessionInViewFilter.doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) line: 174 OpenSessionInViewFilter(OncePerRequestFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 76 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 202 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173 OpenSessionInViewFilter.doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) line: 174 OpenSessionInViewFilter(OncePerRequestFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 76 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 202 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 173 StandardWrapperValve.invoke(Request, Response, ValveContext) line: 214 StandardValveContext.invokeNext(Request, Response) line: 104 StandardPipeline.invoke(Request, Response) line: 520 StandardContextValve.invokeInternal(Wrapper, Request, Response) line: 198 StandardContextValve.invoke(Request, Response, ValveContext) line: 152 StandardValveContext.invokeNext(Request, Response) line: 104 StandardPipeline.invoke(Request, Response) line: 520 StandardHostValve.invoke(Request, Response, ValveContext) line: 137 StandardValveContext.invokeNext(Request, Response) line: 104 ErrorReportValve.invoke(Request, Response, ValveContext) line: 118 StandardValveContext.invokeNext(Request, Response) line: 102 StandardPipeline.invoke(Request, Response) line: 520 StandardEngineValve.invoke(Request, Response, ValveContext) line: 109 StandardValveContext.invokeNext(Request, Response) line: 104 StandardPipeline.invoke(Request, Response) line: 520 StandardEngine(ContainerBase).invoke(Request, Response) line: 929 CoyoteAdapter.service(Request, Response) line: 160 Http11Processor.process(InputStream, OutputStream) line: 799 Http11Protocol$Http11ConnectionHandler.processConnection(TcpConnection, Object[]) line: 705 TcpWorkerThread.runIt(Object[]) line: 577 ThreadPool$ControlRunnable.run() line: 684 ThreadWithAttributes(Thread).run() line: 595 [local variables unavailable] Then the managed bean gets instantiated again, and the ViewViewHandler has the same objected. I'll check the objectid of each and every one in the callstack to see where there is a new creation of that bean. Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 09:21 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: SV: SV: [Shale] Backingbean beeing created twice >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > &
SV: SV: [Shale] Backingbean beeing created twice
Hi You are right. This is happening further up the stack, and as far as I have been able to determine, it has to do with the extension mapping with faces and Clay. So now I am trying to sort this out. Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 00:13 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: SV: [Shale] Backingbean beeing created twice >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > I applied your patch, but my backing bean is still beeing created twice. > > Once in restoreView, and then again in createView > What scope is you managed bean defined in? If your bean is not defined in a scope (NONE), it will be created each time. This patch has more to do with invoking the "init()" and "destroy()" methods more than once per view controller. The JSF runtime handles creating managed beans and caching them in the correct scope. The view controller init() and other callback methods are invoked on a managed bean after the JSF runtime has returned an object instance. So the "init()" method in the view controller should not be confused with an object's constructor. > I read from you mail identifying this, that you where looking for some > feedback from someone (Craig?). > Yeah, I was wanting for Craig to take a look. This is kind of his domain and I might not have a full picture. > If anything is a showstopper, this one definitly is! > > Hermod Gary > > -Original Message- > From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] > Sent: Friday, March 31, 2006 6:52 AM > To: 'Struts Users Mailing List' > Subject: SV: [Shale] Backingbean beeing created twice > > > Hi > > I'll look at the trace from the debugger for both instance creations and > confirm this. > > Hermod > > -Opprinnelig melding- > Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sendt: 31. mars 2006 00:47 > Til: Struts Users Mailing List > Emne: Re: [Shale] Backingbean beeing created twice > > >From: "Craig McClanahan" > > > > On 3/30/06, Hermod Opstvedt wrote: > > > > > > Hi > > > > > > I am seeing some odd behaviour in my Shale/Clay application. My > > > backingbean > > > (ie ViewController) is being created twice, meaning I have 2 instances > of > > > it. I was wondering if this is expected behaviour or if this is a bug. > > > From > > > the stacktrace: > > > > > > How are you locating these two instances? Printing stuff in the > > constructor? I don't see how you could ever end up with two request scope > > instances under one name. > > > > The called twice to the int() might be related to this bug: > http://issues.apache.org/bugzilla/show_bug.cgi?id=38000 > > The behavior on a postback when you navigate back to the same page is: > init() - invoked from resortView() > int() - invoked from createView() > > prerender() > prerender() > destroy() > destroy() > > The destroy is called twice because the view controller is added twice to > the > list that the phase listener uses to callback on the prerender and destroy. > > Gary > > > ResultatPage.() line: 71 > > > NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: > > > not > > > available [native method] > > > > > > This exception implies that the constructor threw an exception, which > would > > cause the managed bean creation to fail, so no instance would ever get > > installed in scope. Every time an expression containing this managed bean > > name is evaluated, it will see "aha, there's no bean yet, so try to create > > > one" -- and, I would assume, every attempt will fail. But its not > > surprising to see multiple attempts if your constructor is throwing > > exceptions. > > > > If the bean is a view controller, try moving the setup logic to the init() > > > method instead of the constructor. Even if an exception is still thrown, > > the initial attempt to create the bean will succeed, so you won't get > > multiple failed instantiation attempts. > > > > Craig > > > > NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 > > > DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 > > > Constructor.newInstance(Object...) line: 494 > > > Class.newInstance0() line: 350 > > > Class.newInstance() line: 303 > > > ClassUtils.newInstance(Class) line: 274 > > > ClassU
SV: SV: [Shale] Backingbean beeing created twice
Hi The managed beans have request scope. I am about to see if this is a problem specific to me or not by seeing what happens with the shale-use-cases app. I'll come back with more. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 1. april 2006 00:13 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: SV: [Shale] Backingbean beeing created twice >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > I applied your patch, but my backing bean is still beeing created twice. > > Once in restoreView, and then again in createView > What scope is you managed bean defined in? If your bean is not defined in a scope (NONE), it will be created each time. This patch has more to do with invoking the "init()" and "destroy()" methods more than once per view controller. The JSF runtime handles creating managed beans and caching them in the correct scope. The view controller init() and other callback methods are invoked on a managed bean after the JSF runtime has returned an object instance. So the "init()" method in the view controller should not be confused with an object's constructor. > I read from you mail identifying this, that you where looking for some > feedback from someone (Craig?). > Yeah, I was wanting for Craig to take a look. This is kind of his domain and I might not have a full picture. > If anything is a showstopper, this one definitly is! > > Hermod Gary > > -Original Message- > From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] > Sent: Friday, March 31, 2006 6:52 AM > To: 'Struts Users Mailing List' > Subject: SV: [Shale] Backingbean beeing created twice > > > Hi > > I'll look at the trace from the debugger for both instance creations and > confirm this. > > Hermod > > -Opprinnelig melding- > Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sendt: 31. mars 2006 00:47 > Til: Struts Users Mailing List > Emne: Re: [Shale] Backingbean beeing created twice > > >From: "Craig McClanahan" > > > > On 3/30/06, Hermod Opstvedt wrote: > > > > > > Hi > > > > > > I am seeing some odd behaviour in my Shale/Clay application. My > > > backingbean > > > (ie ViewController) is being created twice, meaning I have 2 instances > of > > > it. I was wondering if this is expected behaviour or if this is a bug. > > > From > > > the stacktrace: > > > > > > How are you locating these two instances? Printing stuff in the > > constructor? I don't see how you could ever end up with two request scope > > instances under one name. > > > > The called twice to the int() might be related to this bug: > http://issues.apache.org/bugzilla/show_bug.cgi?id=38000 > > The behavior on a postback when you navigate back to the same page is: > init() - invoked from resortView() > int() - invoked from createView() > > prerender() > prerender() > destroy() > destroy() > > The destroy is called twice because the view controller is added twice to > the > list that the phase listener uses to callback on the prerender and destroy. > > Gary > > > ResultatPage.() line: 71 > > > NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: > > > not > > > available [native method] > > > > > > This exception implies that the constructor threw an exception, which > would > > cause the managed bean creation to fail, so no instance would ever get > > installed in scope. Every time an expression containing this managed bean > > name is evaluated, it will see "aha, there's no bean yet, so try to create > > > one" -- and, I would assume, every attempt will fail. But its not > > surprising to see multiple attempts if your constructor is throwing > > exceptions. > > > > If the bean is a view controller, try moving the setup logic to the init() > > > method instead of the constructor. Even if an exception is still thrown, > > the initial attempt to create the bean will succeed, so you won't get > > multiple failed instantiation attempts. > > > > Craig > > > > NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 > > > DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 > > > Constructor.newInstance(Object...) line: 494 > > > Class.newInstance0() line: 350 > > > Class.newInstance() line: 303 > > > ClassUtils.newInstance
SV: [Shale] Backingbean beeing created twice
Hi I applied your patch, but my backing bean is still beeing created twice. Once in restoreView, and then again in createView Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2006 08:55 Til: user@struts.apache.org Emne: RE: [Shale] Backingbean beeing created twice Hi And you are absolutly right : 1st Pass: Class.newInstance0() line: 350 Class.newInstance() line: 303 ClassUtils.newInstance(Class) line: 274 ClassUtils.newInstance(String) line: 265 ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 WebApplicationContextVariableResolver.resolveVariable(FacesContext, String) line: 87 ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, boolean) line: 233 ViewViewHandler.restoreView(FacesContext, String) line: 160 <<<<<< ... 2nd Pass Class.newInstance0() line: 350 Class.newInstance() line: 303 ClassUtils.newInstance(Class) line: 274 ClassUtils.newInstance(String) line: 265 ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 WebApplicationContextVariableResolver.resolveVariable(FacesContext, String) line: 87 ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, boolean) line: 233 ViewViewHandler.createView(FacesContext, String) line: 126 <<<<<<<<<<<-- I read from you mail identifying this, that you where looking for some feedback from someone (Craig?). If anything is a showstopper, this one definitly is! Hermod -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 6:52 AM To: 'Struts Users Mailing List' Subject: SV: [Shale] Backingbean beeing created twice Hi I'll look at the trace from the debugger for both instance creations and confirm this. Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2006 00:47 Til: Struts Users Mailing List Emne: Re: [Shale] Backingbean beeing created twice >From: "Craig McClanahan" <[EMAIL PROTECTED]> > > On 3/30/06, Hermod Opstvedt wrote: > > > > Hi > > > > I am seeing some odd behaviour in my Shale/Clay application. My > > backingbean > > (ie ViewController) is being created twice, meaning I have 2 instances of > > it. I was wondering if this is expected behaviour or if this is a bug. > > From > > the stacktrace: > > > How are you locating these two instances? Printing stuff in the > constructor? I don't see how you could ever end up with two request scope > instances under one name. > The called twice to the int() might be related to this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38000 The behavior on a postback when you navigate back to the same page is: init() - invoked from resortView() int() - invoked from createView() prerender() prerender() destroy() destroy() The destroy is called twice because the view controller is added twice to the list that the phase listener uses to callback on the prerender and destroy. Gary > ResultatPage.() line: 71 > > NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: > > not > > available [native method] > > > This exception implies that the constructor threw an exception, which would > cause the managed bean creation to fail, so no instance would ever get > installed in scope. Every time an expression containing this managed bean > name is evaluated, it will see "aha, there's no bean yet, so try to create > one" -- and, I would assume, every attempt will fail. But its not > surprising to see multiple attempts if your constructor is throwing > exceptions. > > If the bean is a view controller, try moving the setup logic to the init() > method instead of the constructor. Even if an exception is still thrown, > the initial attempt to create the bean will succeed, so you won't get > multiple failed instantiation attempts. > > Craig > > NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 > > DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 > > Constructor.newInstance(Object...) line: 494 > > Class.newInstance0() line: 350 > > Class.newInstance() line: 303 > > ClassUtils.newInstance(Class) line: 274 > > ClassUtils.newInstance(String) li
SV: [Shale] Backingbean beeing created twice
Hi I'll look at the trace from the debugger for both instance creations and confirm this. Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 31. mars 2006 00:47 Til: Struts Users Mailing List Emne: Re: [Shale] Backingbean beeing created twice >From: "Craig McClanahan" <[EMAIL PROTECTED]> > > On 3/30/06, Hermod Opstvedt wrote: > > > > Hi > > > > I am seeing some odd behaviour in my Shale/Clay application. My > > backingbean > > (ie ViewController) is being created twice, meaning I have 2 instances of > > it. I was wondering if this is expected behaviour or if this is a bug. > > From > > the stacktrace: > > > How are you locating these two instances? Printing stuff in the > constructor? I don't see how you could ever end up with two request scope > instances under one name. > The called twice to the int() might be related to this bug: http://issues.apache.org/bugzilla/show_bug.cgi?id=38000 The behavior on a postback when you navigate back to the same page is: init() - invoked from resortView() int() - invoked from createView() prerender() prerender() destroy() destroy() The destroy is called twice because the view controller is added twice to the list that the phase listener uses to callback on the prerender and destroy. Gary > ResultatPage.() line: 71 > > NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: > > not > > available [native method] > > > This exception implies that the constructor threw an exception, which would > cause the managed bean creation to fail, so no instance would ever get > installed in scope. Every time an expression containing this managed bean > name is evaluated, it will see "aha, there's no bean yet, so try to create > one" -- and, I would assume, every attempt will fail. But its not > surprising to see multiple attempts if your constructor is throwing > exceptions. > > If the bean is a view controller, try moving the setup logic to the init() > method instead of the constructor. Even if an exception is still thrown, > the initial attempt to create the bean will succeed, so you won't get > multiple failed instantiation attempts. > > Craig > > NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 > > DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 > > Constructor.newInstance(Object...) line: 494 > > Class.newInstance0() line: 350 > > Class.newInstance() line: 303 > > ClassUtils.newInstance(Class) line: 274 > > ClassUtils.newInstance(String) line: 265 > > ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 > > VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 > > ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 > > DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 > > WebApplicationContextVariableResolver.resolveVariable(FacesContext, > > String) > > line: 87 > > ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, > > boolean) line: 233 > > ViewViewHandler.restoreView(FacesContext, String) line: 160 > > ... > > > > > > Hermod > > > > > > - > > 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]
SV: [Shale] Backingbean beeing created twice
Hi To further augment that, I also noticed that my QueryObject (as taken from the rolodex example) is fully populated the for the first object, but not for the second. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 30. mars 2006 23:56 Til: 'Struts Users Mailing List' Emne: [Shale] Backingbean beeing created twice Hi I am seeing some odd behaviour in my Shale/Clay application. My backingbean (ie ViewController) is being created twice, meaning I have 2 instances of it. I was wondering if this is expected behaviour or if this is a bug. From the stacktrace: ResultatPage.() line: 71 NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method] NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 Constructor.newInstance(Object...) line: 494 Class.newInstance0() line: 350 Class.newInstance() line: 303 ClassUtils.newInstance(Class) line: 274 ClassUtils.newInstance(String) line: 265 ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 WebApplicationContextVariableResolver.resolveVariable(FacesContext, String) line: 87 ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, boolean) line: 233 ViewViewHandler.restoreView(FacesContext, String) line: 160 ... Hermod - 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]
[Shale] Backingbean beeing created twice
Hi I am seeing some odd behaviour in my Shale/Clay application. My backingbean (ie ViewController) is being created twice, meaning I have 2 instances of it. I was wondering if this is expected behaviour or if this is a bug. From the stacktrace: ResultatPage.() line: 71 NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method] NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 Constructor.newInstance(Object...) line: 494 Class.newInstance0() line: 350 Class.newInstance() line: 303 ClassUtils.newInstance(Class) line: 274 ClassUtils.newInstance(String) line: 265 ManagedBeanBuilder.buildManagedBean(FacesContext, ManagedBean) line: 49 VariableResolverImpl.resolveVariable(FacesContext, String) line: 311 ShaleVariableResolver.resolveVariable(FacesContext, String) line: 152 DelegatingVariableResolver.resolveVariable(FacesContext, String) line: 110 WebApplicationContextVariableResolver.resolveVariable(FacesContext, String) line: 87 ViewViewHandler.setupViewController(FacesContext, UIViewRoot, String, boolean) line: 233 ViewViewHandler.restoreView(FacesContext, String) line: 160 ... Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: SV: [Shale] commons client side validation not working inside a dataList
Hi I seem to remember that this issue has come up on the myfaces list, and that the solution was to use forceId. Hermod -Opprinnelig melding- Fra: news [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Laurie Harper Sendt: 30. mars 2006 00:07 Til: user@struts.apache.org Emne: Re: SV: [Shale] commons client side validation not working inside a dataList Why would that be needed? The s:commonsValidator tag should render Javascript referencing the actual rendered ID of the component it's attached to. I haven't played much with validators, much less validators for components inside dataLists, but I would have thought this should be able to work as it is. Paul, could you include your sample JSP and, if possible, copy/paste the rendered HTML as well, in a Bugzilla ticket so the issue gets tracked? L. Hermod Opstvedt wrote: > Hi > > Did I hear forceId? - You need to use this attribute to force the name to be > what you want. > > Hermod > > > -Opprinnelig melding- > Fra: Paul Devine [mailto:[EMAIL PROTECTED] > Sendt: 29. mars 2006 22:47 > Til: user@struts.apache.org > Emne: [Shale] commons client side validation not working inside a dataList > > I tried using the commons validation features of Shale. The application is > using Myfaces 1.1.1. The validation javascript is being written back to the > browser. The server side validation is working fine but a javascript `field > error occurs during the . However there is a problem with the client side > input element Id's that the javascript validation is looking for versus the > client side id's that are generated by the dataList. The page i tried > validation on has a Myfaces dataList inside a form, and for each iteration > through the list there are inputs. Basically a dataList will append the `row > index` to the client side Id to guarantee uniqueness, as in > "myForm:myDataList_0:someRequiredField" for the first row, > "myForm:myDataList_1:someRequiredField" for the second, and so on. But in > the rendering of the javascript by the struts validatorScript tag, the > clientId of the input components lose their row index. > > I have created an illustrative example that generates the same problem. The > code is included below and the inline comments hopefully explain what's > happening. To keep things simple there is no backing bean, and I use a > class from shale-core to give me some objects to edit, so all you'd just > need to deploy into a shale-core based "blank" web-app. My application page > is more complex than this but I am running into exact the same problem > withthe validation javascript > > Does this look familiar to anyone? Any workarounds, solutions?... > > Thanks > -- Paul Devine > > <%@ page language="java" import="java.util.*, > org.apache.shale.dialog.impl.DialogImpl"%> > <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> > <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> > <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="t"%> > <%@ taglib uri="http://struts.apache.org/shale/core"; prefix="s" %> > <% > /* Put a couple of Shale DialogImpl objects into the session (we just need > an object with a getter and a setter > * and this class is readily accessible) > */ > List inputObjects = new ArrayList(); > inputObjects.add(new DialogImpl()); > inputObjects.add(new DialogImpl()); > session.setAttribute("someInputObjects",inputObjects); > %> > > <%-- > A form with a dataList of inputs. The client side id's of the components > will be > someForm:someDataList_0:someRequiredField and > someForm:someDataList_1:someRequiredField > --%> > >rowIndexVar="index"> > > > required="true"> >client="true"/> > errorClass="errorMessage"/> > > > <%-- > The dataList is now closed. Before we close out the form, write out the > validator javascript. But > this results in a mismatch on the client side id's in the required function. > Note the uniqueness > indexes _0 and _1 are missing. Because we are outside the > dataList there is no "row index" anymore (and for some reason the > HtmlInputText components `calculate` > their clientId's again when asked for getClientId from Shale's > ValidatorScript findCommonsValidators method > Here's what the validatorScript comes up with:- > function required() { > this[0] = new Array("someForm:someDataList:someRequiredField", "Name is > required.", new Function("x", "return {}[x];")); > } > --%> > > > > - 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]
SV: [Shale] commons client side validation not working inside a dataList
Hi Did I hear forceId? - You need to use this attribute to force the name to be what you want. Hermod -Opprinnelig melding- Fra: Paul Devine [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 22:47 Til: user@struts.apache.org Emne: [Shale] commons client side validation not working inside a dataList I tried using the commons validation features of Shale. The application is using Myfaces 1.1.1. The validation javascript is being written back to the browser. The server side validation is working fine but a javascript `field error occurs during the . However there is a problem with the client side input element Id's that the javascript validation is looking for versus the client side id's that are generated by the dataList. The page i tried validation on has a Myfaces dataList inside a form, and for each iteration through the list there are inputs. Basically a dataList will append the `row index` to the client side Id to guarantee uniqueness, as in "myForm:myDataList_0:someRequiredField" for the first row, "myForm:myDataList_1:someRequiredField" for the second, and so on. But in the rendering of the javascript by the struts validatorScript tag, the clientId of the input components lose their row index. I have created an illustrative example that generates the same problem. The code is included below and the inline comments hopefully explain what's happening. To keep things simple there is no backing bean, and I use a class from shale-core to give me some objects to edit, so all you'd just need to deploy into a shale-core based "blank" web-app. My application page is more complex than this but I am running into exact the same problem withthe validation javascript Does this look familiar to anyone? Any workarounds, solutions?... Thanks -- Paul Devine <%@ page language="java" import="java.util.*, org.apache.shale.dialog.impl.DialogImpl"%> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="t"%> <%@ taglib uri="http://struts.apache.org/shale/core"; prefix="s" %> <% /* Put a couple of Shale DialogImpl objects into the session (we just need an object with a getter and a setter * and this class is readily accessible) */ List inputObjects = new ArrayList(); inputObjects.add(new DialogImpl()); inputObjects.add(new DialogImpl()); session.setAttribute("someInputObjects",inputObjects); %> <%-- A form with a dataList of inputs. The client side id's of the components will be someForm:someDataList_0:someRequiredField and someForm:someDataList_1:someRequiredField --%> <%-- The dataList is now closed. Before we close out the form, write out the validator javascript. But this results in a mismatch on the client side id's in the required function. Note the uniqueness indexes _0 and _1 are missing. Because we are outside the dataList there is no "row index" anymore (and for some reason the HtmlInputText components `calculate` their clientId's again when asked for getClientId from Shale's ValidatorScript findCommonsValidators method Here's what the validatorScript comes up with:- function required() { this[0] = new Array("someForm:someDataList:someRequiredField", "Name is required.", new Function("x", "return {}[x];")); } --%> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] When to create a database Connection?
Hi That's one of the "equivalent" I mentioned. Spring also supports it. iBatis might be good if you are first and foremost an SQL guru, and not so much a programmer with an OO background. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Yee, Richard K CTR DMDC [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 22:34 Til: 'Struts Users Mailing List' Emne: RE: [Shale] When to create a database Connection? Check out iBATIS. You can use the DaoManager for a very lightweight framework. It will handle getting and closing connections for you and also handle transactions. With a little more configuration, you can use the SqlMaps that will populate DTO objects for you. -Richard -Original Message- From: James Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 11:16 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [Shale] When to create a database Connection? Hi Hermod, Here's my reason I'm under pressure to get this project complete so I'm reluctant to take on learning Hibernate and Spring at this time. There's no question that would be a better way to do it, but (as you can probably tell) I'm not an expert programmer. Maybe my assumption is invalid, how challenging are these technologies for new comers? Thanks -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 11:45 AM To: 'Struts Users Mailing List' Subject: SV: [Shale] When to create a database Connection? Hi Give me one good reason as to why you are doing this. If you let existing tools do the job for you, you are going to relieve your self of a lot of trouble. Have a look at Hibernate or equivalent, combined with Spring. What you are doing here is really is something of the past. Hermod -Opprinnelig melding- Fra: James Reynolds [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 19:33 Til: Struts Users Mailing List Emne: [Shale] When to create a database Connection? I'm getting a null pointer error in my backing bean. My grand plan was to create a Connection in the init() method extended from the AbstractViewController, so it can be used by any number of methods and getters in my bean, and then close it in destroy(). In this simple case, the only place this Connection is used is in a getter that returns a Result for a dataTable. However, it doesn't seem to be working as I get a null pointer exception. If I move the getConnection() method out of the init() method and into this getter, then everything works great. Am I miss-using the init() method? Import lots.of.stuff; public class Testimonial extends AbstractViewController { private Connection conn = null; public Testimonial(){ } public void init() { try { conn = DbConnection.getConnection(); System.out.println(); } catch (SQLException e) { e.printStackTrace(); } } public void destroy() { try { if (!conn.isClosed()) { conn.close(); } } catch (SQLException sqle) { log(sqle.getMessage(), sqle); sqle.printStackTrace(); } } public Result getAllTestimonials() { /* ### moving the "conn = DbConnection.getConnection()" here solves the problem ### */ Result result = null; PreparedStatement ps = null; try { ps = conn.prepareStatement(SqlStatements.ALL_TESITIMONIALS); result = ResultSupport.toResult(ps.executeQuery()); } catch (SQLException sqle) { System.out.println("SQL Exception:" + sqle.getMessage()); sqle.printStackTrace(); } catch (Exception e) { System.out.println("Exception:" + e.getMessage()); e.printStackTrace(); } finally { try { if (ps != null) { ps.close(); } } catch (SQLException e) { e.printStackTrace(); } } return result; } } - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] When to create a database Connection?
Hi We'll it all comes down to your skill set. There are plenty of online tutorials, not to talk about printed matter, available. Since Spring relies on Dependency injection, and Hibernate on ORM, I guess a basic to good OO background is desirable. However any fairly clever programmer should be able to grasp this, at least at a basic level fairly quick. Hermod -Opprinnelig melding- Fra: James Reynolds [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 21:16 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [Shale] When to create a database Connection? Hi Hermod, Here's my reason I'm under pressure to get this project complete so I'm reluctant to take on learning Hibernate and Spring at this time. There's no question that would be a better way to do it, but (as you can probably tell) I'm not an expert programmer. Maybe my assumption is invalid, how challenging are these technologies for new comers? Thanks -----Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 11:45 AM To: 'Struts Users Mailing List' Subject: SV: [Shale] When to create a database Connection? Hi Give me one good reason as to why you are doing this. If you let existing tools do the job for you, you are going to relieve your self of a lot of trouble. Have a look at Hibernate or equivalent, combined with Spring. What you are doing here is really is something of the past. Hermod -Opprinnelig melding- Fra: James Reynolds [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 19:33 Til: Struts Users Mailing List Emne: [Shale] When to create a database Connection? I'm getting a null pointer error in my backing bean. My grand plan was to create a Connection in the init() method extended from the AbstractViewController, so it can be used by any number of methods and getters in my bean, and then close it in destroy(). In this simple case, the only place this Connection is used is in a getter that returns a Result for a dataTable. However, it doesn't seem to be working as I get a null pointer exception. If I move the getConnection() method out of the init() method and into this getter, then everything works great. Am I miss-using the init() method? Import lots.of.stuff; public class Testimonial extends AbstractViewController { private Connection conn = null; public Testimonial(){ } public void init() { try { conn = DbConnection.getConnection(); System.out.println(); } catch (SQLException e) { e.printStackTrace(); } } public void destroy() { try { if (!conn.isClosed()) { conn.close(); } } catch (SQLException sqle) { log(sqle.getMessage(), sqle); sqle.printStackTrace(); } } public Result getAllTestimonials() { /* ### moving the "conn = DbConnection.getConnection()" here solves the problem ### */ Result result = null; PreparedStatement ps = null; try { ps = conn.prepareStatement(SqlStatements.ALL_TESITIMONIALS); result = ResultSupport.toResult(ps.executeQuery()); } catch (SQLException sqle) { System.out.println("SQL Exception:" + sqle.getMessage()); sqle.printStackTrace(); } catch (Exception e) { System.out.println("Exception:" + e.getMessage()); e.printStackTrace(); } finally { try { if (ps != null) { ps.close(); } } catch (SQLException e) { e.printStackTrace(); } } return result; } } - 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] - 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]
SV: [Shale] When to create a database Connection?
Hi Give me one good reason as to why you are doing this. If you let existing tools do the job for you, you are going to relieve your self of a lot of trouble. Have a look at Hibernate or equivalent, combined with Spring. What you are doing here is really is something of the past. Hermod -Opprinnelig melding- Fra: James Reynolds [mailto:[EMAIL PROTECTED] Sendt: 29. mars 2006 19:33 Til: Struts Users Mailing List Emne: [Shale] When to create a database Connection? I'm getting a null pointer error in my backing bean. My grand plan was to create a Connection in the init() method extended from the AbstractViewController, so it can be used by any number of methods and getters in my bean, and then close it in destroy(). In this simple case, the only place this Connection is used is in a getter that returns a Result for a dataTable. However, it doesn't seem to be working as I get a null pointer exception. If I move the getConnection() method out of the init() method and into this getter, then everything works great. Am I miss-using the init() method? Import lots.of.stuff; public class Testimonial extends AbstractViewController { private Connection conn = null; public Testimonial(){ } public void init() { try { conn = DbConnection.getConnection(); System.out.println(); } catch (SQLException e) { e.printStackTrace(); } } public void destroy() { try { if (!conn.isClosed()) { conn.close(); } } catch (SQLException sqle) { log(sqle.getMessage(), sqle); sqle.printStackTrace(); } } public Result getAllTestimonials() { /* ### moving the "conn = DbConnection.getConnection()" here solves the problem ### */ Result result = null; PreparedStatement ps = null; try { ps = conn.prepareStatement(SqlStatements.ALL_TESITIMONIALS); result = ResultSupport.toResult(ps.executeQuery()); } catch (SQLException sqle) { System.out.println("SQL Exception:" + sqle.getMessage()); sqle.printStackTrace(); } catch (Exception e) { System.out.println("Exception:" + e.getMessage()); e.printStackTrace(); } finally { try { if (ps != null) { ps.close(); } } catch (SQLException e) { e.printStackTrace(); } } return result; } } - 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]
SV: SV: [Shale] ClayforEach and Maps
Hi I'll think about it. Actually the message I got when nesting clayForEach tags was that Map was not supported, and that I should change it into a List. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 28. mars 2006 21:01 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: SV: [Shale] ClayforEach and Maps >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > It suddendly struck me that what I described below might be the cause of a > problem that I have been struggling with the last day. I have a page where I > display results from a regatta. These results are group by classes. In order > to do this I have a clayForEach tag where information about the class is > displayed for each row, and then a dataTable within that that displays the > results for that class. I could not get this to work whatever combination I > tried. I kept getting messages saying it could not find the property to > display in the dataTable column, and in the stacktrace it would refer to the > Hibernate Persistant set instead of the item within the set. It was at this > point I decided to nest a clayForEach instead. Which gave me the moaning > about the Map. Since this worked when I returned a List instead, I decided > to try again with the dataTable, and behold it works! > The clayForEach should handle maps but it uses the entrySet's iterator. So, your clay config's/templates would have to assume that the managed-bean-name object is a Map.Entry ([EMAIL PROTECTED]). It seemed like a good idea at the time but if you would rather assume the Map.Entry.getValue(), please create a bugzilla ticket for that one. > Hermod > Gary > -Opprinnelig melding- > Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] > Sendt: 28. mars 2006 18:40 > Til: 'Struts Users Mailing List' > Emne: [Shale] ClayforEach and Maps > > Hi > > I am currently converting one of my websites from Struts to > Shale/Hibernate3/Spring. One of the issues I have had recently is the > clayForEach non-support of Maps. I have many many2one relationships, and > these return Maps. So I have to convert my Maps into ArrayLists before > returning to the view. Is there any good reason as to why Maps are not > supported? > > Hermod > > > - > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] ClayforEach and Maps
Hi It suddendly struck me that what I described below might be the cause of a problem that I have been struggling with the last day. I have a page where I display results from a regatta. These results are group by classes. In order to do this I have a clayForEach tag where information about the class is displayed for each row, and then a dataTable within that that displays the results for that class. I could not get this to work whatever combination I tried. I kept getting messages saying it could not find the property to display in the dataTable column, and in the stacktrace it would refer to the Hibernate Persistant set instead of the item within the set. It was at this point I decided to nest a clayForEach instead. Which gave me the moaning about the Map. Since this worked when I returned a List instead, I decided to try again with the dataTable, and behold it works! Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 28. mars 2006 18:40 Til: 'Struts Users Mailing List' Emne: [Shale] ClayforEach and Maps Hi I am currently converting one of my websites from Struts to Shale/Hibernate3/Spring. One of the issues I have had recently is the clayForEach non-support of Maps. I have many many2one relationships, and these return Maps. So I have to convert my Maps into ArrayLists before returning to the view. Is there any good reason as to why Maps are not supported? Hermod - 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]
[Shale] ClayforEach and Maps
Hi I am currently converting one of my websites from Struts to Shale/Hibernate3/Spring. One of the issues I have had recently is the clayForEach non-support of Maps. I have many many2one relationships, and these return Maps. So I have to convert my Maps into ArrayLists before returning to the view. Is there any good reason as to why Maps are not supported? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Building SHALE??? The instructions don't work!
Hi I don't see the problem - Why do you want to use the ant build, when the Maven build functions ok. Hermod -Opprinnelig melding- Fra: Wendy Smoak [mailto:[EMAIL PROTECTED] Sendt: 27. mars 2006 20:38 Til: Struts Users Mailing List Emne: Re: Building SHALE??? The instructions don't work! On 3/27/06, Hiller, Dean <[EMAIL PROTECTED]> wrote: > I commented it out and get compile errors. Weird thing is it says it is > missing FacesContext(from javax.faces) and VariableResolver(from > org.apache.shale.faces). I have attached my build.properties which I > believe are all correct. I don't think attachments will come through on the list, but you shouldn't have to make many changes to the build properties. In fact, it expects a certain directory structure (the one it constructs under 'lib' when you run 'ant download-dependencies') so defining the properties by pointing them at local installs of various libraries may not work. I'm able to build it by simply copying build.properties.sample to build.properties (and setting htmlunit.home, but you've dealt with that,) and then executing 'ant release'. If it's not working, please let us know what changes you made to build.properties, what commands you executed, and what errors you're getting. > Any ideas? I am just trying to get those mock objects for mocking > ServletContext and such. Do you need to build it yourself? If not, there are nightly builds available here: http://cvs.apache.org/builds/struts/nightly/struts-shale/ and snapshots are available in Maven repositories: m2: http://cvs.apache.org/maven-snapshot-repository/org/apache/struts/shale/ m1: http://cvs.apache.org/repository/org.apache.struts.shale/ HTH, -- Wendy - 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]
SV: SV: [shale] Best practice for passing information between views in Shale
Hi Of course it is a great example :) My sentiment was more in the "posting" line of JSF Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 25. mars 2006 14:41 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: SV: [shale] Best practice for passing information between views in Shale >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > 1. > Thanks, I looked at Gary's Rolodex example, and the QueryParam valueholder > seems like another way of doing it. This also allows for moving between > arbitrary pages. Not quite JSFish though. > Ah come on, it's a great example of using managed bean setter dependency injection :-)). > 2. > I think that the might be what I want here. > > Hermod > > > -Opprinnelig melding- > Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig > McClanahan > Sendt: 25. mars 2006 03:22 > Til: Struts Users Mailing List; [EMAIL PROTECTED] > Emne: Re: [shale] Best practice for passing information between views in > Shale > > On 3/24/06, Hermod Opstvedt wrote: > > > > Hi > > > > I have scenario where information on one page is used a basis for another > > page. What would be best practice for transferring information from page1 > > to > > page2, where both pages are request scoped. Declaring this as a dialog > > flow, > > or using a session scoped bean as a value holder? > > > There's a few options, including the ones below. Let's call the page that > processed the form submit page1 and the one to be rendered as page2. > > * Define a public property on page1's backing bean, store the info > there, and code page2's backing bean (or binding expressions) > to call it. This works, but has a significant disadvantage -- it works > only when going from page1 to page2, but not page3 to page2. > > * Similar to the first solution, but put the public property on page2 > instead of on page1. There is still a coupling disadvantage, but > you can at least get to page2 from multiple origins. > > * Use a dialog state. Quite nice for this, but pretty complex to set up > if all you need is to pass the data along. > > * Use an arbitrary request attribute. This is more typical of what you'd > do in non-JSF applications, and works fine. To put something into > these attributes with key "foo", you'd do: > > getExternalContext().getRequestMap().put("foo", bar); > > NOTE - i'm evaluating ways to emulate what Ruby on Rails does with the > "flash" concept to address the "need it for one more request", but could > perhaps also help for this scenario in the current request. > > Another goes for maintaining state between accesses to the same page. Using > > hidden inputfields or a session scoped bean as a value holder? > > > Both of those work ... the JSF-ish way to do the hidden input field would be > an component. > > If you're using MyFaces, you should also check out for this. > > Hermod > > > Craig > > > - > 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]
SV: [shale] Best practice for passing information between views in Shale
Hi 1. Thanks, I looked at Gary's Rolodex example, and the QueryParam valueholder seems like another way of doing it. This also allows for moving between arbitrary pages. Not quite JSFish though. 2. I think that the might be what I want here. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig McClanahan Sendt: 25. mars 2006 03:22 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: [shale] Best practice for passing information between views in Shale On 3/24/06, Hermod Opstvedt <[EMAIL PROTECTED]> wrote: > > Hi > > I have scenario where information on one page is used a basis for another > page. What would be best practice for transferring information from page1 > to > page2, where both pages are request scoped. Declaring this as a dialog > flow, > or using a session scoped bean as a value holder? There's a few options, including the ones below. Let's call the page that processed the form submit page1 and the one to be rendered as page2. * Define a public property on page1's backing bean, store the info there, and code page2's backing bean (or binding expressions) to call it. This works, but has a significant disadvantage -- it works only when going from page1 to page2, but not page3 to page2. * Similar to the first solution, but put the public property on page2 instead of on page1. There is still a coupling disadvantage, but you can at least get to page2 from multiple origins. * Use a dialog state. Quite nice for this, but pretty complex to set up if all you need is to pass the data along. * Use an arbitrary request attribute. This is more typical of what you'd do in non-JSF applications, and works fine. To put something into these attributes with key "foo", you'd do: getExternalContext().getRequestMap().put("foo", bar); NOTE - i'm evaluating ways to emulate what Ruby on Rails does with the "flash" concept to address the "need it for one more request", but could perhaps also help for this scenario in the current request. Another goes for maintaining state between accesses to the same page. Using > hidden inputfields or a session scoped bean as a value holder? Both of those work ... the JSF-ish way to do the hidden input field would be an component. If you're using MyFaces, you should also check out for this. Hermod Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] Name scoping in Clay
Hi The method exists on my bean with the correct methodsignature. I had "stolen" this from your excellent rolodex example, and there you had it defined as: So I thought that I could substitute the hardcoded name with a Clay symbol. Your solution worked like a charm. Thanks. I have an improvement to the rolodex createTabs that I want to put forward: In the Rolodex.java file method createCommandLinkMetadata, you add parameters to the link. If you need to add more than 1 parameter, you need to use the renderId, because it is the key into the map. I tried to add several parameters to no avail until I looked at the Element bean, where it was stated. In order for others to grasp this more quickly I suggest that you add do the following to the example: // create a parameter ElementBean param = new ElementBean(); param.setJsfid("param"); + // RenderId is the key to the Map. Increment for each new parameter + param.setRenderId(1); param.setComponentType("javax.faces.Parameter"); Hermod -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 25. mars 2006 02:18 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: Re: [Shale] Name scoping in Clay >From: Hermod Opstvedt <[EMAIL PROTECTED]> > > Hi > > I have defined a Clay component: > > > > > > > > > The "jsfid" attribute should be named "clayJsfid". The "jsfid" here says that you want to use the clay component and the "clayJsfid" is the root component of the subtree under the clay component. The special "RUNTIME" clayJsfid indicates you want to build the metadata at runtime. Another way to do this is to use the "binding" attribute. You bind a component to a managed bean and add to it dynamically. Craig has an example of this in the sql-browser example application. This approach is tricky if you don't just delete the subtree and rebuild it. You will see in the sql-browser example, the children of the dataTable are cleared in the prerender method of the managed bean. http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/sql-browser/src/java/or g/apache/shale/examples/sqlbrowser/Query.java?view=markup The Clay runtime option is similar but the component handles the details of finding an existing component versus creating a new one. In the clay method, you create a graph of objects used to create the JSF component where the binding method you actually create the components and hook them together. > > > Where @managed-bean-name is set to the faces defined managed bean > open$arrangement. > > I would have thought that Clay would resolve this to for instance > myBean.createTabs, but I am getting an error : > > Exception while invoking expression #{open$arrangement.createTabs} It looks like the symbol is being replaced. The expression show the "open$arrangement" substitued for "@managed-bean-name". If you look further down in the stack trace you will most likely seen another exception, "Caused by: java.lang.NoSuchMethodException:". This shapeValidator method binding signature is the same as the validator signature. The confusing part is that this method is invoked in the rendering phase and not the validation phase. The thought was that by implementing the method you are validating the shape of the subtree. I should have choose another attribute name. Make sure that your managed bean implements a method with the following signature: public void createTabs(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object displayElementRoot) { > > Hermod > Gary > > - > 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]
[Shale] Name scoping in Clay
Hi I have defined a Clay component: Where @managed-bean-name is set to the faces defined managed bean open$arrangement. I would have thought that Clay would resolve this to for instance myBean.createTabs, but I am getting an error : Exception while invoking expression #{open$arrangement.createTabs} Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[shale] Best practice for passing information between views in Shale
Hi I have scenario where information on one page is used a basis for another page. What would be best practice for transferring information from page1 to page2, where both pages are request scoped. Declaring this as a dialog flow, or using a session scoped bean as a value holder? Another goes for maintaining state between accesses to the same page. Using hidden inputfields or a session scoped bean as a value holder? Hermod - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Shale & Container Managed Security
Hei This sort of functionality is very complex, especially when you start to move into authentication for data. My take on this, is that this warrants a project of its own - preferably on ASF. That way we could get input from other ASF projects that might need something like this also and we all benefit. I don not think that we should attempt to solve this completely within the Shale realm. Hermod -Opprinnelig melding- Fra: Niall Pemberton [mailto:[EMAIL PROTECTED] Sendt: 4. mars 2006 03:17 Til: Struts Users Mailing List Emne: Re: Shale & Container Managed Security On 3/4/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 3/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > > > If something like this is developed then it shouldn't be tied to > > container managed security (i.e. request.isUserInRole()) and should be > > easy to plug in custom implementations which could cater for other > > scenarios/criteria, such as the above. > > Just logged an RFE[1] to capture this idea. Feel free to add any and all > details about requirements (I just used one of the motivating examples) ... > and/or volunteer to do any or all of the implementation work :-). Thanks I added a comment. If it waits for me, it might be a while - but then again commits count for more than opinions, so maybe I should pull my finger out... Niall > Sorry, just wanted to put in my 2cents, in case someone actually does > > something about this - that way when I move to Shale :-) > > Resistance is futile ... :-). > > Niall > > > Craig > > [1] http://issues.apache.org/bugzilla/show_bug.cgi?id=38849 - 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]
SV: Help:Clay+dataTable
Hi You need to get clay-tomahawk.xml. Search the list for it Hermod -Opprinnelig melding- Fra: lisaan markuen [mailto:[EMAIL PROTECTED] Sendt: 19. februar 2006 18:24 Til: user@struts.apache.org Emne: Help:Clay+dataTable Hi., I'm trying CLAY and fed up with displaying dynamic datatable (list) coming from my managed bean (already went through the examples but no success yet). Could anyone please give me an example snippet of how to insert jsfid into the mock html code so that I could achieve same like: JSF code: Thank you. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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]
SV: [shale] escaping and resuming dialog
Hi That's a different issue. I can off the top of my head remember if you maintain the session with target '_new'. I know for a fact that doing ctrl-N in IE and Firefox maintains the session, so I leaning towards beliving that '_new' will to. Have actually verified that it does not? Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sendt: 17. februar 2006 16:29 Til: 'Struts Users Mailing List' Emne: RE: [shale] escaping and resuming dialog Hi, I have to stay in the same browser session. So _blank or _new is not a solution. I have to leave the screenflow and come back. When using seam (jboss) i had the same situation without a proper solution. How do you deal with this??? Whenever u are in a dialog like a wizzard you can not disable all common links from the page, or ??? Thx for help! Timo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 3:00 PM To: user@struts.apache.org Subject: RE: [shale] escaping and resuming dialog Hi Why don't just add in a standard link, with target='_new'? Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Behalf Of Timo Schnölzer Sent: Friday, February 17, 2006 12:17 PM To: 'Struts Users Mailing List' Subject: [shale] escaping and resuming dialog Hi folks, my dialogs are working fine in shale with clay for composition. Now i am wondering how to achieve the following: Usecase: User is working in a defined dialog, say with view 1 to 10. when arrived in "view 5" he wants to use a link not beeing a workflow link, e.g. "my account" or "what ever comes from main navigation". This leads into the following (understandable) error: java.lang.IllegalArgumentException: You have requested a transition outcome named "home" from a state named "config" in a dialog named "Configuration", but no transition definition can be found. Double check the spelling of the transition outcome name. Now as i have a structure that the user is allowed to click "outside" a dialog and resume later, how to deal with this??? Any hint welcome!!! Thx Timo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Re: [SHALE] Using the Test Framework
Hi If you have not looked at Spring before: Boy do you have something in store for you. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. februar 2006 22:31 Til: Struts Users Mailing List Emne: RE: Re: [SHALE] Using the Test Framework Sigh. OK, now I'll *also* look into Spring. I hope their users don't tell me to look into something else ("Autumn"?). ;-) - Brendan -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 3:22 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi Easy: Spring. It's all done with configuration. In a no "EJB container available" setting, you configure spring to return a different service than when you have EJB container available. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. februar 2006 22:08 Til: Struts Users Mailing List Emne: RE: Re: [SHALE] Using the Test Framework Sounds good. So how do you isolate your Web Layer from the EJB layer during testing and then re-establish the linkage during deployment in your environment? - Brendan -----Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 2:59 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi I totally agree with Craig. There is a huge difference between Unit testing and Integration testing. We do both, using different tooling for the different test types. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig McClanahan Sendt: 16. februar 2006 20:18 Til: Struts Users Mailing List Emne: Re: Re: [SHALE] Using the Test Framework On 2/16/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > Framework being used by people now? Is it being used mostly for > > non-3-tier applications? What is the extent of the problem space in > > which it is useful? (Obviously, it's not meant for stand-alone Java > > J2SE applications, because then there would be no need for JSF support.) > > > > > I would say that there is a percentage of folks that build applications > that don't use EJB but still use good design patterns and are able to > load-balance across several web containers without the complexity of > EJB. For that cult, the Shale test framework would snap right in. Another way to look at this is to think about what is the scope of a "unit test". Conceptually, I would think of two *different* unit tests being needed in this environment: * A unit test for the backing bean (Shale view controller or whatever). To test this bean, you would need to mock out the session bean itself. (And, the test framework should provide JNDI lookup mocking, which the Shale test frameworkd doesn't have yet). * A unit test for the session bean itself. For this, you'd want a framework that mocks the EJB environment, and would have nothing to do with JSF or web tier APIs. It's possible that you also want a more end-to-end test -- but to me that's a "system integration" test, rather than unit tests. Craig - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Re: [SHALE] Using the Test Framework
Hi Easy: Spring. It's all done with configuration. In a no "EJB container available" setting, you configure spring to return a different service than when you have EJB container available. Hermod -Opprinnelig melding- Fra: CONNER, BRENDAN (SBCSI) [mailto:[EMAIL PROTECTED] Sendt: 16. februar 2006 22:08 Til: Struts Users Mailing List Emne: RE: Re: [SHALE] Using the Test Framework Sounds good. So how do you isolate your Web Layer from the EJB layer during testing and then re-establish the linkage during deployment in your environment? - Brendan -Original Message----- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Thursday, February 16, 2006 2:59 PM To: 'Struts Users Mailing List' Subject: SV: Re: [SHALE] Using the Test Framework Hi I totally agree with Craig. There is a huge difference between Unit testing and Integration testing. We do both, using different tooling for the different test types. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig McClanahan Sendt: 16. februar 2006 20:18 Til: Struts Users Mailing List Emne: Re: Re: [SHALE] Using the Test Framework On 2/16/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > Framework being used by people now? Is it being used mostly for > > non-3-tier applications? What is the extent of the problem space in > > which it is useful? (Obviously, it's not meant for stand-alone Java > > J2SE applications, because then there would be no need for JSF support.) > > > > > I would say that there is a percentage of folks that build applications > that don't use EJB but still use good design patterns and are able to > load-balance across several web containers without the complexity of > EJB. For that cult, the Shale test framework would snap right in. Another way to look at this is to think about what is the scope of a "unit test". Conceptually, I would think of two *different* unit tests being needed in this environment: * A unit test for the backing bean (Shale view controller or whatever). To test this bean, you would need to mock out the session bean itself. (And, the test framework should provide JNDI lookup mocking, which the Shale test frameworkd doesn't have yet). * A unit test for the session bean itself. For this, you'd want a framework that mocks the EJB environment, and would have nothing to do with JSF or web tier APIs. It's possible that you also want a more end-to-end test -- but to me that's a "system integration" test, rather than unit tests. Craig - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Re: [SHALE] Using the Test Framework
Hi I totally agree with Craig. There is a huge difference between Unit testing and Integration testing. We do both, using different tooling for the different test types. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig McClanahan Sendt: 16. februar 2006 20:18 Til: Struts Users Mailing List Emne: Re: Re: [SHALE] Using the Test Framework On 2/16/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, I'll look at that. But, out of curiosity, how is the Shale Test > > Framework being used by people now? Is it being used mostly for > > non-3-tier applications? What is the extent of the problem space in > > which it is useful? (Obviously, it's not meant for stand-alone Java > > J2SE applications, because then there would be no need for JSF support.) > > > > > I would say that there is a percentage of folks that build applications > that don't use EJB but still use good design patterns and are able to > load-balance across several web containers without the complexity of > EJB. For that cult, the Shale test framework would snap right in. Another way to look at this is to think about what is the scope of a "unit test". Conceptually, I would think of two *different* unit tests being needed in this environment: * A unit test for the backing bean (Shale view controller or whatever). To test this bean, you would need to mock out the session bean itself. (And, the test framework should provide JNDI lookup mocking, which the Shale test frameworkd doesn't have yet). * A unit test for the session bean itself. For this, you'd want a framework that mocks the EJB environment, and would have nothing to do with JSF or web tier APIs. It's possible that you also want a more end-to-end test -- but to me that's a "system integration" test, rather than unit tests. Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [SHALE] Using the Test Framework
Hi Just as a sidenote : Have you looked the Spring documentation? There might be something to help you there. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] PÃ¥ vegne av Craig McClanahan Sendt: 15. februar 2006 23:49 Til: Struts Users Mailing List Emne: Re: [SHALE] Using the Test Framework On 2/15/06, CONNER, BRENDAN (SBCSI) <[EMAIL PROTECTED]> wrote: > > But let's say my test executes an action method on my application's > managed bean. That method uses the mock objects and then tries to call > a Session Bean to do a lookup, but it appears that the lookup fails > because the action method is not really running in a Web Container, > correct? Is this all happening in stand-alone application mode? How > can I set up my test to run in a Web Container so that it has access to > JNDI lookups, etc.? Do I have to use Cactus for that? It should be possible to use Cactus for that kind of testing, but I've never looked how Cactus deals with JNDI lookups or session beans. - Brendan Craig -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 14, 2006 2:22 PM > To: Struts Users Mailing List > Subject: RE: [SHALE] Using the Test Framework > > > >From: "CONNER, BRENDAN (SBCSI)" <[EMAIL PROTECTED]> > > > > OK, sorry for being a little dense about this, but, if, for example, > my > > application code is referencing a FacesContext object, and my Test > code > > initializes MockFacesContext, what is the mechanism that makes my > > application use the values that are in MockFacesContext? I understand > > that MockFacesContext is a subclass of FacesContext, but I don't > > understand how my application ends up using the values in the > > MockFacesContext instance instead that were initialized by the test > > case. > > > > The idea is that you extend a base test case that sets up the mock > objects. They are scoped so that they can be referenced from test > methods in a subclass. > > Take a look at the AbstractJsfTestCase > (http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/test-framework/src > /java/org/apache/shale/test/base/AbstractJsfTestCase.java?view=markup) > > > > > > - Brendan > > > > Gary > > - > 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]
SV: [shale]Help needed for Clay
Hi I will do that. Nice to be of some help. I will try to find some time in a busy schedule to further put some stuff into it. It any of the committers find it useful to put in Wiki or something, please go ahead. Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 21:17 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [shale]Help needed for Clay Hermod, This latest version runs much better. I think you might want to alter web.xml and remove the "Servlet Mapping" for the *.html files. If you take that out then the error I described will not occur with the "/" index page. Additionally, this version fixes the page 3 "template" but leaves page 2's center content blank. And you might want to put a note in the page2Body.html page to use the right click so people aren't as dumb as I am an almost ask "Why is page 2 blank?" This is an excellent example from what I can see. I wonder how you can change templates for virtual hosting, i.e. different skins for different virtual host names. I'm guessing there is some way to change the clay-config.xml baseLayout's "clayJsfid" value to an expression. I'll have to look at the documentation for that. Regards, David -Original Message- From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 2:13 PM To: 'Struts Users Mailing List' Subject: SV: [shale]Help needed for Clay Hi Also added an image that has been added as background to the menu after this was initially made. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:47 Til: 'Struts Users Mailing List' Emne: SV: [shale]Help needed for Clay Hi I noticed that it contained an old stylesheet and some subversion info, so I have replaced it with a new one. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:36 Til: 'Struts Users Mailing List' Emne: SV: [shale]Help needed for Clay Hi That would be the "default page". Use index.jsp instead i.e http://localhost:8080/ClayMal/index.jsp Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:06 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [shale]Help needed for Clay Hermod, I put the jars in there and have no startup Tomcat errors but I am seeing this message, for a file not in your zip: javax.servlet.ServletException: Unable to find file /index.xml. javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF ilter.java:122) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:285) Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 4:48 AM To: user@struts.apache.org Subject: RE: [shale]Help needed for Clay Hi I have created a sample eclipse project which pretty much shows you how to do a Tiles-like clay implementation. http://www.opstvedt.com/div/claymal.zip This was my very first implemention with Clay when transitioning from Struts-Tiles to Shale-Clay Have a look at it. It pretty much covers the basics of it. In the web-inf/lib there is a readme.txt file that lists the jars you need to put in there. Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 9:47 AM To: 'Struts Users Mailing List' Subject: RE: [shale]Help needed for Clay Hi Gary, you mean, the defines the "name" like in tiles.def. So i have to forward to "symbols/page1.xml" in order to address the "clay" page??? Btw: i saw a lot of naming with "$" like symbols$xyz without getting the point on this. Sorry for these newbie questions!!! Timo -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:30 PM To: Struts Users Mailing List Subject: RE: [shale]Help needed for Clay >From: Timo Schnölzer <[EMAIL PROTECTED]> > > Thx Gary, > > Looks promising... > > In my case it is now just a base idea of using a template > (mainLayout.html) page and the "tiles" incls. > You might take a look at the symbols shale usecase. It shows two options for alternate page entry points (XML and HTML). The full clay XML pages are most like tiles. These page definitions can be defined in a single configuration file or individual files. In the usecase example, they are in a single configuration file. In the web.xml this file is declared: !-- Clay Configuration Full XML view Resources --> org.apache.shale.clay.FULLXML_CONFIG_FILES classpath*:org/
SV: [shale]Help needed for Clay
Hi Also added an image that has been added as background to the menu after this was initially made. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:47 Til: 'Struts Users Mailing List' Emne: SV: [shale]Help needed for Clay Hi I noticed that it contained an old stylesheet and some subversion info, so I have replaced it with a new one. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:36 Til: 'Struts Users Mailing List' Emne: SV: [shale]Help needed for Clay Hi That would be the "default page". Use index.jsp instead i.e http://localhost:8080/ClayMal/index.jsp Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:06 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [shale]Help needed for Clay Hermod, I put the jars in there and have no startup Tomcat errors but I am seeing this message, for a file not in your zip: javax.servlet.ServletException: Unable to find file /index.xml. javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF ilter.java:122) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:285) Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 4:48 AM To: user@struts.apache.org Subject: RE: [shale]Help needed for Clay Hi I have created a sample eclipse project which pretty much shows you how to do a Tiles-like clay implementation. http://www.opstvedt.com/div/claymal.zip This was my very first implemention with Clay when transitioning from Struts-Tiles to Shale-Clay Have a look at it. It pretty much covers the basics of it. In the web-inf/lib there is a readme.txt file that lists the jars you need to put in there. Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 9:47 AM To: 'Struts Users Mailing List' Subject: RE: [shale]Help needed for Clay Hi Gary, you mean, the defines the "name" like in tiles.def. So i have to forward to "symbols/page1.xml" in order to address the "clay" page??? Btw: i saw a lot of naming with "$" like symbols$xyz without getting the point on this. Sorry for these newbie questions!!! Timo -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:30 PM To: Struts Users Mailing List Subject: RE: [shale]Help needed for Clay >From: Timo Schnölzer <[EMAIL PROTECTED]> > > Thx Gary, > > Looks promising... > > In my case it is now just a base idea of using a template > (mainLayout.html) page and the "tiles" incls. > You might take a look at the symbols shale usecase. It shows two options for alternate page entry points (XML and HTML). The full clay XML pages are most like tiles. These page definitions can be defined in a single configuration file or individual files. In the usecase example, they are in a single configuration file. In the web.xml this file is declared: !-- Clay Configuration Full XML view Resources --> org.apache.shale.clay.FULLXML_CONFIG_FILES classpath*:org/apache/shale/usecases/symbols/clay-tiles-config.xml This file exists in the classpath. In this config file you will find two component definitions that define the page similar to a tiles-definition. http://myfaces.apache.org/images/myfaces-logo.png"/> The symbols are like the tiles "put" variables. The "jsfid" is like the "tiles" path attribute. The page above extends basePage. This definition is in the common's config file and it's declared in the web.xml org.apache.shale.clay.COMMON_CONFIG_FILES /WEB-INF/clay-config.xml, /WEB-INF/clay-symbols-config.xml The basePage defines default symbol values: http://struts.apache.org/images/struts.gif"/> And, the base layout is a generic template: @title LeftContent HeaderContent BodyContent FooterContent There's a view other details but that's the general ballpark. > So 1st step to layouting a page. All the other concepts work fine, e.g. > dialog and so on. > > Thx for input > > timo > > >
SV: [shale]Help needed for Clay
Hi I noticed that it contained an old stylesheet and some subversion info, so I have replaced it with a new one. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:36 Til: 'Struts Users Mailing List' Emne: SV: [shale]Help needed for Clay Hi That would be the "default page". Use index.jsp instead i.e http://localhost:8080/ClayMal/index.jsp Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:06 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [shale]Help needed for Clay Hermod, I put the jars in there and have no startup Tomcat errors but I am seeing this message, for a file not in your zip: javax.servlet.ServletException: Unable to find file /index.xml. javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF ilter.java:122) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:285) Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 4:48 AM To: user@struts.apache.org Subject: RE: [shale]Help needed for Clay Hi I have created a sample eclipse project which pretty much shows you how to do a Tiles-like clay implementation. http://www.opstvedt.com/div/claymal.zip This was my very first implemention with Clay when transitioning from Struts-Tiles to Shale-Clay Have a look at it. It pretty much covers the basics of it. In the web-inf/lib there is a readme.txt file that lists the jars you need to put in there. Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 9:47 AM To: 'Struts Users Mailing List' Subject: RE: [shale]Help needed for Clay Hi Gary, you mean, the defines the "name" like in tiles.def. So i have to forward to "symbols/page1.xml" in order to address the "clay" page??? Btw: i saw a lot of naming with "$" like symbols$xyz without getting the point on this. Sorry for these newbie questions!!! Timo -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:30 PM To: Struts Users Mailing List Subject: RE: [shale]Help needed for Clay >From: Timo Schnölzer <[EMAIL PROTECTED]> > > Thx Gary, > > Looks promising... > > In my case it is now just a base idea of using a template > (mainLayout.html) page and the "tiles" incls. > You might take a look at the symbols shale usecase. It shows two options for alternate page entry points (XML and HTML). The full clay XML pages are most like tiles. These page definitions can be defined in a single configuration file or individual files. In the usecase example, they are in a single configuration file. In the web.xml this file is declared: !-- Clay Configuration Full XML view Resources --> org.apache.shale.clay.FULLXML_CONFIG_FILES classpath*:org/apache/shale/usecases/symbols/clay-tiles-config.xml This file exists in the classpath. In this config file you will find two component definitions that define the page similar to a tiles-definition. http://myfaces.apache.org/images/myfaces-logo.png"/> The symbols are like the tiles "put" variables. The "jsfid" is like the "tiles" path attribute. The page above extends basePage. This definition is in the common's config file and it's declared in the web.xml org.apache.shale.clay.COMMON_CONFIG_FILES /WEB-INF/clay-config.xml, /WEB-INF/clay-symbols-config.xml The basePage defines default symbol values: http://struts.apache.org/images/struts.gif"/> And, the base layout is a generic template: @title LeftContent HeaderContent BodyContent FooterContent There's a view other details but that's the general ballpark. > So 1st step to layouting a page. All the other concepts work fine, e.g. > dialog and so on. > > Thx for input > > timo > > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 14, 2006 9:46 PM > To: Struts Users Mailing List > Subject: Re: [shale]Help needed for Clay > > >From: Timo Schnölzer > > > > Hi folks, > > > > after a
SV: [shale]Help needed for Clay
Hi That would be the "default page". Use index.jsp instead i.e http://localhost:8080/ClayMal/index.jsp Hermod -Opprinnelig melding- Fra: David G. Friedman [mailto:[EMAIL PROTECTED] Sendt: 15. februar 2006 18:06 Til: Struts Users Mailing List; [EMAIL PROTECTED] Emne: RE: [shale]Help needed for Clay Hermod, I put the jars in there and have no startup Tomcat errors but I am seeing this message, for a file not in your zip: javax.servlet.ServletException: Unable to find file /index.xml. javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsF ilter.java:122) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilte r.java:285) Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 4:48 AM To: user@struts.apache.org Subject: RE: [shale]Help needed for Clay Hi I have created a sample eclipse project which pretty much shows you how to do a Tiles-like clay implementation. http://www.opstvedt.com/div/claymal.zip This was my very first implemention with Clay when transitioning from Struts-Tiles to Shale-Clay Have a look at it. It pretty much covers the basics of it. In the web-inf/lib there is a readme.txt file that lists the jars you need to put in there. Hermod -Original Message- From: Timo Schnölzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 2006 9:47 AM To: 'Struts Users Mailing List' Subject: RE: [shale]Help needed for Clay Hi Gary, you mean, the defines the "name" like in tiles.def. So i have to forward to "symbols/page1.xml" in order to address the "clay" page??? Btw: i saw a lot of naming with "$" like symbols$xyz without getting the point on this. Sorry for these newbie questions!!! Timo -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:30 PM To: Struts Users Mailing List Subject: RE: [shale]Help needed for Clay >From: Timo Schnölzer <[EMAIL PROTECTED]> > > Thx Gary, > > Looks promising... > > In my case it is now just a base idea of using a template > (mainLayout.html) page and the "tiles" incls. > You might take a look at the symbols shale usecase. It shows two options for alternate page entry points (XML and HTML). The full clay XML pages are most like tiles. These page definitions can be defined in a single configuration file or individual files. In the usecase example, they are in a single configuration file. In the web.xml this file is declared: !-- Clay Configuration Full XML view Resources --> org.apache.shale.clay.FULLXML_CONFIG_FILES classpath*:org/apache/shale/usecases/symbols/clay-tiles-config.xml This file exists in the classpath. In this config file you will find two component definitions that define the page similar to a tiles-definition. http://myfaces.apache.org/images/myfaces-logo.png"/> The symbols are like the tiles "put" variables. The "jsfid" is like the "tiles" path attribute. The page above extends basePage. This definition is in the common's config file and it's declared in the web.xml org.apache.shale.clay.COMMON_CONFIG_FILES /WEB-INF/clay-config.xml, /WEB-INF/clay-symbols-config.xml The basePage defines default symbol values: http://struts.apache.org/images/struts.gif"/> And, the base layout is a generic template: @title LeftContent HeaderContent BodyContent FooterContent There's a view other details but that's the general ballpark. > So 1st step to layouting a page. All the other concepts work fine, e.g. > dialog and so on. > > Thx for input > > timo > > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 14, 2006 9:46 PM > To: Struts Users Mailing List > Subject: Re: [shale]Help needed for Clay > > >From: Timo Schnölzer > > > > Hi folks, > > > > after a good time on struts we are examinating seam and shale for jsf > > framework. My todays concern is the construction of the templating > > engine clay. I spent so much hours on a simple login page with a > > layout for header, menu, content and footer. The symbol example of > usecases did not realy help. > > > > Can someone give my advice for minimal configuration of a tapestry > > like example. > > > > You might take a look at this bugzilla ticket > (http://issues.apache.org/bugzilla/show_bug.cgi?id=38482). Hopefully this > will be pulled in as a clay exampl
SV: [shale] Clay component definition for t:validateEqual
Hi I checked and it is supposed to be: org.apache.myfaces.validator.Equal This is the ID of the tag. Hermod -Opprinnelig melding- Fra: Hermod Opstvedt [mailto:[EMAIL PROTECTED] Sendt: 14. februar 2006 23:40 Til: 'Struts Users Mailing List' Emne: SV: [shale] Clay component definition for t:validateEqual Hi Have you tried to set as pr. the tomahawk.tld : org.apache.myfaces.custom.equalvalidator.ValidateEqual Hermod -Opprinnelig melding- Fra: Richard Wallace [mailto:[EMAIL PROTECTED] Sendt: 14. februar 2006 23:27 Til: Struts Users Mailing List Emne: [shale] Clay component definition for t:validateEqual Hello all, I'm trying to use the tomahawk validator for making sure two fields have the same value for users entering their password. There isn't a definition in the clay-config.xml in the Shale or MyFaces JIRA tickets so I'm trying to create one. So I went ahead and created one: I wasn't sure what to use for the componentType attribute of the component. I thought I'd try setting the componentType to the fully qualified class name of the component itself, e.g org.apache.myfaces.custom.equalvalidator.EqualValidator. But that doesn't work. It blows up with the following exception: 2006-02-14 15:24:21,630 14340 ERROR [http-8443-Processor25] org.apache.shale.clay.component.chain.CreateValidatorCommand (CreateValidatorCommand.java:90) - Cannot create validator jsfid="t:validateEqual" componentType="org.apache.myfaces.custom.equalvalidator.EqualValidator" extends="t:validateEqual" allowBody="null" facetName="null" javax.faces.FacesException: Unknown validator id 'org.apache.myfaces.custom.equalvalidator.EqualValidator'. at org.apache.myfaces.application.ApplicationImpl.createValidator(ApplicationIm pl.java:621) at org.apache.shale.clay.component.chain.CreateValidatorCommand.execute(CreateV alidatorCommand.java:87) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) The usage of the validator is simply: What am I missing? I mean, obviously I'm setting the componentType to the wrong thing, but can someone give me a clue what it should be? Thanks, Rich - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [shale] Clay component definition for t:validateEqual
Hi Have you tried to set as pr. the tomahawk.tld : org.apache.myfaces.custom.equalvalidator.ValidateEqual Hermod -Opprinnelig melding- Fra: Richard Wallace [mailto:[EMAIL PROTECTED] Sendt: 14. februar 2006 23:27 Til: Struts Users Mailing List Emne: [shale] Clay component definition for t:validateEqual Hello all, I'm trying to use the tomahawk validator for making sure two fields have the same value for users entering their password. There isn't a definition in the clay-config.xml in the Shale or MyFaces JIRA tickets so I'm trying to create one. So I went ahead and created one: I wasn't sure what to use for the componentType attribute of the component. I thought I'd try setting the componentType to the fully qualified class name of the component itself, e.g org.apache.myfaces.custom.equalvalidator.EqualValidator. But that doesn't work. It blows up with the following exception: 2006-02-14 15:24:21,630 14340 ERROR [http-8443-Processor25] org.apache.shale.clay.component.chain.CreateValidatorCommand (CreateValidatorCommand.java:90) - Cannot create validator jsfid="t:validateEqual" componentType="org.apache.myfaces.custom.equalvalidator.EqualValidator" extends="t:validateEqual" allowBody="null" facetName="null" javax.faces.FacesException: Unknown validator id 'org.apache.myfaces.custom.equalvalidator.EqualValidator'. at org.apache.myfaces.application.ApplicationImpl.createValidator(ApplicationIm pl.java:621) at org.apache.shale.clay.component.chain.CreateValidatorCommand.execute(CreateV alidatorCommand.java:87) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) The usage of the validator is simply: What am I missing? I mean, obviously I'm setting the componentType to the wrong thing, but can someone give me a clue what it should be? Thanks, Rich - 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]
SV: [shale] Clayforeach tag
Hi Great. That was what I was hoping for. Med vennlig hilsen Hermod Opstvedt Webmaster Seiling.org/Norlys.org -Opprinnelig melding- Fra: Gary VanMatre [mailto:[EMAIL PROTECTED] Sendt: 7. februar 2006 15:30 Til: Struts Users Mailing List Emne: RE: [shale] Clayforeach tag >From: <[EMAIL PROTECTED]> > > Hi > > So in the case where bodyJsfid is a html template, I could do something like > this: > > >template jsdid=/news.xml: > > > Oh, right. I forgot the other half of the story. The snippet will use the managed-bean-name symbol. So, you should code: template jsdid=/news.xml: >allowBody="false"> >bla bla > You will need a "value" attribtue to bind to which can be a List, Map or Array types. This is a ValueBinding expression. Gary >and then do something like this: > >allowBody="false"> >bla bla > > > -Original Message- > From: Gary VanMatre [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 07, 2006 2:30 PM > To: Struts Users Mailing List > Subject: Re: [shale] Clayforeach tag > > > >From: > < > > Hi > > > > I was wondering about the usage of this tag. I see it has a shapeValidator,but > I > > was wondering what the intended syntax for this tag is, and if the current var > > value is somehow passed along to it? > > > > The clayForEach uses the "var" attribute like the JSTL var. But, in this case, > it's the name of a Map placed in session scope. This component (Clay) pulls the > data from the "value" expression and loads a map. The bodyJsfid is the content > that is repeated for each item. The "bodyJsfid" can be a html template or XML > configuration. The row is a naming container so you can add update able fields > and the reason the map is stored in session scope. I thought it would be > important to be able to name the session scoped variable since you have to > cleanup yourself. > > The component uses the clay shapeValidator callback event to create the beans > that define the shape of the subtree. This callback has the same method > signature as the "validator" method binding event but is not associated with the > validation phase. I't invoked for the rendering phase. > > The "clayForEach" shapeValidator event is bound to a managed bean that is loaded > in the faces-config from the Clay jar. > > The "validator" term seemed to work because it validates the shape of the Clay > component. The basic idea of this method binding event is to create the Clay > subtree at runtime from model data instead of a XML or HTML static configuration > file. > > The tomahawk "dataList" component will do the same thing with more style. > > > > > > > Hermod > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > This email with attachments is solely for the use of the individual or > > entity to whom it is addressed. Please also be aware that the DnB NOR Group > > cannot accept any payment orders or other legally binding correspondence with > > customers as a part of an email. > > > > This email message has been virus checked by the virus programs used > > in the DnB NOR Group. > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > > > > - > > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi Addendum: The "offending" lines: -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 20. september 2005 09:55 Til: user@struts.apache.org Emne: SV: [Shale] NullpointerException when running struts-shale-usecas es Hi Well, its the demo webapp from shale, but heres the version that I have: http://struts.apache.org/dtds/shale-dialog-config_1_0.dtd";> -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] vegne av Craig McClanahan Sendt: 20. september 2005 09:37 Til: Struts Users Mailing List Emne: Re: [Shale] NullpointerException when running struts-shale-usecases Hermod, Admittedly, the error message you received is not particularly helpful. However, it is clearly related to a problem parsing your dialog-config.xmlresource file. Could you please examine the area around line 41 of this file, and/or post the entire file for us to take a look at? Craig * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi Well, its the demo webapp from shale, but heres the version that I have: http://struts.apache.org/dtds/shale-dialog-config_1_0.dtd";> -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] vegne av Craig McClanahan Sendt: 20. september 2005 09:37 Til: Struts Users Mailing List Emne: Re: [Shale] NullpointerException when running struts-shale-usecases Hermod, Admittedly, the error message you received is not particularly helpful. However, it is clearly related to a problem parsing your dialog-config.xmlresource file. Could you please examine the area around line 41 of this file, and/or post the entire file for us to take a look at? Craig * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi The other log4j file is the log4j-sandbox-0.1alpha.jar. This contains the InitContextListener for Log4J amongst other things. I added the log4j jar file to the struts-shale-usecases webapps lib directory and it started ok. So conclusion is that if log4j is in the common/lib directory it won't start, while it will start with the same jar file in the web-inf/lib directory. I suspect that this has to do with the way Shale (i.e commons-logging) initializes the logging. When running in any container, you need to handle logging specially to avoid log intermixing (which is why I use InitContextListener and place it in common/lib). Hermod -Opprinnelig melding- Fra: Wendy Smoak [mailto:[EMAIL PROTECTED] Sendt: 20. september 2005 08:22 Til: Struts Users Mailing List Emne: Re: [Shale] NullpointerException when running struts-shale-usecas es From: <[EMAIL PROTECTED]> > I downloaded and installed a clean Tomcat 5.0.30, and now it started Ok. > So I went back and looked at my other Tomcat 5 install, and found that I > had some commons-xxx jars and log4J among other things in the common/lib > directory. Since we have been suspecious of digester, I removed that one > first - No cigar. I then readded that one and remove the next until I > finally figured out what causes the problem. > > There is a compatibility issue between log4j (1.2.8) and Shale. When I > removed my two log4j jars, Shale started ok. I just added a dependency on log4j-1.2.8 to the use-cases, added commons-logging.properties and log4j.properties to WEB-INF/classes, built and deployed it. It starts up normally. That's with the log4j .jar file in WEB-INF/lib, however. You mention _two_ log4j jars, which could be a problem. Where were they? If you have multiple copies of the same class(es) available on the classpath, strange things can happen. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi I downloaded and installed a clean Tomcat 5.0.30, and now it started Ok. So I went back and looked at my other Tomcat 5 install, and found that I had some commons-xxx jars and log4J among other things in the common/lib directory. Since we have been suspecious of digester, I removed that one first - No cigar. I then readded that one and remove the next until I finally figured out what causes the problem. There is a compatibility issue between log4j (1.2.8) and Shale. When I removed my two log4j jars, Shale started ok. Hermod. -Opprinnelig melding- Fra: Wendy Smoak [mailto:[EMAIL PROTECTED] Sendt: 19. september 2005 16:18 Til: Struts Users Mailing List Emne: Re: [Shale] NullpointerException when running struts-shale-usecas es From: <[EMAIL PROTECTED]> > Same problem with latest build - It gives a NPE on 5.0.30 during > startup: > > 2005-09-19 15:48:19 StandardContext[/struts-shale-usecases]Exception > starting filter shale > javax.servlet.ServletException: Error at line 41 char 56: null > ... > - Root Cause - > java.lang.NullPointerException > at > org.apache.commons.digester.Digester.createSAXException(Digester.java:29 > 19) > > My setup is Sun JDK 1.4.2_09 > Tomcat 5.0.30 - No frills > > It runs OK on 5.5. What OS? It's working fine on both JDK 1.4.2_09 and 1.5.0_01 with Tomcat 5.0.30 on WinXP Pro. Sep 19, 2005 7:06:48 AM org.apache.shale.faces.ShaleApplicationFilter init INFO: Initializing Shale Application Filter -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi Same problem with latest build - It gives a NPE on 5.0.30 during startup: 2005-09-19 15:48:19 StandardContext[/struts-shale-usecases]Exception starting filter shale javax.servlet.ServletException: Error at line 41 char 56: null ... - Root Cause - java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 19) My setup is Sun JDK 1.4.2_09 Tomcat 5.0.30 - No frills It runs OK on 5.5. Hermod -Opprinnelig melding- Fra: Wendy Smoak [mailto:[EMAIL PROTECTED] Sendt: 19. september 2005 15:41 Til: Struts Users Mailing List Emne: Re: [Shale] NullpointerException when running struts-shale-usecases From: "Holshausen, Ron" <[EMAIL PROTECTED]> > Yeah, I've upgraded to the version from last night (20050918), which > works ok. This might be a bug, because tomcat 5.0.x and 5.5.x both > implement the same version of the specs. But I'm not sure whether it is > a bug in tomcat, the xml parser, or commons-digester. I'm not seeing a problem with the latest nightly (20050919) on either Tomcat 5.5.9 or 5.0.30. If anyone is still having trouble with the use-cases app starting up, can you please try the latest version? http://svn.apache.org/builds/struts/nightly/struts-shale/ Shale should work with Servlet 2.4 (Tomcat 5.x) and JDK 1.4. If it doesn't, please let us know what combination you're using. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi It did start up ok under 5.5.9, so there must be some sort of compatibility issue with 5.0.30 Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 13:46 Til: user@struts.apache.org Emne: SV: [Shale] NullpointerException when running struts-shale-usecases Hi I will give it a try under 5.5.9, but maybe I should try with another version of the parser first. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 10:46 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running it under tomcat 5.5.9, and jdk 1.5.0_04. It seems to be a problem parsing the chain-config.xml by the shale filter. I'm not sure if this is something introduced after the 6th, or a problem with the xml parser. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 11:33 To: user@struts.apache.org Subject: SV: [Shale] NullpointerException when running struts-shale-usecases Hi I could not find the 6th distro, so I tried the earliest one I could find, beeing the 8th. Same problem. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 09:47 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running the version from the 6th without any modifications, and it runs fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 10:42 To: user@struts.apache.org Subject: [Shale] NullpointerException when running struts-shale-usecases Hi I tried to run the struts-shale-usecases webapp from the nightly build(16th), but I get a NullpointerException during startup. I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and 1.5.0_04. javax.servlet.ServletException: Error at line 41 char 56: null at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:334) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:225) ... - Root Cause - java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 19) at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 45) at org.apache.commons.digester.Digester.startElement(Digester.java:1364) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa rser.java:160) at org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn it.java:101) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:331) Anybody had the same problem ? Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 08:59 Til: Struts Users Mailing List Emne: Re: [Shale]managed beans in request vs. session scope and how to clean up On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know that one of the changes that was made to the JSF > spec was to integrate the JSTL and JSF, so you could use c:forEach with > JSF UI components. So using JSTL is still ok, I do. And I think it will > be around for a while. Ron's comments with respect to JSF 1.2 and JSTL interoperability are correct ... but they only address part of the overall issue. If all you care about is *rendering* output based on an iteration over a collection of model tier objects, the JSF 1.2 integration strategy will work fine. If, on the other hand, you want to have *input* fields inside your tag, you're going to run into more problems. The right answer there is to use an outer "grouping" component (such as, but not limited to, ) that deals with the iteration issues during the postback processing phases (Apply Request Values through Process Validations) as well as during rendering. Solutions based on JSTL
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi I will give it a try under 5.5.9, but maybe I should try with another version of the parser first. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 10:46 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running it under tomcat 5.5.9, and jdk 1.5.0_04. It seems to be a problem parsing the chain-config.xml by the shale filter. I'm not sure if this is something introduced after the 6th, or a problem with the xml parser. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 11:33 To: user@struts.apache.org Subject: SV: [Shale] NullpointerException when running struts-shale-usecases Hi I could not find the 6th distro, so I tried the earliest one I could find, beeing the 8th. Same problem. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 09:47 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running the version from the 6th without any modifications, and it runs fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 10:42 To: user@struts.apache.org Subject: [Shale] NullpointerException when running struts-shale-usecases Hi I tried to run the struts-shale-usecases webapp from the nightly build(16th), but I get a NullpointerException during startup. I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and 1.5.0_04. javax.servlet.ServletException: Error at line 41 char 56: null at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:334) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:225) ... - Root Cause - java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 19) at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 45) at org.apache.commons.digester.Digester.startElement(Digester.java:1364) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa rser.java:160) at org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn it.java:101) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:331) Anybody had the same problem ? Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 08:59 Til: Struts Users Mailing List Emne: Re: [Shale]managed beans in request vs. session scope and how to clean up On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know that one of the changes that was made to the JSF > spec was to integrate the JSTL and JSF, so you could use c:forEach with > JSF UI components. So using JSTL is still ok, I do. And I think it will > be around for a while. Ron's comments with respect to JSF 1.2 and JSTL interoperability are correct ... but they only address part of the overall issue. If all you care about is *rendering* output based on an iteration over a collection of model tier objects, the JSF 1.2 integration strategy will work fine. If, on the other hand, you want to have *input* fields inside your tag, you're going to run into more problems. The right answer there is to use an outer "grouping" component (such as, but not limited to, ) that deals with the iteration issues during the postback processing phases (Apply Request Values through Process Validations) as well as during rendering. Solutions based on JSTL *only* work during rendering, because the JSP page itself is *not* involved in actually performing a postback. Or, if you want a shorter version of the answer, depending on is still going to limit what you can actually do inside the iterations, even in a JSF 1.2 world. The right answer is smarter components that do
SV: [Shale] NullpointerException when running struts-shale-usecas es
Hi I could not find the 6th distro, so I tried the earliest one I could find, beeing the 8th. Same problem. Hermod -Opprinnelig melding- Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 09:47 Til: Struts Users Mailing List Emne: RE: [Shale] NullpointerException when running struts-shale-usecases I'm running the version from the 6th without any modifications, and it runs fine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 16 September 2005 10:42 To: user@struts.apache.org Subject: [Shale] NullpointerException when running struts-shale-usecases Hi I tried to run the struts-shale-usecases webapp from the nightly build(16th), but I get a NullpointerException during startup. I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and 1.5.0_04. javax.servlet.ServletException: Error at line 41 char 56: null at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:334) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:225) ... - Root Cause - java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 19) at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 45) at org.apache.commons.digester.Digester.startElement(Digester.java:1364) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa rser.java:160) at org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn it.java:101) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:331) Anybody had the same problem ? Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 08:59 Til: Struts Users Mailing List Emne: Re: [Shale]managed beans in request vs. session scope and how to clean up On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know that one of the changes that was made to the JSF > spec was to integrate the JSTL and JSF, so you could use c:forEach with > JSF UI components. So using JSTL is still ok, I do. And I think it will > be around for a while. Ron's comments with respect to JSF 1.2 and JSTL interoperability are correct ... but they only address part of the overall issue. If all you care about is *rendering* output based on an iteration over a collection of model tier objects, the JSF 1.2 integration strategy will work fine. If, on the other hand, you want to have *input* fields inside your tag, you're going to run into more problems. The right answer there is to use an outer "grouping" component (such as, but not limited to, ) that deals with the iteration issues during the postback processing phases (Apply Request Values through Process Validations) as well as during rendering. Solutions based on JSTL *only* work during rendering, because the JSP page itself is *not* involved in actually performing a postback. Or, if you want a shorter version of the answer, depending on is still going to limit what you can actually do inside the iterations, even in a JSF 1.2 world. The right answer is smarter components that do iterations for you, not forcing the page developer to manually code iteration loops. Craig * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Shale] NullpointerException when running struts-shale-usecases
Hi I tried to run the struts-shale-usecases webapp from the nightly build(16th), but I get a NullpointerException during startup. I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and 1.5.0_04. javax.servlet.ServletException: Error at line 41 char 56: null at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:334) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi lterConfig.java:225) ... - Root Cause - java.lang.NullPointerException at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 19) at org.apache.commons.digester.Digester.createSAXException(Digester.java:29 45) at org.apache.commons.digester.Digester.startElement(Digester.java:1364) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U nknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1647) at org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa rser.java:160) at org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn it.java:101) at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166) at org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte r.java:331) Anybody had the same problem ? Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 16. september 2005 08:59 Til: Struts Users Mailing List Emne: Re: [Shale]managed beans in request vs. session scope and how to clean up On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote: > > Hi Geeta, > > Just to let you know that one of the changes that was made to the JSF > spec was to integrate the JSTL and JSF, so you could use c:forEach with > JSF UI components. So using JSTL is still ok, I do. And I think it will > be around for a while. Ron's comments with respect to JSF 1.2 and JSTL interoperability are correct ... but they only address part of the overall issue. If all you care about is *rendering* output based on an iteration over a collection of model tier objects, the JSF 1.2 integration strategy will work fine. If, on the other hand, you want to have *input* fields inside your tag, you're going to run into more problems. The right answer there is to use an outer "grouping" component (such as, but not limited to, ) that deals with the iteration issues during the postback processing phases (Apply Request Values through Process Validations) as well as during rendering. Solutions based on JSTL *only* work during rendering, because the JSP page itself is *not* involved in actually performing a postback. Or, if you want a shorter version of the answer, depending on is still going to limit what you can actually do inside the iterations, even in a JSF 1.2 world. The right answer is smarter components that do iterations for you, not forcing the page developer to manually code iteration loops. Craig * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Eclipse 3.1 and struts 1.2.7
Hi Of course you can use struts with eclipse. Its just a whole lot easier putting 29 bucks on the table and get MyEclipse Hermod -Opprinnelig melding- Fra: M. Imran [mailto:[EMAIL PROTECTED] Sendt: 8. september 2005 13:59 Til: Struts Users Mailing List Emne: Re: Eclipse 3.1 and struts 1.2.7 I was wondering if I can use Struts with Eclipse (3.1) or some free plugins. MyEclipse is a good option but its not free. Regards, Imran - Original Message - From: "Ayusman dikshit" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, September 08, 2005 12:59 AM Subject: RE: Eclipse 3.1 and struts 1.2.7 > > Hi Imran, > Try to download latest MyEclipse (just google it and u will find it) and > download this pdf > http://www.eclipsekickstart.com/chapters/EclipseKickStart-ch11.pdf this > will guide you thru. , hope this helps. > > Regards > Ayusman > > -Original Message- > From: M. Imran [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 08, 2005 12:12 PM > To: user@struts.apache.org > Subject: Eclipse 3.1 and struts 1.2.7 > > Dear all, > I am trying to build my first application with Tomcat, Eclipse 3.1 & > Struts 1.2.7, can anyone tell me how to configure them? Any help link or > example will be much appreciated? > > Thanks you, > Imran > > CAUTION - Disclaimer * > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS End of Disclaimer INFOSYS*** > > - > 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] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Exception after File Upload.
Hi You can try and declare it as transient in your form/action Hermod -Opprinnelig melding- Fra: Gareth Evans [mailto:[EMAIL PROTECTED] Sendt: 8. september 2005 10:54 Til: Struts Users Mailing List Emne: Re: Exception after File Upload. Because when you shutdown tomcat, it tries to serial all objects within the session scope. The class you are referring to 'org.apache.commons.fileupload.DeferredFileOutputStream' does not implement 'java.io.Serializable' and therefore tomcat throws this exception when trying to serialize it. Whilst I don't know what the class 'org.apache.catalina.session.StandardManager' does, presumably is performs a check to see if an object stored within the session is serializable before trying to write it disk, or it might remove non-serializable object from the session scope on shutdown. Regards, Gareth Anuradha S.Athreya wrote: > I have a web application running on Tomcat 5.0. > > One of the features is this appln enables file upload. After an upload, If I > stop and restart the server , I get this particular expception. > SEVERE: IOException while loading persisted sessions: > java.io.WriteAbortedException: writing aborted; java.io. > NotSerializableException: > org.apache.commons.fileupload.DeferredFileOutputStream > java.io.WriteAbortedException: writing aborted; > java.io.NotSerializableException: org.apache.commons.fileuploa > d.DeferredFileOutputStream > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278) > at > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646 ) > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) > at > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646 ) > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) > at > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845) > at > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769) > at > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646 ) > at > java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274) > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324) > at > org.apache.catalina.session.StandardSession.readObject(StandardSession.j ava: > 1401) > at > org.apache.catalina.session.StandardSession.readObjectData(StandardSessi on.j > ava:895) > at > org.apache.catalina.session.StandardManager.doLoad(StandardManager.java: 463) > at > org.apache.catalina.session.StandardManager.load(StandardManager.java:39 0) > at > org.apache.catalina.session.StandardManager.start(StandardManager.java:7 03) > at > org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:542 ) > at > org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.ja va:3 > 49) > at > org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:654) > at > org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j ava: > 253) > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu ppor > t.java:166) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:4224 ) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > at > org.apache.catalina.core.StandardHost.start(StandardHost.java:832) > at > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125) > at > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518) > at > org.apache.catalina.core.StandardService.start(StandardService.java:519) > at > org.apache.catalina.core.StandardServer.start(StandardServer.java:2345) > at org.apache.catalina.startup.Catalina.start(Catalina.java:598) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398) > Caused by: java.io.NotSerializableException: > org.apache.commons.fileupload.DeferredFileOutputStream > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054) > at > java.io.ObjectOutputStream.defaultWriteF
SV: Tiles standalone jar
Thnx :) Hermod -Opprinnelig melding- Fra: Craig McClanahan [mailto:[EMAIL PROTECTED] Sendt: 17. august 2005 17:52 Til: Struts Users Mailing List Emne: Re: Tiles standalone jar On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > Does anbody know where to get hold of the Tiles standalone .jar file. I > have only found the source files in the SVN sandbox. > Nightly builds are available at: http://cvs.apache.org/builds/jakarta-struts/nightly/sandbox/tiles-core/ Be warned, however, that a couple of changes in the Struts 1.3 version of Tiles have not yet been ported over ... I hope to do that this weekend. Craig > Hermod > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > This email with attachments is solely for the use of the individual or > entity to whom it is addressed. Please also be aware that the DnB NOR Group > cannot accept any payment orders or other legally binding correspondence with > customers as a part of an email. > > This email message has been virus checked by the virus programs used > in the DnB NOR Group. > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > - > 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles standalone jar
Hi Does anbody know where to get hold of the Tiles standalone .jar file. I have only found the source files in the SVN sandbox. Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Populate drop down box
Hi Use : html:optionsCollection name="MakeCollectionFormBean" property="values" label="label" value="label" /> >From the docs: This tag operates on a collection of beans, where each bean has a label property and a value property. The actual names of these properties can be configured using the label and value attributes of this tag. Use for instance ArrayList for MakeCollectionFormBean, not an ActionForm Hermod -Opprinnelig melding- Fra: Gooshy GooSHY [mailto:[EMAIL PROTECTED] Sendt: 16. august 2005 11:11 Til: user@struts.apache.org Emne: Populate drop down box Hi, I'm pretty new to struts and haven't been using it for very long. I have spent the past few days trawling though web sites and usenet trying to find the answer to my problem below. If anyone can help it would be much appreciated. I am trying to find an example of code that will populate a collection within a form bean and then forward it on to a jsp where the drop down box will have the contents of the collection. I have got the gist of how this is done but can't quite get the syntax correct. I have the following in my forwarded JSP: MakeCollectionFormBean is set up to only contain a getter and setter for my Vector collections as shown below: import java.util.Vector; import org.apache.struts.action.ActionForm; public class MakeCollectionFormBean extends ActionForm { private Vector makes; public Vector getMakes() { return makes; } public void setMakes(Vector makes) { this.makes = makes; } } My Vector contains LabelValueBean objects. If anyone can help with what should go where it would be really helpfull. Thanks Scott. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Session Problem
Hi Yes, indeed this will happen: use geSession() or getSession(false), also avoid redirect combined with this. Hermod -Opprinnelig melding- Fra: Senthilrajan VS [mailto:[EMAIL PROTECTED] Sendt: 16. august 2005 11:08 Til: Sturts Mailing list Emne: Session Problem Hi all, I am having serious session problem in some of the browsers(Not all). I'm using struts. In the Action class I am using HttpSession Session=request.getSession(true); to get the session and I'm keep on calling this action for different condition. The problem is For each request it is creating the new session and I'm not able to get the session values. Please help me to come out of this problem Thanks & Regards, SenthilRajan VS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Login with authentication from database
Hi Also you might want to look at SecurityFilter (http://securityfilter.sourceforge.net/). It is an easy to use implementation of the mentioned below (JDBCReal, JAAS). Hermod -Opprinnelig melding- Fra: Bill Schneider [mailto:[EMAIL PROTECTED] Sendt: 8. august 2005 15:05 Til: user@struts.apache.org Emne: Re: Login with authentication from database If you're specifically interested in authentication from a database (tables for users, roles and mappings), and using Tomcat, the JDBCRealm is the way to go: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JDBCRea lm You might not need to learn about JAAS if all you want is simple form-based username/password authentication. -- Bill >> If your using Tomcat 5.5.x, then this may help: >> >> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JAASRea lm >> >> >> >> /robert >> >> Laurie Harper wrote: >> >>> I haven't used container managed security very much but I think the >>> way you'd do that is to set up multiple security realms in Tomcat >>> (one per application or one per database) and then configure your >>> security constraints in the web.xml for each application. Your Tomcat >>> books should have more details on how to do that than I can provide >>> I'm afraid... >>> >>> L. >>> -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd. College Park, MD 20740 [EMAIL PROTECTED] t: 301-864-7253 x1140 f: 301-699-3180 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: How to hide URL in Adress bar?
Hi The easiest way is to use frames. Have a framset of two frames stacked vertically, with the first frame having 0 width/heigth. That way you hide the stuff that you place in the second frame from the browser url Hermod -Opprinnelig melding- Fra: Gaet [mailto:[EMAIL PROTECTED] Sendt: 13. juli 2005 14:48 Til: Mailing List Struts Emne: How to hide URL in Adress bar? Hi evrybody, I would like to hide the struts URL in the Adress bar of the client browser is there a way do always have www.mysite.com in the adress bar instead of www.mysite.com/myStrutsAction.do?param1=param...?? Thanks for your help! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: log4j log
Hi log4j.rootLogger=ERROR, A2 <<<--- Change this one to Debug, A2 -Opprinnelig melding- Fra: Vijay K Anand [mailto:[EMAIL PROTECTED] Sendt: 4. juli 2005 14:48 Til: user@struts.apache.org Emne: log4j log Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%d [%t] %-5p %c - %m%n here is the code where i want to log static Logger logger = Logger.getLogger(HighLevelAction.class.getClass()); logger.debug("test"); th eproblem is : it is not logging anything - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (OT) Acegi & Struts
Hi Have a look at another SF project: SecurityFilter Hermod -Original Message- From: Rodolfo GarcÃa Esteban/CYII [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 11, 2005 11:34 AM To: Struts Users Mailing List Subject: Re: (OT) Acegi & Struts Hello, Have you look at CAS? www.yale.edu/tp/auth/cas10.html Rodolfo ___ "Marco Mistroni" <[EMAIL PROTECTED]> 11/05/2005 11:26 Por favor, responda a "Struts Users Mailing List" Para: "'Struts Users Mailing List'" cc: (cco: Rodolfo GarcÃa Esteban/CYII) Asunto: (OT) Acegi & Struts Hello all, Sorry for partially off-topic question, but I am looking For some feedback.. Is anyone using (or has used, or plan to use) acegi security system(http://acegisecurity.sourceforge.net/) with Struts? Any feedback? Any recommendations for other security 'systems' to use with struts and spring? Thanx in advance and regards marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple forms on one page
Hi Addendum : You can only post 1 form at a time Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 2:50 PM To: user@struts.apache.org Subject: RE: Multiple forms on one page Hi No problem - I have several pages that are multiform - Validation is also supported for multiform. Hermod -Original Message- From: Fleischle, Samuel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:48 AM To: user@struts.apache.org Subject: Multiple forms on one page Does Struts support more then one form on a single page? In my application I put two forms on one page, one form containing the data and one form containing some search fields. I define one form bean for each form. But if I submit one of these forms, e.g. the search form, I got only one form filled with data by my form bean. Is there a way, Struts provides to forms? Regards, Sam * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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: Multiple forms on one page
Hi No problem - I have several pages that are multiform - Validation is also supported for multiform. Hermod -Original Message- From: Fleischle, Samuel [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 27, 2005 10:48 AM To: user@struts.apache.org Subject: Multiple forms on one page Does Struts support more then one form on a single page? In my application I put two forms on one page, one form containing the data and one form containing some search fields. I define one form bean for each form. But if I submit one of these forms, e.g. the search form, I got only one form filled with data by my form bean. Is there a way, Struts provides to forms? Regards, Sam * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Need Database Connectivity Advice
Hi Wake up!! Use Hibernate. It will give you some initial gra hairs, but thereafter you will never look back. Hermod -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:56 PM To: user@struts.apache.org Subject: Need Database Connectivity Advice I am at a crossroads of information today, and could use some advice. Prior to using the Struts framework, I had a roll-your-own database pooling solution that of course required threads and Vectors of connections, etc. Upon the start of another new project, I found myself Friday trying to figure out how to use the DBCP classes inside my Tomcat server. As I do not understand the JNDI, etc. I had some trouble Friday and over the weekend, getting all configured. And when I did get it work work by their simple example, I ended up connecting in a JSP page, and that is not what I want. So reflecting to my book OReilly/Struts, I noticed that they use a database persistance product. Something called ObjectRelationalBridge, and use it with some design patterns that I am having trouble following. I would like to possbily go this route, but I am confused at the Factory references, etc. I don't know why I am having trouble understanding this, but I am. I had the weekend to try and get my bearings on how to start this new web-app, and build it so I can war up and host at an ISP. I figured each user on this list probably already connects, and has some great ideas to throw my way. I could really use some advice, on selecting the correct, both easy to use, and reusable in the future solution for my connectivity dilemma. The reason I found DBCP confusing, is that the directions for the Tomcat 5.5 show a JSP page, using JSTL commands, and I really do not want to connect in JSP pages. I would really appreciate any input, advice, links, how to advice, etc. Sincerely Scott K Purcell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jsf] RE: [REFERENDUM] Struts is a Community
Hi Is there any other "real" list than MyFaces :) Hermod -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:48 PM To: Struts Users Mailing List Subject: [OT: jsf] RE: [REFERENDUM] Struts is a Community which JSF list? the myfaces-list or another one? (I follow myfaces, because sun offers only a rather unfriendly forum...) Alexander (promoting Struts until I got JSF ready for our people ;-) ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 2:20 PM To: user@struts.apache.org Subject: RE: [REFERENDUM] Struts is a Community Hi Nag Nag - Have you followed the JSF list lately ? Hermod (A great fan of Struts - and lately also JSF/Shale) -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 11:02 AM To: Struts Users Mailing List Subject: RE: [REFERENDUM] Struts is a Community First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... -> rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good "company") For me this means +indefinitely (>1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [REFERENDUM] Struts is a Community
Hi Nag Nag - Have you followed the JSF list lately ? Hermod (A great fan of Struts - and lately also JSF/Shale) -Original Message- From: Jesse Alexander (KBSA 21) [mailto:[EMAIL PROTECTED] Sent: Monday, April 11, 2005 11:02 AM To: Struts Users Mailing List Subject: RE: [REFERENDUM] Struts is a Community First of all: Happy Birthday Ted (maybe a bit late, but I read the Struts mailinglist only in the office because of its hig volume) Is Struts a product? - If products means that it is marketed: I do not have the feeling - If product means something like MS Office: thank god it is not... -> rather not Is Struts a community? - a community should mean people helping people - in a technical problem: Struts (and this mailing list): definitely true - getting a good start in the weekend: Struts definitely is that (all thos wonderfull OT - friday - beer threads. They get you in a good cheerfull mood ;-) - in defficult times (eg. job-loss): the growing list of Struts-jobs means: definitely true - A community keeps you hooked on to it, even if some reasons why you joined it, are not true anymore: definitely true (I work now on establishing a JSF-infrastructure for our company, but I CANNOT unsubscribe this mailing list: too many usefull bits of info and I would miss this example of a good "company") For me this means +indefinitely (>1) Struts is a community!!! regards Alexander PS: I WISH something similar could happen to JSF ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tile in Tile -> possible?
Hi What you are describing works - I have several apps where I do this sort of thing Hermod -Original Message- From: Hauschel Fred [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 10:12 AM To: Struts Users Mailing List Subject: Tile in Tile -> possible? Hey, is it possible to extend a Definition and overload a tile by a new definition? What I want is: My Base Struts Module should have a simple baseDefinition: This base should be extended by another Module. But I think that is not possible. Is there another way to something like this? Maybe: Thanks Fredy * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Process tiles definition from a different module
Hi Use the Switch Action. Hermod -Original Message- From: Diego Manilla Suárez [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 1:54 PM To: Struts Users Mailing List Subject: Process tiles definition from a different module Hi! I need to process a tiles definition that is located in a different module. I have this ActionForward declared on the module I want to invoke: And on the main module, I have this code (in an action) to get that forward definition. ActionForward forward = null; ServletContext context = getServlet().getServletContext(); ModuleConfig config = ModuleUtils.getInstance().getModuleConfig("othermodule", context); if (config != null && "org.apache.struts.action.ActionForward".equals(config.getActionForwardC lass())) { forward = (ActionForward)config.findForwardConfig("myPage"); } return forward; This doesn't work because Tiles is not processing the definition ".myTilesDefinition" (I have two separate Tiles definition configurations, one for each module). How can I get the definition on the other module processed by Tiles? I know I can import the definitions of the second module using in struts-config.xml, but I'm wondering if it's possible to do what I want without this "trick". With TilesUtilStrutsModulesImpl class I get the DefinitionsFactory object for the second module, but I can't get past there. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Security
Hi 1. It means that any authentication token will not be propagated to a J2EE EJB server. 2. When using the role attribute with tiles, it will pick up what you have defined in SecurityFilter Hermod -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 11:05 AM To: Struts Users Mailing List Subject: Re: Struts Security Hi, I've never used EJB so have no idea what this means, can someone explain please? "When SecurityFilter is used, a user's Principal will not automatically be propagated to EJB calls. If this is a requirement for your application, you may not be able to use SecurityFilter." Also, (as above) I'm using JDBCRealm to authenticate clients. I then have a tile which contains all the menu settings; I use the present roles to check for which features should be loaded How easy would it be to implement this using the SecurityFilter - does anyone know of a good tutorial? Cheers, Tim On Thu, 27 Jan 2005 08:25:14 +0100, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > Take a look at SecurityFilter - http://securityfilter.sourceforge.net/ > > Works like a charm with Tomcat and JDBC realms. Then you do REAL > declarative security - No coding needed. > > Hermod > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 6:31 AM > To: user@struts.apache.org > Subject: RE: Struts Security > > I think the logic:present tag will allow access to any of the roles > mentioned. > > Mohan > > -Original Message- > From: Tim Christopher [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 9:41 AM > To: Struts Users Mailing List > Subject: Re: Struts Security > > Just a quick question... What is gained by using code like this: > > >>> >String[] roles = mapping.getRoleNames(); >if(roles == null || roles.length == 0) >return true >for(int i=0; iif(request.isUserInRole(roles[i])) { >return true; >} >} >return false; > <<< > > ...isn't that the same as ? > Or is that a check for all roles: roleA, roleB, and roleG? > > Tim > > On Wed, 26 Jan 2005 20:27:22 -0700, Nic Holbrook <[EMAIL PROTECTED]> > wrote: > > I forgot to mention the reason I did this was because we already had a > > > security mechanism in place and didn't have the liberty of using > > realms on the web or anything like that. It had to be a custom > configuration. > > > > Nic Holbrook wrote: > > > > > I kind of set our security up before the struts menu was in place. > > > What I have done that seems to work well so far is extend the Action > > > > class with a SecureAction class that validates the users role before > > > > it lets the user into an action. The execute method actually > > > validates and calls an abstract secureExecute (which is now the main > > > > struts method) if the user is in the role. I set a roleId in the > > > struts-config.xml for each action which really isn't a big deal > > > (). That way the > > > role is set up 1 time for each action. You can use the same role > > > for several actions of you like. When the user logs in, I retrieve > > > all the roles allowed for that user and store it in a UserContext > > > object in the session. I then have a menu tag that dynamically > > > builds the menu for them which isn't that difficult to set up. I > > > use it in a tile so I only insert it 1 time. > > > > > > Just some ideas. > > > > > > > > > > > > Craig McClanahan wrote: > > > > > >> On Sun, 23 Jan 2005 18:39:50 +, Tim Christopher > > >> <[EMAIL PROTECTED]> wrote: > > >> > > >> > > >>> Hi, > > >>> > > >>> I am designing a web application using Struts, which will run > > >>> using Tomcat. The system will have upwards of 1000 users, with > > >>> each user having any number of around 10 possible roles. > > >>> > > >>> I'm currently thinking of using JDBCRealm within the Tomcat xml > > >>> file to set the roles for each of the users, then extending the > > >>> RequestProcessor to ensure only authorised users can enter the > > >>> secure area. I then have a number of menu options that should > > >>> only be made visible to users with certain roles; I intend to use > > >>> logic:present role=".." or req:isUserInRole role="..." to do this > > >>> - from what I can see they are functionally identical(?). > > >>> > > >>> > > >> > > >> > > >> The implementation of logic:present role= uses > > >> request.isUserInRole() under the covers :-). > > >> > > >> > > >> > > >>> I guess what I'd like to know is: > > >>> * Will this approach actually work? > > >>> > > >> > > >> > > >> Yep. > > >> > > >> > > >> > > >>> * Is there a better way? > > >>> > > >> > > >> > > >> This sounds best for your use case. > > >> > > >> > > >> > > >>> * Will any changes to user roles made within the database > > >>> automatically update the roles that tomcat uses from the > > >>> JDBCRealm, or will it require a server restart? > > >>> > >
RE: Struts Security
Hi Take a look at SecurityFilter - http://securityfilter.sourceforge.net/ Works like a charm with Tomcat and JDBC realms. Then you do REAL declarative security - No coding needed. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 6:31 AM To: user@struts.apache.org Subject: RE: Struts Security I think the logic:present tag will allow access to any of the roles mentioned. Mohan -Original Message- From: Tim Christopher [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 9:41 AM To: Struts Users Mailing List Subject: Re: Struts Security Just a quick question... What is gained by using code like this: >>> String[] roles = mapping.getRoleNames(); if(roles == null || roles.length == 0) return true for(int i=0; i? Or is that a check for all roles: roleA, roleB, and roleG? Tim On Wed, 26 Jan 2005 20:27:22 -0700, Nic Holbrook <[EMAIL PROTECTED]> wrote: > I forgot to mention the reason I did this was because we already had a > security mechanism in place and didn't have the liberty of using > realms on the web or anything like that. It had to be a custom configuration. > > Nic Holbrook wrote: > > > I kind of set our security up before the struts menu was in place. > > What I have done that seems to work well so far is extend the Action > > class with a SecureAction class that validates the users role before > > it lets the user into an action. The execute method actually > > validates and calls an abstract secureExecute (which is now the main > > struts method) if the user is in the role. I set a roleId in the > > struts-config.xml for each action which really isn't a big deal > > (). That way the > > role is set up 1 time for each action. You can use the same role > > for several actions of you like. When the user logs in, I retrieve > > all the roles allowed for that user and store it in a UserContext > > object in the session. I then have a menu tag that dynamically > > builds the menu for them which isn't that difficult to set up. I > > use it in a tile so I only insert it 1 time. > > > > Just some ideas. > > > > > > > > Craig McClanahan wrote: > > > >> On Sun, 23 Jan 2005 18:39:50 +, Tim Christopher > >> <[EMAIL PROTECTED]> wrote: > >> > >> > >>> Hi, > >>> > >>> I am designing a web application using Struts, which will run > >>> using Tomcat. The system will have upwards of 1000 users, with > >>> each user having any number of around 10 possible roles. > >>> > >>> I'm currently thinking of using JDBCRealm within the Tomcat xml > >>> file to set the roles for each of the users, then extending the > >>> RequestProcessor to ensure only authorised users can enter the > >>> secure area. I then have a number of menu options that should > >>> only be made visible to users with certain roles; I intend to use > >>> logic:present role=".." or req:isUserInRole role="..." to do this > >>> - from what I can see they are functionally identical(?). > >>> > >>> > >> > >> > >> The implementation of logic:present role= uses > >> request.isUserInRole() under the covers :-). > >> > >> > >> > >>> I guess what I'd like to know is: > >>> * Will this approach actually work? > >>> > >> > >> > >> Yep. > >> > >> > >> > >>> * Is there a better way? > >>> > >> > >> > >> This sounds best for your use case. > >> > >> > >> > >>> * Will any changes to user roles made within the database > >>> automatically update the roles that tomcat uses from the > >>> JDBCRealm, or will it require a server restart? > >>> > >> > >> > >> Tomcat's JDBCRealm caches the relevant roles for a user when he or > >> she logs on, so they won't change for the length of that session > >> ... but changes will get reflected next time the same person logs on. > >> > >> > >> > >>> * Also if I use a check within the jsp like logic:present role=".." > >>> to decide if a component should be dispalyed, I have read it is > >>> also advisable to require to presence of a role to use the Action. > >>> This method will require two updates to allow an additional an > >>> additional role to access a resource (update in the jsp, and in > >>> the xml file) - is there a way around this? > >>> > >> > >> > >> You can prohibit direct access to JSP pages (requiring that they go > >> through an Action first) and only need to configure the XML file to > >> limit access to a complete page. But you'll still need the inner > >> logic if you want to do things differently, based on role, within a > >> page. > >> > >> > >> > >>> Thank you in advance, > >>> > >>> Tim Christopher > >>> > >>> > >> > >> > >> Craig > >> > >> --- > >> -- To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > >> > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROT
RE: LookupDispatchAction doesn't lookup mapping
Hi You write that : The LookupDispatchAction tries to call a method named "weiter" instead of "forward", while it calls the "back"-method as expected. As far as I remember "weiter" is the German word for "forward" - There might be a locale issue here. Hermod -Original Message- From: Alexander Czernay [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 08, 2004 2:14 PM To: Struts Users Mailing List Subject: Re: LookupDispatchAction doesn't lookup mapping Dakota Jack wrote: > My experience is that the computer is always right, so I would look in > my properites file, if I were you, and see whether or not I had > reversed the myButtonForward=go to go=myButtonForward. Did you? I > feel compelled to reiterate that LookupDispatchAction is a fairly poor > example of the code needed to do this stuff, in my opinion. > > Jack > > I will definitely try your suggestion out, but before that, I wanted to figure out, what I had done wrong using the LookupDispatchAction. So now some direct copy & paste from my code. My ApplicationRessurces.properties looks like this: authors-form.button.forward = weiter authors-form.button.back = zurück The jsp: And finally the Action-Map: protected Map getKeyMethodMap() { Map map = new HashMap(); map.put("authors-form.button.create", "create"); map.put("authors-form.button.edit", "edit"); map.put("authors-form.button.remove", "remove"); map.put("authors-form.button.forward", "forward"); map.put("authors-form.button.back", "back"); return map; } The back-button works, while the forward doesn't. The LookupDispatchAction tries to call a method named "weiter" instead of "forward", while it calls the "back"-method as expected. Alexander - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Tiles:displaying document with tiles
Hi There is a simple solution for this : in your Tiles jsp file where you want the document displayed, add an IFrame. Then target your link to this. Any word enabled browser (IE) will then open it as a Word document within the IFrame Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 1. desember 2004 08:29 Til: [EMAIL PROTECTED] Emne: Re: Tiles:displaying document with tiles How many times should I say it? TILES ARE NOT FRAMES! It is only a way to share common code in different pages. PAGES NOT FRAMESETS!!! Uh, sorry for this yell. Anyway, you cannot display a word document as a tile. If you want to do it, you surely have to transform it into HTML, but I think it is not the case, too much complex. Maybe you could just use frames TOGETHER with Tiles, maybe using the tag. Ciao Antonio Petrelli rose maria wrote: >Hi, >Iam converting an existing frames based WebApp to >tiles based WebApp. >I have a requirement where i need to show a word >document in the browser when the user clicked on a >link. >In the old application it was a hard link to the >document.(href="../documents/termsConditions.doc>View terms) >so when the user clicks the link it will dispaly the >document in the body area(including the menu and >header frame). >I tried the same with tiles. >In the definition i mentioned like the following >athen it displayed text along with some junk >charecters in the browser. >I even tried by mentioning a a temporary jsp page and >then redirecting to the document >I got the following exception. >java.lang.IllegalStateException: Response has already >been >committed >at > . > . >Can any body suggest a solution to this problem.I >appreciate your greate help. >Thanks >Maria > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: html:form and modules
Hi You need to use the Switch action - Look in the docs Hermod -Opprinnelig melding- Fra: Diego [mailto:[EMAIL PROTECTED] Sendt: 8. november 2004 09:25 Til: Struts Users Mailing List Emne: html:form and modules Hi! I have a modularized app here, and I'm having problems with html:form tags. Is there a way to specify that the target action is on a different module? Currently I'm forced to duplicate several action mappings in the struts-config.xml files of my modules because I don't know a way to do this. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Localization
Hi Welcome to the ugly world of Struts, Commons and Internationalization. I also had this problem, but solved it by rewriting some of the Struts tags, registering my own version of DoubleConverter with BeanUtils, and a couple og other places that I have forgotten. Nevertheless it works. I had a mailthread on the dev list, but no one there seemed to think that that this was a problem (ie. "dot" vs. "comma") - I guess their English. Hermod -Opprinnelig melding- Fra: Freddy Villalba A. [mailto:[EMAIL PROTECTED] Sendt: 8. oktober 2004 13:49 Til: Struts Users Mailing List Emne: Localization Hi, I'm having troubles getting a Double property correctly processed by Struts. The problem: I'm passing values with European number format (decimal separator = '.') but Struts seems not to understand this. The bizarre part is that, instead of throwing an Exception, it assigns 0.0 to the property, therefore making it almost impossible to detect this bug. I'm almost sure my problem has to do with localization settings. How can I configure Struts so that it can process numbers following the European format instead of US'? Regards, Freddy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Struts /silly question
Hi Call ActionForward af=yourActionClass.method(maaping,form,request,response); >From your class -Opprinnelig melding- Fra: Marco Mistroni [mailto:[EMAIL PROTECTED] Sendt: 8. oktober 2004 13:33 Til: 'Struts Users Mailing List' Emne: Struts /silly question Hello all, I am sure this is a very easy question, but I cannot Figure out the solution... I have a XAction class which is in charge of calling a business delegate, Get some data and put it into the session.. Now, I want to be able to call this XAction class from different action class (to avoid duplicate the code that loads the data and put it into the Session). Question is: how do I invoke an action2 from action1, and then return control action 1? Thanx in advance and regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: "refreshing" server side infromation
Hi Use HTML META-REFRESH tag to refresh the page (from client) at a fixed interval. Hermod -Opprinnelig melding- Fra: Tito Eritja [mailto:[EMAIL PROTECTED] Sendt: 6. oktober 2004 11:24 Til: struts Emne: "refreshing" server side infromation Actually this is not a struts question, but if someone could help me I would be so grateful. I'm implementing an fleet trucking web based system. When the system has new information (positions or alarms) of the trucks, the client web page should be "repainted". The problem is that is the server who knows that some clients should be refreshed, but client side doesn't know when some position has changed and It can't just refresh itself. Would be an applet a good solution?, is there another way to solve it? Thanks in advance. tito -- _ Tito Eritja GnuPG key: FD022DAF ( http://www.keyserver.net/ ) Key fingerprint = 31E3 7E17 3C59 DEEC 51AC 635C FF95 CC05 FD02 2DAF _ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: [OT] Display Tag Library problems with Weblogic 6.1
Hei When you get a class version error, it often means that you are running under a version og Java that is lower than the one used to compile the class. Hermod -Opprinnelig melding- Fra: Joe Germuska [mailto:[EMAIL PROTECTED] Sendt: 6. oktober 2004 06:04 Til: Struts Users Mailing List Emne: [OT] Display Tag Library problems with Weblogic 6.1 I'm trying for the first time to deploy the "displaytag" library to a Weblogic 6 server, and I'm getting an annoying error which I was not getting while developing locally under Tomcat 4. Since I know a lot of Struts users use displaytag, and since I'm not subscribed to that list, I thought I'd see if anyone had any ideas. When using the "displaytag-1.0-rc1.jar" retrieved from the iBiblio Maven repository, I get this error: /Results.jsp(3): Error in using tag library uri='http://displaytag.sf.net/' prefix='display': For tag 'table', cannot load extra info class 'org.displaytag.tags.TableTagExtraInfo' probably occurred due to an error in /Results.jsp line 3: <%@ taglib uri="http://displaytag.sf.net/"; prefix="display" %> Changing the JSP so that it attempts to simply access the static 'class' member of the TableTagExtraInfo class gets me an error "class file has wrong version 48.0, should be 47.0". So... I decided to just try rebuilding the JAR from SourceForge CVS. When I put that version of the JAR in place, the above error disappears, but now I get: weblogic.servlet.jsp.JspException: (line 43): for tag 'table', property 'name' of tag handler class 'org.displaytag.tags.TableTag', the value must be a runtime expression "<%=...%>", since we cannot do an automatic conversion from "sessionScope.REGISTRATIONS" to type 'java.lang.Object' and there is no custom property editor for that type Now, this just seems ridiculous, as what conversion would need to be made to "java.lang.Object"? Also, I thought that runtime expressions could only be Strings. Well, believe it or not, using a Scriptlet to create a String whose value is "sessionScope.REGISTRATIONS" and then inlining that using an RT-expression, the thing just worked! <% String freakishWeblogic61Hack = "sessionScope.REGISTRATIONS"; %> At this point, I'm sending this out in part just to get a solution into the google-net in case anyone else comes across the same problem. But also, it just seems like a fragile little hack, and I'm wondering if anyone knows anything more about it. Is anyone using displaytag with Weblogic 6.1? Thanks for any experiences, or even just ideas about how to debug it further. Thanks, Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "In fact, when I die, if I don't hear 'A Love Supreme,' I'll turn back; I'll know I'm in the wrong place." - Carlos Santana * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Adding Tags Dynamically
Simple answer : no - Struts tags are converted to HTML tags during rendering -Opprinnelig melding- Fra: Hadeel Rashad [mailto:[EMAIL PROTECTED] Sendt: 9. september 2004 01:10 Til: 'Struts Users Mailing List'; [EMAIL PROTECTED] Emne: Adding Tags Dynamically Can I add struts tags dynamically after loading the page, using javascript probably??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: strange behavior: bug or me?
Hi Have you tried to convert this into JSTL and use c:if ? -Opprinnelig melding- Fra: Michael McGrady [mailto:[EMAIL PROTECTED] Sendt: 26. august 2004 09:32 Til: Struts Users Mailing List Emne: strange behavior: bug or me? Has anyone been getting inconsistent results with ? I am trying to use a form that sets a map for issuing (via the model) logic instructions. So, I am having, e.g., the following functionality do that for me: This generally is working, but then, even though the logonForm bean is present, will bail because the logonForm is not seen as being present. Am I just screwing up some imperceptible place, or is there a bug? Michael McGrady - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: HTML:TEXT tag and Internationalization
Hi Yeah, but why invent something new every time when the framework can do it for you ? -Opprinnelig melding- Fra: Jim Barrows [mailto:[EMAIL PROTECTED] Sendt: 24. august 2004 18:47 Til: Struts Users Mailing List Emne: RE: HTML:TEXT tag and Internationalization > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 24, 2004 4:38 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: HTML:TEXT tag and Internationalization > > > Hi > > Is there any reasonable argument as to why the html:text tag uses > default (value.toString()) formating, while the bean:write uses a > formatter that is I18N aware. This is really anoying for locales that > normally use comma as a decimal seperator. If you output the > value with > bean:write it will look OK, but displaying it in an html:text it will > use the English dot as a decimal seperator. I think that moving the > formatValue from WriteTag into TagUtils, hence making it > avaiable to all > tags would be a good idea. Then we would have a uniform formatting of > values. Then again, since html:text is usually used with a form bean, which is supposed to be all strings, you could format them yourself, either in the setter (yuck), or in the action. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Complicated select - option structure?
Hi Your best bet for this is to add a new method to you bean, which returns the first and last name concatenated into a single String value. Hermod -Opprinnelig melding- Fra: Janne Mattila [mailto:[EMAIL PROTECTED] Sendt: 24. august 2004 13:56 Til: [EMAIL PROTECTED] Emne: Complicated select - option structure? I am toying around with a simple test application. In one page user creates a new record, and picks the artist for that record with a select pulldown. My artist object has a first name and a last name separately. Initially I displayed only last name: Quite nice and compact. When I wanted to include also the last name, best I could come up with was: It seems quite complicated - is there any way to use EL and optionsCollectionTag, for example, to achieve a simpler structure? _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HTML:TEXT tag and Internationalization
Hi Is there any reasonable argument as to why the html:text tag uses default (value.toString()) formating, while the bean:write uses a formatter that is I18N aware. This is really anoying for locales that normally use comma as a decimal seperator. If you output the value with bean:write it will look OK, but displaying it in an html:text it will use the English dot as a decimal seperator. I think that moving the formatValue from WriteTag into TagUtils, hence making it avaiable to all tags would be a good idea. Then we would have a uniform formatting of values. Hermod * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Tiles set up
Hi This error comes from index.jsp -> org.apache.jsp.index_jsp._jspService(index_jsp.java:69) -Opprinnelig melding- Fra: andy wix [mailto:[EMAIL PROTECTED] Sendt: 23. august 2004 14:33 Til: [EMAIL PROTECTED] Emne: Tiles set up Hi, I am (still!) trying to set up Tiles in my Struts app. I am hoping to use Tiles definitions, but can't find any usable (working) simple examples to build from. Even the one at Cedric Dumoulin's site doesn't use this (best practice?) feature. I have tried a 'cut n shut' from the stuff bundled with Struts to no avail. As far as I can work out, to get Tiles working (with Struts already configured), you need to: Add the following to web.xml: etc... definitions-config /WEB-INF/tiles-defs.xml /WEB-INF/struts-tiles.tld /WEB-INF/struts-tiles.tld Add the following to struts-config.xml: http://jakarta.apache.org/struts/dtds/tiles-config.dtd";> Then I invoke the action forward in a jsp file with the following: Login and get this... java.lang.NullPointerException org.apache.struts.util.RequestUtils.pageURL(RequestUtils.java:1532) org.apache.struts.util.RequestUtils.computeURL(RequestUtils.java:487) org.apache.struts.taglib.html.RewriteTag.doStartTag(RewriteTag.java:99) org.apache.strutsel.taglib.html.ELRewriteTag.doStartTag(ELRewriteTag.jav a:291) org.apache.jsp.index_jsp._jspx_meth_html_rewrite_0(index_jsp.java:110) org.apache.jsp.index_jsp._jspService(index_jsp.java:69) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:324) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) All the webapp/tiles/*.jsp files are where they should be and the Struts stuff alone works OK. I have tried adding the following to struts-config with the same result. I have also read somewhere that I may need an XML parser? Can anyone spot anything obviously wrong or know of a simple up-to-date example? Thanks, Andy _ It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that the DnB NOR Group cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Tiles/Frames & Urls with Parameters
Hi Its the & sign in your URL - You have to escape it. This has to do with the XML digester and not with Struts it self Hermod -Opprinnelig melding- Fra: Pat Quinn [mailto:[EMAIL PROTECTED] Sendt: 5. juli 2004 17:46 Til: [EMAIL PROTECTED] Emne: Tiles/Frames & Urls with Parameters Hi Guys, I'm using tiles and frames together but when i try to pass a url value with parameters struts fails during startup with the following error: ERROR org.apache.commons.digester.Digester - Parse Fatal Error at line 109 column -1: Next character must be ";" terminating reference to entity "viewMode". org.xml.sax.SAXParseException: Next character must be ";" terminating reference to entity "viewMode". . " > "> "> Any Ideas? * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: Javascript error in struts validator.
Hi Might be - Did you also replace all the struts required lib files (look in the Maven project.xml file for versions). Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 13:27 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. I don't thinksk its problem with picking up the form name, I guess the method called on form to get the form name is different .. Is it different version problem?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 4:46 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi Seems it is not picking up your "formName" - Is there any misspelling ?. If you running IE (against advice from this list lately :)) you could download and use the script debugger. Or use Firefox with its script debugger plugin to debug his. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 13:10 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. I did all these, but there is a javascript error... "Object doesn't support this property".. In form.getAttributeNode("name"); Don't know what to do now? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 4:25 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi Did you regenerate the static javascript part ? - Use to get it in your page and then cut and paste it into a .js file Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 12:34 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi, I downoaded, latest nightly build which was on 1st of June... and it seems its not working.. it gives some other javascript error. function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); var formName = form.getAttributeNode("name"); //error is at this line oRequired = eval('new ' + formName.value + '_required()'); Can u tell me which version did u download.?? I need to finish of this. Regards. Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi I had the same problem - I think it was a mix of old and new struts components. What I did was get the latest nightly build, and replace everything. After that it all went away. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 10:58 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi Hermod, Thanks for the reply and the suggestion, I should upgrade only the validator ?? Or entire struts?? Regards/Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 08:38 Til: [EMAIL PROTECTED] Emne: Javascript error in struts validator. Hi All, I had posted this question, but got now answer. Please give me some hints on this. I am getting javascript error when I click on submit to validate my form. It's a simple login page with username and password. here is the code for login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Expires", "0"); %> - This is how I am including the Javascript for validation. ... Rest body code goes here. This is my validation.xml file http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> And validation-rules.xml file
SV: Javascript error in struts validator.
Hi Seems it is not picking up your "formName" - Is there any misspelling ?. If you running IE (against advice from this list lately :)) you could download and use the script debugger. Or use Firefox with its script debugger plugin to debug his. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 13:10 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. I did all these, but there is a javascript error... "Object doesn't support this property".. In form.getAttributeNode("name"); Don't know what to do now? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 4:25 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi Did you regenerate the static javascript part ? - Use to get it in your page and then cut and paste it into a .js file Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 12:34 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi, I downoaded, latest nightly build which was on 1st of June... and it seems its not working.. it gives some other javascript error. function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); var formName = form.getAttributeNode("name"); //error is at this line oRequired = eval('new ' + formName.value + '_required()'); Can u tell me which version did u download.?? I need to finish of this. Regards. Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi I had the same problem - I think it was a mix of old and new struts components. What I did was get the latest nightly build, and replace everything. After that it all went away. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 10:58 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi Hermod, Thanks for the reply and the suggestion, I should upgrade only the validator ?? Or entire struts?? Regards/Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 08:38 Til: [EMAIL PROTECTED] Emne: Javascript error in struts validator. Hi All, I had posted this question, but got now answer. Please give me some hints on this. I am getting javascript error when I click on submit to validate my form. It's a simple login page with username and password. here is the code for login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Expires", "0"); %> - This is how I am including the Javascript for validation. ... Rest body code goes here. This is my validation.xml file http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> And validation-rules.xml file
SV: Javascript error in struts validator.
Hi Did you regenerate the static javascript part ? - Use to get it in your page and then cut and paste it into a .js file Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 12:34 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi, I downoaded, latest nightly build which was on 1st of June... and it seems its not working.. it gives some other javascript error. function validateRequired(form) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); var formName = form.getAttributeNode("name"); //error is at this line oRequired = eval('new ' + formName.value + '_required()'); Can u tell me which version did u download.?? I need to finish of this. Regards. Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 3:22 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi I had the same problem - I think it was a mix of old and new struts components. What I did was get the latest nightly build, and replace everything. After that it all went away. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 10:58 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi Hermod, Thanks for the reply and the suggestion, I should upgrade only the validator ?? Or entire struts?? Regards/Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 08:38 Til: [EMAIL PROTECTED] Emne: Javascript error in struts validator. Hi All, I had posted this question, but got now answer. Please give me some hints on this. I am getting javascript error when I click on submit to validate my form. It's a simple login page with username and password. here is the code for login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Expires", "0"); %> - This is how I am including the Javascript for validation. ... Rest body code goes here. This is my validation.xml file http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> And validation-rules.xml file
SV: Javascript error in struts validator.
Hi I had the same problem - I think it was a mix of old and new struts components. What I did was get the latest nightly build, and replace everything. After that it all went away. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 10:58 Til: Struts Users Mailing List Emne: RE: Javascript error in struts validator. Hi Hermod, Thanks for the reply and the suggestion, I should upgrade only the validator ?? Or entire struts?? Regards/Guna -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 2:14 PM To: [EMAIL PROTECTED] Subject: SV: Javascript error in struts validator. Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 08:38 Til: [EMAIL PROTECTED] Emne: Javascript error in struts validator. Hi All, I had posted this question, but got now answer. Please give me some hints on this. I am getting javascript error when I click on submit to validate my form. It's a simple login page with username and password. here is the code for login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Expires", "0"); %> - This is how I am including the Javascript for validation. ... Rest body code goes here. This is my validation.xml file http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> And validation-rules.xml file
SV: Javascript error in struts validator.
Hi If you look at jsp (view-source) you will probably notice that the jscript method (required) has been prefixed with the formname. Upgrade to the latest build. This was an issue with validator. Hermod -Opprinnelig melding- Fra: Kote, Nijaguna Sangankal [mailto:[EMAIL PROTECTED] Sendt: 2. juli 2004 08:38 Til: [EMAIL PROTECTED] Emne: Javascript error in struts validator. Hi All, I had posted this question, but got now answer. Please give me some hints on this. I am getting javascript error when I click on submit to validate my form. It's a simple login page with username and password. here is the code for login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-control", "no-cache, no-store"); response.setHeader("Expires", "0"); %> - This is how I am including the Javascript for validation. ... Rest body code goes here. This is my validation.xml file http://jakarta.apache.org/commons/dtds/validator_1_1.dtd";> And validation-rules.xml file
SV: How can i put a dynamic value to an ?
Hi import the struts-el tag library and the tld for it - Then you can ust jstl syntax. Right now you are using the standard struts tag library Hermod -Opprinnelig melding- Fra: John Antonakos [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 12:30 Til: Struts Users Mailing List Emne: Re: How can i put a dynamic value to an ? just out of curiosity, what is html-el ? i use JSTL, but even in that, i cannot do this: "/> John - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 1:26 PM Subject: SV: How can i put a dynamic value to an ? Hi use html-el and then : -Opprinnelig melding- Fra: John Antonakos [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 12:17 Til: [EMAIL PROTECTED] Emne: How can i put a dynamic value to an ? I want to do something like the following: "/> is this possible ? The above statement produces an error. Can i use another statement to do this thing ? Give a dynamic value, coming from another bean, to an field ? Regards, John * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SV: How can i put a dynamic value to an ?
Hi use html-el and then : -Opprinnelig melding- Fra: John Antonakos [mailto:[EMAIL PROTECTED] Sendt: 25. juni 2004 12:17 Til: [EMAIL PROTECTED] Emne: How can i put a dynamic value to an ? I want to do something like the following: "/> is this possible ? The above statement produces an error. Can i use another statement to do this thing ? Give a dynamic value, coming from another bean, to an field ? Regards, John * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]