RE: [shale] extending clay
Hi Did you ever do this Gary? Hermod -Original Message- From: Opstvedt, Hermod Sent: Monday, June 12, 2006 7:39 AM To: user@struts.apache.org Subject: RE: [shale] extending clay Hi Sounds like a great plugin. I guess one should wait until it is at a V1 stage before commiting (At least that is what I have done when committing to opensource), but if you someone to help you test it I would be more than willing. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 7:07 PM To: Struts Users Mailing List Subject: Re: [shale] extending clay On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Hi What would be really nice is if you would make the plugin publically available. I was intending to make it available. I had intended to get some basic functionality working before I did so. Right now it is at the stage where it visits your eclipse project and parses all the clay config files. It attempts every xml file even those that are included in jars. If it is not a clay xml it just keeps chugging along. The reason I chose this approach over having to have the user point to clay configs is that I wanted it to 'just work'. Based on what it find it creates a tree view that mimics the inheritance of the components. Each node has an icon and a label (the jsfid) which have some pretty stock images (folder, resource) next to them. I was hoping to be able to incorporate more descriptive images, but images are not my speciality unfortunately. Maybe after I donate a graphic oriented person could enhance them. When you click a node the description from the clay xml is show below the tree. You can drag a component from the tree into a clay xml. At this point you enter a wizard that asks whether you want to create a new component extending the one that you dragged or whether you want to use the dragged component as a child element. You can also edit the description - the text area defaults to the description of the component you dragged. The wizard is not finished yet and I wanted it to be able to optionally run through the gamet of adding children, adding listeners, validators, etc. When you finish the wizard the component is dropped as xml into your config file. Eclipse resource change listeners are registered to make sure that when you save, delete, etc the visual component tree is updated. I also have an xml editor that supports auto complete based on the available clay components in your workspace. However, currently this has yet to be completely incorporated. I am fairly new to contributing to open source projects. Should I contribute the code in it's non-working state or wait until I get basic working plugin before I donate? Thanks, Ryan - 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: Struts validation question
Hi You also need to put in ... onSubmit=return validateValidationForm(this); in your html:form tag. Also: you should name your forms like: validationForm, not ValidationForm. Hermod -Original Message- From: red phoenix [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 9:38 AM To: user@struts.apache.org Subject: Struts validation question I want to use struts validation,when field is invalidate,my program can raise information,like follows: Username is required. Password is required. Phone Number is required. I know it's server-side validation,I want to use client-side validation,so I put some code in my JSP files: /html:form html:javascript formName=ValidationForm cdata=false / /body When I run this JSP and put some invalidation in fields,I find Javascript don't work at all,it still raise follows: Username is required. Password is required. Phone Number is required. My JDK is 1.6,tomcat5.5.17 and struts is 1.2.9,I want to know if struts is 1.2.9 change the method of supporting client-side validation? Any idea will be appreciated! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting Language through the browser?
Hi You call the Action (as shown below). If you want to see it in action, look at www.os-seilforening.org Hermod -Original Message- From: Fredrik Andersson [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:07 PM To: Struts Users Mailing List Subject: Re: Setting Language through the browser? ok, nice =) That is kinda what I would like to do. I want to have 3 images on the page and when you click on one of them the language changes to the language coresponding to the image (in other words 3 flag images). How could I do that in an easy way on a page? Do I have to make a class or can I do it in jsp? Den 6/27/2006, skrev C. Grobmeier [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fredrik Andersson wrote: Hi all I have manage to get the i18n internalization to work using the properties files. now I would want to be able to change the language through the browser (by clicking on a flag). How can I do this? Tips and pointers is appreciated =) I wrote a cheap setLocale-Action. Maybe not the best approach, but it works for me. Only the redirect to language-switched page is ugly :-) public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { /* Switch content type*/ String locale = request.getParameter( ConstantsInterface.REQ_LOCALE ); if( locale.equalsIgnoreCase( DE ) ) { setLocale( request, Locale.GERMAN ); } if( locale.equalsIgnoreCase( EN) ) { setLocale( request, Locale.ENGLISH ); } return mapping.findForward( languageswitched ); } protected void setLocale( HttpServletRequest request, Locale locale ) { HttpSession session = request.getSession(false); if (session != null) { session.setAttribute(ComponentConstants.LOCALE_KEY, locale); } } -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEoQ9+kv8rKBUE/T4RAp7jAJ414uPD5LjtMqT7iiItgkk5dGOMEgCfe555 WWSyqIn8w3/kWqC8UWabqps= =5f60 -END PGP SIGNATURE- - 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 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting Language through the browser?
Hi This is the one that I am using, and it works great. Hermod -Original Message- From: C. Grobmeier [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:23 PM To: Struts Users Mailing List Subject: Re: Setting Language through the browser? * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Struts Extras already provides a setLocale action: http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html hu great. thanks for the tip. this action forwards to the originating page. i will improve my webapp too :-) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEoRUZkv8rKBUE/T4RAlp8AKCB/jP90SrT0/x0dbEXd1vW0+FgUACfc8Mi dB6/kaNFIziRAi3TG6heWgY= =mpe0 -END PGP SIGNATURE- - 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax:autocomplete tag
Hi You are not setting any values in the request - How can the list be populated if you don't supply any values Hermod -Original Message- From: Sony Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 1:09 PM To: user@struts.apache.org Subject: ajax:autocomplete tag Hi, I am a newbie in ajax. I want to use ajax in my application. Let me explain my requirement : when I enter a character in the text field i have to call an action. Inside my action i have to load all the users and send it back to jsp so that I can display. I am able to call the action class from my jsp. But my problem is how will I set the list of users to response.Can anyone help me please What to do in my action to show the Userlist in jsp ? Please it is very urgent Here is my jsp code : form action=taskSave input id=username name=username type=text size=30 class=form-autocomplete / /form ajax:autocomplete baseUrl=/enterpriseUI/userAjaxComplete.do source=username target=username parameters=username={username} className=testcomplete minimumCharacters=1/ Here is my Action class code : public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { logger.info(** Inside ajaxAutoCompleteAction ** ); try{ ArrayList usersList = (ArrayList)UserManager.loadAll(); // return new AjaxXmlBuilder().addItems(usersList, model, make).toString(); }catch(BusinessObjectException e){ e.printStackTrace(); } return mapping.findForward(success); } Thanks in advance Sony Thomas - 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ajax:autocomplete tag
Hi That was what I ment - You don't return any values from your action. You need to write the values to the response (supplied by the action), and then return null. The documentation at http://ajaxtags.sourceforge.net shows you how, or search for Struts and returning a file for instance. Hermod -Original Message- From: Sony Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 1:55 PM To: Struts Users Mailing List Subject: Re: ajax:autocomplete tag Hi Hermod, I am setting the value entered in the textbox parameters=username={username} username is my textfield name. The problem is How will I return the username list back to jsp from action. It is very very urgent. can anyone help me please sony [EMAIL PROTECTED] wrote: Hi You are not setting any values in the request - How can the list be populated if you don't supply any values Hermod -Original Message- From: Sony Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 1:09 PM To: user@struts.apache.org Subject: ajax:autocomplete tag Hi, I am a newbie in ajax. I want to use ajax in my application. Let me explain my requirement : when I enter a character in the text field i have to call an action. Inside my action i have to load all the users and send it back to jsp so that I can display. I am able to call the action class from my jsp. But my problem is how will I set the list of users to response.Can anyone help me please What to do in my action to show the Userlist in jsp ? Please it is very urgent Here is my jsp code : form action=taskSave input id=username name=username type=text size=30 class=form-autocomplete / /form ajax:autocomplete baseUrl=/enterpriseUI/userAjaxComplete.do source=username target=username parameters=username={username} className=testcomplete minimumCharacters=1/ Here is my Action class code : public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { logger.info(** Inside ajaxAutoCompleteAction ** ); try{ ArrayList usersList = (ArrayList)UserManager.loadAll(); // return new AjaxXmlBuilder().addItems(usersList, model, make).toString(); }catch(BusinessObjectException e){ e.printStackTrace(); } return mapping.findForward(success); } Thanks in advance Sony Thomas - 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 anti 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: [shale] extending clay
Hi Sounds like a great plugin. I guess one should wait until it is at a V1 stage before commiting (At least that is what I have done when committing to opensource), but if you someone to help you test it I would be more than willing. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 7:07 PM To: Struts Users Mailing List Subject: Re: [shale] extending clay On 6/7/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Hi What would be really nice is if you would make the plugin publically available. I was intending to make it available. I had intended to get some basic functionality working before I did so. Right now it is at the stage where it visits your eclipse project and parses all the clay config files. It attempts every xml file even those that are included in jars. If it is not a clay xml it just keeps chugging along. The reason I chose this approach over having to have the user point to clay configs is that I wanted it to 'just work'. Based on what it find it creates a tree view that mimics the inheritance of the components. Each node has an icon and a label (the jsfid) which have some pretty stock images (folder, resource) next to them. I was hoping to be able to incorporate more descriptive images, but images are not my speciality unfortunately. Maybe after I donate a graphic oriented person could enhance them. When you click a node the description from the clay xml is show below the tree. You can drag a component from the tree into a clay xml. At this point you enter a wizard that asks whether you want to create a new component extending the one that you dragged or whether you want to use the dragged component as a child element. You can also edit the description - the text area defaults to the description of the component you dragged. The wizard is not finished yet and I wanted it to be able to optionally run through the gamet of adding children, adding listeners, validators, etc. When you finish the wizard the component is dropped as xml into your config file. Eclipse resource change listeners are registered to make sure that when you save, delete, etc the visual component tree is updated. I also have an xml editor that supports auto complete based on the available clay components in your workspace. However, currently this has yet to be completely incorporated. I am fairly new to contributing to open source projects. Should I contribute the code in it's non-working state or wait until I get basic working plugin before I donate? Thanks, Ryan - 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: [shale] extending clay
Hi What would be really nice is if you would make the plugin publically available. Hermod -Original Message- From: Ryan Wynn [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 5:11 AM To: Struts User Subject: [shale] extending clay I'm writing an eclipse plugin to create a visual builder for clay components. What I would like to do is extend the ClayXmlParser to add a rule that will capture the description from the xml and set in into the ComponentBean. The reason I want to be able to do this is to display the description of each component in the visual builder. Currently, the ClayXmlParser's configureRules method is protected which is a simple hook for me. However, the digester instance is private and there are no public/protected accessors. I have had to work around the use of private instance variables in a couple other scenarios in trying to build this plugin. I was just wondering if anyone was opposed to changing some of these instance variables to protected or adding protected accessors. Thanks, Ryan - 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 anti virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[Shale] Dialog statemachine and errorconditions
Hi Having been fiddling around with the Shale dialogs, there is one thing that I feel could be improved on. The way it is now, if there is an error situation or if the user navigates away from a dialog and later on navigates to say the start of the dialog, an exception is raised. There is no way out of this, short of restarting the server. I think a more elegant sultion would be if the state-engine could be queried by for instance the bean that kicks off the dialog sequence. This way one could present a more meaningful and customizeable feedback to the user. 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]
RE: [Shale] Dialog statemachine and errorconditions
Hi I'll do that. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Tuesday, May 09, 2006 12:23 PM To: Struts Users Mailing List Subject: Re: [Shale] Dialog statemachine and errorconditions On 5/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Having been fiddling around with the Shale dialogs, there is one thing that I feel could be improved on. The way it is now, if there is an error situation or if the user navigates away from a dialog and later on navigates to say the start of the dialog, an exception is raised. There is no way out of this, short of restarting the server. I think a more elegant sultion would be if the state-engine could be queried by for instance the bean that kicks off the dialog sequence. This way one could present a more meaningful and customizeable feedback to the user. That's an interesting idea. Could you please file an Improvement ticket in JIRA to capture this idea? http://issues.apache.org/struts/ Hermod 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]
RE: Acegi with shale and clay
Hi Have you tried to define a navigation rule, and add redirect/ 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: bean id=filterInvocationInterceptor class=org.acegisecurity.intercept.web.FilterSecurityInterceptor property name=authenticationManager ref bean=authenticationManager / /property property name=accessDecisionManager ref local=httpRequestAccessDecisionManager / /property property name=objectDefinitionSource value CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /secure/**=ROLE_USER /**=ROLE_ANONYMOUS /value /property property name=observeOncePerRequest value=false/ /bean 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: filter-mapping filter-nameAcegi Filter Chain Proxy/filter-name url-pattern/*/url-pattern dispatcherFORWARD/dispatcher dispatcherREQUEST/dispatcher /filter-mapping 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]
RE: Shale Clay HTML layout
Hi The use of sessionid has nothing to do with these. It is a functionality of the applicationserver. If the browser does not support cookies, it will append the sessionid to the URI regardsless of what the application is implemented with. Shale/Clay by it self does not govern this if so was not the case anyway, because you are using a faces implementation - either the Sun ref. or MyFaces. Hermod -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Kevin Sent: Wednesday, April 05, 2006 11:44 PM To: user@struts.apache.org Subject: Shale Clay HTML layout Hello, I was wondering if anyone could answer the following. If we were to implement a Clay Tile-like HTML layout thus binding JSF components to HTML tags would the result be similar to .do,.faces,.jsp where a servlet-container will tack on a JSessionId or does the use of Clay alleviate that. I am asking because I have been looking for a way to remove the appended JSessionId. I know if cookies are active the JSessionID is not appended but I believe web crawlers reject cookies. Thanks, Kevin - 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]
RE: [Shale] Backingbean beeing created twice
Hi And you are absolutly right : 1st Pass: ClassT.newInstance0() line: 350 ClassT.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 ClassT.newInstance0() line: 350 ClassT.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) 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,
RE: Building SHALE??? The instructions don't work!
Hi I am using the Maven build and have not run into any problems at all. Hermod -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 2:12 AM To: Struts Users Mailing List Subject: Re: Building SHALE??? The instructions don't work! On 3/27/06, Hiller, Dean [EMAIL PROTECTED] wrote: Cool, you rock! I saw references to this mysterious maven repository but could not find it as the docs I was looking at did not have references to it. Just be aware that Shale and Maven 1 don't get along very well. The Maven build is primarily there to build the website. I haven't checked lately if the jars it produces match the ones from the Ant build. I think Gary mentioned that an XML file or two is missing from one of them, and most of the unit tests are disabled. Let us know if you still need help. At this point I assume one of: Ant, Maven, nightly builds or snapshots was sufficient. :) Apologies once again for the difficulties; we'll work on the htmlunit dependency and the docs to make this easier. -- 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 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]
RE: Validation Problem
Hi Howecome you have validate=false? If you want validation, then set it to true Hermod -Original Message- From: Thibaut [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:41 AM To: user@struts.apache.org Subject: Validation Problem Hi I have all the time the same problem and there is a week i try to solve it. It should be trivial but i can't see. None of my validation work ! I now use Struts 1.2.8 with module. The application use to work with Struts 1.0. In the Struts-config.xml of the user module : actionpath=/insertANewCandidate type=com.cvdunet.controller.action.UpdateResponsesForRequestAction input=missions_copyMailToBasket.jsp name=candidateForm scope=request validate=false forward name=success_from_tool path=/close.jsp/ forward name=success path=/mycv.jsp/ /action ... controller pagePattern=$M$P maxFileSize=2M inputForward=true / message-resources parameter=com.cvdunet.controller.ApplicationResources/ In the action : CandidateForm candidateForm = (CandidateForm) form; ActionMessages errors = candidateForm.validate(); if (!errors.isEmpty()) { this.saveErrors(request, errors); return mapping.getInputForward(); } And in the form : public ActionMessages validate() { ActionMessages errors = new ActionMessages(); ActionMessage error = new ActionMessage(CandidateConstant.NO_BASKET); errors.add(ActionMessages.GLOBAL_MESSAGE, error); return errors; } Can anyone help ? Thank you -- Thibaut Lassalle - 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: [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]
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 component jsfid=/symbols/page1.xml extends=basePage 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 -- context-param param-name org.apache.shale.clay.FULLXML_CONFIG_FILES /param-name param-value classpath*:org/apache/shale/usecases/symbols/clay-tiles-config.xml /param-value /context-param 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. component jsfid=/symbols/page1.xml extends=basePage symbols set name=@title value=Page 1/ set name=@bodyContent value=page1Panel/ set name=@logo value=http://myfaces.apache.org/images/myfaces-logo.png/ set name=@leftContent value=page1LeftPanel/ /symbols /component 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 !-- Clay Common Configuration Resources -- context-param param-name org.apache.shale.clay.COMMON_CONFIG_FILES /param-name param-value /WEB-INF/clay-config.xml, /WEB-INF/clay-symbols-config.xml /param-value /context-param The basePage defines default symbol values: !-- Base layout defintion -- component jsfid=basePage extends=clay attributes set name=clayJsfid value=/symbols/layout.html / /attributes symbols set name=@title value=Default Title/ set name=@leftContent value=page3LeftPanel/ set name=@headercontent value=/symbols/header.html/ set name=@logo value=http://struts.apache.org/images/struts.gif/ set name=@bodycontent value=space/ set name=@footercontent value=footerPanel/ /symbols /component And, the base layout is a generic template: html headtitle@title/title/head body form table border=1 tr td id=leftContent rowspan=3span jsfid=clay clayJsfid=@leftContent allowBody=falseLeftbr/Content/span/td td id=headerContentspan jsfid=clay clayJsfid=@headercontent allowBody=falseHeaderbr/Content/span/td /tr tr td id=bodyContentspan jsfid=clay clayJsfid=@bodycontent allowBody=falseBodybr/Content/span/td /tr tr td id=footerContentspan jsfid=clay clayJsfid=@footercontent allowBody=falseFooterbr/Content/span/td /tr /table /form /body /html 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
RE: [shale] Clayforeach tag
Hi I tested it and I am getting a weird result: My main page gets rendered several times and the block for the clayForEach is not rendered. The set up is a working Clay template with the following block in it: span jsfid=clayForEach bodyJsfid=news var=myvar allowBody=false value=[EMAIL PROTECTED] div class=story h3Story Title/h3 pStory body - reduced for simplicity/p /div /span a clay template htmlfile news.html: div class=story h3span jsfid=outputText value=[EMAIL PROTECTED] /Story Title/h3 pspan jsfid=outputText value=[EMAIL PROTECTED] /Story body/p /div and in my clay-config.xml: component jsfid=news extends=clay id=news attributes set name=clayJsfid value=/pages/news.html / /attributes /component the method signature for otherTopNews is : public List getOtherTopNews() Debugging this, I have added an extra catch in the ClayAmalgam.clayForEach method, catching the case where vi is null at the end. Here I print out the type of valueList (which should equal the returnvalue of otherTopNews i.e List). It states that it is of type String!! I have tried to figure out where it changes from a List to a String, but I am at a loss. Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 3:30 PM To: Struts Users Mailing List Subject: 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: h3span jsfid=outputText value=#{myvar.head} /h3 pspan jsfid=outputText value=#{myvar.body} /p 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: h3span jsfid=outputText value=[EMAIL PROTECTED] /h3 pspan jsfid=outputText value=[EMAIL PROTECTED] /p span jsfid=clayForeach bodyJsfid=/news.xml var=myvar allowBody=false bla bla /span You will need a value attribtue to bind to which can be a List, Map or Array types. This is a ValueBinding expression. span jsfid=clayForeach bodyJsfid=/news.xml var=myvar value=[EMAIL PROTECTED] allowBody=false Gary and then do something like this: span jsfid=clayForeach bodyJsfid=/news.xml var=myvar allowBody=false bla bla /span -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
RE: [shale] Clayforeach tag
Hi While doing so I discovered that I had a Typo: value=[EMAIL PROTECTED] Note the wrong ending. Changing that to - and it works :) Sorry for shooting to early. The behaviour was still weird though. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 3:42 PM To: Struts Users Mailing List Subject: RE: [shale] Clayforeach tag From: [EMAIL PROTECTED] Hi I tested it and I am getting a weird result: My main page gets rendered several times and the block for the clayForEach is not rendered. The set up is a working Clay template with the following block in it: span jsfid=clayForEach bodyJsfid=news var=myvar allowBody=false value=[EMAIL PROTECTED] div class=story h3Story Title/h3 pStory body - reduced for simplicity/p /div /span ... Debugging this, I have added an extra catch in the ClayAmalgam.clayForEach method, catching the case where vi is null at the end. Here I print out the type of valueList (which should equal the returnvalue of otherTopNews i.e List). It states that it is of type String!! I have tried to figure out where it changes from a List to a String, but I am at a loss. I believe that the problem is in the value attribute. The clayForEach method is not handling the symbol replacement. If you hard code the managed bean name in the value, it should work. #{mybean.otherTopNews} Please write this one up as a bugzilla item. Hermod Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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] Clayforeach tag
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? 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]
RE: [shale] Clayforeach tag
Hi So in the case where bodyJsfid is a html template, I could do something like this: template jsdid=/news.xml: h3span jsfid=outputText value=#{myvar.head} /h3 pspan jsfid=outputText value=#{myvar.body} /p and then do something like this: span jsfid=clayForeach bodyJsfid=/news.xml var=myvar allowBody=false bla bla /span ?? Hermod -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: [EMAIL PROTECTED] 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]
RE: [shale] Rendered attribute full HTML CLay
Hi I have run into a peculiar problem with fullt html Clay. Scenario: span jsfid=form rendered=somecriteria table border=0 tr td rowspan=3 span jsfid=contactTable table class=contacts tr class=contactsHeader td Contacts /td /tr tr class=contactsRow1 td a href=#ABC Company/a /td /tr tr class=contactsRow2 td a href=#XYZ Company/a /td /tr /table /span /td /tr /table /span If somecriteria is true, a form is rendered with a table inside. However if somecriteria is false the form is not rendered, but the table is! I am wondering if this is as intended, or if the rendered attribute somehow gets lost after the form. 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 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]
RE: [shale] Images and css being rejected
Hi Until it is fixed, you also need to add any mapping for that you might want for images( gifs,jpg,png) etc. -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:28 PM To: Struts Users Mailing List Subject: Re: [shale] Images and css being rejected From: Richard Wallace [EMAIL PROTECTED] That's the obvious workaround. I was hoping for something a bit more definitive tho. I saw bug 37867 on bugzilla, but there doesn't seem to be a solution and it's been quiet for quite a while. I'll comment on it there as well and see what happens. Some additional observations are below. The reason it doesn't show up in the use-cases is that all the images used there are on external URLs, like the struts logo. All the css is inlined within the pages. So there really are no resources that are being loaded by the browser from the webapp itself. What really confuses me is that it still happens even if I remove the filter from the chain configuration, as if Shale is inserting a default filtering chain rule if one doesn't exist. So, maybe the bug is that Shale is inserting it regardless if one exists or not, so the configuration is being overridden by whatever Shale inserts by default. I haven't looked at the code yet, but that's what it looks like from observation. I'm pretty sure that your problem is with the Clay file watch dog filter chains command. It extends the ContextRelativePathFilter. I was being lazy and thought I could reuse the includeds patterns stuff. It looks like it's behaving like the other. Try adding: command className=org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter includes=\S*\.faces,\S*\.html,\S*\.jsp, \S*\.css/ Or, just remove it until it's fixed. Gary Rich [EMAIL PROTECTED] wrote: Hi If you had searched the list, you would have found my posting on this. Anyway, what you have to do is in the web.xml filtermapping for Shale do this comment this: add this: shale *.xml shale *.html shale *.faces Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 6:46 PM To: Struts Users Mailing List Subject: [shale] Images and css being rejected I'm having a problem with pages loading images and css files. I turned up the debugging on log4j and when the css files and images are requested by the browser nothing is returned. I checked the logs and they're saying: 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css) 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif) 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) I looked through all the configuration files and found in the chain-config.xml: className=org.apache.shale.application.ContextRelativePathFilter includes=\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp excludes=\S*\.jsp,\S*\.jspf/ I added \S*\.css to the includes with no change. I tried to comment this out as well, so nothing would get filtered, with no luck. Any ideas what I'm missing this time? Thanks, Rich - 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
RE: [shale] Images and css being rejected
Hi Add javascript (\S*\.js) to that also - as I painfully discovered when my Tree2 node toggling stopped working. Hermod -Original Message- From: Opstvedt, Hermod Sent: Tuesday, January 31, 2006 10:24 AM To: user@struts.apache.org Subject: RE: [shale] Images and css being rejected Hi Until it is fixed, you also need to add any mapping for that you might want for images( gifs,jpg,png) etc. -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:28 PM To: Struts Users Mailing List Subject: Re: [shale] Images and css being rejected From: Richard Wallace [EMAIL PROTECTED] That's the obvious workaround. I was hoping for something a bit more definitive tho. I saw bug 37867 on bugzilla, but there doesn't seem to be a solution and it's been quiet for quite a while. I'll comment on it there as well and see what happens. Some additional observations are below. The reason it doesn't show up in the use-cases is that all the images used there are on external URLs, like the struts logo. All the css is inlined within the pages. So there really are no resources that are being loaded by the browser from the webapp itself. What really confuses me is that it still happens even if I remove the filter from the chain configuration, as if Shale is inserting a default filtering chain rule if one doesn't exist. So, maybe the bug is that Shale is inserting it regardless if one exists or not, so the configuration is being overridden by whatever Shale inserts by default. I haven't looked at the code yet, but that's what it looks like from observation. I'm pretty sure that your problem is with the Clay file watch dog filter chains command. It extends the ContextRelativePathFilter. I was being lazy and thought I could reuse the includeds patterns stuff. It looks like it's behaving like the other. Try adding: command className=org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter includes=\S*\.faces,\S*\.html,\S*\.jsp, \S*\.css/ Or, just remove it until it's fixed. Gary Rich [EMAIL PROTECTED] wrote: Hi If you had searched the list, you would have found my posting on this. Anyway, what you have to do is in the web.xml filtermapping for Shale do this comment this: add this: shale *.xml shale *.html shale *.faces Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 6:46 PM To: Struts Users Mailing List Subject: [shale] Images and css being rejected I'm having a problem with pages loading images and css files. I turned up the debugging on log4j and when the css files and images are requested by the browser nothing is returned. I checked the logs and they're saying: 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css) 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif) 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) I looked through all the configuration files and found in the chain-config.xml: className=org.apache.shale.application.ContextRelativePathFilter includes=\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp excludes=\S*\.jsp,\S*\.jspf/ I added \S*\.css to the includes with no change. I tried to comment this out as well, so nothing would get filtered, with no luck. Any ideas what I'm missing this time? Thanks, Rich - 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.
RE: [Shale] Error in remoting
Hi It is (at least) Firefox that is doing this. What it is sticking in is a Norwegian formatted date. Tomcat should have understood this, getting the locale from the request prior to doing this. So I thought that may this might have something to do with the remoting support in Shale after all. This lead me to the fact that i did not havedispatcherREQUEST/dispatcher dispatcherFORWARD/dispatcher defined on my shale filter-mapping. Adding them made the error og away. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 8:52 AM To: user@struts.apache.org Subject: RE: [Shale] Error in remoting Hi I'll have to figure which of my browsers cause this (IE, Firefox or Opera) and report it to them. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Friday, January 27, 2006 5:58 PM To: Struts Users Mailing List Subject: Re: [Shale] Error in remoting On 1/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have noticed the following errors in my Tomcat logs: java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader( CoyoteRequest.java:1887) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader( CoyoteRequestFacade.java:428) at org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince( AbstractResourceProcessor.java:343) Going through the Javadocs, it may lok like it is a Tomcat error, but I wanted to check with you guys first and here what you think. In the javadocs for CoyoteRequest.getDateHeader it does say: Throws: java.lang.IllegalArgumentException - if the specified header value cannot be converted to a date Now the question is: How does the If-Modified-Since parameter in the request get set? In this case Tomcat does noe understand: fr, 27 jan 2006 08:45:27 GMT The If-Modified-Since header is set for you by the browser, if you had transmitted a Date header on the previous version of the same URL, and if you have configured your browser for caching. The required format is defined in the HTTP spec[1], section 3.3, and your string doesn't match -- so Tomcat would be correct in reporting an error here. The day abbreviation would Hermod Craig [1] http://rfc-editor.org/rfc/rfc2616.txt * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: [shale] Tomahawk components
Hi I'd be willing to pitch in here. I have already gone through some of them, also finding that jsCookMenu does not work in Clay (actually it does'nt work at all at the moment according to the Myfaces list). Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 5:43 PM To: Struts Users Mailing List Subject: Re: [shale] Tomahawk components Ryan Wynn wrote: I would recommend that the ticket on shale bugzilla be closed in favor of the ticket on myfaces jira ticket http://issues.apache.org/jira/browse/MYFACES-806 because I think it was agreed that this file would reside inside tomahawk.jar instead of within shale. The concensus on the shale ticket http://issues.apache.org/bugzilla/show_bug.cgi?id=37024 was that any view technology that supports clay would provide it's own config file. In addition to being closed the shale ticket should probably reference http://issues.apache.org/jira/browse/MYFACES-806 I agree (for what it's worth). The last note on that issue for MyFaces was that Sean was going to ask Gary to take a look at the file and if he got the thumbs up that he'd commit it. So, what's the word Gary? Maybe someone should put up a page showing examples of the usage of the components like at http://www.irian.at/myfaces/home.jsf. I might be able to get something started but I'm not sure of exactly how to do them all in Clay (mostly I'm not sure how to use the validators and some other things in Clay, but it would probably be a good learning experience). Rich - 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: [shale] Tomahawk components
Hi I'll try and get started on that this evening. Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 5:23 PM To: Struts Users Mailing List Subject: RE: [shale] Tomahawk components From: [EMAIL PROTECTED] Hi I'd be willing to pitch in here. I have already gone through some of them, also finding that jsCookMenu does not work in Clay (actually it does'nt work at all at the moment according to the Myfaces list). I posted a testbed yesterday on this ticket : http://issues.apache.org/jira/browse/MYFACES-806. I only have a few examples and several don't work due to javascript errors. Please add any examples you might have to help document which are supported. Hermod Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: [Shale] Error in remoting
Hi I'll have to figure which of my browsers cause this (IE, Firefox or Opera) and report it to them. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Friday, January 27, 2006 5:58 PM To: Struts Users Mailing List Subject: Re: [Shale] Error in remoting On 1/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi I have noticed the following errors in my Tomcat logs: java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader( CoyoteRequest.java:1887) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader( CoyoteRequestFacade.java:428) at org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince( AbstractResourceProcessor.java:343) Going through the Javadocs, it may lok like it is a Tomcat error, but I wanted to check with you guys first and here what you think. In the javadocs for CoyoteRequest.getDateHeader it does say: Throws: java.lang.IllegalArgumentException - if the specified header value cannot be converted to a date Now the question is: How does the If-Modified-Since parameter in the request get set? In this case Tomcat does noe understand: fr, 27 jan 2006 08:45:27 GMT The If-Modified-Since header is set for you by the browser, if you had transmitted a Date header on the previous version of the same URL, and if you have configured your browser for caching. The required format is defined in the HTTP spec[1], section 3.3, and your string doesn't match -- so Tomcat would be correct in reporting an error here. The day abbreviation would Hermod Craig [1] http://rfc-editor.org/rfc/rfc2616.txt * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: [shale] Images and css being rejected
Hi If you had searched the list, you would have found my posting on this. Anyway, what you have to do is in the web.xml filtermapping for Shale do this comment this: !-- Shale Application Controller Filter Mapping -- !-- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping -- add this: !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern*.xml/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern*.html/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern*.faces/url-pattern /filter-mapping Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 6:46 PM To: Struts Users Mailing List Subject: [shale] Images and css being rejected I'm having a problem with pages loading images and css files. I turned up the debugging on log4j and when the css files and images are requested by the browser nothing is returned. I checked the logs and they're saying: 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css) 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif) 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif) 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] org.apache.shale.application.AbstractRegExpFilter (AbstractRegExpFilter.java:203) - reject(not include) I looked through all the configuration files and found in the chain-config.xml: command className=org.apache.shale.application.ContextRelativePathFilter includes=\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp excludes=\S*\.jsp,\S*\.jspf/ I added \S*\.css to the includes with no change. I tried to comment this out as well, so nothing would get filtered, with no luck. Any ideas what I'm missing this time? Thanks, Rich - 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]
[Shale] Error in remoting
Hi I have noticed the following errors in my Tomcat logs: java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(CoyoteRequest.java:1887) at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(CoyoteRequestFacade.java:428) at org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince(AbstractResourceProcessor.java:343) Going through the Javadocs, it may lok like it is a Tomcat error, but I wanted to check with you guys first and here what you think. In the javadocs for CoyoteRequest.getDateHeader it does say: Throws: java.lang.IllegalArgumentException - if the specified header value cannot be converted to a date Now the question is: How does the If-Modified-Since parameter in the request get set? In this case Tomcat does noe understand: fr, 27 jan 2006 08:45:27 GMT 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]
RE: [shale] ClassNotFoundException: IgnoreBuilderRule
Hi I have to do that all the time with Shale/Clay. Otherwise I always get the old stuff. Just changing a html/xml file and believe it will get recompiled will hurt you. Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Thursday, January 26, 2006 10:29 PM To: Struts Users Mailing List Subject: Re: [shale] ClassNotFoundException: IgnoreBuilderRule Huh, weird. I had to shutdown tomcat, remove the webapp from $TOMCAT_HOME/webapps and $TOMCAT_HOME/work/Catalina/localhost to fix the problem. Thanks again, Rich Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I updated to use the nightly from this morning and I'm getting the following when trying to load a page: afterPhase () - RESTORE_VIEW(1) beforePhase () - RENDER_RESPONSE(6) Jan 26, 2006 9:59:10 AM org.apache.shale.clay.faces.ClayViewHandler renderView INFO: Clay template renderView for /default.jsp Jan 26, 2006 9:59:10 AM org.apache.shale.clay.config.beans.ComponentConfigBean$WatchDog refresh INFO: Loading file /localhost/shale-clay-example/default.html. Jan 26, 2006 9:59:10 AM org.apache.shale.clay.config.ClayTemplateParser generateElement INFO: Loading clay HTML template /default.html Jan 26, 2006 9:59:10 AM org.apache.commons.digester.Digester startElement SEVERE: Begin event threw exception java.lang.ClassNotFoundException: org.apache.shale.clay.parser.builder.chain.IgnoreBuilderRule at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13 38) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:11 87) at org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204) at org.apache.commons.digester.Rule.begin(Rule.java:152) I looked at the shale-clay.jar in the dist and sure enough, there is no IgnoreBuilderRule class in there. I looked in SVN and it was removed from there as well. Any ideas why I'm running into this? I think you have two shale-clay.jar files in your class path. This class was removed but the xml file that defines the chain it is used in is in the classpath under the same package (shale-builder-config.xml). Rich 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] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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]
RE: [shale] Tomahawk components
Hi I have tested quite a bit of them, and so far I have only found that JSCookMenu does not work. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Thursday, January 26, 2006 11:51 PM To: Struts Users Mailing List Subject: Re: [shale] Tomahawk components On 1/26/06, Richard Wallace [EMAIL PROTECTED] wrote: Gary mentioned in his follow up response to my earlier questions that it is indeed possible to use MyFaces Tomahawk with Shale Clay. So now I want to find some more information about that. I see that you basically have to create a clay-config.xml with declarations for each tomahawk component and found this issue in bugzilla http://issues.apache.org/bugzilla/show_bug.cgi?id=37024. I'm just wondering if that's the latest greatest information on the subject or if there is somewhere else I should look for a more up to date clay config file. That's the latest I know of. I couldn't find anything in the MyFaces Wiki or the Shale Wiki that might have more information. Any pointers would be greatly appreciated. Sean (one of the people who responded on the thread) is a MyFaces committer, and expressed interest in checking a completed version of this in to the MyFaces codebase. It would be great if someone could try it out and provide feedback on anything that needs to be corrected. Thanks, Rich 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]
RE: [shale] Some Clay oddities
Hi Try and clean out your Tomcat work directory prior to restart after you have made your changes. Hermod -Original Message- From: Richard Wallace [mailto:[EMAIL PROTECTED] Sent: Friday, January 27, 2006 12:14 AM To: Struts Users Mailing List Subject: [shale] Some Clay oddities I'm playing with templating using symbol replacement like in the use-cases. It's very cool and very powerful. A couple of things that are strange tho: 1) The first letter of the content of the file being used is being cutoff. So, for instance, I have the clay definition: component jsfid=commonPageLayout extends=clay attributes set name=clayJsfid value=/templates/common.html / /attributes symbols set name=@title value=#{labels.map['default.title']} / set name=@headercontent value=/templates/common/header.html / set name=@leftcontent value=/templates/common/left.html / set name=@bodycontent value=space / set name=@footercontent value=/templates/common/footer.html / /symbols /component For testing, in left.html and footer.html I just have simple one liners like This is the footer. It can be found in /templates/footer.html The first letter in This is being chopped off so it's displayed as his is the footer... The only one this doesn't happen on is the header.html which has img jsfid=image That is displayed totally fine. Is it a rule that these files should begin with some component or is something else going on? 2) This one is really strange. If I try and change the names of the symbols @headercontent, @leftcontent, @bodycontent, and @footercontent so that the C in content is capitalized (@leftContent, etc.), and go through and change the usage of them _everywhere_ then defining a page that overrides those settings doesn't work. So normally I might have something like html jsfid=commonPageLayout bodycontent=/testtemplatingbody.html leftcontent=/templates/blank.html allowBody=false headtitleMock Header/title/head bodyThe entire document is replaced by the layout./body /html And that works great. But if I change all the symbol names to have a capital C, Clay seems to ignore the settings in the page definition and just use the default values for commonPageLayout. Weird, huh? Any ideas what's going on with this one? Neither one of these is a big problem, just little oddities I've run into today as I've explored Clay. Rich - 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: [shale] clay renderId
Hi Your problem lies within: property=selectedContact.firstName Property is the component identifier, and can not cotain a .. What you need to do is make shure that selectedContact is the managed bean. Here is from a earlier posting: You are using the property symbol in this example to populate the JSF component id. The component id cannot have a dot character. You will want to use the @managed-bean-name symbol for the person mnemonic. Symbols are scoped from the out inwards. What I mean by this is that a symbol like managed-bean-name is defined at the page/clay component sub tree. All components under that subtree managed by Clay will inherit the symbol defined at the outer scope. Each component can choose to override the symbol which will propagate to all its child components. So, if you are using full Clay html views, the defaut for the managed bean name is derived from the view id. This is a core mechanism in Shale used to map a view with a view controller. So, if your view was /symbols/page1.xml, the default managed-bean-name symbol would be symbols$page1. But, if you have part of the page that you would like to map to another managed bean, you can override it at a outer scope. Consider the following: tr jsfid=clay clayJsfid=/widgets.html label=First Name: property=person size=20 maxlength=30 required=true immediate=false managed-bean-name=person .. .. or .. tr jsfid=clay clayJsfid=/widgets.html label=First Name: property=person size=20 maxlength=30 required=true immediate=false managed-bean-name=symbols$person.person .. .. or .. span jsfid=subview managed-bean-name=person .. table .. tr jsfid=clay clayJsfid=/widgets.html label=First Name: property=person size=20 maxlength=30 required=true immediate=false .. /table.. /span.. The example I gave you is now part of the Shale use cases. From the menu page, it's under the Symbols link. It demonstrates how you can use symbols with generic HTML templates layouts (tiles like). These HTML templates can be loaded from the classpath or context root. I also added some simple dataTable components to the rolodex use case. There is a web pager component and column sorter. They show how to use the new shale remoting to load images from the classpath. I think these components might also show how simple JSF component authoring can be. Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: [shale] clay renderId
Hi There seems to be some problems with this aproach with respect to name resolving. Scenario : @managed-bean-name is a backing bean X, the table that you want to display (see: Outer HTML template include) is from a bean Person as person on X, and has properties firstName and middleName and so on Now doing this: tr jsfid=clay clayJsfid=/widgets.html label=First Name: property=person.firstName size=20 maxlength=30 required=true immediate=false/ results in: Subsequent characters of component identifier must be a letter, a digit, an underscore ('_'), or a dash ('-')! But component identifier contains . trying property=['person.firstName'] it also complains Altering: component jsfid=widgetsText extends=inputText id=@property attributes set name=value value=[EMAIL PROTECTED]@property}/ To something like component jsfid=widgetsText extends=inputText id=@property attributes set name=value value=[EMAIL PROTECTED]'@property']}/ results in: java.lang.IllegalArgumentException: component identifier's first character must be a letter or an underscore ('_')! But it is [ Any suggestions? Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Friday, January 13, 2006 4:12 PM To: Struts Users Mailing List Subject: Re: [shale] clay renderId Besides defining these in XML, you can do this sort of thing mixing in HTML templating. Common XML Config: component jsfid=widgetsLabel extends=baseLabel attributes set name=value value=@label / set name=for value=@property / /attributes /component component jsfid=widgetsText extends=inputText id=@property attributes set name=value value=[EMAIL PROTECTED]@property}/ set name=size value=@size / set name=maxlength value=@maxlength / set name=required value=@required / set name=immediate value=@immediate/ /attributes /component component jsfid=widgetsMessage extends=baseMessage attributes set name=for value=@property / /attributes /component HTML template /widgets.html: tr tdlabel jsfid=widgetsLabelMock Label:/label/td tdinput jsfid=widgetsText type=text//td tdspan jsfid=widgetsMessageMock Message/spantd /tr Outer HTML template include: table tr td colspan=3 pThis example show how a pattern of components, label, input text and message can be abstracted into a common template. /p /td /tr tr jsfid=clay clayJsfid=/widgets.html label=First Name: property=firstName size=20 maxlength=30 required=true immediate=false/ tr jsfid=clay clayJsfid=/widgets.html label=Middle Name: property=middleName size=20 maxlength=30 required=false immediate=false/ tr jsfid=clay clayJsfid=/widgets.html label=Last Name: property=lastName size=30 maxlength=40 required=true immediate=false/ tr jsfid=clay clayJsfid=/widgets.html label=Business Name: property=lastName size=40 maxlength=50 required=true immediate=false/ /table That's really cool, Gary. How would I package widgets.html in a jar so that it can be referenced in the application like you did in your example? Untill we resolve the bug ticket you posted, the html templates can only be loaded from the context root. http://issues.apache.org/bugzilla/show_bug.cgi?id=38168 We should be able to use the same syntax with html resources. span jsfid=clay clayJsfid=classpath*:org/acme/html/widgets.html/ I'm going to make the syntax more simple for including html templates within html templates. span jsfid=classpath*:org/acme/html/widgets.html/ I'll try to take a look this weekend but the Broncos are playing and it's ski season here :-) Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: Tomcat issues
Hi Look in the Tomcat logs directory. In the ocalhost_logtxt file you will probably find your answer. Hermod -Original Message- From: Bogdan Paduraru [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 1:22 PM To: Struts Users Mailing List Subject: RE: Tomcat issues I used Tomcat Manager for deploy and it works. I wonder why it didn't work when I just copied the file myself ... Thanx, Bogdan -Original Message- From: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] Sent: Thursday, January 12, 2006 1:57 PM To: Struts Users Mailing List Subject: Re: Tomcat issues Bogdan Paduraru wrote: I'm trying to run a Struts application built with Ant. Ant makes me the war file, I copy it under application directory in webapps of Tomcat server. When I try to run something from my browser it tells me the resource I call is unavailable. When I deploy the application unpacked from the war file , it runs nicely, no problems. Can you tell me what should I do on Tomcat configuration to run war correctly? You should enable Tomcat Manager application. When you do that, you can see all the applications on the server, so you can check if the application is deployed or not. Did you try to restart server after deployment of WAR file? Regards, Ognjen - 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 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]
[Shale] Clay TH bug
Hi I have discovered a possible bug in Clay with respect to table th tags: This can be verified as follows: Put the following on a page table tbody tr th/th /tr /tbody /table This will give an error: javax.servlet.ServletException: Unmatched ending non-optional token: Node token range (43 - 48) on line# 5 begining offset 40. /tr javax.faces.webapp.FacesServlet.service(FacesServlet.java:121) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:123) org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:285) while this: table tbody tr td/td /tr /tbody /table works just fine 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]
RE: [OT]Printing problem
Hi Use CSS with the media setting on your import of your stylesheet (rel=stylesheet type=text/css media=print, screen). and in your stylesheet define 2 blocks: @MEDIA print and @MEDIA screen where you define your settings. For the stuff that you do not want to show on a printout, add the display: none; attribute. Hermod. -Original Message- From: Deepa Khetan [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 1:16 PM To: Struts Users Mailing List Subject: [OT]Printing problem Hi, I am facing a problem. i am having a JSP page which acts as an Acknowledgement screen to users. The users need to take the print out of this screen. I am providing a print button. but what i want is to change the header gif for printing(since it is taking too much space on the page and the end of the gif is getting truncated). Can i do somethig like on click of print button, i create an HTML file by passing the entire data from my JSP and change the gif in this HTMl file? Please tell me where i can find a soution? Deepa * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: Problem with using Logic:equla tag.
Hi Don't use this. Use the jstl tags instead. In this case c:if test=${sysvar=='loop'}/c:if If you read the tag doc's you will see that you are encouraged to switch to the jstl tags in place og the struts tags. In so doing, use the struts-el tag librarys Hermod -Original Message- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Thursday, December 15, 2005 1:44 PM To: Struts Users Mailing List Subject: Problem with using Logic:equla tag. Hi I have a un-natural problem here Im trying to use : [code] logic:equal name=sysvar value=loop td .. /td /logic:equal [/code] it never enter the above block. even i tried and showed sysvar by using the following code line in the browser [code] %=sysvar% [/code] I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ? can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly. - 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. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
RE: Validator and Javascript
Hi In your html:javascript tag set staticJavascript=false. This will remove all scripts except your validation. However you need to add a link to the generated scripts (in a .js file) in your .jsp. Hermod -Original Message- From: Deepa Khetan [mailto:[EMAIL PROTECTED] Sent: Monday, December 12, 2005 6:50 AM To: Struts Users Mailing List Subject: Re: Validator and Javascript I dint understand how to copy the static javascript on the validator.xml to another .js file? Can u please elaborate? On 12/10/05, Laurie Harper [EMAIL PROTECTED] wrote: Tony Santinello wrote: Hi, I'm using Struts 1.2.7 and I'm using commons-validator to validate my forms. Can someone tell me why validator includes all the javascript functions when rendering the jsp page? Even including javascript functions that I'm not using in validation.xml, such as creditcard validation or integer validation? Is there anyway to include just the javascript my jsp needs and not all the extra javascript? There's two types of Javascript emitted by the validator framework: static and dynamic. The static script includes all the code that doesn't vary from form to form, whereas the dynamic stuff is dependent on the validations you've configured for the form. The html:javascript, by default, emits all the static code every time and generates additional dynamic code appropriate to the form. You can tell it not to emit the static Javascript at all (in which case you need to include it elsewhere on the page, directly or by reference), but you can't tell it to emit only a sub-set of the static code. Your best bet is to copy the static Javascript into a seperate .js file, include that in the head of your page, and turn it off in the html:javascript tag. Browser caching will then avoid the user having to download the static code everytime, which is one step better than inlining a sub-set of it. L. - 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: [Shale] Clay - Not serving .css and .png
Hi Been away for a couple of days, but now I'm back at it. I finally figured out why it was not serving resources like .css files etc. In my web.xml file, I had a filterfilter mapping like this: !-- Shale Application Controller Filter -- filter filter-nameshale/filter-name filter-class org.apache.shale.faces.ShaleApplicationFilter /filter-class /filter !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern/*/url-pattern /filter-mapping Now changing the filter mapping to this solved it: !-- Shale Application Controller Filter Mapping -- filter-mapping filter-nameshale/filter-name url-pattern*.xml/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern*.html/url-pattern /filter-mapping filter-mapping filter-nameshale/filter-name url-pattern*.faces/url-pattern /filter-mapping So now I am able to use link tags for including stylesheets, and any images declared in the stylesheet gets served. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 3:03 PM To: Struts Users Mailing List Subject: Re: [Shale] Clay - Not serving .css and .png [EMAIL PROTECTED] wrote on 12/02/2005 03:23:58 AM: Hi I my continued persuit of Shale and Clay and have now started to apply my standard style (lquid) to the template application. What I discovered was that Clay will not serve .css files. I noticed in Geeta's ShaleNShark1 demo that the style sheet was named .html. Hermod, just an fyi, but right now I do have a Shale/Tiles web app working against a style sheet with a .css name. Like you I too noticed that having .css in filter (in command-config.xml) didn't do the trick. Things started working when I downloaded a later version of Shale and/or Tiles. Having other issues to deal with, I didn't question it any further..:) Reagrds, Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: [Shale] Clay - Links not working
Hi The nullpointer occurs because there is no check on the Inputstream in ClayAmalgam: InputStream in = null; try { in = context.getExternalContext().getResourceAsStream(url); This could return null int c = 0; done: while (true) { c = in.read(); if (c -1) value.append((char) c); else break done; } } catch (IOException e) { throw new RuntimeException(messages.getMessage(invalid.attribute, new Object[] {url, clayImport})); } finally { if (in != null) { try { in.close(); } catch (IOException e) {} } } If the url is not found, in is null. Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 7:46 PM To: Struts Users Mailing List Subject: Re: [Shale] Clay - Links not working Ok, that's a bug. Before the HTML templates existed, the jsfid was a required attribute of the JSP tag. We need to add a better exception. Please create a bugzilla ticket with this information so that we don't loose site of it. http://issues.apache.org/bugzilla/enter_bug.cgi?product=Struts Thanks, Gary -- Original message -- Ok, in my application I followed your directions to implement Tiles features using Clay. I have the following component declared in the global clay config : Then I have the page selectServices.xml wich contains : -//Apache Software Foundation//DTD Shale Clay View Configuration 1.0 //EN http://struts.apache.org/dtds/shale-clay-config_1_0.dtd; And finally the page gabarit.html wich has a basic structure like that : http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; If you run this, you will receive a NullPointerException because contenu symbol has the null value. So I was wondering if it was a correct behavior. On 12/5/05, Gary VanMatre wrote: Something maybe that should improved is when the symbol value is null instead of getting a nullpointer exception maybe do like Tiles does. Clay's behavior handling symbol replacement should be as follows: If a symbol is null, it will be replaced as an empty string within the token if the token length is greater than the symbol. testing @myvalue a symbol -- testing a symbol If the symbol is null and the target expression's length is zero, the attribute is ignored and not passed to the component. @myvalue -- N/A, ignored If a symbol is not defined, it will not be replaced with the token. @myvalue -- @myvalue Somthing that I fixed last weekend was the case sensitivity on symbols. HTML attributes that are not defined by a bound component using the jsfid attribute, are considered symbols. The HTML parser normalizes the case of attributes to lower case. The token replacement is now case insensitive. The example above will now work. What is the scenario that you are talking about? Please give an example. -- Alexandre Poitras Québec, Canada Gary -- Alexandre Poitras Québec, Canada * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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] Clay - Not serving .css and .png
Hi I my continued persuit of Shale and Clay and have now started to apply my standard style (lquid) to the template application. What I discovered was that Clay will not serve .css files. I noticed in Geeta's ShaleNShark1 demo that the style sheet was named .html. So I renamed my stylesheet to .html and the style's where applied, with 1 exception: my .png files. They did not appear. I noticed that in the log I got (when named .html): 02.des.2005 09:04:58 org.apache.shale.faces.ShaleViewHandler setupViewController WARNING: No ViewController for viewId /theme/styles.xml found under name theme$styles 02.des.2005 09:04:58 org.apache.shale.clay.faces.ClayViewHandler renderView INFO: Clay template renderView for /theme/styles.xml I have in my chain-config file: command className=org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter includes=\S*\.faces,\S*\.html,/index\.jsp,\S*\.xml / command className=org.apache.shale.application.ContextRelativePathFilter includes=\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.css,\S*\.png,\S*\.jpg,/index\.jsp excludes=\S*\.jsp,\S*\.jspf / So it should allow access to it. I have not had the time to investigate into why this is happening, but since Geeta obviously hit this I thought maybe someone had an answer. 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 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]
RE: [Shale] Clay - Not serving .css and .png
Hi Part 2: If I try to access the resource directly, it just prints out the URI. If I comment out ClayViewHandlerCommand from chain-config, it still does it so I am at a loss as to what is going on here. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 9:24 AM To: user@struts.apache.org Subject: [Shale] Clay - Not serving .css and .png Hi I my continued persuit of Shale and Clay and have now started to apply my standard style (lquid) to the template application. What I discovered was that Clay will not serve .css files. I noticed in Geeta's ShaleNShark1 demo that the style sheet was named .html. So I renamed my stylesheet to .html and the style's where applied, with 1 exception: my .png files. They did not appear. I noticed that in the log I got (when named .html): 02.des.2005 09:04:58 org.apache.shale.faces.ShaleViewHandler setupViewController WARNING: No ViewController for viewId /theme/styles.xml found under name theme$styles 02.des.2005 09:04:58 org.apache.shale.clay.faces.ClayViewHandler renderView INFO: Clay template renderView for /theme/styles.xml I have in my chain-config file: command className=org.apache.shale.clay.config.beans.ConfigDefinitionsWatchdogFilter includes=\S*\.faces,\S*\.html,/index\.jsp,\S*\.xml / command className=org.apache.shale.application.ContextRelativePathFilter includes=\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.css,\S*\.png,\S*\.jpg,/index\.jsp excludes=\S*\.jsp,\S*\.jspf / So it should allow access to it. I have not had the time to investigate into why this is happening, but since Geeta obviously hit this I thought maybe someone had an answer. 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 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]
RE: [shale] Clay templating
Hi I tried your recipe, but it does not seem to work. It really excited me with the parameter substitution, which looks a lot like what I have been testing with Facelets. I am looking to replace Tiles with either Clay of Facelets, so it would be nice to verify that the Clay way of doing templating does actually work. Facelets does work except for one thing: It does not include html comments from the Template (which i really need - Include (IE5) hidden Style) When I try to access page1.faces, it complains about not finding page1.jsp. It does not seem to want to look for page1.xml. I have set up Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 11:17 PM To: Struts Users Mailing List; Struts Users Mailing List Cc: Alexandre Poitras Subject: Re: [shale] Clay templating By the way, I will try to write some documentation for Clay. I already have to do it but in french, so I guess a little translation won't be too difficult and can help the community. In my mind, Clay is the component that need the most explanations in Shale Frameworks. So if any developpers read this, feel free to post many details. That would be outstanding. I've been holding off on Clay documentation for a couple reasons. I've been spending most of my time with features and I'm also holding out on some help (someone currently working on a couple of books besides speaking at the NFJS :-). On 11/28/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi, I am trying to get a grasp on Struts Clay. I understand there are 4 ways of using it and wich one you might want to use depends of the situation. I would like to do something similar to what is found in the rolodex usecase, ie. define a component layout in his own html files (like the adress panel in rolodex or Tapestry components). To be able to do that, Rolodex seems to use the jsp tags approach but I don't understand totally how it is done for the moment. I wanted to know if someone could give me some hints about it (like the necessary steps) and if I could use another aproach. There are a number a options but this is the one made available yesterday: You could start with an XML full view that is loaded on demand (page1.xml): view component jsfid=/page1.xml extends=baseLayout symbols set name=title value=Page 1/ set name=bodyContent value=/page1Body.html/ /symbols /component /view In your common/global XML config loaded on startup: view component jsfid=baseLayout extends=clay attributes set name=clayJsfid value=/layout.html/ /attributes symbols set name=title value=Hello World/ set name=leftContent value=/defaultLeftNav.html/ set name=headerContent value=/defaultHeader.html/ set name=bodyContent value=/defaultBody.html/ set name=footerContent value=/defaultFooter/ /symbols /component /view And, then create layout.html html headtitle@title/title/head body table tr td rowspan=3span jsfid=clay [EMAIL PROTECTED] allowBody=falseLeft Content/span/td tdspan jsfid=clay [EMAIL PROTECTED] allowbody=falseHeader Content/span/td /tr tr tdspan jsfid=clay [EMAIL PROTECTED] allowBody=falseBody Content/spanBody Content/td /tr tr tdspan jsfid=clay [EMAIL PROTECTED] allowBody=falseBody Content/spanBody Content/td /tr /table /body /html This kind of layout only works with the full XML and JSP views as the view id but using an HTML entry page wouldn't add much value anyway. Gary Thank -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - 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
RE: [shale] Clay templating
Hi I got it working (I was using faces as suffix instead og xml) - Looks very promising. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 10:53 AM To: user@struts.apache.org Subject: RE: [shale] Clay templating Hi I tried your recipe, but it does not seem to work. It really excited me with the parameter substitution, which looks a lot like what I have been testing with Facelets. I am looking to replace Tiles with either Clay of Facelets, so it would be nice to verify that the Clay way of doing templating does actually work. Facelets does work except for one thing: It does not include html comments from the Template (which i really need - Include (IE5) hidden Style) When I try to access page1.faces, it complains about not finding page1.jsp. It does not seem to want to look for page1.xml. I have set up Hermod -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Monday, November 28, 2005 11:17 PM To: Struts Users Mailing List; Struts Users Mailing List Cc: Alexandre Poitras Subject: Re: [shale] Clay templating By the way, I will try to write some documentation for Clay. I already have to do it but in french, so I guess a little translation won't be too difficult and can help the community. In my mind, Clay is the component that need the most explanations in Shale Frameworks. So if any developpers read this, feel free to post many details. That would be outstanding. I've been holding off on Clay documentation for a couple reasons. I've been spending most of my time with features and I'm also holding out on some help (someone currently working on a couple of books besides speaking at the NFJS :-). On 11/28/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi, I am trying to get a grasp on Struts Clay. I understand there are 4 ways of using it and wich one you might want to use depends of the situation. I would like to do something similar to what is found in the rolodex usecase, ie. define a component layout in his own html files (like the adress panel in rolodex or Tapestry components). To be able to do that, Rolodex seems to use the jsp tags approach but I don't understand totally how it is done for the moment. I wanted to know if someone could give me some hints about it (like the necessary steps) and if I could use another aproach. There are a number a options but this is the one made available yesterday: You could start with an XML full view that is loaded on demand (page1.xml): view component jsfid=/page1.xml extends=baseLayout symbols set name=title value=Page 1/ set name=bodyContent value=/page1Body.html/ /symbols /component /view In your common/global XML config loaded on startup: view component jsfid=baseLayout extends=clay attributes set name=clayJsfid value=/layout.html/ /attributes symbols set name=title value=Hello World/ set name=leftContent value=/defaultLeftNav.html/ set name=headerContent value=/defaultHeader.html/ set name=bodyContent value=/defaultBody.html/ set name=footerContent value=/defaultFooter/ /symbols /component /view And, then create layout.html html headtitle@title/title/head body table tr td rowspan=3span jsfid=clay [EMAIL PROTECTED] allowBody=falseLeft Content/span/td tdspan jsfid=clay [EMAIL PROTECTED] allowbody=falseHeader Content/span/td /tr tr tdspan jsfid=clay [EMAIL PROTECTED] allowBody=falseBody Content/spanBody Content/td /tr tr tdspan jsfid=clay [EMAIL PROTECTED] allowBody=falseBody Content/spanBody Content/td /tr /table /body /html This kind of layout only works with the full XML and JSP views as the view id but using an HTML entry page wouldn't add much value anyway. Gary Thank -- Alexandre Poitras Québec, Canada -- Alexandre Poitras Québec, Canada - 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
[Shale] Odd behaviour ?
Hi In my Clay test app, I have a index.jsp that does a jsp:forward page=./page1.xml/. If I access this page, it gives me a 404, stating that it can not find page1.jsp. I also have a index.html that does a META HTTP-EQUIV=Refresh CONTENT=0;URL=./page1.xml. If I access this page, it loads page1.xml as expected. Is there any reason as to why Shale/Clay behaves like this ? Does the ClayViewHandlerCommand not pickup the forward ? 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 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]
[Shale] Clay - Links not working
Hi I am having trouble getting the links in my test/template application working. I can see that it submits, but it is only redisplaying the same page. I can access the pages by writing in the URI in the browser, so they are working. My navigation looks like this: a jsfid=commandLink action=home allowBody=true immediate=trueHome/a br / a jsfid=commandLink action=page2 allowBody=true immediate=truePage2/a br / a jsfid=commandLink action=page3 allowBody=true immediate=truePage3/a br / and I have the following navigation rule: navigation-rule from-view-id*/from-view-id navigation-case from-outcomehome/from-outcome to-view-id/page1.xml/to-view-id /navigation-case navigation-case from-outcomepage2/from-outcome to-view-id/clayxml/page2.xml/to-view-id /navigation-case navigation-case from-outcomepage3/from-outcome to-view-id/clayxml/page3.xml/to-view-id /navigation-case /navigation-rule I have set the ClayViewHandlerCommand in my chain-config, and I have tried setting javax.faces.DEFAULT_SUFFIX to both .html .xml to no avail. Any ideas? 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 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]
RE: [Shale] Clay - Links not working
Hi No sooner did I send this, when I decided to clean out my Tomcat work directory - and now it works. javax.faces.DEFAULT_SUFFIX hads to be set to .xml for this to work. Anyway, I now have a Template application which functionally behaves like it was built with Tiles, meaning I have a standard page layout, and only have to worry about the individual parts of it. Now, in Tiles I would define definitions in the tile-config.xml file - Can I define my Clay views in the clay-config.xml file instead of having to write an extra .xml file for each new view (I already have to write the content (.html file))? Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 7:41 AM To: user@struts.apache.org Subject: [Shale] Clay - Links not working Hi I am having trouble getting the links in my test/template application working. I can see that it submits, but it is only redisplaying the same page. I can access the pages by writing in the URI in the browser, so they are working. My navigation looks like this: a jsfid=commandLink action=home allowBody=true immediate=trueHome/a br / a jsfid=commandLink action=page2 allowBody=true immediate=truePage2/a br / a jsfid=commandLink action=page3 allowBody=true immediate=truePage3/a br / and I have the following navigation rule: navigation-rule from-view-id*/from-view-id navigation-case from-outcomehome/from-outcome to-view-id/page1.xml/to-view-id /navigation-case navigation-case from-outcomepage2/from-outcome to-view-id/clayxml/page2.xml/to-view-id /navigation-case navigation-case from-outcomepage3/from-outcome to-view-id/clayxml/page3.xml/to-view-id /navigation-case /navigation-rule I have set the ClayViewHandlerCommand in my chain-config, and I have tried setting javax.faces.DEFAULT_SUFFIX to both .html .xml to no avail. Any ideas? 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 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]
RE: Inserting special character into MySQL 5 problem
Hi Turn off View as html in your e-mail reader and you will see that this was exactly what Emmanouil wrote. Hermod -Original Message- From: Stanislav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 24, 2005 9:54 AM To: Struts Users Mailing List Subject: Re: Inserting special character into MySQL 5 problem Either i did the mistake or my email client :-) the '' character must become (thats one of the five predefined XML entities) so the URI (one more try now) must be jdbc:mysql://localhost/databaseName?useUnicode=truecharacterEncoding=utf-8 I still got the same thing, but i surf the Net and find this 5 XML predefined entities. instead '' i will use '' + 'amp'. Is this OK? Tnx for your time :-) Stanislav - 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]
RE: [shale] Design questions
Hi Alexandre Ok, that claryfies things a bit. Allthough your example still does not feel right with me. I still think taht anything to do with the view part, such as changing the colour of a text etc. still should be handled in the view. What I would do is to set a condition property in my code, and then in my view I would test for this and act accordingly - See the destinction? Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 1:16 PM To: Struts Users Mailing List Subject: Re: [shale] Design questions Hi hermod, I think you refer to my other post. The author just took the same title. Confusing he? I totally agree with your suggestions. Not a bad idea in my mind but maybe some architectural considerations keep developpers from doing this (tied to jsp instead of url implies it's too tied to the view technology maybe). Just to clarify, maybe I didn't use the right terms. By managing the UI components, I didn't want to refer to managing their lifecycle like in managed beans. I guess a better term would have been transforming them, i.e. modifying their properties. For instance, changing the color of a text after an event, something like this. That's the problem with the french connection in english, you get used to translate things too litterally :) Anyway, thank for the feedback. Nice to see some discussions on Shale and JSF. On 11/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Alexandre Mostly I aboslutly agree with you, but there is one thing that I am not comfortable with: ..and so managing some of your UI components programmaticaly is impossible. What you are promoting here, is mixing view and controller, but since Craig is promoting the use of one backing bean pr. view (page?), this may or may not be viable. Allthough I do not think that the thought behind it is what you want. One of the things that I do not like is that we might be getting into a situation here where we have some of the logic for creating a page in xml definition files, and some of it in code (as you want to do). This may lead us into a situation where we may kind of loose sight of as to where things get defined. I think that it is a cleaner aproach to have things in one place, and not scatter it around. Just my 2c worth. I recently posted a suggestion that the backing beans (ViewControllers) be bound to .jsp pages, and not to URI's when using Tiles. As far as I can see I have not got a clear answer to this. This goes exactly to the problem at hand here: Tiles. Since the individual tiles may be reused in many pages, not having the ability to do prerender on the tiles, but only on the page kind of defeats the purpose of Tiles. It means you are going to have to duplicate code in variuos backing beans. It would be really nice to have it as Winny the poo: Yes, please. I.e both on pages and on .jsps (tiles). I guess one way of solving it would be to implement something portal like. Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 5:17 AM To: Struts Users Mailing List Subject: Re: [shale] Design questions I kind of agree with you Gary. I just love Tiles powerful features and I would like to use it in my JSF application (but I would take a deep look at Tapestry way of doing it to see if it is truly necessary). Anyway, I started to have concerns after watching the JavaOne 2005 presentation Extreme Reuse in JavaServer Faces, TS-7853 (wich was very interesting by the way). There seems to be a lot of non-obvious concerns when using non-JSF aware technologies for the layout of a JSF view. I know that Shale provides an integration ViewHandler for Tiles wich allow him to resolve .pages urls and eliminates the need for stupid jsp wrappers but I think it resolves only part of the problem. Here's a small summary of the main issues for those who don't have time to watch the presentation. First, even if it's not such a huge concern but still have to be taken in account when designing the application, navigation rules are relative to the top viewid and not the tile itself. It can be a bit confusing but I guess you can find your way around it. Second, you can't use some more advanced Tiles functionnalities like importAttributes (see the presentation). Again you are sticking to a basic usage, I still think Tiles can be a valid solution. But the main problem come from the fact that Tiles is for the moment not a solution specific to JSF technology and provides no adapters for this framework. Therefore, a tile is sadly not a JSF UI component. It's mean that JSF Beans can't see your application tiles. You can say goodbye to the use of the binding attribute and so managing some of your UI components programmaticaly is impossible. This is a huge limitation in my opinion. Maybe Shale already solves those issues but from what I have read on
RE: [shale] Design questions
Hi Alexandre Tradeoffs Well, I guess we all have to live with them. Well, back to Shale/Clay/Tiles for some more struggle... :) Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 2:54 PM To: Struts Users Mailing List Subject: Re: [shale] Design questions I see. I think most of the time you're right. But in some complex situations a tradeoff *might* be better, instead of having a lot of bloating views, you put the logic in the backing bean. Of course, there are always ways of reorganizing your code like by using JSP tags in JSP views. But I get your point. I am used to do it all the time in the Swing world but as a matter of fact Swing architecture tight the V and the C together. By the way, it has always felt weird to perform it this way, I mean changing the UI components programmatically. Now I understand why so thank! On 11/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Alexandre Ok, that claryfies things a bit. Allthough your example still does not feel right with me. I still think taht anything to do with the view part, such as changing the colour of a text etc. still should be handled in the view. What I would do is to set a condition property in my code, and then in my view I would test for this and act accordingly - See the destinction? Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 1:16 PM To: Struts Users Mailing List Subject: Re: [shale] Design questions Hi hermod, I think you refer to my other post. The author just took the same title. Confusing he? I totally agree with your suggestions. Not a bad idea in my mind but maybe some architectural considerations keep developpers from doing this (tied to jsp instead of url implies it's too tied to the view technology maybe). Just to clarify, maybe I didn't use the right terms. By managing the UI components, I didn't want to refer to managing their lifecycle like in managed beans. I guess a better term would have been transforming them, i.e. modifying their properties. For instance, changing the color of a text after an event, something like this. That's the problem with the french connection in english, you get used to translate things too litterally :) Anyway, thank for the feedback. Nice to see some discussions on Shale and JSF. On 11/23/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Alexandre Mostly I aboslutly agree with you, but there is one thing that I am not comfortable with: ..and so managing some of your UI components programmaticaly is impossible. What you are promoting here, is mixing view and controller, but since Craig is promoting the use of one backing bean pr. view (page?), this may or may not be viable. Allthough I do not think that the thought behind it is what you want. One of the things that I do not like is that we might be getting into a situation here where we have some of the logic for creating a page in xml definition files, and some of it in code (as you want to do). This may lead us into a situation where we may kind of loose sight of as to where things get defined. I think that it is a cleaner aproach to have things in one place, and not scatter it around. Just my 2c worth. I recently posted a suggestion that the backing beans (ViewControllers) be bound to .jsp pages, and not to URI's when using Tiles. As far as I can see I have not got a clear answer to this. This goes exactly to the problem at hand here: Tiles. Since the individual tiles may be reused in many pages, not having the ability to do prerender on the tiles, but only on the page kind of defeats the purpose of Tiles. It means you are going to have to duplicate code in variuos backing beans. It would be really nice to have it as Winny the poo: Yes, please. I.e both on pages and on .jsps (tiles). I guess one way of solving it would be to implement something portal like. Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 5:17 AM To: Struts Users Mailing List Subject: Re: [shale] Design questions I kind of agree with you Gary. I just love Tiles powerful features and I would like to use it in my JSF application (but I would take a deep look at Tapestry way of doing it to see if it is truly necessary). Anyway, I started to have concerns after watching the JavaOne 2005 presentation Extreme Reuse in JavaServer Faces, TS-7853 (wich was very interesting by the way). There seems to be a lot of non-obvious concerns when using non-JSF aware technologies for the layout of a JSF view. I know that Shale provides an integration ViewHandler for Tiles wich allow him to resolve .pages urls and eliminates the need for stupid jsp wrappers but I think it resolves only part of the problem. Here's a small summary
RE: [shale] Design questions
Hi So how would you implement composition, with inheritance, using Clay instead of Tiles?. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Tuesday, November 22, 2005 6:15 AM To: Struts Users Mailing List Subject: Re: [shale] Design questions On 11/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi! First of all, congratz on the good job. Shale looks very promising. We are currently implementing JSF in my organization. I already knew about Shale but I hadn't checked its progress in a while and I must say I am impressed so far. Actually, I stumbled upon the project while I was looking for a way to build in a quick way new UI components. The idea of creating 3 different classes each time to be able to aggregate some already existing UI components didn't sound particulary attractive. And that's how I found the goodies of Shale. Welcome! Anyway, to make it short, I am experimenting Clay's feature right now but I am a little bit confused. There seems to be a bit of overlap between Tiles and Clay features? Am I correct? And if it's true, is it a better choice to keep using Tiles as my layout manager or should I do it the Tapestry's way and treat everything as a UI component with the help of Clay? Clay is ... um, err ... pretty malleable :-). And yes, from the point of view of layout templating, there is definitely overlap. Tiles support has been a highly requested capability for JSF based applications, primarily because existing Struts developers are comfortable with it, and being able to reuse that capability meant a little bit less of an initial learning curve was necessary. My personal feeling is that Clay (or a similar project at java.net http://java.net called facelets) will become more popular for people coming to JSF without a large Struts legacy. The approach is more flexible and fine grained, and it wouldn't surprise me if we can make it perform better as well since it omits the need to use the container's RequestDispatcher.include() functionality. Another thought that keeps rambling through my head is a question concerning the backing beans design. I have red on many blogs entries that one of the greatest strength of JSF is the fact that the backing beans don't have to implements any interfaces. But if you want to take advantage of Shake page level services infrastructure (the view package), your beans have to implement the ViewController interface. Don't get me wrong, I think those services are great tools but I was wondering if all the beans should be ViewController instances or just when it is absolutly necessary? My personal habit is to use the interfaces all the time ... then I can focus my attention on the event driven parts of the design, and never run into situations where I define an init() method later, but it never gets called ... because I forgot to add implements ViewController up at the top of the class. Even better, if you're going to commit to doing this anyway, is to extends AbstractViewController instead of implements ViewController. Not only does this give you a bit of protection if ViewController ever changes, it also gives you a bunch of other nice convenience methods that makes things like the programmatic evaluation of value binding expressions much easier. One of the reasons people tout the no required interfaces possibility in JSF as an advantage is that it makes backing beans much easier to build unit tests for. However, Shale's approach is to protect this testability advantage, while still giving you the usability advantages of the extra events. It even includes a test framework to help you build unit tests for your view controllers very easily. Finally, another concern I have with this approach is that it's kind of suggesting you to write one bean for each page of the application (using a 1:1 mapping). From all the research I have done in the JSF area, I have not been able to find a consensus about wich approach to use when designing backing bean. Actually, it's hard to find some documentation on backing beans design but I think it's one of the challenges Struts developpers (as I am) face when moving to JSF. I would like to hear from the Shale users or/and developpers their opinion on the subject? Any advantage or downside? Ironically, my preferred design for backing beans is going to be something more familiar to WebWorks users than it is to Struts users, because it's closer to the way WebWorks already works :-). In Struts terms, think of the backing bean as a combination of an ActionForm and an Action, but with some additional flexibility: * Like an ActionForm, the bean would have a getter and setter for each form field. Unlike an ActionForm, the property types can be the appropriate native type (int, Date, or whatever you need) because JSF handles type conversions instead of making you do it. You would typically use a value binding expression
RE: [shale] Design questions
Hi Forgotten the basics of Tiles, have we? One of the key features of Tiles is the term definition and template jsp. In the template jsp, you position named generic parts. In the the definition you define what those parts are. This, in my terms, is to compose a page, hence composition. Another key feature of Tiles is that you can define a definition B which extends definition A. In definition B you can override attributes of definitoin A. This, in my terms, is inheritance. SFTH Hermod -Original Message- From: Dakota Jack [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 4:05 PM To: Struts Users Mailing List Subject: Re: [shale] Design questions Composition is a preferred design instead of inheritance. So, implementing composition, with inheritance does not make much sense. On 11/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi So how would you implement composition, with inheritance, using Clay instead of Tiles?. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig McClanahan Sent: Tuesday, November 22, 2005 6:15 AM To: Struts Users Mailing List Subject: Re: [shale] Design questions On 11/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi! First of all, congratz on the good job. Shale looks very promising. We are currently implementing JSF in my organization. I already knew about Shale but I hadn't checked its progress in a while and I must say I am impressed so far. Actually, I stumbled upon the project while I was looking for a way to build in a quick way new UI components. The idea of creating 3 different classes each time to be able to aggregate some already existing UI components didn't sound particulary attractive. And that's how I found the goodies of Shale. Welcome! Anyway, to make it short, I am experimenting Clay's feature right now but I am a little bit confused. There seems to be a bit of overlap between Tiles and Clay features? Am I correct? And if it's true, is it a better choice to keep using Tiles as my layout manager or should I do it the Tapestry's way and treat everything as a UI component with the help of Clay? Clay is ... um, err ... pretty malleable :-). And yes, from the point of view of layout templating, there is definitely overlap. Tiles support has been a highly requested capability for JSF based applications, primarily because existing Struts developers are comfortable with it, and being able to reuse that capability meant a little bit less of an initial learning curve was necessary. My personal feeling is that Clay (or a similar project at java.net http://java.net http://java.net called facelets) will become more popular for people coming to JSF without a large Struts legacy. The approach is more flexible and fine grained, and it wouldn't surprise me if we can make it perform better as well since it omits the need to use the container's RequestDispatcher.include() functionality. Another thought that keeps rambling through my head is a question concerning the backing beans design. I have red on many blogs entries that one of the greatest strength of JSF is the fact that the backing beans don't have to implements any interfaces. But if you want to take advantage of Shake page level services infrastructure (the view package), your beans have to implement the ViewController interface. Don't get me wrong, I think those services are great tools but I was wondering if all the beans should be ViewController instances or just when it is absolutly necessary? My personal habit is to use the interfaces all the time ... then I can focus my attention on the event driven parts of the design, and never run into situations where I define an init() method later, but it never gets called ... because I forgot to add implements ViewController up at the top of the class. Even better, if you're going to commit to doing this anyway, is to extends AbstractViewController instead of implements ViewController. Not only does this give you a bit of protection if ViewController ever changes, it also gives you a bunch of other nice convenience methods that makes things like the programmatic evaluation of value binding expressions much easier. One of the reasons people tout the no required interfaces possibility in JSF as an advantage is that it makes backing beans much easier to build unit tests for. However, Shale's approach is to protect this testability advantage, while still giving you the usability advantages of the extra events. It even includes a test framework to help you build unit tests for your view controllers very easily. Finally, another concern I have with this approach is that it's kind of suggesting you to write one bean for each page of the application (using a 1:1 mapping). From all the research I have done in the JSF area, I have not been able to find a consensus
RE: [shale] Design questions
Hi Thanks for your clarification Craig. So, if I read you correct, Tiles and Clay go hand in hand. Use Tiles for assembling the pages, so that you only have to write jsp/html files containing the specific content (not the whole page). Then use Clay to do the work writing of the jsp/html files them self, utilizing Clay component definitions and their corresponding jsfid's in those pages. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 11:49 PM To: Struts Users Mailing List Subject: RE: [shale] Design questions Hi So how would you implement composition, with inheritance, using Clay instead of Tiles?. I'm a big fan of Tiles and think that Clay and Tiles have their own niches. I see tiles as a tool for assembling page fragments in a reusable way. Clay is at a more granular level. It's focus is on assembling a page of reusable widgets. There are many ways to use Clay but I'll give the following example of inheritance and composition. component jsfid=baseInputText extends=inputText attributes !-- Convention mapping class attribute to styleClass property -- set name=styleClass value=@class/ /attributes symbols set name=class value=generic / /symbols /component component jsfid=panel extends=panelGrid element jsfid=baseInputText renderid=0 attributes set name=value value=[EMAIL PROTECTED]/ /attributes symbols set name=class value=blue / /symbols /element element jsfid=baseInputText renderid=1 attributes set name=value value=[EMAIL PROTECTED]/ /attributes symbols set name=class value=green / /symbols /element /component Elements form composition but also add inheritance similar to a java inner class. The new symbol replacement is sort of a tiles like feature where you can customize by overriding a symbol value. PS: I'm on vacation this week and have limited Internet access. Hermod Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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]
RE: [shale] Design questions
Hi That should of course read: Thanks for your clarification -Gary- Sorry ! Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 6:25 AM To: user@struts.apache.org Subject: RE: [shale] Design questions Hi Thanks for your clarification Craig. So, if I read you correct, Tiles and Clay go hand in hand. Use Tiles for assembling the pages, so that you only have to write jsp/html files containing the specific content (not the whole page). Then use Clay to do the work writing of the jsp/html files them self, utilizing Clay component definitions and their corresponding jsfid's in those pages. Hermod -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 11:49 PM To: Struts Users Mailing List Subject: RE: [shale] Design questions Hi So how would you implement composition, with inheritance, using Clay instead of Tiles?. I'm a big fan of Tiles and think that Clay and Tiles have their own niches. I see tiles as a tool for assembling page fragments in a reusable way. Clay is at a more granular level. It's focus is on assembling a page of reusable widgets. There are many ways to use Clay but I'll give the following example of inheritance and composition. component jsfid=baseInputText extends=inputText attributes !-- Convention mapping class attribute to styleClass property -- set name=styleClass value=@class/ /attributes symbols set name=class value=generic / /symbols /component component jsfid=panel extends=panelGrid element jsfid=baseInputText renderid=0 attributes set name=value value=[EMAIL PROTECTED]/ /attributes symbols set name=class value=blue / /symbols /element element jsfid=baseInputText renderid=1 attributes set name=value value=[EMAIL PROTECTED]/ /attributes symbols set name=class value=green / /symbols /element /component Elements form composition but also add inheritance similar to a java inner class. The new symbol replacement is sort of a tiles like feature where you can customize by overriding a symbol value. PS: I'm on vacation this week and have limited Internet access. Hermod Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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]
RE: [shale] Design questions
Hi Alexandre Mostly I aboslutly agree with you, but there is one thing that I am not comfortable with: ..and so managing some of your UI components programmaticaly is impossible. What you are promoting here, is mixing view and controller, but since Craig is promoting the use of one backing bean pr. view (page?), this may or may not be viable. Allthough I do not think that the thought behind it is what you want. One of the things that I do not like is that we might be getting into a situation here where we have some of the logic for creating a page in xml definition files, and some of it in code (as you want to do). This may lead us into a situation where we may kind of loose sight of as to where things get defined. I think that it is a cleaner aproach to have things in one place, and not scatter it around. Just my 2c worth. I recently posted a suggestion that the backing beans (ViewControllers) be bound to .jsp pages, and not to URI's when using Tiles. As far as I can see I have not got a clear answer to this. This goes exactly to the problem at hand here: Tiles. Since the individual tiles may be reused in many pages, not having the ability to do prerender on the tiles, but only on the page kind of defeats the purpose of Tiles. It means you are going to have to duplicate code in variuos backing beans. It would be really nice to have it as Winny the poo: Yes, please. I.e both on pages and on .jsps (tiles). I guess one way of solving it would be to implement something portal like. Hermod -Original Message- From: Alexandre Poitras [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 5:17 AM To: Struts Users Mailing List Subject: Re: [shale] Design questions I kind of agree with you Gary. I just love Tiles powerful features and I would like to use it in my JSF application (but I would take a deep look at Tapestry way of doing it to see if it is truly necessary). Anyway, I started to have concerns after watching the JavaOne 2005 presentation Extreme Reuse in JavaServer Faces, TS-7853 (wich was very interesting by the way). There seems to be a lot of non-obvious concerns when using non-JSF aware technologies for the layout of a JSF view. I know that Shale provides an integration ViewHandler for Tiles wich allow him to resolve .pages urls and eliminates the need for stupid jsp wrappers but I think it resolves only part of the problem. Here's a small summary of the main issues for those who don't have time to watch the presentation. First, even if it's not such a huge concern but still have to be taken in account when designing the application, navigation rules are relative to the top viewid and not the tile itself. It can be a bit confusing but I guess you can find your way around it. Second, you can't use some more advanced Tiles functionnalities like importAttributes (see the presentation). Again you are sticking to a basic usage, I still think Tiles can be a valid solution. But the main problem come from the fact that Tiles is for the moment not a solution specific to JSF technology and provides no adapters for this framework. Therefore, a tile is sadly not a JSF UI component. It's mean that JSF Beans can't see your application tiles. You can say goodbye to the use of the binding attribute and so managing some of your UI components programmaticaly is impossible. This is a huge limitation in my opinion. Maybe Shale already solves those issues but from what I have read on the Javadoc page, it doesn't seem to. I think people should be aware of those issues to make a discern choice. Just my two cents. I'll be glad to hear any nice solutions to those problems if someone has any ideas. *By the way, the Rolodex use case seems to be broken for the moment except for the jsp example. Both of the Html views and the Xml view output span class=@class around every element. For example, the first line is shown like this span ...html/span (IE is able to render the page but not Firefox of course :)). On 11/22/05, Gary VanMatre [EMAIL PROTECTED] wrote: Hi So how would you implement composition, with inheritance, using Clay instead of Tiles?. I'm a big fan of Tiles and think that Clay and Tiles have their own niches. I see tiles as a tool for assembling page fragments in a reusable way. Clay is at a more granular level. It's focus is on assembling a page of reusable widgets. There are many ways to use Clay but I'll give the following example of inheritance and composition. component jsfid=baseInputText extends=inputText attributes !-- Convention mapping class attribute to styleClass property -- set name=styleClass value=@class/ /attributes symbols set name=class value=generic / /symbols /component component jsfid=panel extends=panelGrid element jsfid=baseInputText renderid=0 attributes set name=value value=[EMAIL PROTECTED]/ /attributes symbols set name=class value=blue / /symbols /element element jsfid=baseInputText renderid=1
RE: including error-tiles on validation error / exception
Hi The solution to this is as simple as it can get: Use the input directive and point this at a new tiles definition which overiredes your contact definition, where you only override the banner. Hermod -Original Message- From: Andreas Kurtz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 3:11 PM To: user@struts.apache.org Subject: including error-tiles on validation error / exception hi folks, i have some questions on using struts with tiles and the corresponding error-handling. we've created a tiles-defintion mainLayout: definition name=mainLayout path=/layout/basicLayout.jsp put name=banner value=/layout/common/banner.jsp / ... put name=footer value=/layout/common/footer.jsp / /definition from which other definitions were derived (e.g. a page displaying a contact-form): definition name=contact extends=mainLayout put name=content value=/pages/contact.jsp / /definition including the following action-mapping (and fitting form-bean): action path=/ContactAction type=ContactAction name=ContactForm scope=request validate=true parameter=contact input=/Contact.do forward name=success path=mainLayout / forward name=failure path=error / /action we met the following problem: when a validation-error or an exception appears, the banner-tile in mainLayout should be replaced with error-banner-tile. in fact there is the possibility to use forward-directive on failure (not on validation), but we want to remain on the same input-page (contact) with just another error-banner-tile included on validation-error or exception. is there any handy possibility to solve that problem? or is it the only way to create a additional error-tile-definition for every page? thanks for helping. andy -- Medizinische Informatik http://www.mi.uni-heidelberg.de [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 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]
RE: Question on http://displaytag.sourceforge.net/
Hi Be aware of a subtle bug in DisplayTag. If you have a column without a property - i.e you want to display somthing different like: display:column titleKey=status sortable=true c:if test=${something.status==true} bean:message key=activ bundle=core / /c:if c:if test=${something.status!=true} bean:message key=unactiv bundle=core / /c:if /display:column then the use of titleKey will display nothing - You will have to use title and hard-code the value in your jsp. I am planning to debug through the displaytag source sometime this week and try to figur out what goes wrong here. Hermod -Original Message- From: Angel Cervera Claudio [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 9:43 AM To: Struts Users Mailing List Subject: Re: Question on http://displaytag.sourceforge.net/ [EMAIL PROTECTED] wrote: Has anyone used the display tag library at http://displaytag.sourceforge.net/ in a Struts application? If so what did you think of it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No problems. Go all rigth. Example: display:table name=${sessionScope.ZonaTrabajoRstdBusq} requestURI=/zonaTrabajoPrincipalBuscar.do id=resultadosID width=100% cellpadding=5 cellspacing=1 pagesize=20 export=true display:column title=Código media=all c:out value=${resultadosID.codigo} escapeXml=true//display:column display:column title=Nombre media=all c:out value=${resultadosID.nombre} escapeXml=true//display:column display:column title= media=html div class=botoneraa href=html:rewrite action=/zonaTrabajoPrincipalBorrarDesdeTabla/?c=${resultadosID.idModelo}img class=botonIrABorrar alt=bean:message key=ZonaTrabajoBusqueda.borrarDesdeTabla/ src=html:rewrite page=/img/iIrABorrar.gif///aa href=javascript:gT('html:rewrite action=/zonaTrabajoPrincipalIrAEditar/','${resultadosID.idModelo}');img class=botonIrAEdicion alt=bean:message key=ZonaTrabajoBusqueda.irAEditar/ src=html:rewrite page=/img/iIrAEdicion.gif///a/display:column /display:table -- Ángel Cervera Claudio Freelance / desarrollos j2ee web: http://www.acervera.com tlf: 670819234 / 916058546 email: [EMAIL PROTECTED] - Mensajería - msn: [EMAIL PROTECTED] yahoo: angelcervera aol: angelcervera jabber: angelcervera en jabber.org google talk: angelcervera - 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]
SV: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi I took a look at your ShaleNShark1 app. This is not doing what I am talking about. Lets take an example. You have a index.jsp that forwards to logon.jsf. This will then load logon.jsp which in turn insert a /logon tiles-definition. In my (working) case I have a index.jsp that forwards to /jsp/home.jsf. With MyfacesTiles this will load a /jsp/home.tiles definition (this is how the Myfaces Tiles integration works: create definitions as xxx.tiles). See the difference? Doing it your way, means having to create 2 jsp's: One containing the tiles:insert and one containing the content. Doing it my way, I have one template jsp for all pages and need only create the contentpage for each new page to display. When a request comes in, the JspTilesViewHandlerImpl will first see if there is any .tiles definition matching .jsf, and if so load that definition. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:59 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod Hermod, when i first started working with tiles and shale I got a simple sample working. You can download it here: http://www.sightsoftware.com/shale/ This was one of my very first attempts to get *anything* working with shale, so use at your own risk..:) Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi Looking through the source of TilesViewHandler (Shale/Tiles standalone) and JspTilesViewHandlerImpl (MyFaces/Struts Tiles) I see that the functionality for mapping a viewId to a tiles definition (through suffix) is missing in TilesViewHandler. There should be no reason why there is any difference between these two regarding this functionality. I will try to see if a straightforward migration of JspTilesViewHandlerImpl to Tiles standalone is possible, unless the original author of TilesViewHandler wants to take a look at it. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:59 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod Hermod, when i first started working with tiles and shale I got a simple sample working. You can download it here: http://www.sightsoftware.com/shale/ This was one of my very first attempts to get *anything* working with shale, so use at your own risk..:) Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi Ronald Try this: In your index.jsp (entry point of app) add: %@ page session=false contentType=text/html;charset=utf-8% % response.sendRedirect(jsp/frontpage.faces); % Then define a tiles definition : jsp/frontpage. If you can make this work, I am definitly doing something wrong. Why the algorithm from JspTilesViewHandlerImpl was changed in TilesViewHandler, I do not know. Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 10:26 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale Hi Hermod, The Shale Tiles view handler tries to map the view id to a tile definition by dropping the extension. In my case, I have a tile definition '/charts/measures/measureWizardSelectSystemEvent', so when the view '/charts/measures/measureWizardSelectSystemEvent.jsf' is invoked (in my case as a view state in the dialog flow), the Shale Tiles view handler intercepts it and delegates the rendering of the view to the tile definition. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Looking through the source of TilesViewHandler (Shale/Tiles standalone) and JspTilesViewHandlerImpl (MyFaces/Struts Tiles) I see that the functionality for mapping a viewId to a tiles definition (through suffix) is missing in TilesViewHandler. There should be no reason why there is any difference between these two regarding this functionality. I will try to see if a straightforward migration of JspTilesViewHandlerImpl to Tiles standalone is possible, unless the original author of TilesViewHandler wants to take a look at it. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:59 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod Hermod, when i first started working with tiles and shale I got a simple sample working. You can download it here: http://www.sightsoftware.com/shale/ This was one of my very first attempts to get *anything* working with shale, so use at your own risk..:) Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi Tried that - No cigar if you type in http://localhost:8080/myapp/index.jsp and then have a response.sendRedirect(/jsp/frontpage.faces) it will then go to http://localhost:8080/jsp/frontpage.jsp (note webappname is now missing) Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 11:09 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale The only problem I can see with your example code is that there is no leading slash. Try forwarding to /jsp/frontpage.faces instead. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Ronald Try this: In your index.jsp (entry point of app) add: %@ page session=false contentType=text/html;charset=utf-8% % response.sendRedirect(jsp/frontpage.faces); % Then define a tiles definition : jsp/frontpage. If you can make this work, I am definitly doing something wrong. Why the algorithm from JspTilesViewHandlerImpl was changed in TilesViewHandler, I do not know. Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 10:26 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale Hi Hermod, The Shale Tiles view handler tries to map the view id to a tile definition by dropping the extension. In my case, I have a tile definition '/charts/measures/measureWizardSelectSystemEvent', so when the view '/charts/measures/measureWizardSelectSystemEvent.jsf' is invoked (in my case as a view state in the dialog flow), the Shale Tiles view handler intercepts it and delegates the rendering of the view to the tile definition. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Looking through the source of TilesViewHandler (Shale/Tiles standalone) and JspTilesViewHandlerImpl (MyFaces/Struts Tiles) I see that the functionality for mapping a viewId to a tiles definition (through suffix) is missing in TilesViewHandler. There should be no reason why there is any difference between these two regarding this functionality. I will try to see if a straightforward migration of JspTilesViewHandlerImpl to Tiles standalone is possible, unless the original author of TilesViewHandler wants to take a look at it. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:59 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod Hermod, when i first started working with tiles and shale I got a simple sample working. You can download it here: http://www.sightsoftware.com/shale/ This was one of my very first attempts to get *anything* working with shale, so use at your own risk..:) Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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] - 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: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi I finally figured it out: You can not have: definition name=contactus extends=site.mainLayout and reference as c:redirect url=/contactus.faces / it must be: definition name=/contactus extends=site.mainLayout instead. So lesson learned: If you want to access tiles definitions as pages, they MUST be prefixed by / Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 11:26 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale The only thing I can think of is checking that you have mapped *.faces to the JSF servlet (mine is mapped to *.jsf). Also, use a c:redirect tag in your index.jsp to get the correct url: %@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c % c:redirect url=/jsp/frontpage.faces / Lastly, look any the logs. Try setting org.apache.shale.tiles to debug level to get some logs for the view handler. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Tried that - No cigar if you type in http://localhost:8080/myapp/index.jsp and then have a response.sendRedirect(/jsp/frontpage.faces) it will then go to http://localhost:8080/jsp/frontpage.jsp (note webappname is now missing) Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 11:09 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale The only problem I can see with your example code is that there is no leading slash. Try forwarding to /jsp/frontpage.faces instead. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Ronald Try this: In your index.jsp (entry point of app) add: %@ page session=false contentType=text/html;charset=utf-8% % response.sendRedirect(jsp/frontpage.faces); % Then define a tiles definition : jsp/frontpage. If you can make this work, I am definitly doing something wrong. Why the algorithm from JspTilesViewHandlerImpl was changed in TilesViewHandler, I do not know. Hermod -Opprinnelig melding- Fra: Ronald Holshausen [mailto:[EMAIL PROTECTED] Sendt: 20. oktober 2005 10:26 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale Hi Hermod, The Shale Tiles view handler tries to map the view id to a tile definition by dropping the extension. In my case, I have a tile definition '/charts/measures/measureWizardSelectSystemEvent', so when the view '/charts/measures/measureWizardSelectSystemEvent.jsf' is invoked (in my case as a view state in the dialog flow), the Shale Tiles view handler intercepts it and delegates the rendering of the view to the tile definition. On 20/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Looking through the source of TilesViewHandler (Shale/Tiles standalone) and JspTilesViewHandlerImpl (MyFaces/Struts Tiles) I see that the functionality for mapping a viewId to a tiles definition (through suffix) is missing in TilesViewHandler. There should be no reason why there is any difference between these two regarding this functionality. I will try to see if a straightforward migration of JspTilesViewHandlerImpl to Tiles standalone is possible, unless the original author of TilesViewHandler wants to take a look at it. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:59 Til: Struts Users Mailing List Emne: Re: SV: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:53:55 AM: Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod Hermod, when i first started working with tiles and shale I got a simple sample working. You can download it here: http://www.sightsoftware.com/shale/ This was one of my very first attempts to get *anything* working with shale, so use at your own risk..:) Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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
Tomcat performance - Was Clever trick required
Hi First of all: Please direct these types of questions to the proper maillisting for Tomcat. Tomcat is as I stated, first and foremost a Servlet engine (Reference implementation), and is as such tuned for that. My guess is that if you are having performance problems, that these are due to hardware insuficies. Most likely to little avavailable memory, or that your application is badly written. By badly written I mean for instance that there is a lot of garbage collection occurring. Hermod -Opprinnelig melding- Fra: Martin Gainty [mailto:[EMAIL PROTECTED] Sendt: 18. oktober 2005 15:14 Til: Struts Users Mailing List Emne: Re: Clever trick required Hermod- Currently I am currently running tomcat 5.5.7 and not using any HTTP server for front end If I have no legacy CGI / Perl scripts or static content to server up would I need to front end Tomcat with an HTTP Server? What are the performance considerations for Tomcat standalone vs FrontEnded with an HTTP Server? Takk Martin- - Original Message - From: [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, October 18, 2005 4:20 AM Subject: SV: Clever trick required Hi Your running Tomcat as an HTTP Server? Why? Tomcat is a Servlet engine and is not optimized for serving static content. You should put Apache Http server in front of it, serving static content. I have Tomcat running on servers, and have seen more that 1200 concurrent sessions on it without any problem at all. Hermod -Opprinnelig melding- Fra: Neil Meyer [mailto:[EMAIL PROTECTED] Sendt: 18. oktober 2005 10:12 Til: Struts Users Mailing List Emne: RE: Clever trick required Hi, I know this is probably of topic but I have huge problems with my webserver. We are running struts on this server under Tomcat 5.1. It seems like the tomcat server can't handle load. Any comment or recommendations will really be appreciated. I'm looking at Sun web server now. Regards Neil Meyer - 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]
[Shale] JspTilesViewHandlerImpl and Shale
Hi Has anybody successfully made org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl work with Shale? Meaning that Tiles definitions can successfully be accessed as pages. I.e somepage.jsf will be mapped to somepage.tiles (a tiles definintion) 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 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: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi Are you using the TilesViewHandler from shale-tiles or JspTilesViewHandlerImpl from Tomahawk ? -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:29 Til: Struts Users Mailing List Emne: Re: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:24:01 AM: Hi Ronald Can you access pages as tiles-definitions? I mean not just using jsp pages with tiles:insert? Hermod ..Jumping in.. Ronald, I can access my pages as tiles defintions. What kind of problem are you running into? Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale
Hi Weird. I just took one of my working MyFaces/Tiles projects, and introduced Shale/Clay/Spring configuration to it along with the approprate .jar files. After that the tiles definitions stopped working. I'll try to make myself a simple sample based on the shale usecases and see if I can get that working. Hermod -Opprinnelig melding- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sendt: 19. oktober 2005 15:49 Til: Struts Users Mailing List Emne: Re: SV: SV: [Shale] JspTilesViewHandlerImpl and Shale [EMAIL PROTECTED] wrote on 10/19/2005 09:45:17 AM: Hi Are you using the TilesViewHandler from shale-tiles or JspTilesViewHandlerImpl from Tomahawk ? I am using Shale's org.apache.shale.tiles.TilesViewHandler. But I am also using tomahawk and am (so far!) having no trouble.. Geeta * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: Clever trick required
Hi Your running Tomcat as an HTTP Server? Why? Tomcat is a Servlet engine and is not optimized for serving static content. You should put Apache Http server in front of it, serving static content. I have Tomcat running on servers, and have seen more that 1200 concurrent sessions on it without any problem at all. Hermod -Opprinnelig melding- Fra: Neil Meyer [mailto:[EMAIL PROTECTED] Sendt: 18. oktober 2005 10:12 Til: Struts Users Mailing List Emne: RE: Clever trick required Hi, I know this is probably of topic but I have huge problems with my webserver. We are running struts on this server under Tomcat 5.1. It seems like the tomcat server can't handle load. Any comment or recommendations will really be appreciated. I'm looking at Sun web server now. Regards Neil Meyer - 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: Serializing Form-Beans with XML
Hi Also there are a number of other API's for doing stuff like that, including the Java extention from Sun: JAXB Hermod -Opprinnelig melding- Fra: Bob Arnott [mailto:[EMAIL PROTECTED] Sendt: 17. oktober 2005 11:15 Til: Struts Users Mailing List Emne: Re: Serializing Form-Beans with XML gollinger wrote: Hi, has someone made experiences in using a tool which can serialize Beans to XML-Files and works stable and properly. For example that can also handle String Arrays? http://jakarta.apache.org/commons/betwixt/ The Betwixt library provides an XML introspection mechanism for mapping beans to XML in a flexible way. It is implemented using an XMLIntrospector and XMLBeanInfo classes which are similar to the standard Introspector and BeanInfo from the Java Beans specification. Betwixt provides a way of turning beans into XML as well as automatically generating digester rules in a way that can be customized on a per type manner in the same way that the BeanInfo mechanism can be used to customize the default introspection on a java object. Cheers, -- Bob Arnott - 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]