Re: [shale][clay] CSS style classes on substituted elements

2005-11-07 Thread Gary VanMatre
be something that would evalutated entirely within a custom shale jsf VariableResolver or would the symbol replacement be done in the clay chain ( i.e. replaceMnemonic) and then passed to the standard VariableResolvers? On 11/7/05, Gary VanMatre [EMAIL PROTECTED] wrote: Ryan Wynn wrote: I like

Re: [shale][clay] CSS style classes on substituted elements

2005-11-07 Thread Gary VanMatre
On 11/7/05, Gary VanMatre wrote: So, are you thinking that #{shale:managed-bean-name.save} would be something that would evalutated entirely within a custom shale jsf VariableResolver or would the symbol replacement be done in the clay chain ( i.e. replaceMnemonic

Re: [shale][clay] CSS style classes on substituted elements

2005-11-07 Thread Gary VanMatre
On 11/7/05, Gary VanMatre wrote: On 11/7/05, Gary VanMatre wrote: So, are you thinking that #{shale:managed-bean-name.save} would be something that would evalutated entirely within a custom shale jsf VariableResolver or would the symbol replacement be done in the clay

Re: [shale][clay] CSS style classes on substituted elements

2005-11-05 Thread Gary VanMatre
This will become even more important in a JSF 1.2 world, because the EL expression evaluation machinery has been pulled out into its own spec (and its own package namespace) that can be used completely independently of the web tier. Off the top of my head, maybe something

Re: [shale][clay] CSS style classes on substituted elements

2005-11-04 Thread Gary VanMatre
I noticed that Craig commited the to baseHtml. I think this is good, however I think that now if the symbol 'class' is not explicitly specified then the result will be class=@class Is that right, Gary? Yes, it does do that :-(. One solution may be to set the value

Re: [shale][clay] CSS style classes on substituted elements

2005-11-04 Thread Gary VanMatre
On 11/4/05, Gary VanMatre wrote: I noticed that Craig commited the to baseHtml. I think this is good, however I think that now if the symbol 'class' is not explicitly specified then the result will be class=@class Is that right, Gary? Yes

Re: [shale][clay] CSS style classes on substituted elements

2005-11-04 Thread Gary VanMatre
On 11/4/05, Gary VanMatre wrote: I noticed that Craig commited the to baseHtml. I think this is good, however I think that now if the symbol 'class' is not explicitly specified then the result will be class=@class Is that right, Gary

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Gary VanMatre
As part of my JavaOne session on Shale, I demo'd the fact that Clay lets you have two different views of the page: Designer view: http://localhost:8080/myapp/login.html Developer view: http://localhost:8080/myapp/login.faces To demonstrate that Clay was actually parsing the HTML template, in

Re: [shale][clay] CSS style classes on substituted elements

2005-11-03 Thread Gary VanMatre
Ah, Ryan beat me to the answer. Figures, symbols was his idea anyway. ---BeginMessage--- I believe that currently if the html attribute is not also an attribute on the underlying component, then the html attribute will be treated as a symbol. So, in this case if userNameMessage is actually a

Re: Shale Clay isEL and replaceMnemoic

2005-11-01 Thread Gary VanMatre
Gary, one more thing that would be nice would be if the parser allowed symbols and there values to be specified on the component and element xml elements. Would this be a difficult fix? For example, component jsfid=foo extends=baz mySymbol=bar allowBody=false/ element renderId=1 jsfid=myComp

Re: Shale Clay isEL and replaceMnemoic

2005-10-31 Thread Gary VanMatre
Ryan Wynn Wrote: Currently, this is supported but only if value = [EMAIL PROTECTED] and valueExpr=myBean.property, because the mnemonic replacement is done after the determination of whether or not the value isEL and isVB. So to allow for mnemonics to be replaced by #{foo.bar},

Re: [Shale] new Clay replacement symbols

2005-10-27 Thread Gary VanMatre
Ryan Wynn Wrote: I think I may have narrowed down the problem. In org.apache.shale.clay.component.chain.CreateComponentCommand String id = null; if ((id = displayElement.getId()) == null) id = facesContext.getViewRoot().createUniqueId(); UIComponent child = null; if

Re: [Shale] Clay Component Grouping

2005-10-25 Thread Gary VanMatre
I have the following clay composite: lt;component jsfid=requiredInputText extends=inputTextlg; lt;validator jsfid=commonsValidatorlg; lt;attributeslg; lt;set name=client value=false /lg; lt;set name=server value=true /lg;

Re: [Shale] Clay Component Grouping

2005-10-25 Thread Gary VanMatre
Ryan Wynn Wrote: This incorporates 2 things. First the idName attribute added to the clay component which is replaced on the contents just like managedBeanName. Interesting idea. I think this would be more efficient and easier to distinguish a replacement attribute if we required that

Re: Where can I find information about how to utilize the test framework built into Shale?

2005-10-24 Thread Gary VanMatre
There is not a lot of documentation yet but you can see several examples here: http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/core-library/src/test/org/apache/shale/ http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/test/org/apache/shale/usecases/

Re: [Shale] managed-bean-name token

2005-10-14 Thread Gary VanMatre
Hi Ryan, I'm having trouble getting Shale clay to substitute a non-ViewController bean for the token managed-bean-name. I have looked at the use cases and I still feel like I don't understand the syntax to do token replacement. Shale continues to reference my ViewController bean in EL

Re: [Shale] IndexOutOfBoundsException

2005-10-14 Thread Gary VanMatre
Using clay html views I am getting an IndexOutOfBoundsException at line 106 of org.apache.shale.clay.component.chain.CreateComponentCommand. This line does the following: parent.getChildren().add(clayContext.getChildIndex(), child); where parent and child are UIComponents. My exception

Re: [Shale] managed-bean-name token

2005-10-14 Thread Gary VanMatre
Ryan Wynn wrote: Gary, I tried this approach in both forms you described and it seems that the nested Clay component is picking up the managedBeanName from the root Clay component instead of the one I specify. Which turns out to be the ViewController associated with the view id. I

Re: Postback not occuring for Clay html full view

2005-10-11 Thread Gary VanMatre
Hi Ryan, I am using shale/clay html full view. I have an initial page, index.html, which contains a commandLink to another page, page2.html. index.html [snippet] index is configured as in faces-config.xml and implements ViewController. When I click on page2Link I see that the following is

Re: Struts JSF integration problem

2005-10-06 Thread Gary VanMatre
The struts-faces.jar contains the tag library descriptor (TLD) file in the META-INF of the jar. Try using the following in your JSP: %@ taglib prefix=s uri=http://struts.apache.org/tags-faces; % Gary ---BeginMessage--- Hello Everyone, I just downloaded the struts-faces nightly build

Re: Struts JSF integration problem

2005-10-06 Thread Gary VanMatre
After further review, it looks like the setActionListener method on the CommandLinkTag was not implemented. It is listed as an attribute in the tld. Sorry for the bogus post. The struts-faces.jar contains the tag library descriptor (TLD) file in the META-INF of the jar. Try

Re: [Shale]Newbie question

2005-10-03 Thread Gary VanMatre
after long time of scepticism I decided to try out Shale. I downloaded the shale nightly and installed it on my tomcat 5.0.28. Somehow it was not very satisfying. The struts-shale-usecases runs (or I suppose it to run) with a lot of warnings, but dont give the example, an application

RE: [OT] Re: embed jstl or other struts tag or scriplets within html:text

2005-09-30 Thread Gary VanMatre
I am on websphere/wsad 5.1. Do I have to use EL I think that you can right mouse click on the web project and in one of the list items select JSTL tags. It will automatically update the project and include the JSTL 1.0 standard.jar wesad rocks! From: Dave Newton [EMAIL PROTECTED]

Re: Struts action forms crossing sessions? Any idea why this ishappening?

2005-09-30 Thread Gary VanMatre
On 10/1/05, Preston CRAWFORD wrote: We have a problem. We're working on an application and we have some forms in session scope. The strange thing is if someone changes state on their form, users on other computers on other browsers hitting the same exact page see the state change

Re: [shale] general questions re shale/clay

2005-09-26 Thread Gary VanMatre
Hi All, I can't find answers to the following questions anywhere on the struts/shale web pages. I hope someone can help me here. * Is this list the appropriate one for shale questions? Yep, you have the right place. The shale pages don't have any info about mailing lists. From an

Re: [Shale] Having a static HTML inside a dynamic HTML page

2005-09-23 Thread Gary VanMatre
I was wondering whether there is a way to instruct clay to ignore some tags and just render them the way they are. The comment !-- -- block is the only way to do this currently. I think this would be a good feature. I'll try to get it in soon. For example, I am using FORM based

Re: [Shale] Having a static HTML inside a dynamic HTML page

2005-09-23 Thread Gary VanMatre
Gary thanks for ur reply. The problem is I want LoginForm action to be j_acegi_security_check form action=j_acegi_security_check method=POST /form The only I could make it render this way is my bypassing clay. But for my logout button, input type=submit value=logout jsfid=mybutton / I need to go

Re: [Shale] clay templating

2005-09-21 Thread Gary VanMatre
Maksimenko Alexander wrote: yes it will work too but needs useless duplications of jsfid in mapping element (I afraid of duplications ;)) In this case the last one registered would win. We have the same thing with JSF components and managed beans? why it's not possible just while

Re: [Shale] clay templating

2005-09-21 Thread Gary VanMatre
Gary VanMatre wrote: Maksimenko Alexander wrote: yes it will work too but needs useless duplications of jsfid in mapping element (I afraid of duplications ;)) In this case the last one registered would win. We have the same thing with JSF components and managed beans

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
I am trying to setup Acegi security for my project. I have these following files. 1) good.html -- Protected Resource 2) login.html -- Unprotected Resource login.html is a standard html that has form action=j_acegi_security_check method=POST When I access good.html , acegi filter redirects it

Re: [Shale] Clay and Acegi

2005-09-21 Thread Gary VanMatre
I am trying to setup Acegi security for my project. I have these following files. 1) good.html -- Protected Resource 2) login.html -- Unprotected Resource login.html is a standard html that has form action=j_acegi_security_check method=POST When I access good.html , acegi filter

Re: [Shale] clay templating

2005-09-20 Thread Gary VanMatre
Another question about html views (since they are more interesting in practical use). For example I have main.html component and profile.html component. The both have submit buttons - but I want distinguish that one button is for main.html and another one - for profile.html. In rolodex

Re: [Shale] clay templating

2005-09-20 Thread Gary VanMatre
Gary VanMatre wrote: Another question about html views (since they are more interesting in practical use). For example I have main.html component and profile.html component. The both have submit buttons - but I want distinguish that one button is for main.html and another one

Re: [Shale] clay templating

2005-09-20 Thread Gary VanMatre
Another question about html views (since they are more interesting in practical use). For example I have main.html component and profile.html component. The both have submit buttons - but I want distinguish that one button is for main.html and another one - for profile.html. In rolodex

Re: form resubmission on refreshing page

2005-09-20 Thread Gary VanMatre
I have a list in my jsp .For each item in the list I have a submit button through which user can remove an item in list. When user clicks on remove link I submit the form to my action class .Action class removes selected item from the collection and then sends him back to the same page .

Re: [Shale] clay templating

2005-09-20 Thread Gary VanMatre
That is only true for things defined as component. Things defined as component are top-level. That really means that they are an entry in the Map that caches the digested XML file. When you use the jsfid for an element, it kind of works like and a java anonymous class.It is

Re: [Shale] Clay Vs Facelets

2005-09-20 Thread Gary VanMatre
Hi Guys: I am evaluvating Shale for upcoming project. I wanted to use HTML rather than JSP like Tapestry. I just want to know what you guys think about Clay and Facelets. One thing I liked about Facelets is it doesnt need any extra xml file to define jsf components . This is also true for

Re: [Shale] Clay Vs Facelets

2005-09-20 Thread Gary VanMatre
Oh that is great !!! I never knew we could do these things using Clay. It's a new feature that Sergey Smirnov requested. It's good to hear feedback:-) But I have some questions about ur example, 1) span jsfid=loadBundle var=messages basename=com.acme.mywidgets / I guess it is ur custom

Re: [Shale] clay templating

2005-09-19 Thread Gary VanMatre
Hi! I don't know is there proper place for discussing shale. If it's not can you point me to correct mailing list This is the mailing list. You've even prefixed your message subject with [Shale]. I'm using JSF and looking for good rendering/template framework. Remembering that

Re: [Shale] clay templating

2005-09-19 Thread Gary VanMatre
The only difference is instead of span jsfid=content.html / in profile screen I need profile.html and in main I need main.html components. How can I do this? Well... to me, this sounds like a job for Tiles. Gary, what do you think? Yes, I agree. The role of Clay is to glue togather

Re: [Shale] clay templating

2005-09-19 Thread Gary VanMatre
Sorry for interruption. After reading your discussion, I try to read the more about Shale. From the webpage, http://struts.apache.org/shale/index.html, it is found that Shale does not depend on Struts. I wonder if Shale will be independent of Struts? I think that depends on the

Re: [Shale]managed beans in request vs. session scope and how to clean up

2005-09-15 Thread Gary VanMatre
However, the specs changed..(:( and I had to add Javascript (window.open stuff), so now I have to open a *new* window from my parent window in order to show assessment.jsp. And of course this means my AssessmentBean is no longer initialised. My current solution is to place the bean in session

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
There are several ways to handle this, maybe too many options: From a view controller: String userName = getBean(sessionScope.userName); Or, create a managed bean with the parameter like a Struts form bean: managed-bean managed-bean-nameuserParms/managed-bean-name

RE: JSF - Shale transition

2005-09-09 Thread Gary VanMatre
What do you mean by inferior if you are interested in performance. Is the overhead of the dialog/navigation processing pretty high? In perspective, vanilla servlet programming is faster than Struts. Isn't it relative to what you *value* in a web framework. Gary -Original

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
-config.xml in the usecase's. Gary Gary Thanks again, Geeta ---BeginMessage--- [EMAIL PROTECTED] (Gary VanMatre) wrote on 09/09/2005 11:49:12 AM: There are several ways to handle this, maybe too many options: From a view controller: String userName = getBean(sessionScope.userName

Re: [Shale]Best practice to add common code for all command actions for all backing beans

2005-09-09 Thread Gary VanMatre
This is another example: http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/clayplugin/src/java/org/apache/shale/clay/faces/ClayViewHandlerCommand.java?view=markup The only requirement is that the command's implement the Command interface. The common chains is a pretty sweet idea

RE: Struts forward and jsessionid

2005-09-08 Thread Gary VanMatre
You might try using the JSTL tags. Something like this: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % c:redirect url=widgets.do c:param name=jsessionid value=${pageContext.session.id}/ /c:redirect Gary -- Original message -- Hi Michael In my

Re: [Shale/JSF] Method of backing bean not being called..?

2005-09-06 Thread Gary VanMatre
I thought I was finally getting the hang of Shale/JSF/tiles/ till now, when it seems like something which *ought* to work, isn't. I have a commandLink in my jsp page and clicking on it does not go to the the showSurvey method of my backing bean worklist - instead I return to an empty

Re: [OT Friday] Parse HTML file to underlying text

2005-09-03 Thread Gary VanMatre
I know I missed the Friday deadline but... Has anyone any recommendations for parsing html. I use Lucene and the example has its own HTML parser but I was wondering if anyone has used an existing project or whether there is some built in functionality in an Apache lib to convert

Re: Forwarding to the same page - newbie question

2005-08-25 Thread Gary VanMatre
Try making your forward a redirect: forward name=success path=/pages/colecao.jsp redirect=true/ This will clear out your request parameters. Gary ---BeginMessage--- Hello everyone. I know it's a totally noob question, but I gotta ask. I have an action that is called from page.jsp. After

Re: [SHALE] Still not getting to resulting page based on navigation rules

2005-08-25 Thread Gary VanMatre
Once again I'm stuck and I'm not sure what the problem is. Not sure if this is Shale or MyFaces related, but I'll post here first. Before the problem some background: faces-config navigation-rule navigation-case from-outcomesuccess/from-outcome

Re: [Shale/JSF] Extending AbstractViewController doesn't automagically give me access to init() etc.

2005-08-23 Thread Gary VanMatre
[EMAIL PROTECTED] wrote the following on 8/23/2005 4:39 PM: Funny, I was *just* thinking that! And then I figured it is because in the Struts world, we are typically used to thinking of a form bean as being shared by many jsps. But I think in the Faces world perhaps the backing bean

RE: Shale ... where can I find out more?

2005-08-17 Thread Gary VanMatre
I'm interested in the analogy, Shale is to JSF as Struts is to JSP. What is the connection between JSF and JSP then? I thought that JSF was to JSP the same way Struts was to JSP, and Shale was more like the Struts tag libraries on crack. Can somebody point me to a good explanation of

Re: [SHALE]: using Shale's Tapestry-like views (was [OT] JSP Clutter)

2005-08-09 Thread Gary VanMatre
This is very interesting... I need to know more. My biggest concern (right now) with switching to JSF is having to teach our web designers JSF tages. They want to work in HTML and Javascript and use there favorite Web design tools (e.g. Dreamweaver). They also often have to begin

Re: Login with authentication from database

2005-08-07 Thread Gary VanMatre
I have seen this done in webshpere 5.x application server where you can create a custom security provider that acts as a stand-in for your J2EE security provider. This custom provider can authenticate principals, groups and users in groups to any data source. Sorry, can't speak for tomcat.

Re: Showing a PDF inside a JSP

2005-08-04 Thread Gary VanMatre
hihi, i've also worked quite a bit with generating PDF documents (iText, JasperReports via iReport) so i know Acrobat pains too. (yes Acrobat is very moody, it works one day then not the next, and only for ppl it likes) :) i went to that website: http://www.sos.state.co.us/biz but

Re: Showing a PDF inside a JSP

2005-08-03 Thread Gary VanMatre
Excellent! I wouldn't have thought that would work, based on how screwed up the Acrobat plug-in generally is, but that's excellent! Well, I think there was better than a week spent one line of code, actually one char '\r'. You are not alone

Re: Showing a PDF inside a JSP

2005-08-03 Thread Gary VanMatre
to be working perfectly now, so as someone who has fought the Acrobat battle too, I'm curious. Frank Gary VanMatre wrote: Excellent! I wouldn't have thought that would work, based on how screwed up the Acrobat plug-in generally is, but that's excellent! Well, I think there was better

<    1   2   3