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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
= (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
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
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 ?
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
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
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
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
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 :
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
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
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
.
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
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
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
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
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
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
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
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
(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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
55 matches
Mail list logo