Re: [ANNOUNCE] JSFCentral - Understanding JSF 2.0 Performance Part 2 by Leonardo Uribe

2013-06-20 Thread Howard W. Smith, Jr.
> This is not the end of the story. Web frameworks will keep improving and
> the hope is this information can be useful to find new ways to enhance them
> (community over code is the Apache way).
>

+1


> Performance is just one aspect that you have to consider when choosing a
> web framework; usually it is necessary to strike a balance between it and
> several other aspects.
>

This was 1 of 2 reasons why I migrated from Mojarra 2.1.7 (Glassfish
3.1.2.2) to MyFaces 2.1.8 (Glassfish 3.1.2.2) in 2012, and now using it
with TomEE (latest version, of course)!

Thanks Thomas (for recommending MyFaces in PrimeFaces forum and helping me
when I made the migration), and thanks Leonardo/Kito for these posts! :)


[ANNOUNCE] JSFCentral - Understanding JSF 2.0 Performance Part 2 by Leonardo Uribe

2013-06-20 Thread Kito Mann
Hello,

I am pleased to announce a new article on JSFCentral.com by Leonardo Uribe:
Understanding JSF 2.0 Performance – Part 2.

In this series of articles, Leonardo Uribe discusses JSF 2 and MyFaces Core
performance, and its implications for web applications.  Additionally, he
highlights last year's (2011-2012) performance enhancements in the Apache
MyFaces JSF Implementation through an in-depth comparison between JSF and
Apache Wicket.  Leonardo compares different aspects—speed, memory usage,
session size—to give a better understanding of how JSF works under
different conditions.  Finally, he does an up-to-date (2013) web framework
comparison between JSF 2 and other alternatives like Apache Wicket, Apache
Tapestry, Spring MVC and Grails 2.  In the end, choosing a web framework
requires that you balance performance with other considerations.

Read Part 2 of the series here:
http://www.jsfcentral.com/articles/understanding_jsf_performance_2.html

___

Kito D. Mann | @kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info | @
jsfcentral
+1 203-998-0403

* Listen to the Enterprise Java Newscast:
*http://w
ww.enterprisejavanews.com*
* JSFCentral Interviews Podcast: http://www.jsfcentral.com/resources/
jsfcentralpodcasts/
* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17


Re: Add 'Stateless JSF' to MyFaces Core? Is it really necessary?

2013-06-20 Thread nabbling1138
Howard W. Smith, Jr. wrote
>> ViewExpiredExceptions are 'no' longer a concern of mine since I am using
>> OmniFaces restoreView component.
> 
> Nice! I hadn't seen that. I will be checking that out.
> 
>> Also, for my home-grown/custom security-n-session-management
>> implementation, my login page access @SessionScoped userBean.login, but
>> since I've been hearing others advise to use @RequestScoped more than
>> @SessionScoped (as much as possible), I am considering changing my
>> implementation, so the login page will access @RequestScoped user bean
>> instead of @SessionScoped. I am quite sure that that will allow my login
>> page to sufficiently/theoretically avoid View Expired exception. I plan
>> to
>> try this...when I feel like it, or have bandwidth to do so. :)
> 
> Nope :( View state is still maintained even when only referencing
> RequestScoped beans. That is why the transient=true is so important. It
> will be the only standard built in way to avoid view state exceptions that
> I know of.





--
View this message in context: 
http://myfaces.10567.n7.nabble.com/Add-Stateless-JSF-to-MyFaces-Core-Is-it-really-necessary-tp114248p115116.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: t:updateActionListener - JspValueExpression.toString() as a value of property instead of a literal value

2013-06-20 Thread Adam Nowak
Hello,
I have found solution.I replaced 
 
with


Still don't know why i had to surround value by brackets but i'm glad that
it is working now.
If anyone knows the answer i will be delighted to hear it.

Regards,
Adam Nowak.



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/t-updateActionListener-JspValueExpression-toString-as-a-value-of-property-instead-of-a-literal-value-tp115114p115115.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


t:updateActionListener - JspValueExpression.toString() as a value of property instead of a literal value

2013-06-20 Thread Adam Nowak
Hi everyone,

I'm having strange problem after upgrading myfaces from version 1.1.6 to
1.2.12 and tomahawk to version tomahawk12-1.1.14.
I have also upgraded tomcat to version 7.0.27 (i'm not sure if it is
relevant).
Here is some jsp view where updateActionListener is being used:


 


The currentTab method is a setter for property of type String.
In previous configuration above code worked fine, it means that after the
"general" link had been pressed the value of currentTab property in the
MyBean has been set to "general".

In current configuration I saw that instead of "general" string as a value
of property i had string representation of object of type
JspValueExpression, something like
org.apache.jasper.el.JspValueExpression@bac048fd. 
After some investigation of the problem i noticed that
org.apache.el.parser.AstValue.setValue(EvaluationContext, Object) method is
responsible for that:
http://grepcode.com/file/repo1.maven.org/maven2/org.apache.tomcat.embed/tomcat-embed-jasper/7.0.27/org/apache/el/parser/AstValue.java#AstValue.setValue%28org.apache.el.lang.EvaluationContext%2Cjava.lang.Object%29

In this method value is checked if it can be assigned to the type of the
setter argument, if not the result of toString method call is returned. This
is my case, the object is of type org.apache.jasper.el.JspValueExpression so
i got mentioned org.apache.jasper.el.JspValueExpression@bac048fd.
I'm going to try write a converter which will return the real value from
JspValueExpression but I'm not sure if it is good idea. 

I'm really stuck here.

Can anyone help me with this problem?

Regards,
Adam Nowak.



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/t-updateActionListener-JspValueExpression-toString-as-a-value-of-property-instead-of-a-literal-value-tp115114.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.