Re: [MyFaces] Trunacte text

2008-07-23 Thread Mikael Andersson
Hi, if you are using Facelets you could easily do this with a Facelets function. Cheers, Micke 2008/7/21 Guy Bashan [EMAIL PROTECTED]: Hi all, Is there some nice solution for showing text truncated using one of JSF controls? By truncated I mean, with maximum fixed length and … added at

Re: [MyFaces] Initializing Session Bean

2008-07-23 Thread Mikael Andersson
Perhaps something like this: //Session scoped backing bean public class MyPojoManager{ private MyPojo pojo; public MyPojo getPojo(){ if(pojo == null){ //initialize the MyPojo object } return pojo; } } This way it would only be initialized once. - micke 2008/7/21 Guy Bashan [EMAIL

Sharing session with struts

2007-10-03 Thread Mikael Andersson
Hi I'm investigation how to integrate JSF into a large Struts based application and one thing which I need to do is access attributes put into the http session by Struts (homegrown security framework). I first thought that the Session would be the same for both applications but discovered that

Re: Sharing session with struts

2007-10-03 Thread Mikael Andersson
be greateful. Thanks, Mike On 03/10/2007, Simon Kitching [EMAIL PROTECTED] wrote: Mikael Andersson [EMAIL PROTECTED] schrieb: Hi I'm investigation how to integrate JSF into a large Struts based application and one thing which I need to do is access attributes put into the http session

Re: Sharing session with struts

2007-10-03 Thread Mikael Andersson
Just found a property in the Session called authType, wich has the value CLIENT-CERT when accessed from the Struts app and null from JSF. So it seems like it is to do with the security settings, sorry to have bothered you all :) Cheers, Mike On 03/10/2007, Mikael Andersson [EMAIL PROTECTED

Re: Perfomance problem with JSF

2007-09-28 Thread Mikael Andersson
You should be able to use the advice given earlier and just change your code to, especially since you already seem to have a property called userList in the class. public List getUserList() { if( userList != null ){ return list; } // Service Locator instance

request scope+getter+caching = small problem = need advice

2007-09-24 Thread Mikael Andersson
Hi all, I'm looking of advice on a problem I have with a managed bean in request scope. The bean has a ListRunninTask which I retrieve from the a database, I wish to cache this locally in the to avoid hitting the db multiple times. Perfectly normal. Some code, the getter: public

Re: Download File

2007-09-13 Thread Mikael Andersson
You can also do this with plain jsf in a action method. Search for this method getInstrumentsBySecCodePattern on this page : http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel That method could easily be changed into a normal action method. Seem to remeber there was a page in the

Re: Download File

2007-09-13 Thread Mikael Andersson
Sorry wrong method name, should be exportHtmlTableToExcel, copy pasting is difficult ;) On 13/09/2007, Mikael Andersson [EMAIL PROTECTED] wrote: You can also do this with plain jsf in a action method. Search for this method getInstrumentsBySecCodePattern on this page : http

Re: make pdf using JSF

2007-08-06 Thread Mikael Andersson
Haven't tried this myself yet, but Seam can generate PDFs. http://docs.jboss.com/seam/2.0.0.B1/reference/en/html/itext.html - Mike On 06/08/07, David Delbecq [EMAIL PROTECTED] wrote: Hello, i come across a requirement where i need to generate a PDF, by adding text at specific location

Re: make pdf using JSF

2007-08-06 Thread Mikael Andersson
Yes On 06/08/07, David Delbecq [EMAIL PROTECTED] wrote: Can seam work with anything other than JBoss (like tomcat?) En l'instant précis du 06/08/07 11:37, Jurgen Lust s'exprimait en ces termes: You can do this with JBoss Seam:

Re: Tomahawk+DataScroller+WorkingWithLargeTables

2007-07-03 Thread Mikael Andersson
Hi, the getter methods typically get called several times, so caching of the data is usually desired (if you are interested you could have a look at seam and @Factory which addresses this). Don't know how the dataScroller works, but I would guess that it is responsible for at least one call to

Re: Tomahawk+DataScroller+WorkingWithLargeTables

2007-07-03 Thread Mikael Andersson
Haven't read the wiki page, so I don't know how that works. Perhaps you can have the backing bean in request scope (maybe it already is and this advice is not useful) and use a cache, then the data would be reloaded for each request but the multiple gets occuring within that request would be

Re: Modal popup dialogs for form submission in JSF

2007-06-26 Thread Mikael Andersson
You may want to have a look at the modal panel component in the richfaces component library from jboss (these days), works quite well (make sure you read the docs for it though). On 26/06/07, Werner Punz [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Could anyone recommend the best way

Re: File attachment - view state couldn't be restored, reload?

2007-06-21 Thread Mikael Andersson
Hi I'm experiencing the same problem, and would also be interested in knowing if there are any solutions which don't involve bringing in another framework. If there isn't a solution, it would be great if someone could explain to me the reason why this happens. I think/guess it has something to

Re: File attachment - view state couldn't be restored, reload?

2007-06-21 Thread Mikael Andersson
= (StateManager) faces.getApplication().getStateManager(); stateManager.saveSerializedView(faces); Calling it you save the component state information, used to restore the view... Hope it helps, Bruno PS. Mikael :-) On 21/06/07, Mikael Andersson [EMAIL PROTECTED] wrote: Hi I'm experiencing

Re: commandlink and param

2007-03-19 Thread Mikael Andersson
Hi, how do you retrieve the param value in the action method? Your current approach you either need to inject it(specify this in the bean configuration), or grab it from the request map programatically. Another approach would be to use the t:updateActionListener [1] which will work without you

Re: Rich ModalPanel

2007-03-13 Thread Mikael Andersson
Hi, worked fine for me and I tried the stuff in the live demo. You may want to ask in the JBoss RichFaces forum: http://jboss.com/index.html?module=bbop=viewforumf=261 Cheers, Mike On 13/03/07, edney imme [EMAIL PROTECTED] wrote: Hi, did anybody used this component before ?

JSCookMenu problems with myfaces 1.1.5 and tomahawk 1.1.4

2007-02-22 Thread Mikael Andersson
Hi, is anyone running the configuration in the subject line successfully? I tried running our app on myfaces 1.1.5 , but JSCookMenu stopped working, problem with the jscook_action something. Tried adding a hidden field but didn't work. - Mike

Re: JSCookMenu problems with myfaces 1.1.5 and tomahawk 1.1.4

2007-02-22 Thread Mikael Andersson
Had another look at the compatibility matrix, which seems to have been updated recently, and see that the versions I use don't play well together. Wil try tomahawk 1.1.5 snapshot. - Mike On 23/02/07, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, is anyone running the configuration

Re: Problem with jsCookMenu (urgent)

2007-02-20 Thread Mikael Andersson
just to make sure I commented out the js function 'cmItemMouseUp' in JSCookMenu.js , because I'm not conviced the function in MyFacesHack.jsproperly overrides it, will need some more checking. Cheers, Mike On 19/02/07, Mikael Andersson [EMAIL PROTECTED] wrote: I have the same problem. When

Re: Pagination of large database tables

2007-02-20 Thread Mikael Andersson
A bit off topic, but it would be really cool if you/someone could update the wiki about a way of lazy loading and pagination. I suspect that it is only a matter of time before I'll be in a similar position and have to figure out how to do this, in which case a nice wiki explenation would be

Re: Problem with jsCookMenu (urgent)

2007-02-19 Thread Mikael Andersson
I have the same problem. When using standard ThemeIE, it just redisplays the same page whenever I have submenus? It works ok if I have just top level menu items. I am using : facelets 1.1.12 myfaces 1.1.4 tomahawk 1.1.4 Do I need a facelets taghandler for this? This doesn't work :

Re: [ANNOUNCE] MyFaces Core v1.1.5 Release

2007-02-19 Thread Mikael Andersson
I'm also interested in information about which tomahawk version to use and release plans. From reading compatibility matrix it seems apparant that tomahawk 1.1.3shouldn't be used with myfaces core 1.1.5. In the tomahawk 1.1.4 release plan [2] there doesn't seem to be anything stopping it from

Re: Programmatic forward in action,

2007-02-09 Thread Mikael Andersson
to anything strange like try to short-circult the JSF lifecycle or manually construct a response. On 2/8/07, Mikael Andersson [EMAIL PROTECTED] wrote: Looking for some more suggestions :), I would prefer not to use ajax since it is quite a simple page. I have tried some more (hacky) stuff which

Re: Programmatic forward in action,

2007-02-09 Thread Mikael Andersson
hadly adds complexity to your page. I've used AjaxAnywhere for a similar functionality with success. Ricardo. On 2/9/07, Mikael Andersson [EMAIL PROTECTED] wrote: The browser keeps waiting for the action method to finish (when submitting), that is why I thought it might be possible to force

Re: Programmatic forward in action,

2007-02-09 Thread Mikael Andersson
. The refresh triggers a normal JSF action. The JSF servlet returns back an equivalent auto-refreshing page. Repeat until the action returns back a different page. On 2/9/07, Mikael Andersson [EMAIL PROTECTED] wrote: The browser keeps waiting for the action method to finish (when submitting

Re: Programmatic forward in action,

2007-02-09 Thread Mikael Andersson
for another thread/process to do the actual work. This way the action will return quickly. Paul Spencer Mikael Andersson wrote: Hi, I'm afraid I don't quite understand. First a little more on my problem: I have a page with at table where each row contains the status of a task

Re: param not appearing in commandLink

2007-02-09 Thread Mikael Andersson
Probably not the reply you want, but you would inject the param into your backing bean like this: managed-bean managed-bean-namebean/managed-bean-name managed-bean-class com.SomeBean/managed-bean-class managed-bean-scoperequest/managed-bean-scope managed-property

Re: Programmatic forward in action,

2007-02-08 Thread Mikael Andersson
for a progress bar: http://weblogs.java.net/blog/edburns/archive/2005/05/ajaxian_faces_p.html https://blueprints.dev.java.net/bpcatalog/ee5/ajax/usingAJAXwithoutJSF.html Seems like there should be a way to solve this without ajax, though. Maybe using a meta refresh. On 2/7/07, Mikael Andersson [EMAIL

Programmatic forward in action,

2007-02-07 Thread Mikael Andersson
Hi, I have an action which performs a length operation, I'd like to get the browser to redisplay the page while the process keeps running on the server. I wonder how I perform a programmatic forward which in an action method, which causes the browser to re-render the page while the action method

Re: JSF lifecyle - managed-bean

2007-02-06 Thread Mikael Andersson
Is it possible to inject request paramaters into Spring managed beans? On 05/02/07, Mert Çalışkan [EMAIL PROTECTED] wrote: As Juergen Hoeller stated in springframework mail-list, I totally agree with him.. *Consider moving your JSF managed-bean definitions down to the Spring context: Since

Semi complex navigation problem question

2007-01-30 Thread Mikael Andersson
Hi, I've been thinking about a navigation problem that I would like to know if there are any nice ways to solve. This is a navigation problem that I may have to come up with a solution to on a possible future project. I would like to have a generic search page to which I can go to from many

Re: rcfaces with myfaces

2007-01-19 Thread Mikael Andersson
Hi any success which getting rcfaces to work with myfaces yet? I've tried to create a simple webapp using myfaces (and facelets) myself, but without success. My stack trace: SEVERE: Error Rendering View[/index.xhtml] org.rcfaces.core.internal.renderkit.WriterException: RuntimeException

Fwd: Configuring the inputHtml component, looking for information

2006-08-18 Thread Mikael Andersson
(Forwarding to the correct mailing list)Hi,I am looking for information about configuring the way HTML is generated by the inputHtml component.E.g. instead of bold generating an inline style sheet declaration, is it possible to get inputHtml/kupu to generate a span with a css class instead

Re: [newbie] MyFaces or Barracuda ??

2006-07-13 Thread Mikael Andersson
To get started I would recommend giving the myfaces maven archetype a go, that will give you basic web application to get started with and uses the Jetty6 web container, which is really nice when developing (allows you to do this to start the web applciation 'mvn jetty6:run'). Then I would have a

Streaming a lot of data to the browser in a custom component problem

2006-06-30 Thread Mikael Andersson
Hi,I am running into some problems when trying to stream files back to the browser via a simple custom component. The problem is that I get OutOfMemory exceptions when the files grow large in size.The code in the renderer is really simple: BufferedReader buffReader = new BufferedReader( reader

Re: inputText not updating from valueChangedListener

2006-06-14 Thread Mikael Andersson
Had this problem myself, and couldn't find a solution to it :( Especially since I use facelets which doesn't like the valueChangeNotifier (or so I read) ...I assumed it was a phase problem, does the application actually get to the apply request values phase when calling responseComplete()? But

Re: Form value update headache ( via ValueChangeEvent )

2006-06-09 Thread Mikael Andersson
I had to put that form data chaning dropdown outside of the form to get it working, but I would much rather have it inside the main form in context.So please if anyone has a solution to my problem, I am very interested ( if I need to clarify something please ask as well). MickeOn 08/06/06, Mikael

Form value update headache ( via ValueChangeEvent )

2006-06-08 Thread Mikael Andersson
Hi,I am quite new to JSF and don't quite know how to sort out the following.I have a page with quite a lot of forms (unholy mix of input and select fields), the backing bean has a Spring managed object containing a all the data that populates the form fields. I have several different beans defined

Advice please, updated model via valueChange event not render the way I thought

2006-04-05 Thread Mikael Andersson
Hi all,I am relatively new to JSF and have run into a bit of a problem and need some advice.I have a semi complex web form where I would like to use a selectOneMenu and valueChange events to alter various form field values depending on what is selected. selectOneMenu is used like this:select

Re: Advice please, updated model via valueChange event not render the way I thought

2006-04-05 Thread Mikael Andersson
Thanks,that's great will give that try that now.Grazie,MikaelOn 05/04/06, Mario Ivankovits [EMAIL PROTECTED] wrote:Hi! The updated values of the Map strings in the params object are correct when displayed with a outputText component. But when used with an inputText component the value isn't

Re: Advice please, updated model via valueChange event not render the way I thought

2006-04-05 Thread Mikael Andersson
Hi again,you don't happen to know how to get the valueChangeNotifier to work with facelets do you?I downloaded the sandbox.taglib.xml from the facelet website but it didn't contain an entry for that tag, and I am not quite sure of how to add it myself since it isn't an ordinary component. (I know

Re: myfaces-archetype bug?

2006-04-01 Thread Mikael Andersson
version5.5.9/version scopecompile/scope /dependency dependency groupIdtomcat/groupId artifactIdjasper-compiler-jdt/artifactId version5.5.9 /version scopecompile/scope /dependency /dependencies /profile /profiles On 31/03/06, Mikael Andersson [EMAIL PROTECTED] wrote: Solved.First I needed to change from

myfaces-archetype bug?

2006-03-31 Thread Mikael Andersson
Hi, I have having some problems with the myfaces-archetype. Not sure if I am missing something or if it is a bug, I think I used the archetype a while ago without any problems though... When doing the following: % mvn archetype:create -DarchetypeGroupId=org.apache.myfaces

Re: myfaces-archetype bug?

2006-03-31 Thread Mikael Andersson
the sope of those dependencies, kind of a pain and easy to forget to manually change them. - MickeOn 31/03/06, Mikael Andersson [EMAIL PROTECTED] wrote: Hi, I have having some problems with the myfaces-archetype. Not sure if I am missing something or if it is a bug, I think I used the archetype a while

Re: No Javascript again???

2006-03-08 Thread Mikael Andersson
I have the same problem :( , when building code checked out from SVN today.- MickeOn 08/03/06, Boris Kovalenko [EMAIL PROTECTED] wrote:Hello!No _javascript_ for dummyform, for scroller it is present. Boris Kovalenko wrote: Hello! Again no _javascript_ code in resulted html. Only !-- MYFACES

Fwd: ValueBinding question

2006-03-05 Thread Mikael Andersson
Hi, posted this to the facelets mailing list, but realise that i is probably better suited for this one. (Using 3 days old myfaces 1.1.2 with faceletes 1.1.10) -- Forwarded message --From: Mikael Andersson [EMAIL PROTECTED]Date: 05-Mar-2006 18:06 Subject: Re: ValueBinding

Re: JSCookMenu and Facelets issue

2006-02-02 Thread Mikael Andersson
Hi Matt, I have the exact same problem you do, if you manage to sort it out please make a post about how you did it. Cheers, MikaelOn 02/02/06, Matt Fury [EMAIL PROTECTED] wrote: Hi All,I've searched through the archives of the mailing listand could only find a few questions and few answersabout

Where to get myfaces libraries, preferably from maven2 repo

2006-01-15 Thread Mikael Andersson
Hi, I saw myfaces version 1.1.2-SNAPSHOT mentioned in a post and would like to know where I can get it. Thanks, Mikael

Re: H:selectOneMenu question

2006-01-13 Thread Mikael Andersson
Hi, you could use the style attribute. style=width:150px; MickeOn 12/01/06, Yixing Ma [EMAIL PROTECTED] wrote: Quick question, How to change the width of a drop down list ? H:selectOneMenu I want to set a fixed width to the drop down list. It trims off the empty spaces

ADF Faces component : poll and progressIndicator

2006-01-10 Thread Mikael Andersson
Hi, help is needed for the poll and progressIndicator tags in ADF Faces, I'm unfamiliar with this component library so I am probably doing something wrong which is simple to spot. My problem is that I can't get the the 'finished action' to get fired when the polling is done. The polling works and

Re: A question about managed beans , how MB methods treated ?

2006-01-09 Thread Mikael Andersson
Hi, I have a question regarding the managed bean lifecyle. I have read in some blogs about EJB3 like annotations which can be used with managed beans to hook into different stages of the lifecycle, but that's about all I know about it. My question is, is this a feature for JSF 1.2 specification?

Re: Is there any add remove List component available ?

2006-01-02 Thread Mikael Andersson
Hi, there are also a couple of components in ADF Faces. http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/tagdoc/core/imageIndex.html MikaelOn 01/01/06, Legolas Woodland [EMAIL PROTECTED] wrote: HiThank you for reading my posy.Add remove list is a component

ADF Faces: poll tag only polls once

2005-12-30 Thread Mikael Andersson
Hi all, not sure I'm asking this question in the right place, so please point me to a more correct place if needed :) ( had a look at the oracle forums but they seemed very quiet, and a similar question to mine was never answered). I am using ADF Faces (EA19) with myfaces (1.1.1) and Facelets