How to integrate myfaces in RSA 7 for portlet?

2007-05-18 Thread loseyourself
http://www.nabble.com/file/8520/configfiles.rar configfiles.rar -- View this message in context: http://www.nabble.com/How-to-integrate-myfaces-in-RSA-7-for-portlet--tf3776168.html#a10677714 Sent from the MyFaces - Users mailing list archive at Nabble.com.

Re: [Tobago] Regarding renderedPartially in Sheet

2007-05-18 Thread Volker Weber
Hi Madan, it is currently not possible to do ajax refresh for components inside of a sheet. The current algorithm to find and render the requested componenent did not setup a parent UIData component to the requested rowIndex. so you will not get the correct values if you use the var attribute

Re: aliasBean

2007-05-18 Thread Gerald Müllan
Hi, the alias is only accessible in jsp-content embedded inside the aliasBean. cheers, Gerald On 5/17/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Can i access alias bean ONLY in nested content inside aliasBean tag, or it's accessible everywhere in jsp after it's declaration ? I'm using

Re: broken navigation

2007-05-18 Thread Sorin Silaghi
I am using the the 1.1.6 sandbox but I don't have your problem ... have you tried a simple page with just one command link on it and see if that works ... do you use any components from the sandbox on all those pages ? are command buttons also affected or just command links ? if not, have you

AddResource bug - BODY_END

2007-05-18 Thread Dave
Hi, addResource.addInlineScriptAtPosition(context, AddResource.BODY_END, code); The javascript was added in head section. I had expected it to be in the end of HTML body. Is there another way to add javascript in the body? Thanks

Re: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread Thomas Lutz
Hi ! I use jsf-spring ( http://jsf-spring.sourceforge.net/ ) and it works very well. See the quickstart tutorial on their homepage, very easy to setup. Besides the spring integration, maybe you should rethink your design ? Use somthing like acegi security to perform authentification and

Custom picklist component

2007-05-18 Thread Cormier, Matthieu
Hello All, I am attempting to build a picklist JSF component. Here is a prototype of a pick list with javascript only: http://torch.cs.dal.ca/~mcormier/picker/ To create a picklist with columns tables are used. Rows in the table are built dynamically with javascript from supplied data. I

Re: how to execute one-time start-up code?

2007-05-18 Thread eric . jung
Excellent idea. Thanks for the reply, Cagatay. Since I need to initialize application-scoped managed beans in this code, the listener must execute after org.apache.myfaces.webapp.StartupServletContextListener. Is the best way to do this to subclass

Re: using portlet modes

2007-05-18 Thread Alexander Wallace
Man! Thank you so much Scott... That's exactly the command i needed... I just didn't know how to get to it from the bean! This, in combination with nav rules an a simple override to doEdit() to go to edit mode from the portlet decorations (the preferences icon) is doing exactly what i

Problem while implementing WorkingWithLargeTables

2007-05-18 Thread Hasnain Badami
Hi I am trying to implement WorkingWithLargeTables article present on wiki, on the search page of my application (search can return hundreds of results). The user fills in the search criteria and presses the search button. I have used the DataPage and PagedListDataModel classes. Also I have

RE: JSF, Tomcat memory usage

2007-05-18 Thread Cooper, Stephen
Try instead computing the PDF byte[] from the non-portlet JSP or servlet. That way it should never survive Eden and get GC'ed immediately. _ From: Pfau, Oliver [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 1:21 AM To: MyFaces Discussion Subject: AW: JSF, Tomcat memory usage I

Re: Custom picklist component

2007-05-18 Thread Cagatay Civici
Hi, This would help; http://myfaces.apache.org/sandbox/selectManyPicklist.html Cagatay On 5/18/07, Cormier, Matthieu [EMAIL PROTECTED] wrote: Hello All, I am attempting to build a picklist JSF component. Here is a prototype of a pick list with javascript only:

how to execute one-time start-up code?

2007-05-18 Thread eric . jung
Hi, This is a general JSF question; probably not MyFaces-specific. Can anyone tell me how to get one-time initialization code executed during application startup? With Spring and Struts, this was really easy to do. With JSF, it's not obvious to me how to do it. Thanks for any suggestions,

RE: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread Nebinger, David
Besides the spring integration, maybe you should rethink your design ? Use somthing like acegi security to perform authentification and authorization instead of passing Session objects to the business layer... At least consider wrapping the info you need (user id and roles) in an

RE: using portlet modes

2007-05-18 Thread Cooper, Stephen
Here's how I do it for Edit Mode going back to View mode after the user presses Save. I have a public String save() method which tells the preferences to save themselves, then it calls this static method (I made it static so that any JSF bean can call it as part of its action method): /**

Re: Custom picklist component

2007-05-18 Thread Josué Alcalde González
You will need to use some inputHidden to send the data to the server. El vie, 18-05-2007 a las 07:03 -0600, Cormier, Matthieu escribió: Hello All, I am attempting to build a picklist JSF component. Here is a prototype of a pick list with javascript only:

Re: how to execute one-time start-up code?

2007-05-18 Thread Cagatay Civici
Hi, I'm not sure if there's a statement about servlet specification about listener order but usually containers invoke listeners using the declaration order during startup and in reverse order when the app shuts down. I'd go with my own listener rather because the myfaces listener is shipped in

Re: how to execute one-time start-up code?

2007-05-18 Thread Cagatay Civici
Calling FacesContext.getCurrentInstance() returns null from my own ServletContextListener.contextInitialized(), even though I've written the web.xml like so There won't be any facescontext during startup, it's associated with a particular request so since there's no request during startup

Re: using portlet modes

2007-05-18 Thread Alexander Wallace
It definitely does! Thank you very much! it works great! On May 18, 2007, at 9:08 AM, Cooper, Stephen wrote: Here's how I do it for Edit Mode going back to View mode after the user presses Save. I have a public String save() method which tells the preferences to save themselves, then it

[Trinidad] Detailstamp facet problem

2007-05-18 Thread Henk Vanhoe
Hi, I am using an editable table inside a detailstamp facet. The data in the table comes from a request-scoped managed bean. As I want to avoid session scoped beans, I use the tomahawk savestate tag to save the state of my beans. Everything works fine, except that when I change something in

Re: how to execute one-time start-up code?

2007-05-18 Thread ::SammyRulez::
can't you do it in the bean constructor? 2007/5/18, [EMAIL PROTECTED] [EMAIL PROTECTED]: Excellent idea. Thanks for the reply, Cagatay. Since I need to initialize application-scoped managed beans in this code, the listener must execute after

Re: how to execute one-time start-up code?

2007-05-18 Thread eric . jung
Actually, I should also have asked: at what point is it safe to call FacesContext.getCurrentInstance()? After org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized() is complete? Eric Jung/X/PH/Novartis 05/18/2007 10:42 AM To MyFaces Discussion

Re: how to execute one-time start-up code?

2007-05-18 Thread eric . jung
Hi, Calling FacesContext.getCurrentInstance() returns null from my own ServletContextListener.contextInitialized(), even though I've written the web.xml like so: listener listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class /listener

t:jscookMenu not rendered on custom error page

2007-05-18 Thread Cristi Toth
Hi! I have Tomcat redirecting to custom error pages depending on error codes like this: error-page error-code404/error-code location/errorPage.xhtml?msg=PAGE_NOT_FOUND/location /error-page But... on the custom error page, my jscookMenu does not show up!!! what could be the

[Myfaces] dowloading blobs through phase listener

2007-05-18 Thread Renzo Tomaselli
Hi all, I use Tomahawk + Facelets + Trinidad + Ajax4jsf and I need to render blob contents retrived from a database, according to the suggestions at http://jroller.com/page/cagataycivici?entry=phaselistener_renders_an_image_no I use a phase listener to retrieve contents of blobs to render

Re: A Problem With Navegation[SOLVE] [BUG ?]

2007-05-18 Thread Carlos Ortiz
Navegation is not working if the page has any : jsp:include only if the page to be include is 100% html. using myfaces 1.1.5 and 1.1.6 snapshot. tomahawk 1.1.5 Jan-Kees van Andel escribió: I suggest putting a h:messages / tag in your form. Probably a Validator, Converter or

Re: how to execute one-time start-up code?

2007-05-18 Thread eric . jung
What I'm trying to do is cache database data in a bunch of managed beans at startup. This data rarely changes, so it doesn't make sense to run the queries again and again. I've seen other people on the list do it this way: h:commandLink actionListener=#{myManagedBean.init}

Re: broken navigation

2007-05-18 Thread Shane Petroff
Sorin Silaghi wrote: I am using the the 1.1.6 sandbox but I don't have your problem ... Presumably dozens if not hundreds of other people are too; it doesn't make a lot of sense to me, I must be missing something. How could simply having the sandbox jar be accessible to tomcat affect code

RE: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread bansi
Thanks Everyone for providing valuable suggestions We usein-house Security system which gives employee Id and Roles on successful authentication. We need to store employee Id Roles into some kind of object maybe session so that it can be accessible by any Spring bean in the business layer.

Re: how to execute one-time start-up code?

2007-05-18 Thread Craig McClanahan
On 5/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Calling FacesContext.getCurrentInstance() returns null from my own ServletContextListener.contextInitialized(), even though I've written the web.xml like so: listener listener-class

Tree2 Inputtext is null on submit

2007-05-18 Thread psvk
My code is as below. Displaying product and available quantity to purchase more. when the quantity field is entered it is captured as orderbean.quantity for processing, however that value turns out to be null. I am beginner, please advise what I am doing wrong %@ taglib

RE: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread Nebinger, David
Thanks Everyone for providing valuable suggestions We usein-house Security system which gives employee Id and Roles on successful authentication. We need to store employee Id Roles into some kind of object maybe session so that it can be accessible by any Spring bean in the business

Re: How To use Values from a bean in a other

2007-05-18 Thread Andrew Robinson
Multiple ways 1) Use JBoss-Seam @In/@Out annotations to inject/outject the values 2) Use managed properties in the faces-config.xml to have bean b always pull the value from bean A for a given property 3) Put the value in the ExternalContext requestMap in bean A and get it in bean B from the

RE: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread bansi
i am using Springs DelegatingVariableResolver to make my Spring beans accessible from JSF layer . Thats exactly how i am passing user session object ( i.e. user Id and user Roles ) as argument to business method in Spring. I am able to retrieve this user session object its attributes into

How To use Values from a bean in a other

2007-05-18 Thread Carlos Ortiz
Hi How To use Values from a bean in a other I'll to do this. I Have my Bean A then i like to put the arrtibute xx in a bean B example use the iduser attribute form a session bean in a request bean for a simple search , the request bean has a attribute iduser. but how do i set it to request

RE: How to Share Session between JSF(MyFaces) and Spring

2007-05-18 Thread bansi
Thanks David . As i am newbie i would appreciate a snippet code on how to place the authentication object into a ThreadLocal object so that its available to Spring layer w/o any runtime binding Here is what i am doing currently The Homegrown security application on successful authentication

[Trinidad] Inner table with dynamic columns

2007-05-18 Thread Francisco Passos
Hello there. I'm trying to make a tr:table with two columns (name, value). The number of lines is variable and I'd like to use tr:table to be able to use pagination later, since it will probably be necessary. So far everything's going fine. Now, on the value column, I want to place another

[Trinidad] tr:table/ and emptyText property

2007-05-18 Thread Chris Hane
Is it possible to have the emptyText for tr:table/ flow across all of the columns? Right now it seems to only be placed into the 1st column. Thanks, Chris

Re: How To use Values from a bean in a other

2007-05-18 Thread Carlos Ortiz
Thx Just a couple questions. Multiple ways 1) Use JBoss-Seam @In/@Out annotations to inject/outject the values 2) Use managed properties in the faces-config.xml to have bean b always pull the value from bean A for a given property Noob , How i do that ?¡ 3) Put the value in the

Re: How To use Values from a bean in a other

2007-05-18 Thread Andrew Robinson
On 5/18/07, Carlos Ortiz [EMAIL PROTECTED] wrote: Thx Just a couple questions. Multiple ways 1) Use JBoss-Seam @In/@Out annotations to inject/outject the values 2) Use managed properties in the faces-config.xml to have bean b always pull the value from bean A for a given property Noob ,

Re: how to execute one-time start-up code?

2007-05-18 Thread eric . jung
That worked. Thanks, Craig. Craig McClanahan [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 05/18/2007 12:16 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: how to execute one-time start-up code? On

how to reference tomahawk-sandbox on a JSP?

2007-05-18 Thread eric . jung
Hi, I'd like to use some of the tomahawk sandbox components. After downloading http://people.apache.org/builds/myfaces/nightly/tomahawk-sandbox-1.1.5-SNAPSHOT-bin.zip and extracting lib/tomawhawk-1.1.15-SNAPSHOT.jar into my webapp's WEB-INF/lib directory and restarting, I get an error when

RE: JSF Webshop app

2007-05-18 Thread Kito D. Mann
Are you looking for a sample application? If so, you may want to check out ProjectTrack, which uses JSF + Spring + Hibernate: http://code.google.com/p/projecttrack/. ~~~ Kito D. Mann - Author, JavaServer Faces in Action

AW: [Trinidad] labelAndAccessKey don't work

2007-05-18 Thread Michael Trompertz
Again the question: Has anybody some hints for me to extend this functionality for facelets? Everything is welcome! Michael -Ursprüngliche Nachricht- Von: Michael Trompertz Gesendet: Montag, 14. Mai 2007 08:18 An: 'MyFaces Discussion' Betreff: AW: [Trinidad] labelAndAccessKey don't

Leveraging the header/resource usage of A4J in MyFaces Tomahawk?

2007-05-18 Thread Andrew Robinson
After a while of using Ajax4Jsf, I am really liking how they handle component rendering resources (JavaScript and CSS files mainly). Their method seems to be cleaner and (I think) have better performance than Tomahawk. The major difference that I see: - Tomahawk uses the extension filter which

Re: how to reference tomahawk-sandbox on a JSP?

2007-05-18 Thread Grant Smith
Did you include the tomahawk-sandbox.jar as well as the tomahawk.jar ? (Sandbox is a separate jar) On 5/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I'd like to use some of the tomahawk sandbox components. After downloading

RE: Leveraging the header/resource usage of A4J in MyFaces Tomahawk?

2007-05-18 Thread Nebinger, David
After a while of using Ajax4Jsf, I am really liking how they handle component rendering resources (JavaScript and CSS files mainly). Their method seems to be cleaner and (I think) have better performance than Tomahawk. Both implementations suck when it comes to portlets. Portlets generate

Re: Leveraging the header/resource usage of A4J in MyFaces Tomahawk?

2007-05-18 Thread Grant Smith
Andrew, I'm following up to this on the Dev list, as it really belongs there. I agree with you regarding the ExtentionFilter issue, and I have seen criticism to the Tomahawk approach in the past. There is an ongoing discussion on the Dev list considering the direction Tomahawk (or Tomahawk2), so

Re: [Trinidad] tr:table/ and emptyText property

2007-05-18 Thread Adam Winer
I don't see any reason why it shouldn't be implemented the way you suggest. -- Adam On 5/18/07, Chris Hane [EMAIL PROTECTED] wrote: Is it possible to have the emptyText for tr:table/ flow across all of the columns? Right now it seems to only be placed into the 1st column. Thanks, Chris

Re: [Trinidad] Inner table with dynamic columns

2007-05-18 Thread Adam Winer
On 5/18/07, Francisco Passos [EMAIL PROTECTED] wrote: Hello there. I'm trying to make a tr:table with two columns (name, value). The number of lines is variable and I'd like to use tr:table to be able to use pagination later, since it will probably be necessary. So far everything's going fine.

Re: how to reference tomahawk-sandbox on a JSP?

2007-05-18 Thread eric . jung
Hi Grant, Yes, I've included tomahawk-sandbox.jar, in WEB-INF/lib, although it's named tomawhawk-1.1.15-SNAPSHOT.jar. Any other ideas? Grant Smith [EMAIL PROTECTED] 05/18/2007 05:02 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion

Re: Philosophy of JSF

2007-05-18 Thread Ted Husted
On 5/17/07, lightbulb432 [EMAIL PROTECTED] wrote: How do alternatives to JSF like Struts, Struts2, and others handle the concept of view state? For the most part, they don't have the concept of View State. If a control uses data that is not in the post, and the page needs to be presented again

Re: Philosophy of JSF

2007-05-18 Thread Gary VanMatre
From: Ted Husted [EMAIL PROTECTED] On 5/17/07, lightbulb432 wrote: How do alternatives to JSF like Struts, Struts2, and others handle the concept of view state? For the most part, they don't have the concept of View State. If a control uses data that is not in the post, and the page

Re: how to reference tomahawk-sandbox on a JSP?

2007-05-18 Thread Grant Smith
Well, what you've included is the Tomahawk jar. There is ANOTHER one for sandbox components. Look for something named tomahawk-sandbox-1.1.5-SNAPSHOT.jar. Theres actually another one called tomahawk-sandbox15-1.1.5-SNAPSHOT.jar which contains some JDK1.5-requiringcomponents too. On 5/18/07,

Re: how to reference tomahawk-sandbox on a JSP?

2007-05-18 Thread eric . jung
Nevermind--it *wasn't* included in WEB-INF/lib. [EMAIL PROTECTED] 05/18/2007 05:37 PM Please respond to MyFaces Discussion users@myfaces.apache.org To MyFaces Discussion users@myfaces.apache.org cc Subject Re: how to reference tomahawk-sandbox on a JSP? Hi Grant, Yes, I've

Re: [Trinidad] labelAndAccessKey don't work

2007-05-18 Thread Adam Winer
Michael, I just implemented it. :) You can check out the code. -- Adam On 5/18/07, Michael Trompertz [EMAIL PROTECTED] wrote: Again the question: Has anybody some hints for me to extend this functionality for facelets? Everything is welcome! Michael -Ursprüngliche Nachricht- Von:

Re: [Tobago] Regarding renderedPartially in Sheet

2007-05-18 Thread Madan Narra
Hi Volker, thnx for the solution... I have another doubt regarding the tc:sheet rowIndex. How can we know the current RowIndex for the rows in the sheet. If i want to display the Row Number in one of my column, how can i Display the current rowIndex for each row. Regards, Madan N