Re: How to speed up JSF

2006-03-26 Thread FSchaare
Hi, But on all my JSF pages I actually doesn’t use JSP as it, so I suppose I have always some time to: compile JSP(only 1 time) + execute jsp compiled class. I'm not sure where your problem is, but if you bother that jsp compilation time, you'll find several ways to precompile your JSPs, for

How i can show current timeStamp in jsf

2006-03-26 Thread Legolas Woodland
Hi Thank you for reading my post How i can show current timestamp in jsf ? thanks

Problem with PhaseListener

2006-03-26 Thread Lisaa
Hi., In order to manipulate (update model before event request) the default lifecycle, I added a PhaseListener to my Backing bean's constructor. CODE: lifecycle.addPhaseListener(new PhaseListener() { public void beforePhase(PhaseEvent event) {

AW: tabchangelistener

2006-03-26 Thread Matthias Kahlau
On 3/25/06, Matthias Kahlau [EMAIL PROTECTED] wrote: Can you please tell me what the problem was with the serverSideTabSwitch? You quoted it already below, but to restate, it didn't interpret non-EL expressings as Boolean values, and wasn't saving the state of the switch in

Re: How i can show current timeStamp in jsf

2006-03-26 Thread Andreas Zeller - zit-systems
Hey Legolas, Timestamp? java.util.Calendar.getInstance().getTime() will give you the current time and date... Does that help you? Andreas Legolas Woodland wrote: Hi Thank you for reading my post How i can show current timestamp in jsf ? thanks

Re: JSF and Tiles

2006-03-26 Thread Adam Winer
On 3/25/06, Igor Marakov [EMAIL PROTECTED] wrote: On the other hand, both Facelets and Shale/Clay are still too (IMO) immature to become a basis for serious production app. Next year maybe... Have you used Facelets recently? In my opinion, Facelets 1.1 is very much ready for prime time. And

RE: JSF and Tiles

2006-03-26 Thread Igor Marakov
I haven't seen 1.1 version. Dropped the idea after not being able to get examples for 1.0.6 and 1.0.7 to work. Igor -Original Message- From: Adam Winer [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 11:53 AM To: MyFaces Discussion Subject: Re: JSF and Tiles On 3/25/06, Igor

Re: How i can show current timeStamp in jsf

2006-03-26 Thread Legolas Woodland
Andreas Zeller - zit-systems wrote: Hey Legolas, Timestamp? java.util.Calendar.getInstance().getTime() will give you the current time and date... Does that help you? Andreas Legolas Woodland wrote: Hi Thank you for reading my post How i can show current timestamp in jsf ?

Re: How i can show current timeStamp in jsf

2006-03-26 Thread Andreas Zeller - zit-systems
Well sure, I don't quite understand what exactly you need for your output. It's just a simple getter for a bean... But anyway... To just put out the current time and date, create a bean like TimeBean.java import java.util.Calendar; ... etc. blabla public String getDate(){ return

Re: How i can show current timeStamp in jsf

2006-03-26 Thread Andreas Zeller - zit-systems
Whoops :) That was wrong. -- Then access the value in JSF like t:outputText value="#{timeBean.getDate}" / The "get" disappears of course. So you'd just write t:outputText value="#{timeBean.date}" / in your jsf page... There are lots of other examples. Did you check http://irian.at/myfaces ?

Re: JSF and Tiles

2006-03-26 Thread Adam Winer
Uh, so basically you're saying you never actually used it, but you can also claim it'll be a year before it's ready for a serious production app? Not cool... -- Adam On 3/26/06, Igor Marakov [EMAIL PROTECTED] wrote: I haven't seen 1.1 version. Dropped the idea after not being able to get

Facelets1.1.1 - amp;nbsp; appears as nbsp - not whitespace

2006-03-26 Thread Yee CN
I took a look at the rendered html. It seems that amp;nbsp; is pass straight to the browser as amp;nbsp;. So ampnbsp; can no longer be used? Thanks Yee From: Yee CN [mailto:[EMAIL PROTECTED] Sent: Monday, 27 March 2006 10:22 AM To: [EMAIL PROTECTED] Subject: Facelets1.1.1

Re: Facelets1.1.1 - amp;nbsp; appears as nbsp - not whitespace

2006-03-26 Thread Adam Winer
No, it can't, not in template text. You've got two choices: #160; (the general XML escape for non-breaking spaces) h:outputText escape=false value=amp;nbsp;/ At some point, a straight nbsp; may be accepted, but amp;nbsp; was always a hacky workaround for some glitches that are fixed by

RE: Facelets1.1.1 - amp;nbsp; appears as nbsp - not whitespace

2006-03-26 Thread Yee CN
Sorry got sent to the wrong mailing list. From: Yee CN [mailto:[EMAIL PROTECTED] Sent: Monday, 27 March 2006 11:09 AM To: 'MyFaces Discussion' Subject: Facelets1.1.1 - amp;nbsp; appears as nbsp - not whitespace I took a look at the rendered html. It seems that amp;nbsp;

t:saveState can not fetch FacesContent.getViewRoot()

2006-03-26 Thread Anthony Hong
in my backing bean, I want to get view local in my constructor. But if I use t:saveState, when click some action to invoke backing bean. It throws null pointer exception. FacesContent.getViewRoot() is null. If I don't use saveState, it works fine. Is this correct? -- Anthony Hong

Re: t:saveState can not fetch FacesContent.getViewRoot()

2006-03-26 Thread Dennis Byrne
I'm not sure what you mean. What is @value of t:saveState ? Can you post the stack trace? Dennis Byrne -Original Message- From: Anthony Hong [mailto:[EMAIL PROTECTED] Sent: Sunday, March 26, 2006 10:46 PM To: 'MyFaces Discussion' Subject: t:saveState can not fetch

Re: t:saveState can not fetch FacesContent.getViewRoot()

2006-03-26 Thread Anthony Hong
save a request scope backing bean field. My backing bean construct want to get current view locale to read resource bundle On 3/27/06, Dennis Byrne [EMAIL PROTECTED] wrote: I'm not sure what you mean. What is @value of t:saveState ? Can you post the stack trace? Dennis Byrne

Re: How to speed up JSF

2006-03-26 Thread Guillaume Doumenc
Hi Yura, I'm also using MyFaces without JSP and think that JSF rendering is slow.. So if someone can complete this info, I will be interested.. Regards Yura.Tkachenko wrote: Hi, I just finding some ways to speed up JSF. Im using MyFaces implementation and actually I

RE: JSF and Tiles

2006-03-26 Thread Igor Marakov
Cool has nothing to do with it. Examples are there to provide starting point for the technology and supposed to be running 'out of the box'. If I have problems getting examples for two consecutive releases to work, something tells me that risk of using this particular technology in real life is

Re: How to speed up JSF

2006-03-26 Thread Martin Marinschek
use the following settings, and you should have much better user-interaction: context-param param-namejavax.faces.STATE_SAVING_METHOD/param-name param-valueserver/param-value description State saving method: client or server (= default) See JSF

Multiple th class definitions

2006-03-26 Thread Jesper Pedersen
Hi. How it is posible to define multiple th class definitions ? I would like to have: table ... thead tr th class=xX/th th class=yY/th /tr /thead but h:dataTable and t:dataTable only allow 'headerClass' instead of 'headerClasses'. Using a facet f:facet

RE: JSF and Tiles

2006-03-26 Thread Frank Felix Debatin
Hi Igor, all of our web development environments are pretty fragile - there are just too many components with different versions and different implementations, and I think everybody had his or her nightmare experiences. I need to say that for me Facelets was the only exception. It just worked

Re: t:collapsiblePanel

2006-03-26 Thread Martin Marinschek
Are you using latest nightly?There has been a fair amount of fixes for collapsible panel from 1.1.1 to the current version. Word of warning: the value attribute is now the title attribute, and the collapsed attribute is now the value attribute (this was basically the reason why the old collapsible

RE: [SPAM] Re: How to speed up JSF

2006-03-26 Thread Yee CN
Martin, What is the meaning of NUMBER_OF_VIEWS_IN_SESSION=20? Is it the last 20 views rendered? If I set all my beans to be of SESSION scope, will it limit the size of my session? Can I make use of it to implement 'back' functionality - maybe with a phase listener that logs the pages being

Re: [SPAM] Re: How to speed up JSF

2006-03-26 Thread Martin Marinschek
Hi Yee, yes, the number of views in session tells you how many rendered component-view-trees will be stored - so that you can properly use the back button with server side state saving. That's actually no performance issue - it was just in the middle of the performance tuning stuff ;). We