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
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
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
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
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
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
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
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
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
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
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},
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
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;
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
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/
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
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
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
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
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
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
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
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]
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
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
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
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
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
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
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
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
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
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
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
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 .
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
[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
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
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
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.
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
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
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
201 - 258 of 258 matches
Mail list logo