Re: Container managed authentication in Myfaces/JSF

2006-02-28 Thread Craig McClanahan
On 2/27/06, Ming Hu [EMAIL PROTECTED] wrote: Redirect works but it's not what I wanted. The functionality I'd like to have is to put security constraints on the action values of JSF/Myfaces command links or buttons.Container managed security is *only* invoked on an initial request, not on a

Re: Annoying INFO Message: Unable to find component

2006-02-28 Thread Martin Marinschek
That's due to the interaction of JSP and JSF. On the first pass (=first access of a page, on subsequent ones this is not a problem), the component-tree get's created while going through the JSP-page. Now if a component doesn't render it's children, the first children (=your label) doesn't know

Re: Annoying INFO Message: Unable to find component

2006-02-28 Thread Craig McClanahan
On 2/28/06, Martin Marinschek [EMAIL PROTECTED] wrote: That's due to the interaction of JSP and JSF.On the first pass (=first access of a page, on subsequent ones this isnot a problem), the component-tree get's created while going throughthe JSP-page. Now if a component doesn't render it's

Re: Container managed authentication in Myfaces/JSF

2006-02-28 Thread Grigoras Cristinel
Hi, You have tried to use redirect inside navigation case like this? navigation-case from-outcomenav_page_domain_op_list/from-outcome to-view-id/page_domain_op_list/to-view-id redirect/ /navigation-case in this case you loose validation messages. other solution is to write your own

MyFaces dataTable column sorting

2006-02-28 Thread Malone, Daniel
Hi, I'm trying to get the MyFaces dataTable to sort my columns. Getting to show up my data was no problem so I think I'm on the right way. I'm not sure what the two attributes sortColumn and sortAscending mean. I know that a String and a boolean is expected but that's about it. Maybe someone

How to make complex layout using datatable?

2006-02-28 Thread wang kai
Hi all, I got a demand that need to show comlexdata in a datatable like the following table. Could anyone direct me how to implement it using datatable? Thanks

RE: Forms inside Forms - is it possible?

2006-02-28 Thread Jeffrey Porter
Hi Mike, Whereabouts is the s:subform tag located? Is it in Sandbox? I can only see s:form Can u define enctype=multipart/form-data in s:subform ? Thanks Jeff -Original Message- From: Martin Marinschek [mailto:[EMAIL PROTECTED] Sent: 27 February 2006 19:05 To: MyFaces Discussion

Re: How to make complex layout using datatable?

2006-02-28 Thread Amit Jain
As far as i know dataTable dont support colspan and rowspan. If you need such thing, you have to make your own renderer for dataTable(extend HtmlTableRenderer) to support colspan and rowspan. - Original Message - From: wang kai To: users@myfaces.apache.org Sent:

Re: How to make complex layout using datatable?

2006-02-28 Thread wang kai
Thanks for your reply. 2006/2/28, Amit Jain [EMAIL PROTECTED]: As far as i know dataTable dont support colspan and rowspan. If you need such thing, you have to make your own renderer for dataTable(extend HtmlTableRenderer) to support colspan and rowspan. - Original Message - From:

RE: How to make complex layout using datatable?

2006-02-28 Thread Frank Felix Debatin
The table component of ADF faces supports column groups (by nesting af:column), and, maybe you also need the column attribute separateRows that forces childs to be rendered as separate cells. Have a look at: http://tinyurl.com/p98e8 HTH Frank Felix From: wang

headerLink

2006-02-28 Thread Hasnain Badami
HiI am trying to modify the myfaces collapsiblepanel example such that an actionlistener is fired when the headerLink is created.The code is h:form id=form t:dataTable id=test_dt var=person value= #{thirdCollapsiblePanelBean.persons} preserveDataModel= false h:column t:collapsiblePanel id=test4

String concatenation in EL

2006-02-28 Thread Frank Felix Debatin
Hi all, sorry if this question is slightly off-topic ... but maybe you have a quick answer. How to concat strings in EL? My goalis towrite something like h:outputText value="#{ bundle[prefix+key] }" / where prefix and key are string parameters.Neither plus sign nor spaces work. TIA

Re: Session Expiration Default Target?

2006-02-28 Thread Jonathan Harley
Mike Kienenberger wrote: On 2/27/06, Elam Daly [EMAIL PROTECTED] wrote: Oh, and how do I determine if a session has expired? I don't see any enlightening methods in the HttpSession class. Your mistake here is thinking that the servlet api was intended to be useful :) You have to do

AW: String concatenation in EL

2006-02-28 Thread andreas.mitter
I'm sure it would work like this: h:outputText value="#{ bundle[prefix] }" / h:outputText value="#{ bundle[key] }" / But I don't know, if you would like to do it like that (because it's not a really nice solution) Regards, Andy -Ursprüngliche Nachricht-Von: Frank Felix Debatin

RE: String concatenation in EL

2006-02-28 Thread Frank Felix Debatin
This would have a different effect. I organized the ressources with keys such as "myPage.title". So I would like to have #{bundle[ page.name + '.title' ] } !-- doesn't work -- to be resolved to #{bundle[ 'myPage.title' ] } Thanks Frank Felix From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: MyFaces dataTable column sorting

2006-02-28 Thread Dave Brondsema
See the tomahawk examples, there's a good example of t:dataTable sortColumn, and sortAscending should bind to getters/setters for a String and boolean. Malone, Daniel wrote: Hi, I'm trying to get the MyFaces dataTable to sort my columns. Getting to show up my data was no problem so I think

Re: String concatenation in EL

2006-02-28 Thread R. Müller
Hi, the lack of this feature is really annoying to me too -- and this issue was discussed here serveral times without real success. For me the following JSTL-approach works (but also no nice solution) : c:set var=key value=${page.name}'.title' scope=request/ h:outputText

AW: String concatenation in EL

2006-02-28 Thread andreas.mitter
Oh sorry, I thought prefix and key are just two entries in your bundle... I just should have read the mail more exactly ;) Regards, Andy -Ursprüngliche Nachricht-Von: Frank Felix Debatin [mailto:[EMAIL PROTECTED]Gesendet: Dienstag, 28. Februar 2006 14:24An: 'MyFaces

RE: String concatenation in EL

2006-02-28 Thread Frank Felix Debatin
God, is this ugly!!! However, thanks for the info. @Andy, thanks no problem -Original Message- From: R. Müller [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 2:54 PM To: MyFaces Discussion Subject: Re: String concatenation in EL Hi, the lack of this feature is really

URL IllegalArgumentException problem when mixing JSF and portlet

2006-02-28 Thread Alexandre Combe
Hi, I m not sure this is the right place to post this message but i try anyway. I’v got the following problem when mixing a JSF Web Application based on Myfaces into a pluto container : java.lang.IllegalArgumentException: only absolute URLs or full path URIs are allowed at

RE: A bunch of belated answers about ADF

2006-02-28 Thread James Moores
Adam, Thanks for getting around answering so many of our questions. I gave up on the use of processScope in the end (and switched back to session scopes), but I've kept access to all my properties abstracted so I can easily switch back to processScopes if/when I can get one of the suggested

AW: MyFaces dataTable column sorting

2006-02-28 Thread Matthias Kahlau
I'm trying to get the MyFaces dataTable to sort my columns. Getting to show up my data was no problem so I think I'm on the right way. I think you have to provide your own sort method, which sorts the data list according to the sortAscending and sortColumn attribute values before the data

RE: facelets compilation

2006-02-28 Thread Garner, Shawn
Which xml are you referring to? I should have been more specific. I was referring to serving xhtml pages. Hopefully that is what you were referring to as well. Shawn -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 12:44 AM To: MyFaces

RE: Forms inside Forms - is it possible?

2006-02-28 Thread Jeffrey Porter
1: I've solved the problem by just using one form tag. 2: FacesException: expr was due to a h:outputLabel with no for='problemCause' section. 3: Thanks for the help Mike. :-) -Original Message- From: Jeffrey Porter [mailto:[EMAIL PROTECTED] Sent: 28 February 2006 08:44 To:

Re: A bunch of belated answers about ADF

2006-02-28 Thread Adam Winer
The simplest possible PhaseListener I can imagine is one that just does: processScope.put(a, b); ... that is, chucks some nonsense data on, and makes sure that the system always generates a new token for every request. That'd be enough to bypass the issue you're encountering. -- Adam On

RE: String concatenation in EL

2006-02-28 Thread Garner, Shawn
Try this maybe.  Not sure on this one. c:set var="myPageTitle" scope="request"   c:out value="${page.name}"/c:out value=".title"/ /c:set then later do h:outputText value="#{bundle[myPageTitle]}"/     Shawn From: Frank Felix Debatin

RE: A bunch of belated answers about ADF

2006-02-28 Thread James Moores
Ok, I'll give that a go, thanks. Jim -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: 28 February 2006 15:27 To: MyFaces Discussion Subject: Re: A bunch of belated answers about ADF The simplest possible PhaseListener I can imagine is one that just does:

RE: URL IllegalArgumentException problem when mixing JSF and portlet

2006-02-28 Thread Stan Silvert
It looks like your Pluto configuration is messed up. According to the stack trace, the request never hits MyFacesGenericPortlet. Stan Silvert JBoss, Inc. [EMAIL PROTECTED] callto://stansilvert -Original Message- From: Alexandre Combe [mailto:[EMAIL PROTECTED] Sent: Tuesday, February

Re: facelets compilation

2006-02-28 Thread Adam Winer
Yep, the XHTML is what I'm referring to. What takes so much time in a JSP engine is actually compiling the generated .java code into a .class file. So the benefit of pre-compiling is an artifact of the fact that you're bothering to generate a .java file in the first place. Facelets doesn't have

[OT] Facelets JSP Scriptlets

2006-02-28 Thread Garner, Shawn
Is there any chance that facelets supports JSP Scriptlets? I know it supports jstl and el but sometimes I still like to use scriptlets even though I know it should be converted to a tag. I just don't want to take the time to convert everything to tag libraries. Mostly for function

Re: MyFaces dataTable column sorting

2006-02-28 Thread devosc
under what conditions might 'getAscending' be called ? From the definitions of Boolean.valueOf(String) it is only true when the sortAscending attr value is 'true', yet I cant see in any of the examples a 'getAscending' method ?

Re: Container managed authentication in Myfaces/JSF

2006-02-28 Thread Ming Hu
redirect/ inside of a navigation-case works fine. And I like it for the following reasons:1. I can use container managed authentication, hence container managed authorization on the EJB/middle tier. 2. My browser's address bar displays the corresponding link when a command link/button is clicked,

popup calendar Jenia

2006-02-28 Thread sjarlier
Hi! I am using Jenia4Faces http://www.jenia.org/jsp/home.jsf;jsessionid=6E9178050A036EC207C849D3EFC905DC for displaying a popup calendar. However, while having a listbox (selectOneMenu) the listbox appears on the top of the calendar, how can I choose that the popup should be rendered

RE: popup calendar Jenia

2006-02-28 Thread Lewie Gass
Sophie, As far as the select/list box is concerned, unless something has changed recently in browsers, the zOrder by default is to be on top of everything else. The last time I looked, it was impossible to change the z-Order, even with CSS styles or _javascript_ The only way we got

RE: String concatenation in EL

2006-02-28 Thread CONNER, BRENDAN \(SBCSI\)
Another thing to look at might be to have a managed bean retrieve the value from the message bundle in its getter. That makes the JSP simpler, at the expense of writing some extra Java code. - Brendan -Original Message- From: Frank Felix Debatin [mailto:[EMAIL PROTECTED] Sent:

Re: How to make complex layout using datatable?

2006-02-28 Thread Andrew Robinson
The other alternative, although not as nice perhaps, is to use dataTable with one column and then build div tags with your own width/height settings for each row. The CSS will be more complex, but you have complete control, and since you are using dataTable, the data will post back correctly

Re: Container managed authentication in Myfaces/JSF

2006-02-28 Thread Joey Geiger
I've run into issues with Spring and the OpenSessionInViewFilter, or anything in general that needs to be displayed and is in a request scope. That is one of the most frustrating things for me coming from a PHP/Perl programming background. Ming Hu wrote: redirect/ inside of a navigation-case

Re: String concatenation in EL

2006-02-28 Thread Andrew Robinson
EL functions should work as well. Using facelets you could write a concat function (if there isn't already one provided by JSTL). I haven't tried it in a map syntax, but it should theoretically work: t:outputText value=#{messages[fn:concat(page.name, '.title')]}/ On 2/28/06, CONNER, BRENDAN

Re: Container managed authentication in Myfaces/JSF

2006-02-28 Thread Andrew Robinson
I am depading the same issue. Servlet filters allow you to apply them on REQUEST and FORWARD, but I don't think you can change the settings for the built-in authentication that I know of (I'm not even sure it is required by the spec to be a filter for security). You could therefore write your own

JSP 2.1 and JSF 1.2

2006-02-28 Thread Mike Duffy
In a previous post Craig stated that the rendering of children, is one of the many things that works *much* better in a JSF 1.2 world. I see on the sun site that the Proposed Final Draft 2 for JSP 2.1 was posted on 17 Feb, 2006, and the Proposed Final Draft 2 for JSF 2.1 was posted on 15 Feb,

RE: popup calendar Jenia

2006-02-28 Thread sjarlier
Thanks for answering. So you mean that it will be not possible without lot of codes And whats about my conversion, why the date I obtain is not correct? Sophie De: Lewie Gass [mailto:[EMAIL PROTECTED] Envoy: mardi 28 fvrier 2006 17:32 : MyFaces Discussion; [EMAIL

Migrating ADF Faces app to use Facelets

2006-02-28 Thread Frank Felix Debatin
Hi, finally I managed to migrate our ADF Faces app to use facelets. Ton of work, but it went smoothly and really pays off, making the page writing much more clean and powerful. What a wonderful combination!!! Here is a small migration guide for those who intend to do the same (note: I'm a

Re: Session Expiration Default Target?

2006-02-28 Thread Mike Kienenberger
On 2/27/06, Elam Daly [EMAIL PROTECTED] wrote: how do I determine if a session has expired? Mike Kienenberger wrote: You have to do something like this: boolean expired = false; try { session.getAttribute(anything):

RE: popup calendar Jenia

2006-02-28 Thread Lewie Gass
Sophie, Yeah, I am not sure why your getting a bad date, would have to see more of the code and stuff, but it could also originate with the Jenia4Faces component, you may try to contact the designer if you have not already thought of that Ponder From: [EMAIL PROTECTED]

RE: can someone post a small working example of using my faces with the Struts Shale s:token?

2006-02-28 Thread Santiago, Ray
Hi Craig, It would be such a useful thing if you could get this into Creator. What would it take for me to get access to the nightly builds? Thanks rjs From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 28, 2006 2:41 AM To: MyFaces Discussion

Fwd: MYFaces BUG-669

2006-02-28 Thread Bruno Aranda
Sorry I cannot help now, I am relocating to the UK. Sending the mails to the list directly is more useful :) Best regards, Bruno -- Forwarded message -- From: Bende Bryan [EMAIL PROTECTED] Date: Feb 28, 2006 6:06 PM Subject: MYFaces BUG-669 To: [EMAIL PROTECTED] I've been

Re: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Adam Winer
Frank Felix Debatin wrote: Hi, finally I managed to migrate our ADF Faces app to use facelets. Ton of work, but it went smoothly and really pays off, making the page writing much more clean and powerful. What a wonderful combination!!! Glad you liked it! Here is a small migration guide

Re: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Rogers Reilly
I actually just finished doing the same thing, so I sympathize w/you, Frank. :-) Totally worth it, though- the ADF components are fantastic, and Facelets is great to work with. Couple other tips I thought I'd chime in with, in the hopes of sparing others some time/web hunting: 1)

Re: How to make complex layout using datatable?

2006-02-28 Thread Mike Kienenberger
Or you could use t:dataList. You're responsible for generating the tags, but the component will handle the iteration for you. On 2/28/06, Andrew Robinson [EMAIL PROTECTED] wrote: The other alternative, although not as nice perhaps, is to use dataTable with one column and then build div tags

RE: String concatenation in EL

2006-02-28 Thread Frank Felix Debatin
Hi Andrew, thanks for the note. I think this is by far the best solution. Here is what worked for me (the JSP 2.5 and Facelets docs are not very good on this). I added META-INF/bamboo.taglib.xml with the following contents: ?xml version=1.0? !DOCTYPE facelet-taglib PUBLIC -//Sun

Re: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Mike Kienenberger
On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote: 3) a tangent, but related- if you find yourself trying to get Tomahawk ADF components working together, you may find this example helpful. The Tomahawk EqualsValidator won't work if you're comparing the component to an ADF component, and

RE: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Frank Felix Debatin
Hi Adam, Did you mean this the opposite way? My suggestion is to replace af:outputText escape=false with af:outputFormatted where user-supplied markup is present, so it gets filtered down to a legit set without worrying about cross-site scripting. Agreed - depends on what effect you

Re: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Mike Kienenberger
I've created https://issues.apache.org/jira/browse/TOMAHAWK-164 to track this issue. I may take a look at EqualsValidator after I'm done if it isn't too difficult. On 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote: On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote: 3) a tangent, but

Re: Do Portlet Modes and JSF navigation work together?

2006-02-28 Thread Todd Papaioannou
Stan Thanks for the reply. I took that section out, but that wasn't it. I'm wondering if perhaps I'm missing some jar file(s) and something is just silently failing in the background. Is there a list of jars I need to include with my portlet for MyFaces to work correctly? Thanks Todd Stan

Re: JSP 2.1 and JSF 1.2

2006-02-28 Thread Craig McClanahan
On 2/28/06, Mike Duffy [EMAIL PROTECTED] wrote: In a previous post Craig stated that the rendering of children, is one of the many things thatworks *much* better in a JSF 1.2 world.I see on the sun site that the Proposed Final Draft 2 for JSP 2.1 was posted on 17 Feb, 2006, andthe Proposed Final

Re: can someone post a small working example of using my faces with the Struts Shale s:token?

2006-02-28 Thread Craig McClanahan
On 2/28/06, Santiago, Ray [EMAIL PROTECTED] wrote: Hi Craig, It would be such a useful thing if you could get this into Creator. What would it take for me to get access to the nightly builds?I should have reviewed what I was typing more carefully before sending :-). I

RE: Do Portlet Modes and JSF navigation work together?

2006-02-28 Thread Stan Silvert
You don't need any more than you would for a normal JSF app. The MyFaces web page says you need portlet.jar, but you should be getting that from your portal vendor. Another suggestion: Do a view source on the web page and see if the form action looks funny. Stan Silvert JBoss, Inc. [EMAIL

Some simple questions about JSF frameworks ....?

2006-02-28 Thread Legolas Woodland
Hi Thank you for reading my post. I want to know what additional features SEAM from jboss ,Clay , Shale from Apache and Facelets bring to jsf. I will be happy if some one give me a simple answer. Thank you

Re: Some simple questions about JSF frameworks ....?

2006-02-28 Thread Mike Kienenberger
SEAM gives you database integration (EJB3?), Shale provides a variety of things (dialogs, lifecycle hooks, testing framework, commons validator to name a few), Clay and Facelets provide you with alternatives to using jsp both as an end-user as well as a component developer. Facelets also

Using VariableResolver or ValueBinding in NonFacesRequestServlet

2006-02-28 Thread Hubert Rabago
I'm working on a servlet based on the code in NonFacesRequestServlet. I read the example in http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls. At the point where it says put your initialization stuff here it shows using either a VariableResolver (VR) or a ValueBinding (VB) to

Re: Migrating ADF Faces app to use Facelets

2006-02-28 Thread Adam Winer
On 2/28/06, Rogers Reilly [EMAIL PROTECTED] wrote: I actually just finished doing the same thing, so I sympathize w/you, Frank. :-) Totally worth it, though- the ADF components are fantastic, and Facelets is great to work with. Couple other tips I thought I'd chime in with, in the

Re: [OT] Facelets JSP Scriptlets

2006-02-28 Thread Adam Winer
Shawn, This should be directed to the Facelets list; but I'll answer it here: no, Facelets doesn't support JSP scriptlets, and is extremely unlikely to ever do so. -- Adam On 2/28/06, Garner, Shawn [EMAIL PROTECTED] wrote: Is there any chance that facelets supports JSP Scriptlets? I

Re: [OT] Facelets JSP Scriptlets

2006-02-28 Thread Mike Kienenberger
But someone did implement bashlets for it. I don't remember the details, but it was a scripting language for simple tasks. On 2/28/06, Adam Winer [EMAIL PROTECTED] wrote: Shawn, This should be directed to the Facelets list; but I'll answer it here: no, Facelets doesn't support JSP

immediate action for non commands

2006-02-28 Thread Lance Frohman
What is the best practice if I need a drop down list - h:selectOneListbox - change to go to the server, as if there was an immediate=true on a command button. Depending on what is selected in the h:selectOneListbox, the page will be displayed differently. I was using a kludge with onclick=

inputSuggestAjax + HTTPS + IE

2006-02-28 Thread Jun Guo
Hi - We're using the inputSuggestAjax sandbox control (version 1.1.1), and came across an interesting issue. It works with FireFox (both HTTP and HTTPS), and also works in IE for HTTP (which is what the sandbox example uses). However, our site uses HTTPS and this control is not working properly in

[ANNOUNCE] New Article: Dynamic JSF Development

2006-02-28 Thread Kito D. Mann
I'm pleased to announce a new article at JSF Central entitled Dynamic JSF Development by Peter Kasson. Here's an excerpt: JSF is a very powerful, component-based technology for developing web applications. Not surprisingly, several software vendors have updated their toolkits to support JSF,

Re: immediate action for non commands

2006-02-28 Thread Dennis Byrne
The kludge you speak of is the most popular way to do this. One warning. Let's say you have two controls, selectOneMenu and inputText. Your requirement is that the inputText is to be rendered *only* when a certain item (let's call it 'ITEM X') in the selectOneMenu is selected. You accomplish

Re: immediate action for non commands

2006-02-28 Thread Rogers Reilly
Best way to do this now is with Cherokee (or whatever it's called). af:selectOneListbox takes an autoSubmit attribute, which does exactly what you want. I was thinking you could also set partialSubmit=true and do your refresh with PPR, which would be slick, but I'm not seeing that attribute

Re: How to make complex layout using datatable?

2006-02-28 Thread Andrew Robinson
dataList is deprecated. The Tomahawk developers recommend that you do not use it. It doesn't not correctly process the update components phase On 2/28/06, Mike Kienenberger [EMAIL PROTECTED] wrote: Or you could use t:dataList. You're responsible for generating the tags, but the component will

Re: Some simple questions about JSF frameworks ....?

2006-02-28 Thread Andrew Robinson
Seam: Extended entity management persistence (EJB3 or hibernate) Conversation context (multiple windows supported with server side state. Basically a long running transaction) Annotation demarcation of maneged beans Annotate injection and outjection of context variables Interception of action

Re: Some simple questions about JSF frameworks ....?

2006-02-28 Thread Craig McClanahan
On 2/28/06, Andrew Robinson [EMAIL PROTECTED] wrote: Seam:Extended entity management persistence (EJB3 or hibernate)Conversation context (multiple windows supported with server sidestate. Basically a long running transaction)Annotation demarcation of maneged beans Annotate injection and outjection

immediateSort, dataTable, dataScroller, WorkingWithLargeTables

2006-02-28 Thread devosc
Hi, I'm trying to get the sort action to act immediately, while using the dataScroller and WorkingWithLargeTables (http://wiki.apache.org/myfaces/WorkingWithLargeTables). It behaves (immediately) as expected when the bean is in the request scope and preserveSort = false, but then upon pagination

Re: immediate action for non commands

2006-02-28 Thread Dennis Byrne
Lately I've just turned to the client side because of things like this. For example, to get around the aforementioned warning, one might always keep @rendered set to true for the inputText element, but set it's style to display:none . Then, use js to programmitcally change this and avoid the