[s2] s:action interceptors

2007-06-15 Thread Richard Wallace
I've got a page that I'm trying to use s:action on. The action that I'm trying to use implements the Preparable interface and when I access it directly everything works fine. But when I try and embed it in another page with the s:action tag it doesn't seem like the prepare() method is being

Exceptions thrown in prepare() method ignored

2007-05-17 Thread Richard Wallace
Hello, I have an action with a prepare method. The prepare method loads some objects to operate on for the editing, so I have the interceptor stack setup with the params, prepare, params interceptors. My prepare method is public void prepareCreate () { if (m_projectId == null) {

Re: Somewhat OT: Forward to JSP in JAR file

2007-04-25 Thread Richard Wallace
Do you have anything on the forwarding to a JSP in a JAR file that you can tell us about? I'm running into the same situation where I work and can't figure out a solution. I had thought that maybe if I forwarded to something like /struts/jsps/test.jsp and add the package that jsps are contained

Re: Somewhat OT: Forward to JSP in JAR file

2007-04-25 Thread Richard Wallace
Parts - http://javawebparts.sourceforge.net Supplying the wheel, so you don't have to reinvent it! Richard Wallace wrote: Do you have anything on the forwarding to a JSP in a JAR file that you can tell us about? I'm running into the same situation where I work and can't figure out a solution

Struts2, Sitemesh and Freemarker integration

2007-04-25 Thread Richard Wallace
I've just about got everything worked out for using Freemarker to create my Sitemesh templates and have it have access to all my Struts2 goodness. To do that I've got the following in my web.xml !-- SiteMesh Page filter === -- filter

Re: Shale: onclick=disabled='true'; not calling Action Method. (stopping double click)

2006-05-11 Thread Richard Wallace
Craig McClanahan wrote: On 5/11/06, Michael Jouravlev [EMAIL PROTECTED] wrote: On 5/11/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 5/11/06, Jason Vincent [EMAIL PROTECTED] wrote: According to the HTML specification, disabled input controls are *not* included in the request attributes

Re: [shale] Form token giving NPE

2006-05-02 Thread Richard Wallace
Gary VanMatre wrote: Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay

Re: [shale] Form token giving NPE

2006-04-27 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay, if that makes any difference

Re: [shale] Form token giving NPE

2006-04-27 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay, if that makes any difference

[shale] Form token giving NPE

2006-04-24 Thread Richard Wallace
I'm trying to use the token component on a form to ensure that a user doesn't submit the form more than once. Whenever I try and submit the form a second time, I get a NPE. I'm using it in Clay, if that makes any difference. The code is simply: form span jsfid=token id=token / span

[shale] JSF AJAX components using Shale

2006-04-20 Thread Richard Wallace
Hey everyone, I hope you don't mind the cross post, but I just wanted to point this out to everyone. https://blueprints.dev.java.net/ajaxcomponents.html The AJAX components use Dojo for the client-side and build on Shale-remoting for the server-side. I had a similar idea and was even

Re: [Shale/JSF] Can I redirect/forward in the init() method?

2006-04-19 Thread Richard Wallace
James Reynolds wrote: I want to test a value in session, then redirect or forward to a different view based on the result. I tried using getExternalContext().redirect(/theOtherPage.jsp); but I received an exception stating that I cannot redirect after the request is committed. What's the proper

[shale] RuntimeException rather than a 404

2006-04-19 Thread Richard Wallace
When trying to access a file that doesn't exist, Clay is throwing a RuntimeException that is causing my 500 error page to be displayed rather than a 404 error page. Here's the offending exception: java.lang.RuntimeException: Unable to find file /for_parents.html. at

Re: [shale] RuntimeException rather than a 404

2006-04-19 Thread Richard Wallace
/19/06, Richard Wallace [EMAIL PROTECTED] wrote: When trying to access a file that doesn't exist, Clay is throwing a RuntimeException that is causing my 500 error page to be displayed rather than a 404 error page. Here's the offending exception: java.lang.RuntimeException: Unable to find file

[shale] Dynamic includes in clay

2006-04-18 Thread Richard Wallace
Hey, I'm trying to do something like: span jsfid=clay clayJsfid=[EMAIL PROTECTED] allowBody=false / to dynamically include content in a page. The use-case is in a report where the report is mostly static, but the report you get isn't. There are next/prev links as well as table of content

Re: [shale] Dynamic includes in clay

2006-04-18 Thread Richard Wallace
Ryan Wynn wrote: On 4/18/06, Richard Wallace [EMAIL PROTECTED] wrote: The problem I'm running into is that when next or previous are clicked, instead of the content for the next page being displayed,the content from the first page is always displayed. I've checked by logic and made sure

Re: [shale] Dynamic includes in clay

2006-04-18 Thread Richard Wallace
Gary VanMatre wrote: From: Ryan Wynn [EMAIL PROTECTED] On 4/18/06, Richard Wallace wrote: Is the viewId the dynamic page to be included or is it the base page that includes the dynamic content? My situation is that I have a single page, /report/default.html, and that is the only view

[shale] Tomahawk updateActionListener in Clay

2006-04-18 Thread Richard Wallace
Hello again, I'm trying to figure out how to use the Tomahawk updateActionListener in Clay. The idea being that you can attach an action listener to a commandLink and when that specific link is clicked a value will be set on a given property of a backing bean. In JSP it would look something

Re: [shale] Tomahawk updateActionListener in Clay

2006-04-18 Thread Richard Wallace
If there is a better way of accomplishing this I'd sure like to know what it is. Thanks again, Rich Richard Wallace wrote: Hello again, I'm trying to figure out how to use the Tomahawk updateActionListener in Clay. The idea being that you can attach an action listener to a commandLink and when

Re: [shale] Using t:radio in Clay

2006-03-24 Thread Richard Wallace
Gary VanMatre wrote: Hello again, I'm trying to use the Tomahawk t:selectOneRadio and t:radio components to use the spread layout feature. Here's the clay-config.xml configuration for my component definitions: component jsfid=selectPaymentType extends=t:selectOneRadio attributes

Re: [shale] Using t:radio in Clay

2006-03-24 Thread Richard Wallace
Gary VanMatre wrote: That mostly works. Now the page renders and the spread radio buttons are displayed where I have the span jsfid=selectPaymentTypeCreditCardOption / elements, but the radio buttons are also displayed where the span jsfid=selectPaymentType / element is. They're not

[shale] Using t:radio in Clay

2006-03-22 Thread Richard Wallace
Hello again, I'm trying to use the Tomahawk t:selectOneRadio and t:radio components to use the spread layout feature. Here's the clay-config.xml configuration for my component definitions: component jsfid=selectPaymentType extends=t:selectOneRadio attributes set name=id

[shale] Back to t:column styleClass attribute

2006-03-13 Thread Richard Wallace
Ok, I've updated to the 20060313 release and the LoadBundle issues are definitely fixed. Good job! But I'm still having an issue with my t:columns not getting the class set at all. I've uploaded a simple example that produces the problem to

Re: [shale] Back to t:column styleClass attribute

2006-03-13 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] Ok, I've updated to the 20060313 release and the LoadBundle issues are definitely fixed. Good job! But I'm still having an issue with my t:columns not getting the class set at all. I've uploaded a simple example that produces

[shale] LoadBundle basename not set

2006-03-12 Thread Richard Wallace
I'm trying to update from the 20060130 nightly to the 20060312 nightly and I'm getting an IllegalStateException from the LoadBundle component that I wasn't getting before. It looks like the basename attribute isn't being set for some reason, and I'm a bit lost as to why. I haven't changed

Re: [shale] LoadBundle basename not set

2006-03-12 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] I'm trying to update from the 20060130 nightly to the 20060312 nightly and I'm getting an IllegalStateException from the LoadBundle component that I wasn't getting before. It looks like the basename attribute isn't being set

Re: [shale] Tomahawk clay-config.xml help

2006-03-11 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] But the forceId tag is being ignored. In the Tomahawk clay-config.xml file attached to this JIRA issue, https://issues.apache.org/jira/browse/TOMAHAWK-70, has the following: I think the forceId is being ignored because you

[shale] Tomahawk clay-config.xml help

2006-03-10 Thread Richard Wallace
I'm trying to use some of the extended Tomahawk components and attributes in a Clay web page. The table is being configured with: component jsfid=instructorCourseReportTable extends=t:dataTable attributes set name=value value=[EMAIL PROTECTED] / set name=var value=student /

[shale] Extending components with new attributes

2006-03-06 Thread Richard Wallace
Hello, I'd like to extend the inputSecret component and give the new component an added attribute. Basically, what I want to do is create a component that has the tomahawk equal validator attached to it. So, what I've got now is: view component jsfid=t:validateEqual

[shale] Multi-column data table in Clay

2006-03-06 Thread Richard Wallace
Hello again, I'm working on creating a dataTable and I'm having a problem trying to figure out exactly how to do it in nothing but html. I've done this before with help from the list, but that was a simple one column table without any headers. Now I need to create a multi-column table with

Re: [shale] Extending components with new attributes

2006-03-06 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] Hello, I'd like to extend the inputSecret component and give the new component an added attribute. Basically, what I want to do is create a component that has the tomahawk equal validator attached to it. So, what I've got now

[shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the applications configured message bundle? Something as simple as: protected String getMessage (String messageKey) { ResourceBundle rb =

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets a message out of the applications configured message bundle? Something as simple

Re: [shale] Add getMessage() method to AbstractViewController?

2006-02-21 Thread Richard Wallace
Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Craig McClanahan wrote: On 2/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello everyone, I have a simple feature request. Can we get a method added to the AbstractViewController class that gets

[shale] Clay component definition for t:validateEqual

2006-02-14 Thread Richard Wallace
Hello all, I'm trying to use the tomahawk validator for making sure two fields have the same value for users entering their password. There isn't a definition in the clay-config.xml in the Shale or MyFaces JIRA tickets so I'm trying to create one. So I went ahead and created one:

Re: [shale] Outputting formatted numbers

2006-02-01 Thread Richard Wallace
Gary VanMatre wrote: You have a couple options: component jsfid=outputScore extends=outputText converter jsfid=convertNumber attributes set name=maxFractionDigits value=1 / /attributes /converter /component Oh, that explains why my converter wasn't working. I

[shale] Better validation messages

2006-02-01 Thread Richard Wallace
I've starting working with the commonsValidator components in Shale. I'm just getting started but one thing I was hoping this could solve was better error message handling. The error message handling in JSF is probably one of it's weakest areas because you can only define a single message to

[shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace
Hello, I'm trying to use radio buttons to do a questionnaire with the questions pulled from a backing bean. There are examples of using select menus in the use-cases but I don't see anything about how to use radio buttons. I tried doing something like this: #{question.text}

Re: [shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] Hello, I'm trying to use radio buttons to do a questionnaire with the questions pulled from a backing bean. There are examples of using select menus in the use-cases but I don't see anything about how to use radio buttons

[shale] Outputting formatted numbers

2006-01-31 Thread Richard Wallace
I'm trying to format the output of some numbers. Before, the way I would do this was: h:outputText value=#{myBean.score} f:convertNumber maxFractionDigits=1 / /h:outputText I've tried this with the clay-config.xml with: component jsfid=outputScore extends=outputText element renderId=0

Re: [shale] Images and css being rejected

2006-01-30 Thread Richard Wallace
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

Re: [shale] Images and css being rejected

2006-01-30 Thread Richard Wallace
Gary VanMatre wrote: 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

Re: [shale] Some Clay oddities

2006-01-27 Thread Richard Wallace
Tried it. Same result. I'll file a bug report. [EMAIL PROTECTED] wrote: 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

Re: [shale] Tomahawk components

2006-01-27 Thread Richard Wallace
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

[shale] Images and css being rejected

2006-01-27 Thread Richard Wallace
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]

[shale] Clay questions

2006-01-26 Thread Richard Wallace
Hello again, Sorry if I'm getting to be a pest, but I really like Clay and want to understand it better. So, here are my questions of the day: Can you (or how do you) use resource bundles in the clay config files? I'm trying to get to a place where I can use the symbol replacement

[shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread Richard Wallace
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

Re: [shale] Clay questions

2006-01-26 Thread Richard Wallace
Gary VanMatre wrote: From: Richard Wallace [EMAIL PROTECTED] Hello again, Sorry if I'm getting to be a pest, but I really like Clay and want to understand it better. So, here are my questions of the day: Can you (or how do you) use resource bundles in the clay config files? I'm trying

Re: [shale] Clay questions

2006-01-26 Thread Richard Wallace
Craig McClanahan wrote: On 1/26/06, Richard Wallace [EMAIL PROTECTED] wrote: Ok. I understand that's how you use it in the html files. But what about in the clay-config.xml file? For instance, in the use-cases clay-symbols-config.xml file there is a component definition like

Re: [shale] ClassNotFoundException: IgnoreBuilderRule

2006-01-26 Thread Richard Wallace
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

[shale] Tomahawk components

2006-01-26 Thread Richard Wallace
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

[shale] Some Clay oddities

2006-01-26 Thread Richard Wallace
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

[shale] Maven repo

2006-01-25 Thread Richard Wallace
Are the shale artifacts being deployed to any maven repositories? I've been downloading nightlies and just putting them in my local repository (I even wrote a simple script to automate the process), but was hoping to find a repository that was being updated nightly. Thanks, Rich

Re: [shale] Shale-Clay and jsp:forward

2006-01-22 Thread Richard Wallace
Thanks Craig, that was exactly the right solution. I'm using Tomcat 5.5.12 and adding the dispather elements to the shale filter-mapping did the trick perfectly. Thanks again, Rich Craig McClanahan wrote: On 1/21/06, Richard Wallace [EMAIL PROTECTED] wrote: Hello again, I'm running

[shale] Shale-Clay and jsp:forward

2006-01-21 Thread Richard Wallace
Hello again, I'm running into a problem getting my /index.jsp to forward to a Clay HTML page. The index.jsp page just contains the following: jsp:forward page=default.html/ When I try to hit it with the URL http://localhost:8080/shale-clay-example/ I get a 404 saying that default.jsp

[shale] Simple Clay example

2006-01-19 Thread Richard Wallace
Hello, I'm trying to get a simple clay example up and running so that I can use the full html view (which is similar to facelets, correct?). I looked at the use cases and copied the web.xml, faces-config.xml and clay-config.xml and stripped out anything that I didn't need, like Spring and

Re: [shale] Simple Clay example

2006-01-19 Thread Richard Wallace
one at a time rather than have to look at gigantic web.xml and faces-config.xml files. It's rather confusing, especially given the current lack of documentation. Thanks, Rich Richard Wallace wrote: Hello, I'm trying to get a simple clay example up and running so that I can use the full

Re: [shale] Simple Clay example

2006-01-19 Thread Richard Wallace
Gary VanMatre wrote: I'll direct you to the shale usecase example instead of duplicating in this response but this is the minimum stack to use Clay. Added jars: * JSF archives (myfaces or RI) * Common-chains.jar * shale-core.jar * shale-clay.jar Web.xml * Common Chains – Loads a