RE: OGNL with MyFaces - how to?

2008-04-18 Thread Jesse Alexander (KSFH 336)
Hi Rosmon

I just chatted with Imre, he once wrote a ognl replacer for EL...
he is often (european afternoons/evenings) in either the #myfaces or
##jsf 
channels online, in case you wanna chat about your ognl-ideas.
Look out for qoob...

regards
Alexander 

 -Original Message-
 From: Sidhik, Rosmon [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 10, 2008 3:36 PM
 To: MyFaces Discussion
 Subject: RE: OGNL with MyFaces - how to?
 
 Thanks Kito for the information. I have moved ahead with 
 using the myfaces
 EL for now. In case we decide we need to use OGNL I'll take a 
 look at the
 facelets list.
 Thanks anyways.
 
 -Original Message-
 From: Kito D. Mann [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 09, 2008 12:35 PM
 To: 'MyFaces Discussion'
 Subject: RE: OGNL with MyFaces - how to?
 
 You may want to check out the Facelets mailing list. There 
 was a discussion
 about this a while back, with the idea of integrating OGNL 
 into the Unified
 EL via its ability to add new contexts, etc.
 
 ~~~
 Kito D. Mann - Author, JavaServer Faces in Action
 http://www.virtua.com - JSF/Java EE consulting, training, and 
 mentoring
 http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info
 phone: +1 203-653-2989
 fax: +1 203-653-2988
 
 
  -Original Message-
  From: Martin Marinschek [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, April 08, 2008 10:50 PM
  To: MyFaces Discussion
  Subject: Re: OGNL with MyFaces - how to?
  
  MyFaces uses the unified EL - to my knowledge, nobody has ever tried
  to use it with the OGNL. It would certainly be worthwile 
 trying to get
  it up and running, however, but there are quite a few locations in
  MyFaces where we refer to the unified EL API, so I am not 
 sure if this
  is possible at all :(
  
  regards,
  
  Martin
  
  On Wed, Mar 19, 2008 at 3:23 PM, Sidhik, Rosmon 
 [EMAIL PROTECTED]
  wrote:
  
  
  
  
   Hi,
  
   Has anybody used OGNL with MyFaces?
  
   I would like to use OGNL with MyFaces and would like to 
 get any help
   available to setup my application to use it.
  
   I have tried googling but haven't found any resources on 
 this topic.
  
   Any help is appreciated.
  
   Thanks
  
   Rosmon
  
  
  
  
  
  --
  
  http://www.irian.at
  
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
  
  Professional Support for Apache MyFaces
 


RE: Custom renderer for h:outputText - possible?

2008-04-07 Thread Jesse Alexander (KSFH 323)
  Could be then that somehow MyFaces does not allow to overwrite the
   standard renderers.
 
 Why is so? Is there a page about it in the JSF spec so I could confirm
 it's right or not?

would have to check the spec... but usually it works also for MyFaces...

   Maybe you should grab the MyFaces source and analyze it or 
 debug the
   setup part of the applicaiton start.
 
 I'm a mere JSF user and I'd rather avoid delving into the MyFaces
 sources. I want to understand how jsf works first before doing so. If
 it's the last resort I'll follow the advice.

Often it helps
a) to understand the workings of JSF
b) accelerate solutions for bugs
by analyzing the stuff as a user and maybe even hint at possible
solutions

regards
Alexander


RE: Advice to apache and look for nice Myfaces/Jsf application architectures

2008-04-04 Thread Jesse Alexander (KSFH 323)
Maybe you are mixing a few things.
 
JSF implemenations are MyFaces-JSF (by Apache MyFaces) and Mojarra (by Sun)
 
Tomahawk, Trindad and Tobago are Component Sets that sit on top of 
JSF-implementations
(eg. Tomahawk works well also with Mojarra)
 
regards
Alexander




From: 周恩 [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2008 2:43 PM
To: MyFaces Discussion
Subject: RE: Advice to apache and look for nice Myfaces/Jsf application 
architectures


Thanks a lot.
 
My main question is Which is the best Myfaces/Jsf enterprise 
application architecture practise? Let's discuss it more. 
 
I think that the advice to apache must be think better of:
Apache must gather it's power to focus one or two Jsfimplements, 
now there are too many implements under Apache foundation! Tomahawk must keep 
updating with compatible MyFaces core, impl and sanbox in new version! 
 
I use JavaServer Faces from 2004 in real application, and I have write 
a rapid java development tool with myfaces. but which is the best practise is 
still puzzle me.
 


 Date: Fri, 4 Apr 2008 12:04:59 +0200
 From: [EMAIL PROTECTED]
 To: users@myfaces.apache.org
 Subject: Re: Advice to apache and look for nice Myfaces/Jsf 
application architectures
 
 On Fri, Apr 4, 2008 at 11:48 AM, Gerald Müllan [EMAIL PROTECTED] 
wrote:
  Hi,
 
  cagatay has published a very nice example application called
  moviestore using spring and a good jsf technology stack:
 
  
http://cagataycivici.wordpress.com/2007/12/19/annotate-jsf-beans-with-spring-25
 
  facesgoodies is also a very nice and easy example project in order 
to
  study a real world jsf web application:
 
  http://code.google.com/p/facesgoodies
 
  Both are a good start in order to get in touch with popular 
technology
  stacks related to jsf.
 
 just a minor comment. FacesGoodi es uses Orchestra's extra scopes,
 which I really strongly recommend to use.
 
 See:
 
http://matthiaswessendorf.wordpress.com/2008/03/11/dynamic-tables-and-orchestras-conversation-scope/
 
 -M
 
 
  cheers,
 
  Gerald
 
 
  2008/4/4 周恩 [EMAIL PROTECTED]:
 
 
  
   Hi,anybody!
   I am a chinese with poor english. I am looking for any nice 
Myfaces/Jsf
   enterprise application samples, I want to see your enterprise 
Myfaces/Jsf
   application architectures and choose the best one for my pjoject?
   The main question of mine is about real application's managed bean
   scope and MVC's controller implement strategy.
   Can anybody share somes for us include me and discuss which is 
the best
  g t; architectures practise?
   I think a nice Myfaces/Jsf enterprise application architecture's
   persistence layer must be flexible with different implement such 
as
   JDBC,hibernate and others.
   Sorry for my poor english.
  
   btw: I think that Apache must gather it's power to focus one or 
two Jsf
   implements, now there are too many implements under Apache 
foundation!
   Tomahawk must keep updating with compatible MyFaces core, impl 
and sanbox in
   new version! Please.
  
  
   En Zhou,Beijin,China. 2008-04-04
  
   
   七件武器,七种完美 立刻体验!
 
 
 
  --
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, D evelopment and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 
 
 
 
 -- 
 Matthias Wessendorf
 
 further stuff:
 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 mail: matzew-at-apache-dot-org





Windows Live Writer,支持离线撰写博客内容,随时随地想写就写。 立即使用! 
http://get.live.cn/product/writer.html  



RE: Export Datatable to PDF(Report)

2008-04-03 Thread Jesse Alexander (KSFH 323)
I haven't looked at it in that way... but you can also serve 
Flying Saucer your own XML-Stream and then it will convert that... 

Else: Seems that someone is planning to do a PDF Exporter component
for Tomahawk...

regards
Alexander

 -Original Message-
 From: Janap [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 02, 2008 9:11 AM
 To: users@myfaces.apache.org
 Subject: RE: Export Datatable to PDF(Report)
 
 
 Wow! That sounds really good. But i do not use Facelets for my JSF
 application. So now the question is if the Flying saucer 
 can also somehow
 read the html produced by my JSF datatable and then pass this 
 buffer for pdf
 rendering.
 
 Thank you
 Janap
 
 Jesse Alexander (KSFH 323) wrote:
  
  Hi
  
  we use Facelets and found Flying saucer which solved the problem.
  project site: https://xhtmlrenderer.dev.java.net/
  nice article on FS:
  
 http://today.java.net/pub/a/today/2006/10/31/combine-facelets
-and-flyin
  g-saucer-renderer.html
  
  hth
  Alexander 
  
  -Original Message-
  From: Janap [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, April 01, 2008 3:49 PM
  To: users@myfaces.apache.org
  Subject: Export Datatable to PDF(Report)
  
  
  
  Hello all,
  
  Is there any implementation where I can export the contents 
  of a Datatable
  to a Report(PDF format)??
  I know that it involves using a dynamic Report generation 
  technology like
  BIRT. 
  
  I hope the question is not too BIRT specific...was just 
  wondering incae
  someone had a similar requirement.
  
  best wishes
  Janap
  -- 
  View this message in context: 
  http://www.nabble.com/Export-Datatable-to-PDF%28Report%29-tp16
  418440p16418440.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
  
  
  
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/Export-Datatable-to-PDF%28Report%29-tp16
418440p16443593.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 


RE: Export Datatable to PDF(Report)

2008-04-01 Thread Jesse Alexander (KSFH 323)
Hi

we use Facelets and found Flying saucer which solved the problem.
project site: https://xhtmlrenderer.dev.java.net/
nice article on FS:
http://today.java.net/pub/a/today/2006/10/31/combine-facelets-and-flyin
g-saucer-renderer.html

hth
Alexander 

 -Original Message-
 From: Janap [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 01, 2008 3:49 PM
 To: users@myfaces.apache.org
 Subject: Export Datatable to PDF(Report)
 
 
 
 Hello all,
 
 Is there any implementation where I can export the contents 
 of a Datatable
 to a Report(PDF format)??
 I know that it involves using a dynamic Report generation 
 technology like
 BIRT. 
 
 I hope the question is not too BIRT specific...was just 
 wondering incae
 someone had a similar requirement.
 
 best wishes
 Janap
 -- 
 View this message in context: 
 http://www.nabble.com/Export-Datatable-to-PDF%28Report%29-tp16
418440p16418440.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 


RE: [OFFTOPIC] Reminder: JSFDays Vienna

2008-03-18 Thread Jesse Alexander (KSFH 323)
Now only the videos are missing...

regards
Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Gerald Müllan
 Sent: Monday, March 17, 2008 9:32 AM
 To: MyFaces Discussion
 Subject: Re: [OFFTOPIC] Reminder: JSFDays Vienna
 
 Hi,
 
 have a look at the conference page in the near future, i think there
 should be an update regarding videos.
 
 http://conference.irian.at/conference/main/index.jsf
 
 cheers,
 
 Gerald
 
 On Mon, Mar 17, 2008 at 7:39 AM, Anton Gavazuk 
 [EMAIL PROTECTED] wrote:
  Hi guys,
   I hope everything was quite good during JSFDays.
   Are you going to share some materials (audio, pdfs etc) on JSFdaus
   official site?
 
   2008/2/14, Martin Marinschek [EMAIL PROTECTED]:
 
 
   Hi all,
   
 we'd like to invite you to a JSF conference in Vienna, 
 Austria from
 12-14th of March. Anyone who wants to register as an attendee?
   
 Here is the link: http://conference.irian.at - click on 
 preregister.
   
 Attendees will pay a very small conference fee - 100€.
 Speaker slots are pretty much filled already - except 
 you have a topic
 which just rocks ;)
   
 There will be a supporting programm alongside the 
 conference - so you
 will (additionally to learning about JSF and improving your JSF
 knowledge) have a good chance of getting to know Vienna and its
 surroundings.
   
 So far, there have been close to a hundred 
 registrations - so this
 conference is definitely going to be a meeting point 
 for everyone
 interested in JSF!
   
 regards,
   
   
 Martin
   
 
 
 
 
 -- 
 http://www.irian.at
 
 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German
 
 Professional Support for Apache MyFaces
 


RE: [OT] Expression language logging?

2008-01-16 Thread Jesse Alexander (KSFH 323)
Hi
 
some classes request a logger with a virtual class/package name.
 
Maybe you should check the source of the EL whether it uses the real
classname to acquire the logger or a virtual one.
 
regards
Alexander




From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 15, 2008 5:15 PM
To: MyFaces Discussion
Subject: [OT] Expression language logging?


Instead of having to debug our project any manually inspecting
value expressions, is there a way to get debug level logging from EL? I
am currently using JSF RI 1.2 on OC4J.

I tried turning the java util logging and log4j logging to
trace/all for javax.el without any output.

It would be great to see a resolver print out each step of the
evaluation.

Thanks,
Andrew




RE: myfaces 1.2.1 Date shifted 8 hours

2008-01-04 Thread Jesse Alexander (KSFH 323)
Hi
 
the date/time-shift depends also on the hosting JVM and the server-os...
Plus it might be possible that Sun already fixed something in that
area... I found the problem
there last summer.
What I would like to have is a config-option for a standard-timeZone for
the converter...
 
regards
Alexander




From: Joe Black [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 29, 2007 4:57 AM
To: MyFaces Discussion
Subject: RE: myfaces 1.2.1 Date shifted 8 hours


Hi,

Thanks a lot. I followed your suggestion and add the timeZone
parameter and now it shows correctly using myfaces 1.2.1_07.

However, just for your information, I am using the same code in
another parallel program using JSF RI and it shows the correct date
without adding timeZone parameter.

Anyway, thanks a lot for pointing me in the correct direction.

rgds,



 Date: Fri, 28 Dec 2007 10:12:04 -0800
 From: [EMAIL PROTECTED]
 To: users@myfaces.apache.org
 Subject: Re: myfaces 1.2.1 Date shifted 8 hours
 
 
 See the FAQ at http://wiki.apache.org/myfaces/FAQ, SUN JSF RI
1.2 has the
 same issue as far as I know.
 The f:convertDateTime tag supports a timezone attribut which
you can use to
 set the timezone to be used by the converter!
 
 Martin
 
 
 -
 http://www.martinahrer.at/blog http://www.martinahrer.at/blog 
 -- 
 View this message in context:
http://www.nabble.com/myfaces-1.2.1-Date-shifted-8-hours-tp14499037p1452
9417.html
 Sent from the MyFaces - Users mailing list archive at
Nabble.com.
 




Get your free suite of Windows Live services! Windows Live
http://www.get.live.com/wl/all  



RE: JSF Book

2007-11-23 Thread Jesse Alexander (KSFH 323)
And for german speakers/readers: [EMAIL PROTECTED] by Martin Marinschek

Ed's book, I would not classify for beginners.

Beginners: 
- Core JavaServer Faces second Edition by DAVID GEARY 
- [EMAIL PROTECTED] by Martin

Advanced / Component developers:
- Ed's Reference
- Martin's [EMAIL PROTECTED]
- Kito Mann's JSF in Action
- Jonas Jacobi's JSF and Ajax
  This one is valuable also if you do not want to use AJAX

regards
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, November 23, 2007 10:18 PM
To: MyFaces Discussion
Subject: Re: JSF Book

Hi,

Beginners:
JSF Reference (Ed Burns) OR Kito D Mann (JSF in Action)

Advanced:
JSF and Ajax (Jonas Jacobi)

-Matthias

On Nov 23, 2007 9:30 PM, Oscar Duque [EMAIL PROTECTED] wrote:

  Greetings Developers,


  According your experience, do you know one or some books for learning
JSF
 from beginning to Advanced, with Examples ?

  Where can i find it?, Amazon?, Wrox ?, Other ?

  Which one do you preffer, Why ?


  Thanks in advance,

  Oscar Duque

 
 Get news, entertainment and everything you care about at Live.com.
Check it
 out!



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org


RE: Selenium and badboy on JSF

2007-11-06 Thread Jesse Alexander (KSFH 323)
Forcing ID's is not too expensive, if you start early with it.
 
It's not only tools like Selenium and BadBoy that might need fixed
ID's. Also LoadPerformance Tools
depend on either name or id-attribute and if those attributes change
between test-runs or (even worse) between 
page-views, then you can imagine that you get high bills from the team
preparing and executing the tests...
 
It would be nice though, if some setting would tell the JSF-impls to
force ID's on all input- and command-related
components. THEN the developer would automatically specify the IDs
from the very beginnning.
 
regards
Alexander
 
PS: I like Selenium, using JUnit-tests and Selenium-RC



From: Yaron Spektor [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 06, 2007 3:06 AM
To: MyFaces Discussion
Subject: RE: Selenium and badboy on JSF



Thanks Shawn and Rafa,

I was actually hoping for a simple solution that does not incur code
changes. and forcing the ID's may be too expensive. I will look into the
addLocationStrategy I am not sure it would work for us.

I was sure selenium was built for such cases, but I guess I was wrong,
if I need to redo my application in order to test it then it might not
be the right solution.

 

I would be interested to know if anyone had other experiences or
suggestions with testing tools that support dynamic id's

 

Yaron 



From: Bertrand, Shawn R [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 05, 2007 3:39 PM
To: Yaron Spektor; MyFaces Discussion
Subject: RE: Selenium and badboy on JSF

 

You could use the location strategy feature introduced in Selenium
Remote Control 0.9.2:

 

http://release.openqa.org/selenium-remote-control/0.9.2/doc/java/com/tho
ughtworks/selenium/DefaultSelenium.html#addLocationStrategy(java.lang.St
ring,%20java.lang.String)

 

We use it for the Trinidad tree control to allow our tests to click on
the arrows next to each tree node regardless of the underlying index of
the node (our locator is the displayed tree node text).  This of course
is possible only because the tree is rendered in a very flat way using
the table renderer (thank goodness for that...).

 

Regards,

 

Shawn Bertrand

Tyco Electronics Corporation

 



From: Yaron Spektor [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 05, 2007 2:13 PM
To: MyFaces Discussion
Subject: Selenium and badboy on JSF

 

Hi,

I was trying out Selenium and badboy today.

I couldn't make any of them work for me.

For example I used Selenium IDE and tried to record a very short
session:

1. Go to a search page 

2. click an id of a user () 

3. click on search (form1:doSearch) 

4. from a list of users in a table, click on the link of this user id
(form1:_id25:0:comp_760).

As I am working with JSF creating a dynamic id for each component the
first time around I recorded form1:_id25:0:comp_760 after that I got
form1:_id25:0:comp_930 etc. (the comp number changed). How do I make
Selenium (or badboy for that matter) realize this is the same link? I
googled this for a long time not finding any solution. I tried xpath but
it gave me the same form1:_id25:0:comp_760, I also tried using the
xpath table location and it didn't work: (//tr[2]/td/table.1.0) 

 

 

 

Here is the source from selenium IDE on my first attempt: 

 

html

head

meta http-equiv=Content-Type content=text/html; charset=UTF-8

titleNew Test/title

/head

body

table cellpadding=1 cellspacing=1 border=1

thead

trtd rowspan=1 colspan=3New Test/td/tr

/theadtbody

tr

tdopen/td

td/proj/employeeSearch.faces/td

td/td

/tr

tr

tdtype/td

tdform1:_id22/td

td/td

/tr

tr

tdclickAndWait/td

tdform1:doSearch/td

td/td

/tr

tr

tdclickAndWait/td

tdform1:_id25:0:comp_760/td

td/td

/tr

 

/tbody/table

/body

/html

 

Yaron

 



RE: [OFFTOPIC] JSFDays Vienna

2007-10-25 Thread Jesse Alexander (KSFH 323)
But TRY HARD

regards
Alexander 

-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 25, 2007 12:32 PM
To: users@myfaces.apache.org
Subject: Re: [OFFTOPIC] JSFDays Vienna

Sounds good! I will try to be there :)

Bruno

On 25/10/2007, Martin Marinschek [EMAIL PROTECTED] wrote:
 Hi all,

 we'd like to invite you to a JSF conference in Vienna, Austria from
 12-14th of March. Anyone who wants to present a session or
 (pre-)register as an attendee?

 Here is the link: http://conference.irian.at - click on preregister.

 Attendees will pay a very small conference fee - 100€ (speakers will
 not have to pay this fee).

 There will be a supporting programm alongside the conference - so you
 will (additionally to learning about JSF and improving your JSF
 knowledge) have a good chance of getting to know Vienna and its
 surroundings.

 regards,

 Martin

 --

 http://www.irian.at

 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German

 Professional Support for Apache MyFaces



RE: [Tomahawk] facelets

2007-07-31 Thread Jesse Alexander (KSFD 121)
instead of supplying two taglib-files... just create two jar-files with
nothing more in it, than
the two taglib files...
Then the deployment of the two jar-files is enough, whereas the
deployment of the two taglib-files 
requires additional work from the user...
 
regards
Alexander



From: Wolf Benz [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 31, 2007 11:56 AM
To: MyFaces Discussion
Subject: Re: [Tomahawk] facelets


I talked about this with Werner Punz... 
I thought: why not putting this file right away in the meta-inf of the
Tomahawk jar? 
Won't harm nobody but will certainly help a lot of people. 
Although I still subscribe to that idea, he had a point also: 

MF and facelets are indeed 2 different technologies, better keep the 2
apart.

Yet, it's another thing we can';tr forget to set up and currently the
file @MF Wiki is indeed to be stitched together manually with is kinda
funny (unprofessional). 
I think there is room for improvement, either in the form of a
facelets-integrated download.  (so Toma  Sandbox WITH the taglibs in
their meta-in dirs) or at least another entry in the download table just
for facelets: a link to the jsf-facelts.jar, and 2 links, to the
respective taglib files.
This, for me, would seem to be its logical place.

-Wolf



On 7/31/07, Erlend Hamnaberg [EMAIL PROTECTED] wrote: 

does anyone have an updated tomahawk.taglib.xml ? The one at the
wiki
does not seem updated.

Will Myfaces add full facelets support to its custom components?

Regards

Erlend



 


RE: myFaces 1.2 problem

2007-07-25 Thread Jesse Alexander (KSFD 121)
Or remove them from the simple sample and document them in the
setup-document.
 
The people for whom the defaults are ok, and that anyway wouldn't read
the docs, they have a seed which is simple.
For the others... they usually read the doc...
 
regards
Alexander



From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 1:38 PM
To: MyFaces Discussion
Subject: Re: myFaces 1.2 problem


You mean we should get those parameter out of the web.xml simple
examples? Yes, that might be an option. I generally thought it helps
people if they see the possibilities there are right in the examples.
Maybe a marker optional would help. 

regards,

Martin


On 7/25/07, Wolf Benz [EMAIL PROTECTED] wrote: 

That's true Martin - there is a lot defaulted.  
Yet, if it's almost all defaulted, I think there's a case for
leaving the web.xml much cleaner. 
Certainly the obvious ones could be better left out, it makes
the web.xml only more verbose. 
It gives people the impression there's a lot to configure before
you get MF to work.
Look at all the setup issues of MF120 now: a lot of people(that
would include me) then start to wonder whether perhaps it's perhaps due
to one of all these params that is wrongly set, whereas that's(mostly)
not the case. 

All that and those  their explanation could perhaps be better
shifted to the project documentation. 
To my taste, I find that a little cleaner :-) 

-Wolf


On 7/25/07, Martin Marinschek  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

I believe your statement is entirely wrong.

None of the MyFaces-web.xml parameter is necessary -
they are all optional, with default values if they are not provided.

For MyFaces - the implementation - you got nothing to
configure additionally in comparison to the RI. The
StartupServletContextListener is an issue with certain
servlet-containers only, and it is certainly not our problem, but a
problem with these servlet-containers. MyFaces doesn't require
configuring this. 

For Tomahawk, there is one additional filter necessary.
That's it. For performance tweaks, you might need one or two more
settings. I wouldn't call that much. 


regards,

Martin


On 7/25/07, Wolf Benz [EMAIL PROTECTED] wrote: 

Perhaps I better started a new thread on this
but as this is a good example:
Wouldn't it be a good idea for much more and
aggressive defaulting from MyFaces?
Take the web.xml: merely using myfaces makes the
poor thing go through the roof! 
There are a few Context pars you can't do
without but... the pretty html, scroll, js, ... c'mon.
This StartupServletContextListener is another
good example, the AddStreamingresource Listener, ... it all just adds
and adds. For newbies coming from RI this alone is a reason to run back,
fast! Certainly as -as is pointed out in this thread as well- even doing
do doesn;t guarantee a free ride. With every Myfaces project, I have had
startup problems. Currently as well. (counter ticks 2 weeks now) 
It's setup is too complex. Also a more
standardized approach would make troubleshooting  much easier. 
It's a trend also, with reason. Look at
annotations e.g. where you mostly only have to use them if you wish to
override a default setting.  


 
-Wolf


On 7/25/07, Martin Marinschek 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
wrote: 


Hi guys,

the StartupServletContextListener should
automatically be run by the servlet container when it parses the tld. 

What you can do as a workaround:

- declare the context-listener as
explained in the stacktrace in your web.xml
- use the MyFacesServlet instead of the
FacesServlet

In any case, make sure that the work and
temp directories of the Tomcat are cleared, and that you have the
MyFaces libraries available only in one version. 

I have had this problem quite often now
- especially in Tomcat, and I'm quite desperate to find a solution for
this.


RE: 4 second page response time

2007-07-24 Thread Jesse Alexander (KSFD 121)
I remember that long time ago I did a comparision for the same reason...
and we found out, that the xml-processing on the solaris box was WAY slower 
than on the
Win-Box.
We never really found out why, though...
 
regards
Alexander



From: Martin Denham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 24, 2007 4:48 PM
To: MyFaces Discussion
Subject: Re: 4 second page response time


Thanks for the tips but our sys admins weren't keen on doing a kill and because 
I only get performance problems on the central Solaris server it was tricky to 
follow your advice.  I checked for missing tld/xsd warnings and we aren't 
getting any even though, as you guessed, the Solaris server does not have 
internet access. 

However, I have managed to find another of our jsf applications which did not 
have the 4/8 second page response delay and so I slowly migrated this to be 
more like the troublesome application.

The main problem occurs when I include 
listener
listener-class
org.springframework.web.context.ContextLoaderListener
/listener-class
/listener
in web.xml.  Yes, the problem also occurs if I use ContextLoaderServlet too. 

After including ContextLoaderListener performance deteriorates considerably 
from 2 second response to more than 4 even if I don't load any spring contexts.

Has anybody any idea why ContextLoaderListener slows down my application 
running on Weblogic 8.1 on Solaris?

Many thanks.

Martin


On 23/07/07, David Delbecq [EMAIL PROTECTED] wrote: 

En l'instant précis du 20/07/07 15:02, Martin Denham s'exprimait en ces
termes: 
 I have had a performance issue with both the JSF applications I have
 written.

 On my windows xp development pc responses are instant.  However when
 deployed to a Sun Ultra 80 Solaris machine every page takes 4 seconds 
 and if I add a redirect the response time increases to 7 seconds.
 Another application on the same Solaris machine, but written using
 Struts has instant page response times.

 Is a simple page response time of 4 seconds expected when using JSF? 
 I have tried all sorts of tweaks during the past year but the response
 time is unaffected.
Simple answere: no. I will have to profile your application to find out
where your CPU bottleneck (if it's a CPU bottleneck) is, or where your 
network bottleneck is. Because JSF uses value binding which can do lots
of things, any badly written/badly used bean can be at cause (like a
bean loading 50.000 items for a database at each request).
Simple suggestion: 
when you load a JSF page, go in a console to your solaris station and
run a kill -3 JVMpid, this will dump to the jvm's stdout a stacktrace
of all running threads. From there you could see where the code is 
waiting / busy.

could it be some xml parser uses a xsd/dtd which is not available. If
production server is firewalled, maybe the server is just trying to
download the schema/dtd and finishes on a timeout of approx 4 seconds? 

 I am using Myfaces  tomahawk 1.1.5,  Weblogic 8.1sp4, Facelets
 1.1.12.  One application uses Oracle ADF and the other 
Ajax4Jsf/Richfaces.

 Thanks in advance for any pointers.

 Martin




--
http://www.noooxml.org/






RE: 4 second page response time

2007-07-24 Thread Jesse Alexander (KSFD 121)
Well 
I had the impression that the pure XML-handling was a killer on the solaris box.
 
As with JSF: most processing power is used in the jsp-rendering. I don't know 
whether jsp-precompiling might work or be usefull, I never tried.
I the meantime I moved to facelets, which accelerates everything... even though
it uses a SayCompiler, but it seems that Compiler is blindingly fast...
 
regards
Alexander



From: Martin Denham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 24, 2007 5:46 PM
To: MyFaces Discussion
Subject: Re: 4 second page response time


Hi Jesse,

I thought the ContextLoaderListener would just be called once on startup.  Does 
it do something on every request?

Martin


On 24/07/07, Jesse Alexander (KSFD 121) [EMAIL PROTECTED] wrote: 

I remember that long time ago I did a comparision for the same reason...
and we found out, that the xml-processing on the solaris box was WAY 
slower than on the
Win-Box.
We never really found out why, though...
 
regards
Alexander



From: Martin Denham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 24, 2007 4:48 PM
To: MyFaces Discussion
Subject: Re: 4 second page response time



Thanks for the tips but our sys admins weren't keen on doing a kill and 
because I only get performance problems on the central Solaris server it was 
tricky to follow your advice.  I checked for missing tld/xsd warnings and we 
aren't getting any even though, as you guessed, the Solaris server does not 
have internet access. 

However, I have managed to find another of our jsf applications which 
did not have the 4/8 second page response delay and so I slowly migrated this 
to be more like the troublesome application.

The main problem occurs when I include 
listener
listener-class
org.springframework.web.context.ContextLoaderListener
/listener-class
/listener
in web.xml.  Yes, the problem also occurs if I use ContextLoaderServlet 
too. 

After including ContextLoaderListener performance deteriorates 
considerably from 2 second response to more than 4 even if I don't load any 
spring contexts.

Has anybody any idea why ContextLoaderListener slows down my 
application running on Weblogic 8.1 on Solaris?

Many thanks.

Martin


On 23/07/07, David Delbecq [EMAIL PROTECTED] wrote: 

En l'instant précis du 20/07/07 15:02, Martin Denham 
s'exprimait en ces
termes: 
 I have had a performance issue with both the JSF applications 
I have
 written.

 On my windows xp development pc responses are instant.  
However when
 deployed to a Sun Ultra 80 Solaris machine every page takes 4 
seconds 
 and if I add a redirect the response time increases to 7 
seconds.
 Another application on the same Solaris machine, but written 
using
 Struts has instant page response times.

 Is a simple page response time of 4 seconds expected when 
using JSF? 
 I have tried all sorts of tweaks during the past year but the 
response
 time is unaffected.
Simple answere: no. I will have to profile your application to 
find out
where your CPU bottleneck (if it's a CPU bottleneck) is, or 
where your 
network bottleneck is. Because JSF uses value binding which can 
do lots
of things, any badly written/badly used bean can be at cause 
(like a
bean loading 50.000 items for a database at each request).
Simple suggestion: 
when you load a JSF page, go in a console to your solaris 
station and
run a kill -3 JVMpid, this will dump to the jvm's stdout a 
stacktrace
of all running threads. From there you could see where the code 
is 
waiting / busy.

could it be some xml parser uses a xsd/dtd which is not 
available. If
production server is firewalled, maybe the server is just 
trying to
download the schema/dtd and finishes on a timeout of approx 4 
seconds? 

 I am using Myfaces  tomahawk 1.1.5,  Weblogic 8.1sp4, 
Facelets
 1.1.12.  One application uses Oracle ADF and the other 
Ajax4Jsf/Richfaces.

 Thanks in advance for any pointers.

 Martin




--
http://www.noooxml.org/







RE: panelTabbedPane - display tabs in multiple rows

2007-07-23 Thread Jesse Alexander (KSFD 121)
writing your own renderer...
at least when I looked at it last time that was necessary...
Maybe some css.tweaking might also work, but the control what goes into 
the first and the second row needed the private renderer

hth
Alexander 

-Original Message-
From: Mike Burton [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 5:17 PM
To: users@myfaces.apache.org
Subject: t:panelTabbedPane - display tabs in multiple rows

Hi,

I'm using a t:panelTabbedPane, how can I display the tabs in multiple
rows?

Best regards,

Mike Burton




RE: Does MyFaces 1.2 require JSP 2.1?

2007-07-19 Thread Jesse Alexander (KSFD 121)
No..
RI just makes a test on the JSP-version and disables certain stuff, when
it detects 
a J2EE 1.4 environment (as in TC 5 and WLS 9.2). It then relies on
facelets
to provide certain functionality...

Sounds like MyFaces is a bit harsher on the user here than the RI.

OK... JSF 1.2 officially needs JEE 5. 
BUT... 1:0 for RI to allow for the gracefull degradation.

Just set up a 1.2 RI-app in TC 5.x and watch the log when starting up.
You will notice some entries like 
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with
the JSP container.

See what I mean?

regards
Alexander


-Original Message-
From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 19, 2007 7:24 PM
To: MyFaces Discussion
Subject: Re: Does MyFaces 1.2 require JSP 2.1?

I would ask the facelets list then. According to the JSF
specification, JSP 2.1 and Servlet 2.5 support is required for JSF
1.2.

On 7/19/07, mraible [EMAIL PROTECTED] wrote:

 I am using Facelets - that's why I find it strange. I'm able to use
Sun's RI
 (the latest version) in place of MyFaces in the same application and
 everything works fine.

 Matt


 Andrew Robinson-5 wrote:
 
  JSF 1.2 requires JSP 2.1 unless you use facelets.
 
  I believe you have to run Tomcat 6 as a minimum version (servlet 2.5
  support is required)
 
  On 7/19/07, mraible [EMAIL PROTECTED] wrote:
 
  I should mention: I get the error below on startup when deploying
on
  Tomcat
  5.0.25. If I change from MyFaces to Sun's RI and deploy on Tomcat
5.0.25
  again, no error.
 
  Matt
 
 
  mraible wrote:
  
   From what I can tell, MyFaces 1.2 requires JSP 2.1. I developed a
quick
   prototype using MyFaces 1.2 + Facelets 1.1.13 and I get the
following
   error on startup:
  
   Exception sending context initialized event to listener instance
of
  class
   org.apache.myfaces.webapp.StartupServletContextListener
   java.lang.NoSuchMethodError:
  
 
javax.servlet.jsp.JspFactory.getJspApplicationContext(Ljavax/servlet/Ser
vletContext;)Ljavax/servlet/jsp/JspApplicationContext;
   at
  
 
org.apache.myfaces.webapp.DefaultFacesInitializer.initFaces(DefaultFaces
Initializer.java:102)
   at
  
 
org.apache.myfaces.webapp.StartupServletContextListener.contextInitializ
ed(StartupServletContextListener.java:57)
  
   If I deploy my app to Tomcat 6, this problem doesn't exist. If I
change
   from MyFaces 1.2 to Sun's RI 1.2_04, this problem doesn't exist
either.
   For this reason, it appears to me that MyFaces 1.2 requires JSP
2.1.
  
   Cheers,
  
   Matt
  
 
  --
  View this message in context:
 
http://www.nabble.com/Does-MyFaces-1.2-require-JSP-2.1--tf4112432.html#a
11693503
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 
 
 
 

 --
 View this message in context:
http://www.nabble.com/Does-MyFaces-1.2-require-JSP-2.1--tf4112432.html#a
11693795
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




RE: Tool for testing

2007-07-17 Thread Jesse Alexander (KSFD 121)
Hi

last time I used JMeter with a JSF-app i just used the
proxy-recorder
let the tool do the work for you... 
- start the proxy-recorder 
- point your browser to use that proxy
- use the app
- let then jmeter execute the recorded script


If you want just functional testing: Selenium


hth
Alexander

-Original Message-
From: Peter Dahm [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 17, 2007 11:56 AM
To: users@myfaces.apache.org
Subject: Tool for testing

Hi,

who has a recommendation wich testing tool is the best one for testing
an
jsf application.

Does someone have experiences with Apache jMeter ? Here I have problems
to
build a testplan with parameters and session information.

Regards 

Peter






RE: [Swiss JSF Users] JSF Special-Interest-Group Switzerland

2007-07-12 Thread Jesse Alexander \(KSFD 121\)
For all interested people here are the infos of the first meeting:
http://ajesse.wordpress.com/2007/07/12/jsf-usergroup-ch-meeting-1/.
Including links to photos of the happy crowd ;)

see you next time
Alexander



RE: [Swiss JSF Users] JSF Special-Interest-Group Switzerland

2007-06-25 Thread Jesse Alexander \(KSFD 121\)
Great
Strange thing is, so far I have more confirmations from Austria and
Germany (plus America).
But at the Jazoon some people got interested...

I am sure we will have our share of fun...
Alexander 

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 25, 2007 12:09 AM
To: MyFaces Discussion
Subject: Re: [Swiss JSF Users] JSF Special-Interest-Group Switzerland

Hi Alexander,

I'll be there - cu around.

regards,

Martin

On 6/24/07, Jesse Alexander (KSFD 121)
[EMAIL PROTECTED] wrote:



 For all interested people here is the link for the first meeting:
 http://www.falconjsoft.ch/flexshare/jsf-ug/

 see you there
 Alexander


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


[Swiss JSF Users] JSF Special-Interest-Group Switzerland

2007-06-24 Thread Jesse Alexander \(KSFD 121\)
For all interested people here is the link for the first meeting:
http://www.falconjsoft.ch/flexshare/jsf-ug/

see you there
Alexander


RE: Myfaces - application calling by link which include parameter

2007-06-08 Thread Jesse Alexander \(KSFD 121\)
Google for JSF GET or JSF GET phaselistener

hth
Alexander 

-Original Message-
From: MPF [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 08, 2007 3:48 PM
To: users@myfaces.apache.org
Subject: Myfaces - application calling by link which include parameter


Hi!
How can I realize that?
My application get called with a link that contains a parameter whom i
need
to load data. Need to write a frontcontroller?how?

someone can help?

best regards
-- 
View this message in context:
http://www.nabble.com/Myfaces---application-calling-by-link-which-includ
e-parameter-tf3889911.html#a11026798
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: why tab pane submits/validates all tabs

2007-06-06 Thread Jesse Alexander \(KSFD 121\)
I wonder whether it would be possible to define a form inside each tab
to
force a partial submit.
It just raises the question, whether the tabbed pane automatically adds
a 
form around the complete tab-widget, or just on the clickable tabs,...

From the usability I would argument, that the click on the tab
automatically should throw away the form-content on the tab, because it
is not a form-related button (which should be below the input-fields).
And
ALL links (which includes the tabs outside the input-form) should be
considered as
form-unfriendly navigation = not submitting the form... This would also
make it 
possible to get rid of the Javascript on each link (no need to submit a
form).

regards
Alexander 

-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 05, 2007 11:08 PM
To: MyFaces Discussion
Subject: Re: why tab pane submits/validates all tabs

Ok... i guess that's then the expected behavior, just not what I  
expected...

thanks!

On Jun 5, 2007, at 3:37 PM, Jesse Alexander ((KSFD 121)) wrote:

 well the tabbedPane always renders all components but just displays
 only one tab. As it uses links it needs the form around the whole and
 submits it in one piece...

 hth
 Alexander

 -Original Message-
 From: Alexander Wallace [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2007 10:26 PM
 To: MyFaces Discussion
 Subject: Re: why tab pane submits/validates all tabs

 I guess you meant server side tab switch... i tried that, but when I
 use it, the action or action listener methods are never visited when
 buttons are clicked... it is very messed up...

 thanks!

 On Jun 5, 2007, at 1:01 PM, Alexander Wallace wrote:

 I'm using server side... But still get the undesired result...

 Any clues?

 On Jun 5, 2007, at 12:35 PM, Mike Kienenberger wrote:

 It's been awhile since I used tabs, but I think if you use server-
 side
 tab switching, only the current tab will be rendered (and submitted
 and validated).

 If you use client-side tab switching, all tabs are rendered (but
 hidden with javascript) and all tabs are submitted.

 On 6/5/07, Alexander Wallace [EMAIL PROTECTED] wrote:
 I have a MyFaces portlet with 5 or so tabs, each with its own  
 set of
 independent (i would hope) fields and submit buttons... However,  
 all
 elements in all tabs are submitted and validated when either of  
 tabs
 has a submit button clicked...

 Is this really how it is supposed to be? I'm using MyFaces 114

 Thanks!










RE: [Swiss JSF Users] JSF Special-Interest-Group Switzerland

2007-06-06 Thread Jesse Alexander \(KSFD 121\)
Nobody interested to show up?

I need to know how big the room should be...
So, if you are interested in coming, please tell me so.

regards
Alexander 

-Original Message-
From: Jesse Alexander (KSFD 121) 
Sent: Thursday, May 31, 2007 9:34 PM
To: MyFaces Discussion
Subject: [Swiss JSF Users] JSF Special-Interest-Group Switzerland

JSF is proving more and more competitive each day. A increasing number
of 
companies are developing applications based on JSF.
Often the same questions/problems/hints are valid for almost all users
of 
JSF. Internationally some active communities have been established. Last

year a first encounter of JSF-entusiasts created the idea of JSFDays
Europe, 
a conference that allows to get in touch with the main players int he 
JSF-universe and to meet also informally. This first encounter took
place 
in Munich, was organized on very short notice during the Oktoberfest. An

intense session with the JSF expert group lead Ed Burns allowed the
users 
to voice their wishes for JSF 2.0 and regognize the approachability of

the JSF-people at Sun. Within Switzerland so far the contacts between
the 
users are rather sporadic and more on a one-to-one basis.

Hopefully some contacts have been added during the Jazoon-conference. We

would like to go one step further and establish the networking between 
Swiss-JSF users. An active community can help in solving problems or
even 
create components that are usefull for some or all members. And in 
Switzerland we encounter some problems (like i18n, as most of our 
applications need to be available in multiple languages) that other
international users do not encounter or encounter later or to a lesser
extent.

The JSF-specification is driven by requirements that are brought to the 
Expert Group discussing the specifications. So far much input has come 
from framework-architects, appserver-providers and tool-creators. It's 
about time the actual users let hear their voices as well. Although the 
expert group members can be contacted and have proven to be very 
responsive, requirements coming from an official user-group have more 
importance.

Establishing a JSF user group as a independant community or a 
special interest group under the umbrella of the 
JUGS (Java User Group Switzerland) could be the outcome of this
meeting.

The underline the importance of interaction and communication for the 
community, we propose short presentations with much space for
discussion.

Date: Thursday, 2007-06-28 (right after the end of Jazoon 07)
Place: Zurich, close to the location of Jazoon 07 (but not yet defined) 

Agenda:
- 16:30 - 17:30: HTTP-GET interface into JSF-applications
Presenter: Ed Burns
Abstract: First ideas on the upcoming GET-interface into 
JSF-applications. ...
  30 minutes presentation, 30 minutes discussion on 
these ideas and their implications on the applications

- 17:30 - 18:30 (resp. open end): JSF, Quo Vadis?
Presenter: Ed Burns, Alexander Jesse
Abstract: 
- Where is JSF heading? The Expert Group is forming and
discussing 
the next version of the JSF-spec right now. 
What are the ideas driving the EG? 
- Where is JSF heading in Switzerland? Can we say a User Group
is 
forming right now? What could be the plans of this group? Should

it participate in the JSFDays Europe initiative?

In order to plan the upcoming first meeting (room,...) we would
appreciate 
feedback from all interested people. Also from those that cannot come to

the first meeting, but would welcome the foundation of the 
JSF Special-Interest-Group Switzerland.


RE: why tab pane submits/validates all tabs

2007-06-05 Thread Jesse Alexander \(KSFD 121\)
well the tabbedPane always renders all components but just displays 
only one tab. As it uses links it needs the form around the whole and 
submits it in one piece...

hth
Alexander 

-Original Message-
From: Alexander Wallace [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 05, 2007 10:26 PM
To: MyFaces Discussion
Subject: Re: why tab pane submits/validates all tabs

I guess you meant server side tab switch... i tried that, but when I  
use it, the action or action listener methods are never visited when  
buttons are clicked... it is very messed up...

thanks!

On Jun 5, 2007, at 1:01 PM, Alexander Wallace wrote:

 I'm using server side... But still get the undesired result...

 Any clues?

 On Jun 5, 2007, at 12:35 PM, Mike Kienenberger wrote:

 It's been awhile since I used tabs, but I think if you use server- 
 side
 tab switching, only the current tab will be rendered (and submitted
 and validated).

 If you use client-side tab switching, all tabs are rendered (but
 hidden with javascript) and all tabs are submitted.

 On 6/5/07, Alexander Wallace [EMAIL PROTECTED] wrote:
 I have a MyFaces portlet with 5 or so tabs, each with its own set of
 independent (i would hope) fields and submit buttons... However, all
 elements in all tabs are submitted and validated when either of tabs
 has a submit button clicked...

 Is this really how it is supposed to be? I'm using MyFaces 114

 Thanks!








RE: What change with JSF 1.1 to JSF 1.2?

2007-05-31 Thread Jesse Alexander \(KSFD 121\)
As Adam I recommend to rewrite to the ELResolvers, if you do not absolutely 
need the backward compatibility.
 
As for writing or decorating...
With the ELResolver the handling is very easy when you start from scratch (== 
not decorating). And then you just add your 
ELResolver to the list...
 
regards
Alexander



From: David Steinkopff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 9:00 AM
To: MyFaces Discussion
Subject: Re: What change with JSF 1.1 to JSF 1.2?


Hi,

I dont need all features of ELResolvers, for me only important is setValue, 
getValue and maybe isReadonly to connect a custom data system. In this way was 
PropertyResolver more than enough for me.
JSF 1.1 have only one implementation of  PropertyResolver and JSF 1.2 have with 
ELResolver more than one. Which implementation I can use for a decorator or 
what implementation is common standard in JSF 1.2? 

Regards
David



2007/5/30, Adam Winer  [EMAIL PROTECTED]: 

FYI, I strongly recommend that developers who are moving up
to JSF 1.2 rewrite PropertyResolvers and VariableResolvers
as ELResolvers.

Backwards compatibility for registered (programatic or via
faces-config.xml ) VariableResolver and PropertyResolvers has
been a major nightmare for the reference implementation,
and I'd be amazed if MyFaces 1.2 didn't have some bugs
here.  And, even if it's perfect, there's a slight performance 
hit associated with using legacy EL APIs.

-- Adam



On 5/30/07, Jesse Alexander (KSFD 121)
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote: 


 The PropertyResolver is ONLY DEPRECATED. It still can be accessed, 
although
 a compiler might throw warnings

 regards
 Alexander

   
  From: David Steinkopff [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 30, 2007 11:04 AM 
 To: MyFaces Discussion
 Subject: Re: What change with JSF 1.1 to JSF 1.2?


 Hi Martin,

 current is my PropertyResolver a decorator of the 
PropertyResolverImpl from
 MyFaces. Would it neccessary to wright a new decorator for the 
ELResolver 
 implementation? Or I can use the PropertyResolver in JSF 1.2 in face 
of
 deprecated?

 Regards
 David


 2007/5/30, Martin Marinschek  [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED] :
  It _should_ work out of the box - everything else would be a bug. 
Also
  the property-resolver should work, it would be integrated into the
  el-resolver-chain... 
 
  regards,
 
  Martin
 
  On 5/30/07, David Steinkopff  [EMAIL PROTECTED] wrote: 
   Hello,
  
   I ´m reading interested in this mailing list and I see that JSF 
1.2
   implementation from MyFaces is coming soon.
   Now I ask me the question, what changes must I attend if I 
immigrate a 
 JSF
   1.1 application with own PropertyResolver and PhaseListener?
  
   regards
   David
  
 
 
  --
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and 
  Courses in English and German
  
  Professional Support for Apache MyFaces
 







RE: What change with JSF 1.1 to JSF 1.2?

2007-05-31 Thread Jesse Alexander \(KSFD 121\)
Hi David
 
- list: Sure, you can add as mny as you want. The first one that can satisfy 
the request marks it and thechain ends...
  Nice, cause every Resolver does one task (separation of concerns)
  That is also why you found so many ELResolvers floating around...
 
regards
Alexander



From: David Steinkopff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 10:19 AM
To: MyFaces Discussion
Subject: Re: What change with JSF 1.1 to JSF 1.2?


Hi Alexander,

I prefer more to decorat, becauce I need only some PropertyResolver methods. 
ELResolver works like PropertyResolver and VariableResolver together and to 
implement both is more as I needed in my case. 
What do you mean with list? It is possible to add more than one resolver? 

regards
David


2007/5/31, Jesse Alexander (KSFD 121)  [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED] : 

As Adam I recommend to rewrite to the ELResolvers, if you do not 
absolutely need the backward compatibility.
 
As for writing or decorating...
With the ELResolver the handling is very easy when you start from 
scratch (== not decorating). And then you just add your 
ELResolver to the list...
 
regards
Alexander



From: David Steinkopff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 9:00 AM 

To: MyFaces Discussion
Subject: Re: What change with JSF 1.1 to JSF 1.2?



Hi,

I dont need all features of ELResolvers, for me only important is 
setValue, getValue and maybe isReadonly to connect a custom data system. In 
this way was PropertyResolver more than enough for me.
JSF 1.1 have only one implementation of  PropertyResolver and JSF 1.2 
have with ELResolver more than one. Which implementation I can use for a 
decorator or what implementation is common standard in JSF 1.2? 

Regards
David



2007/5/30, Adam Winer  [EMAIL PROTECTED]: 

FYI, I strongly recommend that developers who are moving up
to JSF 1.2 rewrite PropertyResolvers and VariableResolvers
as ELResolvers.

Backwards compatibility for registered (programatic or via
faces-config.xml ) VariableResolver and PropertyResolvers has
been a major nightmare for the reference implementation,
and I'd be amazed if MyFaces 1.2 didn't have some bugs
here.  And, even if it's perfect, there's a slight performance 
hit associated with using legacy EL APIs.

-- Adam



On 5/30/07, Jesse Alexander (KSFD 121)
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  wrote: 


 The PropertyResolver is ONLY DEPRECATED. It still can be 
accessed, although
 a compiler might throw warnings

 regards
 Alexander

   
  From: David Steinkopff [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, May 30, 2007 11:04 AM 
 To: MyFaces Discussion
 Subject: Re: What change with JSF 1.1 to JSF 1.2?


 Hi Martin,

 current is my PropertyResolver a decorator of the 
PropertyResolverImpl from
 MyFaces. Would it neccessary to wright a new decorator for 
the ELResolver 
 implementation? Or I can use the PropertyResolver in JSF 1.2 
in face of
 deprecated?

 Regards
 David


 2007/5/30, Martin Marinschek  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] :
  It _should_ work out of the box - everything else would be 
a bug. Also
  the property-resolver should work, it would be integrated 
into the
  el-resolver-chain... 
 
  regards,
 
  Martin
 
  On 5/30/07, David Steinkopff  [EMAIL PROTECTED] wrote: 
   Hello,
  
   I ´m reading interested in this mailing list and I see 
that JSF 1.2
   implementation from MyFaces is coming soon.
   Now I ask me the question, what changes must I attend if 
I immigrate a 
 JSF
   1.1 application with own PropertyResolver and 
PhaseListener?
  
   regards
   David

[Swiss JSF Users] JSF Special-Interest-Group Switzerland

2007-05-31 Thread Jesse Alexander \(KSFD 121\)
JSF is proving more and more competitive each day. A increasing number
of 
companies are developing applications based on JSF.
Often the same questions/problems/hints are valid for almost all users
of 
JSF. Internationally some active communities have been established. Last

year a first encounter of JSF-entusiasts created the idea of JSFDays
Europe, 
a conference that allows to get in touch with the main players int he 
JSF-universe and to meet also informally. This first encounter took
place 
in Munich, was organized on very short notice during the Oktoberfest. An

intense session with the JSF expert group lead Ed Burns allowed the
users 
to voice their wishes for JSF 2.0 and regognize the approachability of

the JSF-people at Sun. Within Switzerland so far the contacts between
the 
users are rather sporadic and more on a one-to-one basis.

Hopefully some contacts have been added during the Jazoon-conference. We

would like to go one step further and establish the networking between 
Swiss-JSF users. An active community can help in solving problems or
even 
create components that are usefull for some or all members. And in 
Switzerland we encounter some problems (like i18n, as most of our 
applications need to be available in multiple languages) that other
international users do not encounter or encounter later or to a lesser
extent.

The JSF-specification is driven by requirements that are brought to the 
Expert Group discussing the specifications. So far much input has come 
from framework-architects, appserver-providers and tool-creators. It's 
about time the actual users let hear their voices as well. Although the 
expert group members can be contacted and have proven to be very 
responsive, requirements coming from an official user-group have more 
importance.

Establishing a JSF user group as a independant community or a 
special interest group under the umbrella of the 
JUGS (Java User Group Switzerland) could be the outcome of this
meeting.

The underline the importance of interaction and communication for the 
community, we propose short presentations with much space for
discussion.

Date: Thursday, 2007-06-28 (right after the end of Jazoon 07)
Place: Zurich, close to the location of Jazoon 07 (but not yet defined) 

Agenda:
- 16:30 - 17:30: HTTP-GET interface into JSF-applications
Presenter: Ed Burns
Abstract: First ideas on the upcoming GET-interface into 
JSF-applications. ...
  30 minutes presentation, 30 minutes discussion on 
these ideas and their implications on the applications

- 17:30 - 18:30 (resp. open end): JSF, Quo Vadis?
Presenter: Ed Burns, Alexander Jesse
Abstract: 
- Where is JSF heading? The Expert Group is forming and
discussing 
the next version of the JSF-spec right now. 
What are the ideas driving the EG? 
- Where is JSF heading in Switzerland? Can we say a User Group
is 
forming right now? What could be the plans of this group? Should

it participate in the JSFDays Europe initiative?

In order to plan the upcoming first meeting (room,...) we would
appreciate 
feedback from all interested people. Also from those that cannot come to

the first meeting, but would welcome the foundation of the 
JSF Special-Interest-Group Switzerland.


RE: What change with JSF 1.1 to JSF 1.2?

2007-05-30 Thread Jesse Alexander \(KSFD 121\)
The PropertyResolver is ONLY DEPRECATED. It still can be accessed, although a 
compiler might throw warnings
 
regards
Alexander



From: David Steinkopff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 30, 2007 11:04 AM
To: MyFaces Discussion
Subject: Re: What change with JSF 1.1 to JSF 1.2?


Hi Martin,

current is my PropertyResolver a decorator of the PropertyResolverImpl from 
MyFaces. Would it neccessary to wright a new decorator for the ELResolver 
implementation? Or I can use the PropertyResolver in JSF 1.2 in face of 
deprecated?

Regards 
David


2007/5/30, Martin Marinschek [EMAIL PROTECTED]: 

It _should_ work out of the box - everything else would be a bug. Also
the property-resolver should work, it would be integrated into the
el-resolver-chain...

regards,

Martin

On 5/30/07, David Steinkopff  [EMAIL PROTECTED] wrote:
 Hello,

 I ´m reading interested in this mailing list and I see that JSF 1.2
 implementation from MyFaces is coming soon. 
 Now I ask me the question, what changes must I attend if I immigrate 
a JSF
 1.1 application with own PropertyResolver and PhaseListener?

 regards
 David



--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces





RE: [TRINIDAD] Portlets and Trinidad

2007-05-25 Thread Jesse Alexander \(KSFD 121\)
Don't know about Trinidad..., but

portlet-bridges:
there are quite a few bridges, namely:
- Sun: https://jsfportletbridge.dev.java.net/
- Apache:
http://portals.apache.org/bridges/multiproject/portals-bridges-jsf/inde
x.html 
  Samples use MyFaces

hth
Alexander

-Original Message-
From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 25, 2007 11:16 AM
To: MyFaces Discussion
Subject: [TRINIDAD] Portlets and Trinidad

Hi *,

I have skimmed through the online documentation for Trinidad, but
haven't found anything useful about portlet compatibility. Is there
anyone in the Trinidad team who knows more about using portlets with
Trinidad, and can provide a link to more information?

Especially I would be interested in:

- file-upload - how's that handled in portlets?
- including the script/style-elements in the header of the page
(obviously, tr:document won't help in a portlet environment, right?)
- serving out resources with the resources servlet/filter (it's clear
that neither one will work in a portlet environment)

I've heard about some jsf-portlet-bridge helping out here, but that's
RI, right?

regards,

Martin


RE: panelTab loosing state (goest to tab 0 after submit on any tab)

2007-05-25 Thread Jesse Alexander \(KSFD 121\)
Are you using server- or client-state?
 
web.xml - context-param - javax.faces.STATE_SAVING_METHOD
 
regards
Alexander 


From: Alexander Wallace [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 25, 2007 1:40 AM
To: MyFaces Discussion
Subject: panelTab loosing state (goest to tab 0 after submit on any tab)


This is kind of wierd, we are using tomahawk 1.1.3 and My Faces 1.1.4
with latest tomahawk bridge (91) to develop portlets... The tabset works
fine in other portlets, but I can't find why it doesn't work here ...
When a submit button is pressed in, say, tab 1, after submit, the
portlet displays tab 0 ... What is causing the tabset to loose state of
what tab was selected?

Thanks in advance, jsf below:

%@ taglib uri=http://java.sun.com/jsf/core;
http://java.sun.com/jsf/core  prefix=f %
%@ taglib uri=http://java.sun.com/jsf/html;
http://java.sun.com/jsf/html  prefix=h %
%@ taglib uri=http://java.sun.com/jstl/core;
http://java.sun.com/jstl/core  prefix=c%
%@ taglib uri=http://myfaces.apache.org/tomahawk;
http://myfaces.apache.org/tomahawk  prefix=t%

f:view 
h:form  
t:panelTabbedPane 
t:panelTab id=view_filters_tab title=View Filters
   f:subview id=view_filters
jsp:include page=WEB-INF/jsp/view_filters.jsp /

/f:subview
/t:panelTab
t:panelTab id=download_products_tab title=Download
Products 



/t:panelTab  
t:panelTab id=physical_products_tab title=Physical
Products 
h:panelGrid



/h:panelGrid
/t:panelTab  
t:panelTab id=services_tab title=Services 
f:subview id=services
jsp:include page=WEB-INF/jsp/services.jsp /  
/f:subview
/t:panelTab  
t:panelTab id=recommendations_tab title=Recomendations

h:panelGrid



/h:panelGrid
/t:panelTab  
/t:panelTabbedPane



/h:form  
/f:view

Thanks!



RE: Why so many problems with MyFaces?

2007-05-24 Thread Jesse Alexander \(KSFD 121\)
Are you trying to start a flame-war?

regards
Alexander 

-Original Message-
From: SiSi'mon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 23, 2007 5:44 PM
To: users@myfaces.apache.org
Subject: Why so many problems with MyFaces?


Does anyone know why Myfaces sucks so much?  It was supposed to solve
some
problems but we have seen nothing but project delays since deciding to
use
it.

Is it a poor specification or a poor implementation of a very bad
specification or a very bad implementation of a very bad idea?

Si'mon
-- 
View this message in context:
http://www.nabble.com/Why-so-many-problems-with-MyFaces--tf3804863.html#
a1070
Sent from the MyFaces - Users mailing list archive at Nabble.com.



RE: [ANNOUNCE] MyFaces Core v1.1.5 Release

2007-05-15 Thread Jesse Alexander \(KSFD 121\)
Hi

Just checked that page... And I think there is a slight error... 

In the table named The ASF have licensed the following TCKs:
JSR-127 : JavaServer Faces  1.2_03  5-Dec-2006

to seems wrong...

JSR-127 is JSF 1.1
JSR-252 would be JSF 1.2

regards
Alexander

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Monday, May 14, 2007 6:47 PM
To: MyFaces Discussion
Subject: Re: [ANNOUNCE] MyFaces Core v1.1.5 Release

We should list this release here:

http://apache.org/jcp/

-M

On 2/19/07, Manfred Geiler [EMAIL PROTECTED] wrote:
 The Apache MyFaces team is pleased to announce the release of MyFaces
 Core 1.1.5.

 MyFaces Core is a JavaServer(tm) Faces 1.1 implementation as specified
 by JSR-127.  MyFaces Core has passed Sun's JSR-127 TCK and is 100%
 compliant with the JSR-127 specification.

 MyFaces Core 1.1.5 is available in both binary and source
distributions.

 * http://myfaces.apache.org/download.html

 MyFaces Core is also available in the central Maven repository under
 Group ID org.apache.myfaces.core.

 Release Notes - MyFaces Core - Version 1.1.5
  ** Fixed Bugs
 * [MYFACES-437] - f:attribute does not work  with  x:dataTable
 * [MYFACES-660] - (Patch provided) request scoping from Portlet
 Action- to RenderRequest should not occur via Attribute Request Map
 * [MYFACES-689] - PropertyResolverImpl.getType(Object base, int
 index) return null if base instanceof Object[]
 * [MYFACES-731] - selectManyListbox calls converter getAsString
 passing in string value during form post
 * [MYFACES-828] - HtmlCheckboxRenderer ignores readonly
 * [MYFACES-968] - LifecycleImpl's restoreView throws NPE when
 viewId is null in a portlet context
 * [MYFACES-1025] - panelGrid does always render a border-attribute
 * [MYFACES-1029] - Duplicate sibling ids allowed
 * [MYFACES-1304] - DigesterFacesConfigDispenserImpl shuld respect
 order of registered renderkits
 * [MYFACES-1328] - UISelectOne and UISelectMany fail with custom
 converter that returns java.lang.String from getAsObject() method.
 * [MYFACES-1368] - Fix case sensitivity for context params
 * [MYFACES-1384] - After switch from myfaces-impl-1.1.3 (release)
 to myfaces-1.1.5-SNAPSHOT, javascript throw error 'Object expected'
 * [MYFACES-1386] - PropertyResolverImpl.setProperty lacks usefull
 error mesage if write method not found
 * [MYFACES-1393] - MyFaces state information is rendered by
MyFaces Form
 * [MYFACES-1397] - getValidJavascriptNameAsInRI throws
 java.lang.IllegalArgumentException: Illegal group reference
 * [MYFACES-1406] - Core and Shared project has dependency on
 myfaces:myfaces-api version 1.1.1
 * [MYFACES-1407] - JS oamSubmitForm() params order incorrect
 * [MYFACES-1410] - CLONE -PropertyResolverImpl.getType(Object
 base, int index) return null if base instanceof Object[]
 * [MYFACES-1412] - Restore view phase does not conforms
specification
 * [MYFACES-1413] - JS error in function oamSubmitForm(...)
 * [MYFACES-1415] - WebXmlParser needs to be aware of changes in
 web.xml in version 2.4 of the Servlet spec
 * [MYFACES-1420] - Null Pointer Exception in
 SelectItemsIterator.next() if binding is null
 * [MYFACES-1421] - MyFaces not working with Struts Faces Form
 * [MYFACES-1425] - wrong text for link in getting started
 * [MYFACES-1427] - Error restoring view
 * [MYFACES-1428] - Application cannot be started with Snapshot
 1.1.5 of 27th Sept./1st Oct.
 * [MYFACES-1430] - selectOneMenu looses values after clicking
 immediate link (since 1.1.4)
 * [MYFACES-1479] - SerialFactory breaks Portlet bridge
 * [MYFACES-1481] - MyFacesGenericPortlet does not work in a
cluster
 * [MYFACES-1486] - Error Handling in Property-Resolver-Impl
 * [MYFACES-1489] - ExternalContext Maps
 * [MYFACES-1490] - DateTimeConverter exception on parsing time
 * [MYFACES-1495] - client side state saving bug
 * [MYFACES-1500] - Default values in standard-faces-config.xml
 * [MYFACES-1510] - h:form does not render accept-charset
  ** Improvements
 * [MYFACES-652] - Findbugs ant-tasks
 * [MYFACES-1032] - use a javascript method in commondLink for
 lesser html size
 * [MYFACES-1366] - Error in javascript function
 * [MYFACES-1373] - Add exception to logger for output exception
stack trace
 * [MYFACES-1385] - Remove all of the unused code, variables, and
 import statements identified by Eclipse 3.1.2
 * [MYFACES-1405] - Interoperability with Facelets
 * [MYFACES-1411] - Lifecycle phase executions repetitions
 * [MYFACES-1418] - javax.faces.validator - DoubleRangeValidator,
 LengthValidator, LongRangeValidator are very similar, refactor common
 behaviour
 * [MYFACES-1419] - javax.faces.convert - refactor common behaviour
 + DateTimeConverter changes
 * [MYFACES-1422] - findNestingForm() tests only against component
 family and 

RE: [Announcement] MyFaces 1.2 - 100%

2007-05-10 Thread Jesse Alexander \(KSFD 121\)
Congrats

Finally another player in the JSF 1.2 arena

Alexander 

-Original Message-
From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 10, 2007 6:13 PM
To: MyFaces Discussion
Subject: [Announcement] MyFaces 1.2 - 100%

The MyFaces team is very proud to announce that it seems that MyFaces
1.2 fully implements the JSF 1.2 Specification as we ran the TCK
(Technology Compatibility Kit tests) and it passed. We are now seeking
formal acknowledgment from Sun that our implementation
is conformant with the Specification.

This is one of the greatest milestones for the project and it has been
possible thanks to the endless contributions of the MyFaces community.

There is not yet a release for this version, but the snapshots
(1.2.0-SNAPSHOT) are available in the Apache Snapshots repository [1]
or it is possible to build the artifacts from the sources by following
the simple steps on this page [2].

[1] http://people.apache.org/repo/m2-snapshot-repository
[2] http://wiki.apache.org/myfaces/MyFaces_1%2e2

We are looking forward the official release of MyFaces 1.2 soon,

Thank you and enjoy!

MyFaces Team


RE: [OT] Canvasing for a MyFaces/JSF Speaker

2007-04-06 Thread Jesse Alexander \(KSFD 121\)
ist in Arbeit... 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Friday, April 06, 2007 9:34 AM
To: MyFaces Discussion
Subject: Re: [OT] Canvasing for a MyFaces/JSF Speaker

JSFDays 07 ?

any links ?

On 4/5/07, Jesse Alexander (KSFD 121)
[EMAIL PROTECTED] wrote:
 Hi

 Maybe Ed could do it on his way to Vienna (JSFDays 07) ;)

 regards
 Alexander

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 05, 2007 4:08 PM
 To: users@myfaces.apache.org
 Subject: [OT] Canvasing for a MyFaces/JSF Speaker

 Hi

 I am canvasing for a speaker for later in the year (Summer, Autumn)
who
 can give a talk to the JAVAWUG UK
 in London about JavaServer Faces and/or My Faces software development.

 Please contact me offline peter dot pilgrim at gmail dot com, if
 interested
 http://jroller.com/page/javawug
 http://jroller.com/page/peter_pilgrim

 --
 Peter Pilgrim
 UBS Investment Bank,
 Client Portal Dev LDN,
 Triton Court, 14 Finsbury Square, London, EC2A 1PD
 United Kingdom (  +44 (0)207 56 75692 )
 :: Java EE Spring 2.0 Hibernate 3.2 Development ::

 Visit our website at http://www.ubs.com

 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.

 E-mails are not encrypted and cannot be guaranteed to be secure or
 error-free as information could be intercepted, corrupted, lost,
 destroyed, arrive late or incomplete, or contain viruses.  The sender
 therefore does not accept liability for any errors or omissions in the
 contents of this message which arise as a result of e-mail
transmission.

 If verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities
 or related financial instruments.

 UBS Limited is a company registered in England  Wales under company
 number 2035362, whose registered office is at 1 Finsbury Avenue,
 London, EC2M 2PP, United Kingdom.

 UBS AG (London Branch) is registered as a branch of a foreign company
 under number BR004507, whose registered office is at
 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

 UBS Clearing and Execution Services Limited is a company registered
 in England  Wales under company number 03123037, whose registered
 office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.



-- 
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


RE: New to MyFaces

2007-04-06 Thread Jesse Alexander \(KSFD 121\)
seems that mileage really varies

We have heard from projects that they never would have made
it in time without JSF given their scarce resources.

Thinking about the bad maintainability of System.out. webapps
I am HAPPY using JSF. Wouldn't want to go back to those old times.

And using Facelets even the component-writing is really fun.

regards
Alexander 

-Original Message-
From: taylan saldiray [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 06, 2007 2:25 PM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: New to MyFaces

Iordanov, Borislav (GIC) ++

i have worked 6 months on jsf and given it up and wrote my html code
direct into the servlet. the reason is: the whole control is under my
hand, the rendered code is much simplier, works faster, consumes less
space and is more flexible.
we have spent one week for binding a table to a model and making it
editable and ajax-able wihch took too much time. and when an exception
occured, it was hard to detect the reason. one more thing which i
disliked about about jsf was a big bug which was solved in newer
versions but took much time for us and delayed the project. the reason
was a simple synchronization problem where multiple threads accessed
an object without synch.

On 4/6/07, Werner Punz [EMAIL PROTECTED] wrote:
 Iordanov, Borislav (GIC) schrieb:
  I'm not sure what statistics you are looking for. I haven't done
an
  industry analysis. But in general, JSF is heavyweight machinery
without
  any substantial benefit. Simple things are complicated and
complicated
  things impossible. It was obviously designed by (probably smart,
Java
  knowledgeable) people that have no serious experience with web
  development. A well-known example is that it still doesn't work well
  with JSP (a technology for which JSF was designed from the start!)
and
  it probably never will.
 
 

 JSF 1.2 does (myfaces soon will have jsf 1.2 level)
 and facelets basically do what jsp does. You basically
 speak about the mixin problems of html and jsf (verbatim tags)

 this problem is gone in the jsf 1.2 spec, and in facelets, facelets
also
 eliminates problems introduced by jsp...




RE: [OT] Canvasing for a MyFaces/JSF Speaker

2007-04-05 Thread Jesse Alexander \(KSFD 121\)
Hi

Maybe Ed could do it on his way to Vienna (JSFDays 07) ;)

regards
Alexander 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 05, 2007 4:08 PM
To: users@myfaces.apache.org
Subject: [OT] Canvasing for a MyFaces/JSF Speaker

Hi

I am canvasing for a speaker for later in the year (Summer, Autumn) who
can give a talk to the JAVAWUG UK
in London about JavaServer Faces and/or My Faces software development. 

Please contact me offline peter dot pilgrim at gmail dot com, if
interested
http://jroller.com/page/javawug
http://jroller.com/page/peter_pilgrim

--
Peter Pilgrim
UBS Investment Bank, 
Client Portal Dev LDN,
Triton Court, 14 Finsbury Square, London, EC2A 1PD
United Kingdom (  +44 (0)207 56 75692 )
:: Java EE Spring 2.0 Hibernate 3.2 Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.

If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

UBS Limited is a company registered in England  Wales under company
number 2035362, whose registered office is at 1 Finsbury Avenue,
London, EC2M 2PP, United Kingdom.

UBS AG (London Branch) is registered as a branch of a foreign company
under number BR004507, whose registered office is at
1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

UBS Clearing and Execution Services Limited is a company registered
in England  Wales under company number 03123037, whose registered
office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.


RE: Accessing constants in EL expressions

2007-02-07 Thread Jesse Alexander \(KSFD 121\)
If you use facelets... you could also write a simple EL-function... 
Has the advantage, that you do not have to change the ACL-class.

hth
Alexander

-Original Message-
From: Ingo Düppe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 11:39 AM
To: MyFaces Discussion
Subject: Accessing constants in EL expressions

Hi,

how can I access a constant integer value within an el-statement.

I like to do something like:
s:acl domainObject=#{faculty} hasPermission=#{ACL.GRANT + ACL.UPDATE}
   ...
/s:acl

And ACL is defined as:

public class ACL ... {
   public static final Integer GRANT = 1;
   public static final Integer CREATE = 2;
   public static final Integer UPDATE = 4;
   ...
}

Any suggestions would be wonderful :-)

Regards
Ingo




RE: AW: Accessing constants in EL expressions

2007-02-07 Thread Jesse Alexander \(KSFD 121\)
why inject the static part in the EL-expression
just write the custom resolver and have him check whether the property
name resolves to a static-classmember and return it...
 
hth
Alexander



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Wednesday, February 07, 2007 10:52 PM
To: MyFaces Discussion
Subject: Re: AW: Accessing constants in EL expressions




On 2/7/07, Simon Kitching [EMAIL PROTECTED] wrote: 

The EL language is defined to provide access to Java Bean
Properties,
and only Java Bean Properties. Static fields are not regarded as
Java
Bean Properties by the java.beans.Introspector class, hence are
not
accessable. 

Yes, it sucks but this is the JSF spec. Well, actually the JSF
spec says:
quote
The syntax of a value binding expression is identical to the
syntax of
an expression language expression defined in the JavaServer
Pages 
Specification (version 2.0), sections 2.3 through 2.9, with the
following exceptions ...
/quote
where the exceptions are not relevant in this case. And the JSP
spec
says that a.b and a[b] are:
quote 
used to access maps, lists, arrays of objects and properties of
a Java-
Beans object
/quote

See:
http://java.sun.com/javaee/javaserverfaces/download.html 
http://java.sun.com/products/jsp/reference/api/index.html

http://java.sun.com/products/jsp/syntax/2.0/syntaxref207.html#1010522
http://java.sun.com/products/jsp/syntax/2.0/syntaxref207.html#1010522 

Therefore to get access to static constants working, what is
needed is
to ensure that the data you want *is* a Java Bean Property
(read-only in 
the case of constants). The ways to do this are:
1. add a getter method, getCONSTANT
2. add a getter method for a Map which provides access to the
constants
3. play clever tricks with a BeanInfo class.


If you want to solve it once and for all, consider implementing a custom
PropertyResolver to do the dirty work.  The goal would be to translate
something like

#{foo.static.BAR}

into the value of the static constant BAR on whatever class foo resolves
to.  The getValue() method for this custom PropertyResolver would need
to do something like this: 

* If the property name is static, create some sort of proxy object
  that is configured with the class of the base object and return that.

* Else if the base object is an instanceof the proxy class described
above, 
  treat the property name as the name of a static constant, use
reflection
  to retrieve the value, and return that.

* Else delegate to the previous PropertyResolver instance.

Being able to customize the evaluation of expressions is very powerful. 

Also, while the concept above refers to PropertyResolver and is
therefore relevant for JSF 1.1, the same concept works with ELResolver
in JSF 1.2 (with the added benefit that your custom resolvers are used
for JSP ${...} expressions as well as JSF #{...} expressions). 

Craig




RE: return pdf from database blob?

2007-02-06 Thread Jesse Alexander \(KSFD 121\)
why not just create a simple servlet that does it?
 
or asked differently: why would you need the JSF-lifecycle for this PDF
download?
 
regards
Alexander



From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 07, 2007 12:21 AM
To: MyFaces Discussion
Subject: return pdf from database blob?


I want to have a table of pdf documents in my database that I want to
return to my web users. Is there an example of having a MyFaces jsp
return pdf document verse html?

-- 
---
Thanks,
Mick Knutson 

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com
--- 


RE: JSF app optimizations

2007-01-17 Thread Jesse Alexander \(KSFD 121\)
My own tests (last year) showed that a huge amount of time is spent
in JSP-rendering.

Facelets (using a SAX-Compiler) seems to be faster than JSP's...
So this would be a first tuning-possibility.

regards
Alexander 

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 17, 2007 11:40 AM
To: MyFaces Discussion
Subject: Re: JSF app optimizations

Hi,

am not sure to read this graph propertly, by it seems that, out of the
62.4% time spent in renderView, 12,4% are spend rendering the Ajax
Container (and all it's child components). The Most important part, 50%,
are not shown in your diagram.
Also, because the renderView will, in the end, call your backing beans
to display datas, you should check that the backing beans code are not
your slowing part.

Last but not least, you did not give background informations on what
your app is doing. Are there lenghtly process that should take more CPU
than the rendering in your design? (Remind yourself that picking datas
to display from bean, is part of the execution of renderView) If most of
the job of your app is to display datas, it's quite normal that the
renderView take most of the time spend by your application.
 Hi all,


 I have noticed that my application performace is reduced very much by
 calling ViewHandler.renderView() method.

 I wonder if there are any optimizations to perform (for Tomcat or my
own
 app's web.xml) to increase my app performance?

 Please have a look on the attached image with JProfiler's Call Tree
and
 Hotspots:

 http://www.nabble.com/file/5678/JProfiler_Trace.png 


 Thanks in advance,

 Sergiy




   



RE: Custom Converter exception during processing of faces-config.xml

2006-12-15 Thread Jesse Alexander \(KSFD 121\)
Shot in the dark:
 
 
Could it be that you have deployed MyFaces to a shared
server-lib-folder?
Then this might be a problem loading a class from the WEB-INF/classes
from
a parent-classloader (server-shared)...
 
hth
Alexander



From: Jon Steelman [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 12:10 AM
To: users@myfaces.apache.org
Subject: Custom Converter exception during processing of
faces-config.xml


Hi - When I try to use a custom Converter, I get a strange Exception
during processing of the faces-config.xml file. Any hints why when the
MyCustomConverter that implements Converter is clearly in my project?
Thanks,
Jon

18:07:33,318 ERROR [org.apache.myfaces.shared_impl.util.ClassUtils] ()
Class com.autotrader.dc.util.MyCustomConverter not found
java.lang.ClassNotFoundException: No ClassLoaders found for:
com.autotrader.dc.util.MyCustomConverter 
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClass
Loader.java:511)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass
(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)



RE: [Off-topic?] Image title, link title not showing up as tooltip

2006-12-15 Thread Jesse Alexander \(KSFD 121\)
known problem:
 
IE shows the alt-attribute as tooltip, while Firefox shows the
title-attribute.
 
According to www firefox does it correctly...
 
Solution: render the tooltip in both attributes and you get the tooltip
in both broswers...
 
hth
Alexander



From: Aneesha Govil [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 15, 2006 12:25 PM
To: MyFaces Discussion
Subject: Re: [Off-topic?] Image title, link title not showing up as
tooltip


It's working in Firefox on Windows. Duh.

Please ignore the message.

Thanks,
Aneesha


On 12/15/06, Aneesha Govil  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi,

I have a dynamically-constructed datatable and a static table
(in f:verbatim tags) that display images, links and a bunch of other
components. 

In the beginning when I was developing, the title attribute that
I had set for links and images was showing up as a tooltip. However, now
after completion of several features, they have stopped showing up. Both
in Mozilla Firefox 2.0 and IE. The HTML does render the title attribute
but it is not displayed.

Does anybody have any idea why?
Is it possible because these components are now inside tables? I
have no idea where to start looking what is going wrong. 

Please help.

Thanks,
Aneesha





RE: Using custom JSF-Components with Facelets

2006-11-30 Thread Jesse Alexander \(KSFD 121\)
A nice alternative to specifying the taglib using the web.xml is
to pack the component in a separate jar-file and to include 
the taglib within the META-INF folder. Only condition: the 
taglib-name must follow the pattern  XXX.taglib.xml.

Nice sideeffect: all xhtml-artifacts are read from the jar-file!!!

works smoothly

regards
Alexander

-Original Message-
From: kindsol [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 6:29 PM
To: MyFaces Discussion
Subject: Re: Using custom JSF-Components with Facelets

You also need to tell facelets to look at your custom-taglib:

Add to web.xml something like:

context-param
param-namefacelets.LIBRARIES/param-name
param-value/WEB-INF/custom-taglib.xml/param-value
   /context-param

You can add more files to the param-value, just separate each file by  
a semicolon.

Good luck!

-Sol


On Nov 27, 2006, at 8:05 AM, Christian Wiesing wrote:

 Thanks,

 i created the Facelets-Taglib-File, but it still don't work. It  
 would be great if somebody could tell me what I do wrong. See my  
 source code below.

 Thanks.

 Christian

 ---
 view.xhtml 
 ---

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
  http://www.w3.org/TR/xhtml1/DTD/xhtml1- 
 transitional.dtd
 html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:ui=http://java.sun.com/jsf/facelets;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:cf=http://test.com/customtags;
cf:jsfhello hellomsg=Hello world.   /
   /html

 ---
 custom-taglib.xml -
 ---

 ?xml version=1.0?
 !DOCTYPE facelet-taglib PUBLIC
  -//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN
  http://java.sun.com/dtd/facelet-taglib_1_0.dtd;

 facelet-taglib
namespacehttp://test.com/customtags/namespace
tag
tag-namejsfhello/tag-name
component
component-typedemo.JsfHello/component-type
/component  /tag

 /facelet-taglib

 ---
 faces-config --
 ---
 faces-config

  component
   component-typedemo.JsfHello/component-type
   component-classdemo.HelloUIComp/component-class
  /component


 ---
 HelloUIComp.java ---
 ---
 package demo;

 import java.util.Date;
 import javax.faces.component.UIComponentBase;
 import javax.faces.context.FacesContext;
 import java.io.IOException;
 import javax.faces.context.ResponseWriter;


 public class HelloUIComp extends UIComponentBase
 {

  public void encodeBegin(FacesContext context) throws IOException
  {
   ResponseWriter writer = context.getResponseWriter();
   String hellomsg = (String)getAttributes().get(hellomsg);
writer.startElement(h3, this);
   if(hellomsg != null)
 writer.writeText(hellomsg, hellomsg);
   else
 writer.writeText(Hello from a custom JSF UI Component!,  
 null);writer.endElement(h3);writer.startElement 
 (p, this);
   writer.writeText( Today is:  + new Date(), null);
   writer.endElement(p);   }

 public String getFamily()
 {
  return HelloFamily;
 }
 }
 ---
 FacesHelloTag ---
 ---

 package demo;

 import javax.faces.application.Application;
 import javax.faces.webapp.UIComponentTag;
 import javax.faces.component.UIComponent;
 import javax.faces.el.ValueBinding;
 import javax.faces.context.FacesContext;

 public class FacesHelloTag extends UIComponentTag
 {
  // Declare a bean property for the hellomsg attribute.
  public String hellomsg = null;


  // Associate the renderer and component type.
  public String getComponentType() { return demo.JsfHello; }
  public String getRendererType() { return null; }

  protected void setProperties(UIComponent component)
  {
super.setProperties(component);
  // set hellomsg
if (hellomsg != null)
{
  if (isValueReference(hellomsg))
  {
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
ValueBinding vb = app.createValueBinding(hellomsg);
component.setValueBinding(hellomsg,  
 vb);  }
  else
component.getAttributes().put(hellomsg, hellomsg);
} }

  public void release()
  {
super.release();
hellomsg = null;
  }


  public void setHellomsg(String hellomsg)
  {
this.hellomsg = hellomsg;
  }
 }

 Matthias Wessendorf schrieb:
 Hi Christian,

 take a look at [1]. That describes the steps for Tomahawk custom
 components; which are also true for your custom components.

 HTH,
 Matthias

 [1] 

RE: Weblets

2006-10-02 Thread Jesse Alexander \(KSFD 121\)
So far I had no big problems with it.

There are a few improvements outstanding (see weblets issue tracker) 
and some things migt need work-arounds (see weblets-mailing lists) ...

But abends, strange behaviour or exceptions: none so far

hth
Alexander

-Original Message-
From: Aleksei Valikov [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 29, 2006 1:16 PM
To: MyFaces Discussion
Subject: Weblets

Hi folks,

Does anyone use Weblets (http://weblets.dev.java.net) and how stable is
it?

Bye.
/lexi


RE: Problems with h:selectOneRadio and f:selectItem

2006-09-17 Thread Jesse Alexander \(KSFD 121\)
well one possible fix is to write your own custom-renderer...

hth
Alexander 

-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 13, 2006 10:40 PM
To: MyFaces Discussion
Subject: Re: Problems with h:selectOneRadio and f:selectItem

I think I see why I'm getting this problem, but I still don't know if  
I have a fix for it.  The HtmlRadioRendererBase class uses the  
SelectItemsIterator to iterate through the list of child  
UISelectItems.  That class' hasNext() method has the following code:

 public boolean hasNext()
 {
 .
 if (_childs.hasNext())
 {
 UIComponent child = (UIComponent) _childs.next();
 if (child instanceof UISelectItem)
 {
 ..
 }
 else if (child instanceof UISelectItems)
 {
 .
 }
 else
 {
 //todo: may other objects than selectItems be nested  
or not?
 //log.error(Invalid component :  +  
getPathToComponent(child) +  : must be UISelectItem or  
UISelectItems, is of type : +((child==null)?null:child.getClass 
().getName()));
 }
 }
 return false;
 }

So, for my use case to work the else clause would need to continue  
searching for other UISelectItem instances.  Does anybody see any  
issues with that approach?  If not, I'll submit a patch if I can get  
it going.

Greg

On Sep 13, 2006, at 2:18 PM, Greg Reddin wrote:

 Hi,

 I'm having a problem with h:selectOneRadio and f:selectItem.

 I want a table with a list of radio buttons.  The radio buttons are  
 broken up into sections with section labels.  I am acutally using  
 JavaScript to show or hide sections when the user clicks on the  
 section label.  The HTML would look something like this:

 table
   tr
 tdSection Label/td
   /tr
   tr
 td
   div
 input type=radio name=xyz/ Item Label
 input type=radio name=xyz/ Item Label
 input type=radio name=xyz/ Item Label
   div
 /td
   tr
   tr
 tdSection Label/td
   /tr
   tr
 td
   div
 input type=radio name=xyz/ Item Label
 input type=radio name=xyz/ Item Label
 input type=radio name=xyz/ Item Label
   div
 /td
   tr
 /table

 I tried to create it in MyFaces/Facelets using code like the  
 following:

 h:selectOneRadio ...
 table
   c:forEach items=${sections} var=${section}
   tr
 td${section.label}/td
   /tr
   tr
 td
   div
 c:forEach items=${section.items} var=item
   f:selectItem .../
 /c:forEach
   div
 /td
   tr
   /c:forEach
 /table
 /h:selectOneRadio

 The above did not render any radio buttons.  I can only assume this  
 is because the first child component of the HtmlSelectOneRadio  
 component is not a UiSelectItem.  It's just a bunch of HTML.  (I  
 guess if I was using JSP instead of Facelets, maybe the above would  
 work since HTML is just template text and not part of the component  
 tree).  The UiSelectItems *are* direct children of the  
 HtmlSelectOneRadio.  It's not that they are nested too far down the  
 tree.  It's just that they are siblings of some other components.

 So I tried this instead:

 table
   c:forEach items=${sections} var=${section}
   tr
 td${section.label}/td
   /tr
   tr
 td
   div
 h:selectOneRadio id=xyz...
 c:forEach items=${section.items} var=item
   f:selectItem .../
 /c:forEach
 /h:selectOneRadio
   div
 /td
   tr
   /c:forEach
 /table

 This appears to work at first.  Since multiple selectOneRadio tags  
 share the same client id the browser treats them as a single group  
 of radio buttons.  That's the desired behavior.  But, it is  
 impossible to submit a valid form.  Each selectOneRadio tag is a  
 separate component tied to the same value on the backing bean.  So  
 if the forEach loop creates 3 of them, it tries to populate it 3  
 times.  But only one of those will contain a selection, so a  
 validation error occurs on the other two.

 Is this the way the UISelectOne and UiSelectItem components are  
 supposed to work?  Should a UISelectOne tag refuse to render any  
 UISelectItem children if it has children that are not  
 UISelectItem?  I know my 2nd approach is invalid because it is  
 creating multiple components with the same value binding -  
 something I don't want.

 Any suggestions on how I can get this to work?

 Thanks,
 Greg



RE: Start project?

2006-09-13 Thread Jesse Alexander \(KSFD 121\)



Hi

Parts of SDF Faces have been donated from Oracle to the 
MyFaces project and become hte Trinidad subproject.

Which to use? Difficult it completely depends on your 
UI-requirements. 
For complexity reasons it might be better to reduce the 
stack at the beginning to MyFaces and Tomahawk and only include Trinidad if you 
absolutely need some components from that set.

regards
Alexander


From: Mosimann Matthias 
[mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 
2006 2:26 PMTo: users@myfaces.apache.orgSubject: Start 
project?

Hy 
Everyone


I'm new to the 
Mailling List and I have two very easy questions, until I'm a little bit 
confused about Tomahawk, ADF Faces from Oracle and Sandbox:

What is at the 
moment the best way to start a project? Should I use the ADF Faces from Oracle 
an Myfaces together? Or instead of ADF Faces from Oracle, Tomahawk and/or 
Sandbox?

Can someone explain 
me? I think the ADF Faces should be merged ord not?


regardsMatthias



RE: Outputting text file

2006-08-15 Thread Jesse Alexander \(KSFD 121\)
If you do not like to write it yourself - check out weblets...

regards
Alexander 

 -Original Message-
 From: Eurig Jones [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 14, 2006 3:25 PM
 To: MyFaces Discussion
 Subject: Re: Outputting text file
 
 I've now decided to go with a simple servlet because I think it's a 
 cleaner method to do it.
 
 Thanks a lot for everyones help!
 
 Ondřej Světlík wrote:
  Eurig Jones napsal(a):
  I have a link on a facelets page which I want to users to 
 be able to 
  click and download a text file (with it's own extension such as 
  .csv). The contents of this text file is simply the contents of a 
  String property in a jsf bean.
 
  I'm not sure how to go about doing the above, I'm not even sure if 
  it's possible using JSF. Any ideas?
 
  Regards,
  Eurig
 
 
  Hello,
 
  I have tried custom PhaseListener and Servlet. After many problems 
  with the PhaseListener I had to use the Servlet solution. 
 If you are 
  still interested in PhaseListener solution, look at:
 
  
 http://www.jroller.com/page/cagataycivici?entry=phaselistener_
renders_an_image_no 
 
 
  Regards,
 
  Ondrej
 
 -- 
 
 Fugro Robertson Limited  Telephone: +44+ (0)1492 581811
 Tyn-y-coed Site  Fax: +44+ (0)1492 583416
 Llanrhos
 Llandudno
 North Wales
 UK   LL30 1SA
 
 General Email: [EMAIL PROTECTED]
 
 World Wide Website: www.fugro-robertson.com
 
  
  * This email may contain  confidential and  privileged information *
  * intended solely for the individual or organisation to whom it is *
  * addressed. If the reader is not the  intended  addressee, or the *
  * employee  or agent responsible  to deliver  it to the addressee, *
  * you are hereby notified that any  dissemination, distribution or *
  * copying is strictly prohibited.  If you have received this email *
  * in error, please notify the  sender and either destroy the email *
  * or return it to [EMAIL PROTECTED] *
  * Please note this email is not intended to create legal relations.*
  
 
 


RE: ALLOW_JAVASCRIPT

2006-07-25 Thread Jesse Alexander \(KSFD 121\)
));
  hrefBuf.append('=');
  if (value != null) {
  //UIParameter is no 
 ConvertibleValueHolder, so no conversion
  // possible
  
 hrefBuf.append(URLEncoder.encode(value.toString(), charEncoding));
  }
  }
 
  }
 
  (2) add the following to your faces-config.xml
 
  render-kit
  render-kit-idHTML_BASIC/render-kit-id
  renderer
  
 component-familyjavax.faces.Output/component-family
  
 renderer-typejavax.faces.Link/renderer-type
  
 renderer-classHtmlLinkRendererFix/renderer-class
  /renderer
  renderer
  
 component-familyjavax.faces.Command/component-family
  
 renderer-typejavax.faces.Link/renderer-type
  
 renderer-classHtmlLinkRendererFix/renderer-class
  /renderer
  /render-kit
 
 
  Works without javascript enabled.
 
 
  On 7/24/06, Ryan Wynn [EMAIL PROTECTED] wrote:
   On 7/24/06, Ryan Wynn [EMAIL PROTECTED] wrote:
I think I fixed the problem where the commandLink 
 doesn't work with
javascript turned off.  It is working for me now.
   
See
   
https://issues.apache.org/jira/browse/MYFACES-1370
  
   Basically the way it was written it was almost working.  
 The problem
   was that in order for the the link renderers decode method to be
   called 1 additional parameter had to be supplied.
  
   namely,
   parent_form_client_id_SUBMIT=1
  
   This seems to work since links need to be nested within a 
 form to work
   anyway.  It does not submit the form obviously (otherwise 
 javascript
   would be needed), this is a normal GET request with the parameters
   encoded in the url.
  
  
  
  
  
  
   
   
   
On 7/24/06, Jesse Alexander (KSFD 121)
[EMAIL PROTECTED] wrote:
 Whether a single component gracefully degrades is up to the
 component-writer.
 THe JSF does (degradation is missing commnd-link...)

 But not all component-writers like to put the 
 additional grease on their

 components to make them degrade gracefully. Some are just to
 JS-fanatics. ;-)

 Therefor one must test and then file 
 JS-degradation-bug-requests for
 each
 component. I (for myself) would already be happy to 
 read in each
 component-
 description the JS-requirements and degradation grade.

 regards
 Alexander



  -Original Message-
  From: Guy Coleman [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 24, 2006 12:15 PM
  To: MyFaces Discussion
  Subject: Re: ALLOW_JAVASCRIPT
 
  On 20/07/2006 22:02, Mike Kienenberger wrote:
   On 7/20/06, ragsta [EMAIL PROTECTED] wrote:
   a simple question: does the ALLOW_JAVASCRIPT 
 parameter work?
  
   Is very important for me that my site work even if the
  javascript is
   disabled on the user browser but turnig off the param
  outputlink doesn't
   work more...even if the primary goal of turning off the
  param is to
   change
   the behaviour of this command
  
   if this option is bugged I think I have to all 
 back to a different
   framework...
  
   You will be very limited in what you can do if 
 you disabled
  javascript.
   For instance, h:commandLink cannot work without 
 javascript.
  
   Most of the interesting components also require 
 javascript, as do a
   lot of the common tricks for accomplishing tasks.
  
   You're probably better off not using JSF if 
 you're not able
  to allow
   javascript.
  
 
 
  We have had some success with using styled h:commandButtons
  instead of
  commandLinks to avoid Javascript.
 
  It's true that some advanced components cannot be 
 used without
  Javascript, but we have taken the approach that a 
 site that degrades
  gracefully is acceptable. For example, the 
 inputDate popup cannot be
  used without Javascript but the user can still enter a date
  manually in
  the input box.
 
  -Guy.
 

   
  
 
 


RE: ALLOW_JAVASCRIPT

2006-07-21 Thread Jesse Alexander \(KSFD 121\)
Officially the only standard component that is allowed not to work
anymore 
is the commandlink.

In JSF 1.2 the JavaScriptlessness is part of the standard, because
more and more applications must be accessable (== JS-free). Therefor
we must check that as many components as possible can work with JS
disabled.

If they are not working without JS then the doc should say so...

regards
Alexander

 -Original Message-
 From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 20, 2006 11:03 PM
 To: MyFaces Discussion
 Subject: Re: ALLOW_JAVASCRIPT
 
 On 7/20/06, ragsta [EMAIL PROTECTED] wrote:
  a simple question: does the ALLOW_JAVASCRIPT parameter work?
 
  Is very important for me that my site work even if the javascript is
  disabled on the user browser but turnig off the param 
 outputlink doesn't
  work more...even if the primary goal of turning off the 
 param is to change
  the behaviour of this command
 
  if this option is bugged I think I have to all back to a different
  framework...
 
 You will be very limited in what you can do if you disabled 
 javascript.
 For instance, h:commandLink cannot work without javascript.
 
 Most of the interesting components also require javascript, as do a
 lot of the common tricks for accomplishing tasks.
 
 You're probably better off not using JSF if you're not able 
 to allow javascript.
 


RE: [OT] Mailing list Support in other languages, was Re: question

2006-07-19 Thread Jesse Alexander \(KSFD 121\)
In the chat it is easy to split of the discussion for a foreign language
speaker in a private channel... Lately all of the action is happening in the
##jsf channel (also MyFaces-stuff), therefor the #myfaces-channel 
is sometimes reused for foreign language discussions...
Or should I say: the ##jsf channel is the foreign language channel? The 
majority of the chatters seems to be not native-english!!! South America, 
Europe and neareast are ruling ;-)

And there are often people around speaking exotic languages like
German, Spanish, Italian and others.

It can help, at least, to formulate the question for the mailing list,
but often the solution can also be found. The disadvantage (at least for the
#myfaces channel is, that no searchable log exists. ##jsf is logged...


Infos about the chat-channels can be found on http://wiki.apache.org/myfaces/,
scroll down (or search for Talk, talk, talk). 

See you on chat...
Alexander


 -Original Message-
 From: Bruno Aranda [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 19, 2006 11:41 AM
 To: MyFaces Discussion
 Subject: [OT] Mailing list Support in other languages, was 
 Re: question
 
 From my personal experience is not that easy to find someone speaking
 easy in places like Spain or South America. I do know many cases of
 people not posting to the list due to the lack of ability to explain
 its particular problem. Many of them try with automatic translators,
 but the end message is not always easy to understand. However, I do
 think that the language of this list should be english, although this
 can be a limitation for a sensible part of developers of the World.
 I do not know what is the official policy at the ASF, and how other
 projects handle that. But couldn't exist alternative mailing list to
 support other languages?
 
 Cheers,
 
 Bruno
 
 On 7/19/06, Dhananjay Prasanna [EMAIL PROTECTED] wrote:
 
  I don't think it's that hard to find someone who speaks 
 english and ask them to translate for you.
  It would be nice (not to mention much more useful) for 
 everyone to be able to participate in whatever topic you have going.
 
  -Original Message-
  From: Dennis Byrne [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, 19 July 2006 3:59 PM
  To: MyFaces Discussion
  Subject: Re: question
 
  I don't mind non-English posts, many users simply don't 
 speak English.  What I don't like is when people go off on 
 some long discussion that has nothing to do with JSF or MyFaces.
 
  Dennis Byrne
 
  -Original Message-
  From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 19, 2006 01:50 AM
  To: 'MyFaces Discussion'
  Subject: Re: question
  
  personally I don't mind if you guys speak Spanish, but ...
  this forum should be open to a wide range of people.
  So english is strongly recommented.
  
  Thanks!
  
  On 7/18/06, CD [EMAIL PROTECTED] wrote:
   Puedo hablarlo un poquito pero tienes que tener 
 paciencia.  Que quieres
   saber?
  
  
  
   On 7/18/06, wdiaz [EMAIL PROTECTED]  wrote:
somebody Spanish speech?
   
soy nuevo en esto de tobago, y deseo obtener 
 información para aprender
el manejo
   
  
  
  
  
  --
  Matthias Wessendorf
  
  further stuff:
  blog: http://jroller.com/page/mwessendorf
  mail: mwessendorf-at-gmail-dot-com
  
 
 
 
  This correspondence is for the named persons only.
  It may contain confidential or privileged information or both.
  No confidentiality or privilege is waived or lost by any 
 mis transmission.
  If you receive this correspondence in error please delete 
 it from your system immediately and notify the sender.
  You must not disclose, copy or relay on any part of this 
 correspondence, if you are not the intended recipient.
  Any opinions expressed in this message are those of the 
 individual sender except where the sender expressly,
  and with the authority, states them to be the opinions of 
 the Department of Emergency Services, Queensland.
 
 


RE: [OT] Mailing list Support in other languages, was Re: question

2006-07-19 Thread Jesse Alexander \(KSFD 121\)
ironic
  Ask George W.
/ironic
;-) 


regards
Alexander


 -Original Message-
 From: Cosma Colanicchia [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 19, 2006 12:41 PM
 To: MyFaces Discussion
 Subject: Re: [OT] Mailing list Support in other languages, 
 was Re: question
 
 2006/7/19, Jesse Alexander (KSFD 121) 
 [EMAIL PROTECTED]:
 
  And there are often people around speaking exotic languages like
  German, Spanish, Italian and others.
 
 Are they exotic languages?? ;-)
 
 Cosma
 


RE: [OT] Mailing list Support in other languages, was Re: question

2006-07-19 Thread Jesse Alexander \(KSFD 121\)
ironic3
Well easy: *english (except bush-english) would be exotic...
/ironic3 

 -Original Message-
 From: Julian Ray [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 19, 2006 12:57 PM
 To: 'MyFaces Discussion'
 Subject: RE: [OT] Mailing list Support in other languages, 
 was Re: question
 
 Would that be English-English, US English or Bush-English? 
 
 -Original Message-
 From: Mario Ivankovits [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 19, 2006 6:48 AM
 To: MyFaces Discussion
 Subject: Re: [OT] Mailing list Support in other languages, was Re:
 question
 
 
  ironic
Ask George W.
  /ironic

 ironic2
 But then you should add english to the list too /ironic2
 
 
 Ciao,
 Mr. Anonymous
 
 


RE: [OT] Mailing list Support in other languages, was Re: question

2006-07-19 Thread Jesse Alexander \(KSFD 121\)
when we solve problems there I usually recommend to write interesting 
points to the wiki... or to the mailing list...

on the ##jsf list we often discuss solutions in a implementation agnostic
way... and if someone wants to discuss something with the sun people directly
it's the place to be...

Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matthias Wessendorf
 Sent: Wednesday, July 19, 2006 8:23 PM
 To: MyFaces Discussion
 Subject: Re: [OT] Mailing list Support in other languages, 
 was Re: question
 
 On 7/19/06, Cagatay Civici [EMAIL PROTECTED] wrote:
  The log is here;
 
  http://uwyn.com/drone
 
  Check out the ##jsf link.
 
  myfaces chat room is not logged.
 
 that JSF thing I don't care about, to be honest.
 but the myfaces one... it is a no no to make technical 
 decissions there.
 
 -Matt
 
 
  Cagatay
 
 
  On 7/19/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
   IRC is interesting for getting people up to speed. But 
 IRC is not the
   tool that should be used for *technical decission* in 
 MyFaces. Same is
   true for Google Talk and other stuff.
  
   B/c where to look at the archives? It would be 
 interesting to *post*
   the IRC chat to this (user) list.
  
   -Matthias
  
   On 7/19/06, Jesse Alexander (KSFD 121)
   [EMAIL PROTECTED] wrote:
In the chat it is easy to split of the discussion for a 
 foreign language
speaker in a private channel... Lately all of the 
 action is happening in
  the
##jsf channel (also MyFaces-stuff), therefor the 
 #myfaces-channel
is sometimes reused for foreign language discussions...
Or should I say: the ##jsf channel is the foreign 
 language channel? The
majority of the chatters seems to be not native-english!!! South
  America,
Europe and neareast are ruling ;-)
   
And there are often people around speaking exotic languages like
German, Spanish, Italian and others.
   
It can help, at least, to formulate the question for 
 the mailing list,
but often the solution can also be found. The 
 disadvantage (at least for
  the
#myfaces channel is, that no searchable log exists. 
 ##jsf is logged...
   
   
Infos about the chat-channels can be found on
  http://wiki.apache.org/myfaces/ ,
scroll down (or search for Talk, talk, talk).
   
See you on chat...
Alexander
   
   
 -Original Message-
 From: Bruno Aranda [mailto: [EMAIL PROTECTED]
 Sent: Wednesday, July 19, 2006 11:41 AM
 To: MyFaces Discussion
 Subject: [OT] Mailing list Support in other languages, was
 Re: question

 From my personal experience is not that easy to find 
 someone speaking
 easy in places like Spain or South America. I do know 
 many cases of
 people not posting to the list due to the lack of 
 ability to explain
 its particular problem. Many of them try with 
 automatic translators,
 but the end message is not always easy to understand. 
 However, I do
 think that the language of this list should be 
 english, although this
 can be a limitation for a sensible part of developers 
 of the World.
 I do not know what is the official policy at the ASF, 
 and how other
 projects handle that. But couldn't exist alternative 
 mailing list to
 support other languages?

 Cheers,

 Bruno

 On 7/19/06, Dhananjay Prasanna 
 [EMAIL PROTECTED] 
  wrote:
 
  I don't think it's that hard to find someone who speaks
 english and ask them to translate for you.
  It would be nice (not to mention much more useful) for
 everyone to be able to participate in whatever topic 
 you have going.
 
  -Original Message-
  From: Dennis Byrne [mailto: [EMAIL PROTECTED]
  Sent: Wednesday, 19 July 2006 3:59 PM
  To: MyFaces Discussion
  Subject: Re: question
 
  I don't mind non-English posts, many users simply don't
 speak English.  What I don't like is when people go off on
 some long discussion that has nothing to do with JSF 
 or MyFaces.
 
  Dennis Byrne
 
  -Original Message-
  From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, July 19, 2006 01:50 AM
  To: 'MyFaces Discussion'
  Subject: Re: question
  
  personally I don't mind if you guys speak Spanish, but ...
  this forum should be open to a wide range of people.
  So english is strongly recommented.
  
  Thanks!
  
  On 7/18/06, CD [EMAIL PROTECTED]  wrote:
   Puedo hablarlo un poquito pero tienes que tener
 paciencia.  Que quieres
   saber?
  
  
  
   On 7/18/06, wdiaz [EMAIL PROTECTED]  wrote:
somebody Spanish speech?
   
soy nuevo en esto de tobago, y deseo obtener
 información para aprender
el manejo
   
  
  
  
  
  --
  Matthias Wessendorf
  
  further stuff:
  blog: http

RE: dataTable with dropdowns

2006-07-14 Thread Jesse Alexander \(KSFD 121\)
you would need a row-object that can return a UISelectItems object. Then
you can add the dropdown-component into the column and point to the
attribute
delivering the select-items

hth
Alexander 

 -Original Message-
 From: Geoff Longo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 14, 2006 5:09 AM
 To: MyFaces Discussion
 Subject: dataTable with dropdowns
 
 I was wondering what the best way would be to create a dataTable that
 has a column that includes a dropdown, but the dropdown choices may be
 different in each row.  Any ideas?
 
 Thanks,
 Geoff
 


RE: JSF Performance Problems

2006-07-14 Thread Jesse Alexander \(KSFD 121\)
do you have the slides of the J1-session or some notes?

We could place it somewhere and link to it, or copy the info to the
wiki...

but I have neither the slides nor notes nor was I there...

regards
Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matthias Wessendorf
 Sent: Wednesday, July 12, 2006 7:02 PM
 To: MyFaces Discussion
 Subject: Re: JSF Performance Problems
 
 there should be more on this added to the wiki
 the JavaOne session was cool.
 
 
 
 On 7/12/06, Jesse Alexander (KSFD 121)
 [EMAIL PROTECTED] wrote:
  A search in the wiki just gave ONE hit... the info I added 
 yesterday based
  on the mail from Gerald...
 
  regards
  Alexander
 
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
   Behalf Of Matthias Wessendorf
   Sent: Tuesday, July 11, 2006 5:08 PM
   To: MyFaces Discussion
   Subject: Re: JSF Performance Problems
  
   I think this is already documented on the wiki, isnt' it ß
  
   On 7/11/06, Gerald Müllan [EMAIL PROTECTED] wrote:
Hi,
   
sure thing; Just tell JSF in web.xml the context parameter:
   
context-param
   
   
 param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name
param-value20/param-value
descriptionOnly applicable if state saving method is
server (= default).
Defines the amount (default = 20) of the latest
   views are
stored in session.
/description
/context-param
   
cheers,
   
Gerald
   
On 7/11/06, Jesse Alexander (KSFD 121)
[EMAIL PROTECTED] wrote:
 Is there a parameter telling MyFaces-StateManager how
   many views to
 store/cache? That parameter can have an influence on 
 the amount of
 memory
 used in the HttpSesssion and therefor has an impact on
 server-performance.

 regards
 Alexander

  -Original Message-
  From: Mike Duffy [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 10, 2006 10:27 AM
  To: MyFaces Discussion
  Subject: Re: JSF Performance Problems
 
  Could you please rerun the metrics with the performance
  tuning suggestion found at:
  http://wiki.apache.org/myfaces/Performance
 
  Thx.
 
  Mike
 

   
   
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]
   
  
  
   --
   Matthias Wessendorf
  
   futher stuff:
   blog: http://jroller.com/page/mwessendorf
   mail: mwessendorf-at-gmail-dot-com
  
 
 
 
 -- 
 Matthias Wessendorf
 
 further stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com
 


RE: dataTable with dropdowns

2006-07-14 Thread Jesse Alexander \(KSFD 121\)
the only drawback is: the row-object, for my gusto.., should be a pure
modell object. Returning UISelectItems from one attribute would mean the
modell object has a dependency on the UI-framework.

regards
Alexander


 -Original Message-
 From: Geoff Longo [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 14, 2006 2:46 PM
 To: MyFaces Discussion
 Subject: Re: dataTable with dropdowns
 
 Thanks for the reply.  The solution is so obvious, yet for some reason
 I failed to see it.
 
 On 7/14/06, Jesse Alexander (KSFD 121)
 [EMAIL PROTECTED] wrote:
  you would need a row-object that can return a UISelectItems 
 object. Then
  you can add the dropdown-component into the column and point to the
  attribute
  delivering the select-items
 
  hth
  Alexander
 
   -Original Message-
   From: Geoff Longo [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 14, 2006 5:09 AM
   To: MyFaces Discussion
   Subject: dataTable with dropdowns
  
   I was wondering what the best way would be to create a 
 dataTable that
   has a column that includes a dropdown, but the dropdown 
 choices may be
   different in each row.  Any ideas?
  
   Thanks,
   Geoff
  
 
 


RE: [newbie] MyFaces or Barracuda ??

2006-07-13 Thread Jesse Alexander \(KSFD 121\)
As others have said, maybe you should consider more of a stack than just

an appserver and the UI-framework

Spikesource has a nice picture of components for such stacks on their 
website. I have not tried their stacks... but to get an idea:
http://www.spikesource.com/products/corestack.html

The Spring framework tries to get all of it under one hood. And judging 
from the growing user-population it seems to do it well: 
http://www.springframework.org/

JSf and therefor MyFaces play a role because they are part of the
official
standardized JEE stack from version 1.5 onward...
Spring, by the way, can play together with JSF

Guess you have some reading ;-) And most probably some more questions...


- Performance and J2EE?
  well a full-blown J2EE container usually can help in two ways:
  - distribute the load on a flexible amount of hardware by clustering
  - distribute the load on hardware by putting different layers of the
app on different machines (JSF on one, EJB's on another one, DB on a
third).
AND it does it in a stadardized way...
This layer-distribution can also be used for security. The UI-layer 
goes into the DM, the backend in a secure area, with a good
firewall-
admin this becomes a secure setup...

hth
Alexander


 

 -Original Message-
 From: Cyrille37 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, July 12, 2006 8:38 PM
 To: [EMAIL PROTECTED]
 Cc: MyFaces Discussion; [EMAIL PROTECTED]
 Subject: [newbie] MyFaces or Barracuda ??
 
 Hello,
 
 I'm exploring Java solutions for a new Web Application project.
 
 I'm coming from ASP.Net but for the new starting project, the 
 first rule 
 is plateform portability, so Java is the solution.
 
 Unfortunately, unlike .Net, Java for Web Application is not 
 delivered as 
 a package. So I've to make an assembly of solutions to get an 
 environment for creating the Web Application.
 
 After surfing onto Java/J2EE projects, I've selected some nice stuff :
 - App Server : Enhydra
 - Framework : here is my interogation, MyFaces or Barracuda ??
 - What else is needed for a strong and well formed Web 
 Application ??
 
 I guess you have opinion on that question ...
 
 Please, share your mind ;o)
 Thanks
 Cyrille.
 
 


RE: [newbie] MyFaces or Barracuda ??

2006-07-13 Thread Jesse Alexander \(KSFD 121\)



I wouldn't be so hard on J2EE... in heavy SOA-shops 
some help can come from the J2EE (or JEE) environment.

But it all boils down to
- get an idea on the requirements
- discuss them in an open, friendly environment with 
experienced JEE- and lightweight-(Spring-)specialists
- come to a conclusion and 
target-architecture
- do the coding

regards
Alexander

  
  
  From: Frank Russo 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 2:37 
  PMTo: MyFaces DiscussionSubject: RE: [newbie] MyFaces or 
  Barracuda ??
  
  To be clear, this is a maven 1 repository. If you are 
  using maven 2, this may not be usable. I have read that m2 can use m1 repos, 
  but I haven't found any docs on how.Maybe someone can post a link if 
  they know of one.
  
  My 2 
  cents on your original question is that barracuda is not the way to go, mainly 
  for the reason that very few people are using it. Support for it is probably 
  minimal. JSF vs Struts or Spring Web is a better question. I'd go JSF, whether 
  it be MyFaces or Sun RI, for the reason that you may be more comfortable with 
  it coming from an M$ background. Correct me if I'm wrong, but I think a 
  component based framework like JSF is closer to building Active X web controls 
  than using some kind of action framework like Struts. 
  
  My 
  other recommendations would be Tomcat for the app server. If you need 
  transaction management and persistence, I'd recommend Spring and Hibernate 
  over JEE 5. Older J2EE shouldn't even be a consideration for a new project at 
  this point...
  Frank 
  RussoSenior DeveloperFX 
  Alliance, LLC
  
  
  
  From: Mikael Andersson 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, July 13, 2006 5:15 
  AMTo: MyFaces DiscussionSubject: Re: [newbie] MyFaces or 
  Barracuda ??
  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 look at Facelets, which is easily integrated ( facelets is also in dev.java.net's maven repository; https://maven-repository.dev.java.net/repository/ 
  ).- Mike
  On 12/07/06, Cyrille37 [EMAIL PROTECTED]  wrote: 
  Hello,I'm 
exploring Java solutions for a new Web Application project. I'm 
coming from ASP.Net but for the new starting project, the first ruleis 
plateform portability, so Java is the solution.Unfortunately, unlike 
.Net, Java for Web Application is not delivered asa package. So I've to 
make an assembly of solutions to get an environment for creating the Web 
Application.After surfing onto Java/J2EE projects, I've selected 
some nice stuff :- App Server : 
Enhydra- Framework : here is my interogation, 
MyFaces or Barracuda ?? - What else is needed 
for a strong and well formed Web Application ??I guess you have 
opinion on that question ...Please, share your mind 
;o)ThanksCyrille.


RE: JSF Performance Problems

2006-07-12 Thread Jesse Alexander \(KSFD 121\)
A search in the wiki just gave ONE hit... the info I added yesterday based
on the mail from Gerald...

regards
Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matthias Wessendorf
 Sent: Tuesday, July 11, 2006 5:08 PM
 To: MyFaces Discussion
 Subject: Re: JSF Performance Problems
 
 I think this is already documented on the wiki, isnt' it ß
 
 On 7/11/06, Gerald Müllan [EMAIL PROTECTED] wrote:
  Hi,
 
  sure thing; Just tell JSF in web.xml the context parameter:
 
  context-param
  
 param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name
  param-value20/param-value
  descriptionOnly applicable if state saving method is
  server (= default).
  Defines the amount (default = 20) of the latest 
 views are
  stored in session.
  /description
  /context-param
 
  cheers,
 
  Gerald
 
  On 7/11/06, Jesse Alexander (KSFD 121)
  [EMAIL PROTECTED] wrote:
   Is there a parameter telling MyFaces-StateManager how 
 many views to
   store/cache? That parameter can have an influence on the amount of
   memory
   used in the HttpSesssion and therefor has an impact on
   server-performance.
  
   regards
   Alexander
  
-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED]
Sent: Monday, July 10, 2006 10:27 AM
To: MyFaces Discussion
Subject: Re: JSF Performance Problems
   
Could you please rerun the metrics with the performance
tuning suggestion found at:
http://wiki.apache.org/myfaces/Performance
   
Thx.
   
Mike
   
  
 
 
  --
  Gerald Müllan
  Schelleingasse 2/11
  1040 Vienna, Austria
  0043 699 11772506
  [EMAIL PROTECTED]
 
 
 
 -- 
 Matthias Wessendorf
 
 futher stuff:
 blog: http://jroller.com/page/mwessendorf
 mail: mwessendorf-at-gmail-dot-com
 


RE: JSF Performance Problems

2006-07-11 Thread Jesse Alexander \(KSFD 121\)
Thanks for the pointer... I was just about to dive into the source-code ;-)

I have added a hint on this in the wiki-page as it is a valid performance-
related option.

regards
Alexander 

 -Original Message-
 From: Gerald Müllan [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 11, 2006 1:17 PM
 To: MyFaces Discussion
 Subject: Re: JSF Performance Problems
 
 Hi,
 
 sure thing; Just tell JSF in web.xml the context parameter:
 
 context-param
 param-nameorg.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION/param-name
 param-value20/param-value
 descriptionOnly applicable if state saving method is
 server (= default).
 Defines the amount (default = 20) of the latest views are
 stored in session.
 /description
 /context-param
 
 cheers,
 
 Gerald
 
 On 7/11/06, Jesse Alexander (KSFD 121)
 [EMAIL PROTECTED] wrote:
  Is there a parameter telling MyFaces-StateManager how many views to
  store/cache? That parameter can have an influence on the amount of
  memory
  used in the HttpSesssion and therefor has an impact on
  server-performance.
 
  regards
  Alexander
 
   -Original Message-
   From: Mike Duffy [mailto:[EMAIL PROTECTED]
   Sent: Monday, July 10, 2006 10:27 AM
   To: MyFaces Discussion
   Subject: Re: JSF Performance Problems
  
   Could you please rerun the metrics with the performance
   tuning suggestion found at:
   http://wiki.apache.org/myfaces/Performance
  
   Thx.
  
   Mike
  
 
 
 
 -- 
 Gerald Müllan
 Schelleingasse 2/11
 1040 Vienna, Austria
 0043 699 11772506
 [EMAIL PROTECTED]
 


RE: [OT] JSF and JVM performance

2006-06-28 Thread Jesse Alexander \(KSFD 121\)
Has someone already compared JSF with JSP and with facelets?

I'm wondering whether facelets will reduce the repsonse times.

regards
Alexander 

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
 Behalf Of Matthias Wessendorf
 Sent: Wednesday, June 28, 2006 4:40 PM
 To: MyFaces Discussion
 Cc: Gerald Müllan; Martin Marinschek
 Subject: Re: [OT] JSF and JVM performance
 
 Gerald did some performance test's for Martin's JavaOne BOF. Maybe
 they bring that content to the wiki page ?
 
 
 -Matthias
 


Re: [OT] JSF and JVM performance

2006-06-26 Thread Jesse Sightler
Indeed, these results are much closer to what I would have expected. And I also agree that you should try JRockit as it is often faster than Sun's (and quite stable as well).-- Jess
On 6/26/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
Well in my initial tests, I did a smaller query first to warm things up.But it was really only a quick run of each, as I had other things to do.Unfortunately, this real-world tests may have led me to an erroroneous
conclusion. My further investigations today still did not have thecontrols and repetition for definitive results, but they are at least alittle better.What I did for each was start JBoss, run the test twice, log off and
wait 5 minutes, test twice... repeat...I did have a couple of poor runs at the beginning, but I now believethis to be an OS issue(memory paging?), rather than a VM issue (itoccured this time on the client VM).
Here's some of my runs:(results in seconds)Client VM Server VM(Load)Run12522Run21715(Pause)Run34318Run42513
(Pause)Run51813Run61918Median2017Average 24.516.5The server definately takes longer to display the first JSP page (nottimed), but it doesn't show any disadvantage in the first search. Seems
my original conclusions were misleading, and the server VM may be a bitfaster.  Also have you tried running it on the Jrockit JVM? It consistently  outscores sunVMs on appserver profiles.
BEA JRockit? Hmm that would be interesting to compare, but I highlydoubt I could convince my boss to use a JVM other than Sun's! ;)As it stands, performance seems much more acceptable than thatoff-the-cuff test indicated.
Thanks for your responses,Jeff BischoffKenneth L Kurz  Assoc, Inc.Dhananjay Prasanna wrote: 
 *From:* Jesse Sightler [mailto:[EMAIL PROTECTED]] *Sent:* Saturday, 24 June 2006 11:36 AM *To:* MyFaces Discussion *Subject:* Re: [OT] JSF and JVM performance
 How many times did you run your performance test?Were you timing the first run, or timing some runs after giving it some stress and then a quick breather? :) snip
 On 6/23/06, *Jeff Bischoff* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have noticed that Myfaces seems to perform better while running on the
 Hotspot Client (default) jvm, rather than the Hotspot Server jvm. Have any of you noticed this too? I would be very interested in this test too, as Jess says more detailed metrics would really help.
 Also have you tried running it on the Jrockit JVM? It consistently outscores sunVMs on appserver profiles. Jeff Bischoff Kenneth L Kurz  Assoc
 This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission.
 If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient.
 Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland.



Re: [OT] JSF and JVM performance

2006-06-23 Thread Jesse Sightler
How many times did you run your performance test? Were you timing the first run, or timing some runs after giving it some stress and then a quick breather? :)If you were timing the first run, I wouldn't be surprised at all if the -server mode were slower.
Thanks,JessOn 6/23/06, Jeff Bischoff [EMAIL PROTECTED] wrote:
I have noticed that Myfaces seems to perform better while running on theHotspot Client (default) jvm, rather than the Hotspot Server jvm. Haveany of you noticed this too?For example, I tested by having my application build a t:dataTable of
over 5000 rows. I used JBoss 4.0.4 and ran with and without the -serverjvm option. Memory usage was consistent between the runs, but executiontime was vastly different.Using the default client jvm, my dataTable displayed in 28 seconds.
Using the server jvm, my dataTable displayed in 83 seconds.This seems a little counterintuitive to me, considering that thisclearly is a server type process. Perhaps it is because so many
objects are being created, and the client vm allocates memory andinitializes faster.Has anyone found a good reason to use the -server option, when running aJSF application?Regards,Jeff Bischoff
Kenneth L Kurz  Assoc


RE: IRC Channel #myfaces

2006-06-21 Thread Jesse Alexander \(KSFD 121\)



A few of us just listen on both channels... 
(##jsfand #myfaces)

The differences:
- ##jsf is logged (http://www.uwyn.com/drone/log/bevinbot/%23jsf) #myfaces is 
not
- edburns and other vip's often hang around on 
##jsf
- the #myfaces-crowd is quieter... a discussion is less 
interrupted...

I'd say both channels have their 
advantages...

regards
Alexander

  
  
  From: Julian Ray 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 
  9:28 PMTo: 'MyFaces Discussion'Subject: IRC Channel 
  #myfaces
  
  Does anybody use 
  this channel? whenever I check it seems somewhat under-represented 
  :)
  


RE: Typical Validation Issues

2006-06-21 Thread Jesse Alexander \(KSFD 121\)



The validation is only called for fields that are NOT 
empty... cause empty fields are never transmitted to the server 
(HTML-spec).

For such cases we wrote the OptionalValidator 
stuff...

regards
Alexander

  
  
  From: Gregg Bolinger 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 
  5:15 PMTo: MyFaces DiscussionSubject: Re: Typical 
  Validation Issues
  Geez. Ok. Thanks. I noticed that the only time my 
  validation method is being called is when the category name input field has a 
  value in it. When it is empty my validation method isn't even 
  called. Do you know why that is? Is this normal? For now, 
  I am just going to do my validation manually in the actions that I call. 
  Are any of these issues slated to be fixed in 1.2 by any 
  chance?Thanks.Gregg
  On 6/21/06, Julian 
  Ray [EMAIL PROTECTED] 
  wrote:
  


You can 
always create a hidden input element at the bottom of the form which has 
required="true" and perform form-scoped validation using the backing bean. 


The spec 
says that form elements are processed in the order they are on the page so 
putting the hidden element last means that it will be validated after any 
other validations you specify. Note that if you need to use tag-level 
messages you will need to invalidate each component by getting it from tree 
or by using a binding.



From: Gregg Bolinger 
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 21, 2006 11:04 
AM
To: MyFaces DiscussionSubject: Re: Typical 
Validation Issues


Thanks for the code. The problem though is if I leave the 
required="true" attribute on the input field, even with the custom 
validation, the commandLinks still trigger the validation. If 
I remove required="true" from the input field, and I try and add a category 
without typing in a category name, no validation occurs. 
h:inputText 
validator="#{CategoryAdminBean.validateCategoryName}" id="categoryName" 
value="#{CategoryAdminBean.currentCategory.categoryName}" /And 
I've simplified the validation for testing purposes. public void 
validateCategoryName(FacesContext fc, UIComponent uic, Object 
o) { if 
(currentCategory.getCategoryId() == 
null) 
{ 
((UIInput)uic).setValid(false); 
FacesMessage facesMessage = new FacesMessage( FacesMessage.SEVERITY_WARN, 
"Category Name Required", 
null); 
throw new 
ValidatorException(facesMessage); 
} }
On 6/21/06, Julian 
Ray [EMAIL PROTECTED] wrote: 

  
  
  Hi 
  Gregg,
  
  here 
  is some code for [3]
  
  [1] 
  example bean-based validation. Here is a function we use to validate 
  anew user name for a customer account. As some of these methods are 
  re-used we actually place the code in a validation 
  class.
  
  
   // Check to see if the user name is unique 
  for this customer. The user is not allowed // to 
  change the username this function is only called when a new user is 
  created, public static void validateUserName(Integer 
  customerId, UIComponent uic, String entry, String fieldName) 
  { if (! validateLength(uic, 
  entry, fieldName, 6, 10)) 
  { 
  return; 
}
  
   if 
  (entry.indexOf(' ') != -1) 
  { 
  String message = fieldName + " cannot contain 
  spaces."; 
  invalidateInput((UIInput) uic, 
  message); 
  return; 
  } if (! 
  UserDao.isUserNameUnique(customerId, entry)) 
  { 
  String message = fieldName + " must be unique for this 
  customer."; 
  invalidateInput((UIInput) uic, 
  message); 
  return; 
  } }
  
   public 
  static void invalidateInput(UIComponent uic, String message) 
  { invalidateInput((UIInput) 
  uic, message); }
  
   private static void invalidateInput(UIInput uii, 
  String message) { 
  uii.setValid(false); 
  //FacesContext fc = 
  javax.faces.context.FacesContext.getCurrentInstance(); 
  FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_WARN, 
  message, null); throw new 
  ValidatorException(facesMessage); 
  }
  [2] In the backing bean use something like the following. The 
  ValidationUtils are defined in [1] above.
  
  
  public void 
  validateUserName(FacesContext fc, UIComponent 
  uic, Object o) {
  ValidationUtils.validateUserName(getSessionBean().getCustomerId(), 
  uic, o.toString(), "*");
  }
  [3] In your JSP use the 
  validation="" attribute with a method binding to the method defined in 
  [2]. For example
  
  h:inputText id="userName" 
  required="true" 
  validator="#{myBackingBean.validateUserName}" 
  value="#{myBackingBean.bean['userName']}"/
  f:verbatimnbsp;/f:verbatim
  h:message for="" 
  

RE: OptionalValidator - Required validator - compound components

2006-06-20 Thread Jesse Alexander \(KSFD 121\)
   around this. I have no idea why JSF has the required attribute
instead
   of a required validator.
One reason might be that html does not send empty values to the
server,
therefor the validation mechanism has nothing to work on, the trigger
mechanisms do not trap that one.
The required flag is checked at another moment... But that's just a
possible 
explanation...


   After looking more at the source code for the optional validator
   framework, it doesn't look to me like it will support data tables,
   trees and other complex comonents that render children multiple
times.
Cannot garantee... I am just trying to get back into the game...
Have you tried it. or just looked at the code?
If you can create a small testcase (complete but reduced webapp), we
can
use that as a testcase... and correct the behaviour of OptValidator.

regards
Alexander



RE: Help: Ignore validation and still update model?

2006-06-12 Thread Jesse Alexander \(KSFD 121\)
Usecases like this inspired Mike and me to create the
OtionalValidator-stuff
(http://wiki.apache.org/myfaces/OptionalValidationFramework) BUT it
only
works well when you are using facelets... (the pure 1.1 lifecycle is a
major PITA for this kind of processing...)

In your case the add and delete buttons would carry the soft 
flag to the validation... and the register and save buttons the
hard flag...

hth
Alexander

PS: The usability of this component or its alternatives are also on
my todo-list...
PS2: Usually I try to be on the IRC-channels  sometimes a week... (nick:
AJesse)



 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 12, 2006 1:41 AM
 To: MyFaces Discussion
 Subject: Help: Ignore validation and still update model?
 
 Okay, I am having an issue for a non-standard configuration (go
 figure, I think I am in the 20% just about 80% of the time) and am
 looking for help.
 
 I think what I have to do is continue to the update model phase even
 when validation fails, but I'll tell you what I am doing in case
 anyone has a better idea.
 
 I have a register user form. It has three child tables (t:dataTable)
 one for each of: email addresses, phone numbers and geographic
 addresses. I have done it this way so that the user can enter multiple
 emails, phone numbers and addresses (for example, a work phone, a cell
 phone, etc). These tables are backed by Hibernate configured lists (so
 I have a FK child tables to store these records for the user table).
 
 In my view, I have Add and Delete buttons for the tables (and rows
 in the table). I don't care when the user clicks and add or a delete
 if components are invalid within the page (I only care when they click
 the Register for new users or Save for existing users).
 
 I tried marking the command links as immediate, but as those familiar
 with JSF would know, opened a can of worms. Since data tables do not
 support submitted values in child components, the user's data from the
 data tables disappeared when the view was re-rendered. So a no-go
 there.
 
 So I really need the update model phase to complete. (Yes one solution
 would be to enable AJAX for this project and only refresh the table
 row for the add or the delete, but that is beyond my scope for this
 project).
 
 Is there a way to let validation happen, but regardless of validation
 errors and warnings, to go ahead and update the model and execute the
 action?
 
 I suppose I could use a sub-form from the sandbox, but would that not
 cause the input fields in the other tables to loose their values
 anyways since validate and updating of the model does not take place
 for non-subform fields (I haven't tried the sub form out yet although
 it sounds like a good idea)?
 
 Another option may be to use a custom component that would update the
 value during the validation phase, but not stop the life cycle (so
 that the validation still occurs, and the values would still be kept
 for data table rows). I think that will work (didn't think it through
 fully yet), but it is messy (Basically a commandLink that doesn't use
 ActionEvent, but a custom event that does it's work during broadcast
 of process validators or apply request values).
 
 Anyone have a bright idea to get around this solution?
 
 Thank you
 -Andrew
 
 PS - also is there any way without partial page refreshing that
 inputSecret fields can not loose their value when the view is
 re-rendered (maybe by sending a static fake value down to the client
 that says to use the last value and then store that last value in
 the user's session?)?
 


RE: Equivalent of Dyna Action Form in JSF

2006-06-12 Thread Jesse Alexander \(KSFD 121\)



we were discussing something like that just a couple of 
days ago ;-)
Maybe I'll try to do something ... but I do not know yet 
when...

regards
Alexander

  
  
  From: Tushar [mailto:[EMAIL PROTECTED] 
  Sent: Monday, June 12, 2006 7:34 PMTo: 
  users@myfaces.apache.orgSubject: Equivalent of Dyna Action Form in 
  JSF
  I have requirement where I want to use something like Struts Dyna 
  action form. I read that managed bean having bean class as Hashmap can 
  give the same functionality.But whatever example I saw has the hardcoded 
  map entries into that managed bean and can only be used for display 
  purpose. How do I store a value inside that from Jsp at runtime and 
  retreive it back on the same page?RegardsTushar
  Send instant messages to your online friends http://in.messenger.yahoo.com 
  Stay connected with your friends even when away from PC. Link: 
  http://in.mobile.yahoo.com/new/messenger/ 


RE: Load Testing JSF?

2006-06-06 Thread Jesse Alexander \(KSFD 121\)



I did it exactly in that way... worked 
sweetly...

regards
Alexander

  
  
  From: Yee CN [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, June 06, 2006 7:00 PMTo: 'MyFaces 
  Discussion'Subject: RE: Load Testing JSF?
  
  
  JMeter actually comes 
  with a proxy server that can sniff and record request parameters including 
  cookies. I recorded a simple session and tried playing back  but could not 
  even get pass through the login page yet. I will do a bit more digging 
  tomorrow.
  
  Regards,
  Yee
  
  
  
  
  
  From: Mert 
  Çalışkan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 07, 2006 12:31 
  AMTo: MyFaces 
  DiscussionSubject: Re: Load 
  Testing JSF?
  
  
  You can check out OpenSTA. It records the usage of a 
  web app. and then you can ramp up the virtual users for the load 
  test.
  
  
  
  Here are the first things that came up to my 
  mind..
  
  It has a scripting language. If you want to read 
  username-password for ex. from a file, you have to do some 
  scripting.
  
  It has nice graphical 
  outputs.
  
  It can do https..
  
  Both the openSTA and jMeter doesn't support the 
  simulation of fileupload.
  
  
  
  Regards,
  
  
  
  Mert
  
  
  
  
  
  On 6/6/06, Dennis Byrne [EMAIL PROTECTED] 
  wrote: 
  What part are you having trouble with? 
  JMeter or JSF ;)I would suggest using tcpmon to sniff the request 
  parameters off the wire.You can obtain this from the apache axis 
  project.Then take the request parameters and plug them in to 
  JMeter.You'll also want to configure JMeter for POST - this seems 
  to have troubled me several times before. Dennis 
  Byrne-Original Message-From: Yee CN [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 
  June 6, 2006 10:49 AMTo: ''MyFaces Discussion'' Subject: Load 
  Testing JSF?Hi,I am trying out 
  jMeter with JSF - but not having much success so far. Iwould 
  appreciate if anybody could share your experience regarding load 
  testing JSF applications so I don't have sweet blood to reinvent the 
  wheel.I promise I will compile a Wiki on 
  this.Many thanks in 
  advance.Regards, 
  Yee
  


RE: Output an image

2006-06-02 Thread Jesse Alexander \(KSFD 121\)
An alternative to phaselisteners could be weblets
(http://weblets.dev.java.net)... 
in its actual form it can read the image from a jar, but as it
is opensource it could be changed to read from a db...

hth
Alexander 

 -Original Message-
 From: Ondrej Svetlik [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 01, 2006 7:16 PM
 To: MyFaces Discussion
 Subject: Output an image
 
 Hello all,
 
 I have image data in the database and want to simply send 
 them out with 
 propper mime type. Is there a way to do it using JSF?
 
 Best regards
 
 Ondrej Svetlik
 


RE: Version of Servlet Container - Facelets

2006-05-28 Thread Jesse Alexander \(KSFD 121\)
1) maybe migrating to 2) for the next 18 months

regards
Alexander 

 -Original Message-
 From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, May 28, 2006 6:10 AM
 To: MyFaces Discussion; MyFaces Development
 Subject: Version of Servlet Container - Facelets
 
 May I ask a question out loud?
 
 In discussing implementing 1.2, the question has arisen what kind of
 servlet containers most users have in use currently respectively plan
 to use in the next half year.
 
 Can you answer with the corresponding number to help us figure out an
 optimal way of going on with the 1.2 implementation?
 
 (for me personally it's 1 - I can't change over my current project to
 facelets this easily, and this is why I'm stuck with number 1)
 
 regards,
 
 Martin
 
 1) TC 5.x (or other not JSP 2.1 compliant)
 2) TC 5.x (or other not JSP 2.1 compliant) with facelets (or willing
 to change their current projects to facelets, if necessary)
 3) TC 6 or Glassfish (or other JSP 2.1 compliant)
 


RE: Startup logging question for MyfacesConfig

2006-05-12 Thread Jesse Alexander \(KSFD 121\)
one possible reason:

Your app-config is in faces-config.xml and is placed in /WEB-INF/
AND
you have configured the config-file-parm in web.xml to look for
/WEB-INF/faces-config.xml


The spec says to look for
- /META-INF/faces-config.xml in all jar-files in /WEB-INF/lib
- /WEB-INF/faces-config.xml
- the configured files in web.xml
= /WEB-IND/faces-config.xml is processed twice...



another possible reason:

misconfiguration of you logging...


hth
Alexander

 -Original Message-
 From: Joey Geiger [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 11, 2006 5:22 PM
 To: MyFaces Discussion
 Subject: Startup logging question for MyfacesConfig
 
 I'm wondering why I'm seeing the following things *twice* in my logs 
 when the application starts up.
 
 INFO MyfacesConfig - No context init parameter 
 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value 
 org.apache.myfaces.renderkit.html.util.DefaultAddResource
 INFO MyfacesConfig - No context init parameter 
 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using 
 default value true
 INFO MyfacesConfig - No context init parameter 
 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value 
 org.apache.myfaces.renderkit.html.util.DefaultAddResource
 INFO MyfacesConfig - No context init parameter 
 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using 
 default value true
 
 
 


RE: MyFaces support for Facelets

2006-05-10 Thread Jesse Alexander \(KSFD 121\)
I vote for option 2.



Option 3 might make sense if the compatibility-option is important.
The pointer to the download-packages can be held in myfaces-doc/-wiki,
together with a matrix for the compatible versions...

regards
Alexander

 -Original Message-
 From: Andrew Robinson [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, May 09, 2006 10:05 PM
 To: MyFaces Discussion
 Subject: MyFaces support for Facelets
 
 Until now, most people are using the WIKI[1] for getting myfaces to
 work with facelets. I was wondering if we want to make MyFaces include
 support for facelets natively. This should be able to be done in such
 a way to prevent problems for those that do not use facelets.
 
 Option 1)
 Add everything to tomahawk.jar including the TagHandler classes and
 taglib.xml file(s).
 
 This is easiest, and will not cause issues since non-facelet users
 will not be using those classes, and therefore if they don't have
 facelets in their classpath, it shouldn't matter.
 
 Option 2)
 Create a new myfaces jar file (tomahawk-facelets-1.1.2.jar for
 example) that contains only the code and configuration necessary to
 plug tomahawk into facelets.
 
 This is possibly more elegant but more of a pain to setup.
 
 Option 3)
 Maintain all this at jsf-comp.
 
 This works, but new users may not know about jsf-comp and it is harder
 to stay in sync with facelet and myfaces version changes (since it is
 not tied into the release cycle).
 
 Since facelets hasn't changed the taglib.xml structure at all, facelet
 version should not be a major issue. This would also make issues like
 what tree2 had a mute point since we could include component handlers
 built in to translate any non-standard logic in the Tag classes.
 
 This methodology could be applied to the sandbox as well. Once there
 is some code in SVN I would think myfaces developers could easily
 maintain their configuration for their components as well since there
 would be examples from other components to learn from (so even
 developers without facelets experience shouldn't have any issues).
 
 What do you think?
 -Andrew
 
 [1] http://wiki.apache.org/myfaces/Use_Facelets_with_Tomahawk
 


RE: Transfering data between pages.

2006-05-05 Thread Jesse Alexander \(KSFD 121\)



Hi Rogerio

you could have a separate managed bean for the popup's 
use-cases. This managed bean can then get a reference to the managed bean for 
the main-page and call methods on the original pages managed 
bean...

regards
Alexander

  
  
  From: Rogerio Pereira 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:32 
  PMTo: MyFaces DiscussionSubject: Re: Transfering data 
  between pages.
  
  
  



  
  Yes same managed-bean Rogerio. 
  I supposeyou were adding the results from the bean in popup 
  page to the bean in main 
  page.
  My problem is, i have 5 fields and 3 buttons on popup 
  window and put this stuff in the same bean will make the things a little 
  confuse and dificult to understand and manage later. -- 
  Yours truly (Atenciosamente),Rogério 


RE: getChildren().iterator() problem

2006-04-21 Thread Jesse Alexander \(KSFD 121\)



I usually prefer the while-loop for this kind of 
operation:

Iterator kids = 
myComponent.getChildren().iterator();
while (kids.hasNext()) {
 UIComponent child = 
(UIComponent)kids.next();
 ...
}

hth
Alexander

  
  
  From: arti [mailto:[EMAIL PROTECTED] 
  Sent: Friday, April 21, 2006 12:25 PMTo: MyFaces 
  DiscussionSubject: getChildren().iterator() 
  problem
  
  Hi,
  
  I am facing a problem 
  withgetChildren().iterator(). (using getChildren().listIterator()works perfect) 
  Why?
  
  My custom table 
  component has just one child column element in it. 
  
  But still the 
  iterator obtained as mentioned above,enters the following loop twice and 
  second time throws NullPointerException
  
   Iterator kids = 
  myComponent.getChildren().iterator();
   
  if (kids.hasnext()) {
   
  do {
   
  UICompoment child = 
  kids.next(); 
  // this line throws NullPointerException when executed second time in 
  loop
   
  /* some code here */
   
  } while (kids.hasnext());
   }
  
  Thanks
  Arti
  


RE: Faces Trace

2006-04-19 Thread Jesse Alexander \(KSFD 121\)
+1 on BOTH from me too

regards
Alexander 

 -Original Message-
 From: Martin Marinschek [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 8:27 AM
 To: MyFaces Discussion
 Subject: Re: Faces Trace
 
 +1 for a global setting
 
 +1 for a possibility to override the global setting with a local
 validator setting...
 
 regards,
 
 Martin
 
 On 4/19/06, Cagatay Civici [EMAIL PROTECTED] wrote:
  Shale comes with it's own validators that can do both 
 client side and server
  side. Each validator has flags like client=true server=true. The
  disadvantage is that client side validation uses popus that 
 is not favored
  much.
 
  A central mechanism to control validation setting should be 
 good but also it
  would be flexible if a validator can override the global setting.
 
 
  On 4/19/06, Alexandre Poitras [EMAIL PROTECTED] wrote:
   And you might check what Struts Shale already does. From 
 what I know
   it integrates commons-validator.
  
   On 4/18/06, Cagatay Civici [EMAIL PROTECTED] wrote:
Hi,
   
I guess the optimal solution is as follows;
   
Client side validation feature is added to Tomahawk and Sandbox
  validators
using an attribute(client=true). If this flag is true 
 then validation
takes place at client otherwise regular server side 
 validation happens.
There should be other attributes to customize the 
 client validation like
enablePopup, highlight and etc.
   
What do you think? I'm eagerly waiting to create 
 patches that would
  enable
these validators to validate at client side.
   
Regards,
   
Cagatay
   
   
On 4/18/06, Adam Winer [EMAIL PROTECTED] wrote:
 On 4/18/06, Martin Marinschek  
 [EMAIL PROTECTED] wrote:
  Yes.
 
  That's the other thing I'd like to have - automatic 
 client-side
  validation happening with the server side 
 validation in place. It
  would be good to have something like a hook in the extended
  validators
  - with this hook, they are asked to render out 
 their client-side
  validation javascript.
 
  Using this, separate validators wouldn't be necessary.

 Exactly.

  Still, I think that the rendering question is very 
 important. In the
  current state when working with ADF, I wished I 
 could disable client
  side validation in ADF faces alltogether (I'm sure 
 there is a way to
  do so, didn't look deeper into it so far). The 
 popup box is just not
  context sensitive enough.

 Yep, you can disable it altogether - there's a 
 WEB-INF/web.xml flag.

 -- Adam

   
   
  
  
   --
   Alexandre Poitras
   Québec, Canada
  
 
 
 
 
 --
 
 http://www.irian.at
 
 Your JSF powerhouse -
 JSF Consulting, Development and
 Courses in English and German
 
 Professional Support for Apache MyFaces
 


RE: Behaviour of custom components

2006-04-19 Thread Jesse Alexander \(KSFD 121\)
You could ask the customer for a callback-method implementing
the sort-mechanism... He can pass it using a EL-parameter to
your component. 

regards
Alexander 

 -Original Message-
 From: arti [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 8:48 AM
 To: MyFaces Discussion
 Subject: Behaviour of custom components
 
 Hi,
  
 How do we solve this design decision problem?
  
 When developing a custom component, if it has some behaviour 
 associated
 with it, where exactly should this behaviour be implemented? 
  
 e.g. To develop a table sortable on multiple columns, once the user
 identifies the columns to be sorted and clicks the sort 
 button (which is
 also part of table component) there must be an action listener which
 implements this sort method. 
  
 I mean when such a component is delivered to myfaces, it does 
 not have a
 backing bean packaged with it. But still it is a self-contained
 ready-to-use component. The users of myfaces simply have to 
 include the
 tag for the component in their JSF page, and assign a datamodel to it.
 And the sortable table is ready for use in their page. 
  
 Here myfaces users do not implement the core sorting behaviour of the
 component, since it is packaged somehow in the comopent - I need to
 understand where?
  
 Thanks
 Arti
 
 


RE: Behaviour of custom components

2006-04-19 Thread Jesse Alexander \(KSFD 121\)
 -Original Message-
 My question is, where should the component implement it's 
 core behaviour
 (which is not dependent on application logic)?
 -Original Message-

Last time I had to do this, I created a POJO, configured it as
a managed bean in my components faces-config.xml and offered
the client to overwrite the behaviour by defining a 
different bean-name to use.

The component would then either use its default bean-name to 
look up the POJO or the name the user configured.

The POJO just contained pure logic... and implemented an 
interface the user could use to implement his own logic.

regards
Alexander


 -Original Message-
 From: Jesse Alexander (KSFD 121)
 [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 1:39 PM
 To: MyFaces Discussion
 Subject: RE: Behaviour of custom components
 
 You could ask the customer for a callback-method implementing the
 sort-mechanism... He can pass it using a EL-parameter to your 
 component.
 
 
 regards
 Alexander 
 
  -Original Message-
  From: arti [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 19, 2006 8:48 AM
  To: MyFaces Discussion
  Subject: Behaviour of custom components
  
  Hi,
   
  How do we solve this design decision problem?
   
  When developing a custom component, if it has some behaviour 
  associated with it, where exactly should this behaviour be 
  implemented?
   
  e.g. To develop a table sortable on multiple columns, once the user 
  identifies the columns to be sorted and clicks the sort 
 button (which 
  is also part of table component) there must be an action listener 
  which implements this sort method.
   
  I mean when such a component is delivered to myfaces, it 
 does not have
 
  a backing bean packaged with it. But still it is a self-contained 
  ready-to-use component. The users of myfaces simply have to include 
  the tag for the component in their JSF page, and assign a 
 datamodel to
 
  it.
  And the sortable table is ready for use in their page. 
   
  Here myfaces users do not implement the core sorting 
 behaviour of the 
  component, since it is packaged somehow in the comopent - I need to 
  understand where?
   
  Thanks
  Arti
  
  
 
 
 
 


RE: How to fire an Action in x:panelTab

2006-04-18 Thread Jesse Alexander \(KSFD 121\)
Do you have server- or client-state?

I think that I remeber some issues with server-state and that
tabchange-listener

hth
Alexander

 -Original Message-
 From: MYyfaces Chaminda Siyasin [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, April 16, 2006 9:34 AM
 To: users@myfaces.apache.org
 Subject: How to fire an Action in x:panelTab
 
 
 I am using myfaces s x:panelTabbedPane Tag in a Tab Pane of my
 application.but I want to fire a action event in side the 
 Tab.So I used
 Myfaces x:tabChangeListener type attribute but there is no 
 action firing.
 And I tried to use 
 
  x:panelTab id=tab4 label=CCC
 rendered=#{tabbedPaneBean._tab4Visible}
 
  h:form
   h:commandLink id =tab4
 actionListener=#{tabPaneListenerBean.listen}
   h:outputText value=2005-02-03/
   /h:commandLink
   /h:form
 
  f:verbatim/p/f:verbatim
   
   h:outputText 
 value=#{exampleTabbedPane.selectedIndexT}/
 /x:panelTab
 
 Even h:commandLink id is not working inside the  x:panelTab id
 Could you please give me a hint regarding on action firing in 
 this Tab Pane.
 
 Thanks,
 
 chaminda
 --
 View this message in context: 
 http://www.nabble.com/How-to-fire-an-Action-in-%3Cx%3ApanelTab
-t1456923.html#a3937410
 Sent from the MyFaces - Users forum at Nabble.com.
 
 


RE: Faces Trace

2006-04-14 Thread Jesse Alexander \(KSFD 121\)



Resource-loading from a jar?  check 
out weblets: https://weblets.dev.java.net/

  
  
  From: Cagatay Civici 
  [mailto:[EMAIL PROTECTED] Sent: Friday, April 14, 2006 3:24 
  PMTo: MyFaces DiscussionSubject: Re: Faces 
  Trace
  Hi,I have not yet implemented the resource loading 
  mechanism from the distribution jar. Thats the major job remaining, after it 
  is done, I'll make a release next week.Also you can make a maven2 
  build for now, the build system of the project is based on maven2. Here is the 
  project site. http://sourceforge.net/projects/facestraceRegards,Cagatay,
  On 4/14/06, Maxence 
  Dewil [EMAIL PROTECTED]  
  wrote:
  


Hello,

Really a good 
idea!

Can we try 
something?;-)

Maxence 
Dewil 






De: 
Cagatay Civici [mailto:[EMAIL PROTECTED]] Envoyé: vendredi 14 avril 2006 
9:15À: MyFaces 
DiscussionObjet: 
Faces Trace


Hi,Me and my colleague created a JSF library 
called Faces Trace which you may find interesting.It brings a visual 
support for debugging JSF flows.More info and some screenshots are 
here;http://www.jroller.com/page/cagataycivici?entry=rise_of_the_faces_trace 
I'll be glad to receive feedback,Regards,Cagatay 
Civici,



RE: tag to truncate outputText?

2006-04-13 Thread Jesse Alexander \(KSFD 121\)
And if they do not accept it check out http://jsf-comp.sf.net/ as
harbour 

 -Original Message-
 From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 12, 2006 6:41 PM
 To: MyFaces Discussion
 Subject: Re: tag to truncate outputText?
 
 I think having a truncating converter in tomahawk would be worthwhile.
  You can open a JIRA issue and submit patches to make this happen, if
 you want.
 


RE: I need to customize the dataScroller

2006-04-11 Thread Jesse Alexander \(KSFD 121\)



Hi

I think your description sounds like a nice 
component...

Templates ... or ... extending?
I don't know of any template... I usually look at existing 
components and how they are done.

Extending...
Check out the code for the datascroller... something tells 
me it could work...
shameless_plugand when the code is done: check out 
jsf-comp.sf.net /shameless_plug

regards
Alexander

  
  
  From: robinhoo 
  [mailto:[EMAIL PROTECTED] Sent: Sunday, April 09, 2006 10:56 
  PMTo: MyFaces DiscussionSubject: I need to customize the 
  dataScroller
  Hello All,I need to customize the data Scroller that are 
  t:dataScroller -- tomahawk's componentso that it 
  displays alphabetic instead of numbers and make other modifications like 
  formatting spaces between alphabetic and displaying all alphabet and 
  disabling the ones that are not returned in the results.for 
  example suppose that the returned data contains only names so I need to 
  display all characters and disabling the ones the are not returned in the 
  result. Also I'm wondering if I can develop my Owen components and how 
  to do this is there any standards or templates I should use like 
  implementing or extending interface/class ?best 
  regards,-- Ali Abd El Aziz Ali 


RE: [OT] Storing files outside of the web context

2006-04-09 Thread Jesse Alexander \(KSFD 121\)



You could use a web.xml centext-param to pass the absolute 
path to the servlet.

In my experience the getRealPath()-method more often than 
not returns null. If you want to server resources from
a jar then use weblets. If you want to serve them from the 
filesystem use an absolute path configured via a 
system-setting of a context-param.

hth
Alexander

  
  
  From: Quintin Kerby [mailto:[EMAIL PROTECTED] 
  Sent: Friday, April 07, 2006 11:50 PMTo: MyFaces 
  DiscussionSubject: Re: [OT] Storing files outside of the web 
  context
  Absolutely. You could hard 
  code a file path from inside a backing bean and save the file anywhere on your 
  system if you wanted. Here's some 
  quick code I stole from one of my servlets that reads a file from anywhere 
  (just define your own filename) and sends it to the response: 
  ServletContext sc = 
  getServletContext(); String filename = 
  sc.getRealPath("/images/bcg.gif"); // Get the MIME type of the image String mimeType = sc.getMimeType(filename); if (mimeType == null) { mimeType = 
  "text/plain"; } // Set content type response.setContentType(mimeType); // Set content size File file = 
  new File(filename); response.setContentLength((int) file.length()); 
  //Set headers response.setHeader("Content-disposition", "attachment; 
  filename=" + filename); response.setHeader("Cache-Control", "max-age=600"); 
  // Open the file and output 
  streams FileInputStream in = new 
  FileInputStream(file); OutputStream 
  out = response.getOutputStream(); // Copy the contents of the file to the output stream byte[] buf = new byte[1024]; int count = 0; while ((count = in.read(buf)) = 0) { out.write(buf, 0, 
  count); } in.close(); out.close(); Quintin 
  KerbyCACI, Inc. 
  


  "James Reynolds" 
[EMAIL PROTECTED] 
04/07/2006 15:02 

  
  

  Please respond 
  to"MyFaces Discussion" 
  users@myfaces.apache.org
  

  
  

  To
"MyFaces Discussion" 
  users@myfaces.apache.org 
  

  cc

  

  Subject
[OT] Storing files outside of the 
  web context

  
  

I have a jsf app that includes many .pdf files of contracts. 
  I've justbeen putting them all in the war before deploying to the 
  productionserver. There must be a better way to do this. Is it 
  possible to storethese files elsewhere on the web server, outside of the 
  context, andstill be able to link to 
  them?Thanks


RE: myfaces support in a hosting provider

2006-03-30 Thread Jesse Alexander \(KBSA 21\)



isn't the tomcat-manager active?

regards
Alexander

  
  
  From: Rogerio Pereira 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, March 30, 2006 
  10:15 PMTo: MyFaces DiscussionSubject: myfaces support 
  in a hosting provider
  Hi,I have one tomcat context avaliable for me at my hosting 
  provider, initially my WEB-INF folder was empty, but today i put web.xml, 
  faces-config.xml and all myfaces jars in WEB-INF-lib folder in my website, now 
  how can i tell to tomcat read this files to configure myfaces apps properly 
  there since i don't have any way to reload the website context? Thanks for any answer.-- Yours truly 
  (Atenciosamente),Rogério 


RE: Spring, myfaces, hibernate

2006-03-30 Thread Jesse Alexander \(KBSA 21\)



valid point. 1-pagers often grow to ugly multi-page 
spaghetti-apps...

introducing and therefor experimenting stuff like spring 
helps
tremendously... maybe spring is enough, 
tough

regards
Alexander

  
  
  From: Jurgen Lust 
  [mailto:[EMAIL PROTECTED] Sent: Friday, March 31, 2006 9:05 
  AMTo: MyFaces DiscussionSubject: Re: Spring, myfaces, 
  hibernate
  In my experience, apps that start out with 1 page and 1 bean tend 
  to end up being much more complex. So even in that case I would recommend 
  adding Spring en Hibernate to the mix, especially because of the KISS 
  principal:Removing messy JDBC code and introducing IoC on all levels 
  simplifies a project tremendously.JurgenAlexandre Poitras 
  schreef: 
  I agree with the previous poster but I would definitly take a look at
Spring's JDBCTemplate if I was you, which is very simple and makes
your jdbc code much easier to write. Say farewell to your messy
exception handling code :) Plus, if you want to switch to iBatis or
Hibernate later on, it will be much easier this way.

On 3/30/06, Adrian Merrall [EMAIL PROTECTED] wrote:
  
If your app really is 1 page and 1 bean (and likely to stay around
this size) then I would think adding multiple frameworks is overkill,
remember the KISS principal.  Some plain java and jdbc is fine.

If you are thinking about persistance/data mapping frameworks to
replace writing JDBC, don't forget to evaluate Apache iBatis as well
as Hibernate.  There are some tutorials on the ibatis site under
downloads.

Regards,

Adrian
Auckland, NZ

On 3/30/06, 101questionjsf [EMAIL PROTECTED] wrote:

  Currently I'm using only myfaces to do my application. Is it advisable to use
Spring and Hibernate? Can I proceed without them?

Currently, whenever connect to db to do something, I'm writing jdbc
statements, not using hibernate.

And never use Spring.

Only 1 jsp page linked to 1 managed bean.

Is my approach alright? or something wrong?
--
View this message in context: http://www.nabble.com/Spring%2C-myfaces%2C-hibernate-t1367883.html#a3668253
Sent from the MyFaces - Users forum at Nabble.com.


  

--
Alexandre Poitras
Québec, Canada
  


RE: many facelets libraries

2006-03-13 Thread Jesse Alexander \(KBSA 21\)
hmm... try this link
https://facelets.dev.java.net/nonav/docs/dev/docbook.html#config-webapp
-init 
Seems that the solution is to specify multiple libraries as a 
semicolon-separated list:

facelets.LIBRARIES  
  A semicolon (;) delimitted list of paths to Facelet tag libraries, 
  relative to your application's root. These libraries will be loaded 
  when the first request hits the FaceletViewHandler for page
compilation.

hth
Alexander

 -Original Message-
 From: ::SammyRulez:: [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 13, 2006 10:02 AM
 To: MyFaces Discussion
 Subject: many facelets libraries
 
 What if I want to add more then one extra component library 
 to my facelet app?
 More than ore context-parameter will breack the context.
 
 should I build a custom taglib xml descritpor with all my tags? I will
 lost different namespace for each one...
 
  context-param
 param-namefacelets.LIBRARIES/param-name
 param-value/WEB-INF/tomahawk.taglib.xml/param-value
 /context-param
 
 --
 ::SammyRulez::
 


RE: how to run MyFaces examples on SunApplication Server 8.2 ???? URGENT!

2006-03-06 Thread Jesse Alexander \(KBSA 21\)



In such a case extracts form the server-logs might help 
more...
Have yo checked: http://wiki.apache.org/myfaces/Installation_and_Configuration?

hth
Alexander

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of DuduSent: 
  Monday, March 06, 2006 1:47 PMTo: MyFaces Official 
  ListSubject: how to run MyFaces examples on SunApplication Server 
  8.2  URGENT!
  How to run MyFaces examples on SunApplication Server 8.2  I've 
  deployed on jboss and the example works fine But at SAS not happens..See 
  on attachment.And how to run Adf + MyFaces Application on this 
  container. I need to deploy it today? Thanks a 
lot!!


RE: what is the worse thing that could happen - escape=false

2006-02-26 Thread Jesse Alexander \(KBSA 21\)



That kind of security is a wasp's 
nest...
_javascript_ is not the only possible fountain of problems... 
SQL-Code-injection is another one...

My take is that JSF's validation might be already too far 
within the application's scope to deal with
such attack-oportunities. I would prefer to have it on a 
"box" / "appliance" / "sw-firewall" put in front of
the actual webapplication container...

regards
Alexander

  
  
  From: Dave [mailto:[EMAIL PROTECTED] 
  Sent: Sunday, February 26, 2006 11:34 PMTo: 
  users@myfaces.apache.orgSubject: what is the worse thing that could 
  happen - escape=false
  
  inputTextarea allows users to input a description including any 
  HTML tags,
  then display back to client using outputText 
  escape="false".
  
  Users cantype in _javascript_ and anything else. What is the security 
  hole? client side or server side? Can users break in server side 
  security this way? I believe it is client side only. On server side, just do 
  model update and store it in database.
  
  Even for client side, it is a big issue, sincethe 
  descriptionis viewable by all users.
  
  Is there a way to prevent this, but support HTML tags?
  Is adding a validator checking script sufficient?
  
  Thanks!
  
  
  Yahoo! MailBring photos to life! New 
  PhotoMail makes sharing a breeze. 


RE: JSF log activity

2006-02-15 Thread Jesse Alexander \(KBSA 21\)
Hi

Cool idea.. some instrumentation in this direction would be great...
hmm.. could a phase-listener be used... need to check the API's

thanks for the idea
Alexander 

 -Original Message-
 From: Csík Norbert [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 15, 2006 2:22 PM
 To: users@myfaces.apache.org
 Subject: JSF log activity
 
 Hi!
 
 I would like to log the activity of my JSF application. Which
 actions/pages are used frequently, and which ones run too slowly.
 
 Is there any framework or library where I can do this? I tried to
 write my simple one using a Filter, but in that case getting the name
 of the page is not so easy because the naviagtion rule decides which
 JSF should be displayed.
 
 Thaaks,
 
 --
  Norbert Csík
 


RE: JSF log activity

2006-02-15 Thread Jesse Alexander \(KBSA 21\)



Cool...
I was evaluating the possibilities as 
well...
This is the proof, that this itches a lot of us 
;-)

regards
Alexander

  
  
  From: Cagatay Civici 
  [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 15, 
  2006 3:23 PMTo: MyFaces Discussion; 
  [EMAIL PROTECTED]Subject: Re: JSF log 
  activity
  Hi,I am currently working on this subject, here are the 
  areas I'm dealing with.- Calculating phase times- Variables and 
  values in different scopes.- State size- Request and Response 
  Info- Performances of components I am using aspects and listeners 
  to collect the information above;Regards,Cagatay 
  Civici,
  On 2/15/06, Martin 
  Marinschek  
  [EMAIL PROTECTED] wrote:
  Navigation 
Listener?ViewHandler?Combo of 
both?regards,MartinOn 2/15/06, Jesse Alexander (KBSA 
21) [EMAIL PROTECTED] 
wrote: Hi Cool idea.. some instrumentation in this 
direction would be great...  hmm.. could a phase-listener be used... 
need to check the API's thanks for the idea 
Alexander  -Original Message-  From: 
Csík Norbert [mailto: 
[EMAIL PROTECTED]]  Sent: Wednesday, February 15, 2006 
2:22 PM  To: users@myfaces.apache.org 
 Subject: JSF log activityHi! 
  I would like to log the activity of my JSF application. 
Which  actions/pages are used frequently, and which ones run too 
slowly.   Is there any framework or library where I 
can do this? I tried to   write my simple one using a Filter, 
but in that case getting the name  of the page is not so easy 
because the naviagtion rule decides which  JSF should be 
displayed.   Thaaks,
-- Norbert Csík 
--http://www.irian.atYour JSF 
powerhouse -JSF Consulting, Development andCourses in English and 
German Professional Support for Apache 
  MyFaces


RE: online TLD API docs gone?

2006-02-14 Thread Jesse Alexander \(KBSA 21\)
The fastest way is to open a bug-report...
Gets the developers attention first...

regards
Alexander

 -Original Message-
 From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 14, 2006 12:11 PM
 To: MyFaces Discussion
 Subject: Re: online TLD API docs gone?
 
 Yeah, so it seems. Also the version numbers aren't consitent.  
 (API-113 - Download-111)
 Hopefully they get online back soon.
 Philippe
 On 14 Feb 2006, at 11:45, Jesse Alexander (KBSA 21) wrote:
 
 Might result from the migration of the website to the maven
 build-system.
 
 regards
 Alexander
 
  -Original Message-
  From: Philippe Lamote [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, February 14, 2006 11:29 AM
  To: MyFaces Discussion
  Subject: online TLD API docs gone?
 
  I get a 404 error when I try to access them.
  Philippe
 
 
 


RE: MyFaces + Weblogic = Classloading Problems

2006-02-11 Thread Jesse Alexander \(KBSA 21\)



The problem you mention (and the code you found) were 
needed for WLS-versions
prior to 8.1.4 From that patchlevel on a patch has been 
added to WLS to fix the 
contextlistener-init problem.

I just deployed the MyFaces simple application (just had to 
remove the
description tags from the context-params, nothing else) as 
an exploded
webapp to the autodeploy directory. Every change to a 
jsp-file was immediately 
recognized and resulted in a different 
html-view...

Hmm... what could be the differences?
I use OpenSuse 10.0 (linux) and a 9.0 download from 
yesterday evening.

regards
Alexander

  
  
  From: Adam Brod [mailto:[EMAIL PROTECTED] 
  Sent: Friday, February 10, 2006 3:43 PMTo: MyFaces 
  DiscussionSubject: Re: MyFaces + Weblogic = Classloading 
  Problems
  Yes, I have tried it with and 
  without the context-listener. Any 
  additional ideas? I'm sure there must be other people developing on 
  weblogic, right?Adam 
  BrodProduct Development 
  Team
  


  Martin Marinschek 
[EMAIL PROTECTED] 
02/10/2006 12:57 AM 

  
  

  Please respond 
  to"MyFaces Discussion" 
  users@myfaces.apache.org
  

  
  

  To
MyFaces Discussion 
  users@myfaces.apache.org 
  

  cc

  

  Subject
Re: MyFaces + Weblogic 
  = Classloading Problems

  
  

Have you tried to setup your context-listener in the web.xml 
  directly?regards,MartinOn 2/9/06, Adam Brod 
  [EMAIL PROTECTED] wrote: Hi- I am 
  running into a problem with Classloading with MyFaces 1.1.1 on 
  Weblogic 9. Weblogic allows you to deploy your webapp in an 
  exploded directory format. That means that you can modify a JSP 
  (or Facelet xhtml) and copy it to the deployment directory to be 
  automatically redeployed. This functionality works fine in the 
  old Struts/JSP world. Now that I'm using MyFaces, I'm running 
  into problems with the FactoryFinder. As I understand it, 
  FacesServlet or FactoryFinder "stores" the Factories based on the 
  current classloader. When Weblogic redeploys a JSP, it drops the 
  current ClassLoader and creates a new one. That means that the 
  next time I hit a JSF page, I get an IllegalStateException (see full 
  stack trace below). I looked at the code in FacesServlet and I 
  see this comment, "//TODO: null-check for Weblogic, that tries to 
  initialize Servlet before ContextListener". Obviously I'm not 
  the first to run into this problem. I browsed the source of the 
  trunk online and I see the same code is still there. Does 
  anybody have a fix for this? Is there any work around other than 
  doing a full redeploy for each JSP modification? Thanks for 
  your help. Adam 
  java.lang.IllegalStateException: No Factories configured for this 
  Application - typically this is because a context listener is not setup 
  in your web.xml. A typical config looks like 
  this; listener 
  listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class 
  /listener  
 at 
  javax.faces.FactoryFinder.getFactory(FactoryFinder.java:84)  
 at 
  javax.faces.webapp.FacesServlet.init(FacesServlet.java:84)  
 at 
  weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:265) 
  at 
  weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) 
  at 
  weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) 
  at 
  weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:61) 
  at 
  weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) 
  at 
  weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48) 
  at 
  weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:502) 
  at 
  weblogic.servlet.internal.ServletStubImpl.checkForReload(ServletStubImpl.java:429) 
  at 
  weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221) 
  at 
  weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:165) 
  at 
  weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3022) 
  at 
  weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) 
  at 
  weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) 
  at 
  weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1925) 
  at 
  weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1848) 
  at 
  

RE: Components disappearing!

2006-02-10 Thread Jesse Alexander \(KBSA 21\)
 HI !
 
 I am trying to make a custom component, a sortable column 
 which is a column
 with an output text and 2 command buttons at its header.
 
 I extends the UIcolumn component and put a htmlPanelGrid in it header.
 HtmlPanelGrid contains an output text and 2 command buttons.
 
 I am trying to a assign id to these component using View as
 
 FacesContext.getCurrentInstance().getViewRoot().createUniqueId();
 
 Now it displays everything fine for the first time. But when 
 I click any of
 these buttons, cells of the column disappears and I left with 
 empty column.
 
 Does any one have any idea why this is happening.

Not really an idea what's happening... but maybe an idea how to find it
out...
Have you set the logging in MyFaces to the highest level?
MyFaces then logs the component-tree (with usefull info) to the log and
in
my components that tree-logging in restore- and render-phase have helped
my
a lot.

You can activate the logging by adding the correct log4j options...
in my xml-log4j-config I have these entries:
category name=javax.faces
priority value=all/
/category
category name=org.apache.myfaces
priority value=all/
/category

hth
Alexander

 
 With regards
 Amit
 ps: When I don't assign ids everything works fine except that I got a
 warning saying automatic id is assigned to these components.
 
 


RE: Architecture question

2006-02-08 Thread Jesse Alexander \(KBSA 21\)
 -Original Message-
 If an application has 3 tiers: presentation, business, 
 backend - in which of
 those would you put the JSF Model (the Backing Beans?)

Usual answer: depends... ;-)

 
 When I read through the www, I have to assume that it belongs in the
 business tier while the rest of the JSF stuff belongs into the
 presentation tier, right?

I often subdivide the managed beans in two groups:
- the usecase beans
and
- the model beans

I allow the usecase beans to depend on javax.faces.**.* classes but the
model
beans must be kept clean. The usecase beans are used to control the flow
within the usecase. The model beans are pure data-keeper.

It has worked in a medium-complex application, but I consider it as
just
ONE working model...

 
 But if you want a good architecture - shouldn't there be 
 some sort of
 interface or facade centralizing the business tier access? (Like: all
 requests go through one gate?)

For this we request that all usecase-beans make requests from the
backend
(persistency,...) through facades. Those facades are not allowed to have
framework-dependencies. They use services, which depend on the 
backend-frameworks to get at the actual data. Usually they return 
the model-beans from above...

 Does anyone have a good JSF based architecture in UML (easier 
 to talk about
 a diagram instead of trying to describe it with words)

Not yet ;-)

hth (at least (new?) ideas...)
Alexander


RE: charater/number on an image?

2006-02-07 Thread Jesse Alexander \(KBSA 21\)
checkout: 
- wiki: (links at the bottom) http://en.wikipedia.org/wiki/Captcha 

hth
Alexander

 -Original Message-
 From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, February 07, 2006 4:28 PM
 To: MyFaces Discussion
 Subject: Re: charater/number on an image?
 
 I read an article on this recently.
 
 Try looking here:
 
 http://www.captcha.net/
 
 I don't know if there's any source out there, but you could email the
 researchers.
 
 On 2/6/06, Dave [EMAIL PROTECTED] wrote:
  Is there component that I can print some number/characters 
 on it and that
  component will be rendered as an image?  or an image 
 generator(public open
  source)? The purpose is to prevent automatic registration.  Thanks!
 
   
  Relax. Yahoo! Mail virus scanning helps detect nasty viruses!
 


RE: Variable Resolver

2006-02-06 Thread Jesse Alexander \(KBSA 21\)
No need for the VariableResolver for such stuff...
As Volker pointed out, it depends on the getter/setter methods.

VariableResolver in ManagedBeans is only needed when you need to look up
some beans with which you basolutely no direct connection. I dare
to guesitmate that this will hit less than 1% of all JSF-applications...

hth
Alexander 

 -Original Message-
 From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 06, 2006 12:02 PM
 To: MyFaces Discussion
 Subject: Re: Variable Resolver
 
 Yes I did...
 I'll reconstruct the code, for the moment I have bypassed the 
 prob by  
 having LoginBean extend Person. :-(
 Originally loginPerson(the field itself) itself was private, made it  
 public just in case, but that didn't change anything.
 I have also googled for this (perhaps with the wrong terms, 
 like JSF  
 and recursive variable resolving) but that didn't came up with  
 much. :-)
 
 What I don't know is whether the Variabe Resolver was specified to  
 also resolve in that fashion in the first place.
 What I also tried was to make the model.Person class a 
 (managed) bean  
 to see whether that would make a diff, but it didn't.
 
 Philippe
 
 On 06 Feb 2006, at 11:49, Volker Weber wrote:
 
 Hi Philippe,
 
 did you have public getter and setter for Person in loginBean?
 
 the expression #{loginbean.loginPerson.lastName} is resoved to
 
 loginbean.getLoginPerson().getLastName()
 
 where loginBean is the object from session scope.
 
 otherwise please post the stacktrace and more of your relevant code.
 
 Regards,
Volker
 
 Philippe Lamote wrote:
  Hi,
 
  I have a Variable Resolver question.
  To set the scene first:
 
  Trying to follow good practice, I build up my model classes in
  XXX.model.modelClass. e.g. XXX.model.Person
  For the front end, there's a package XXX.web.beans e.g.
  XXX.web.beans.LoginBean
 
   In that LoginBean I had a field declared:
  Person loginPerson;
 
  -- In the JSF page I obviously tried:
  Login: #{loginbean.loginPerson.lastName}  (I declared loginbean
  properly in the faces-config, session scope)
 
  Yet this continues to give me errors. (of type conversion/validation
  while updating model)
 
  Which made me wonder whether the Variable Resolver was made for this
  sort of schemas after all?
  If not that would be a pitty I think.
 
  I made it work by having LoginBean extend Person but qua design I   
  think
  this is much less elegant.
  (but still way better than copy all fields again in front-end  
  classes  -
  why make a model then?!)
 
  Philippe
 
 
 
 -- 
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by
 concatenating my forename to my senders domain.
 
 


RE: Variable Resolver

2006-02-06 Thread Jesse Alexander \(KBSA 21\)
The stacktrace also talks about HtmlOutputLabel searching for this
property..

there is  h:outputText value=#{labels.login_name} / in his jsp..

could it be that the labels bean (snippet from faces-config does not
contain that bean)
is also of class be.mnemonica.web.beans.LoginBean?
That would explain it clearly.

OR

He did send us the JSP the request is started from, but the problem is
only during
the rendering phase of the resulting JSP...

hth
Alexander

 -Original Message-
 From: Volker Weber [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 06, 2006 2:49 PM
 To: MyFaces Discussion
 Subject: Re: Variable Resolver
 
 This stacktrace says the class be.mnemonica.web.beans.LoginBean has no
 getLoginName() method.
 
 must be referenced somewhere in the jsf, but i don't see it in your
 posted code.
 
 Philippe Lamote wrote:
  True, thx, corrected that immediately. (Oops)
  However, still no change. 
  The stack trace I'm getting is:
  
  006-02-06 14:33:09,147 ERROR
  [org.apache.myfaces.renderkit.RendererUtils] - Property not found -
  called by component : {Component-Path : [Class:
  javax.faces.component.UIViewRoot,ViewId:
  /WEB-INF/resources/pages/portal.jsp][Class:
  javax.faces.component.html.HtmlOutputLabel,Id: _idJsp0]}
  javax.faces.el.PropertyNotFoundException: Bean:
  be.mnemonica.web.beans.LoginBean 
 http://web.beans.LoginBean, property:
  loginName
 -- 
 Don't answer to From: address!
 Mail to this account are droped if not recieved via mailinglist.
 To contact me direct create the mail address by
 concatenating my forename to my senders domain.
 


RE: Variable Resolver

2006-02-06 Thread Jesse Alexander \(KBSA 21\)
Then it must be the other possibility... it is not on the loginPage.jsp
where your problem lies but:

from your stacktrace: resources.pages.portal_jsp:210)

might be something like .../resources/pages/portal.jsp

hth
Alexander

 

 -Original Message-
 From: Philippe Lamote [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 06, 2006 3:07 PM
 To: MyFaces Discussion
 Subject: Re: Variable Resolver
 
 No, I have a labels bean.
 The only beans I declared so far are these:
 
   managed-bean
   managed-bean-nameloginbean/managed-bean-name
   
 managed-bean-classbe.mnemonica.web.beans.LoginBean/managed-bean- 
 class
   managed-bean-scopesession/managed-bean-scope
   /managed-bean
   managed-bean
   managed-bean-nameportalbean/managed-bean-name
   
 managed-bean-classbe.mnemonica.web.beans.PortalBean/managed-bean- 
 class
   managed-bean-scopesession/managed-bean-scope
   /managed-bean
 
managed-bean
   managed-bean-namecalpickerbean/managed-bean-name
   
 managed-bean-classbe.mnemonica.web.beans.CalPickerBean/managed- 
 bean-class
   managed-bean-scopesession/managed-bean-scope
   /managed-bean
   managed-bean
   managed-bean-nameregcalbean/managed-bean-name
   
 managed-bean-classbe.mnemonica.web.beans.RegisterCalBean/managed- 
 bean-class
   managed-bean-scopesession/managed-bean-scope
   /managed-bean
 
 
 On 06 Feb 2006, at 15:01, Jesse Alexander (KBSA 21) wrote:
 
 The stacktrace also talks about HtmlOutputLabel searching for this
 property..
 
 there is  h:outputText value=#{labels.login_name} / in his jsp..
 
 could it be that the labels bean (snippet from faces-config does not
 contain that bean)
 is also of class be.mnemonica.web.beans.LoginBean?
 That would explain it clearly.
 
 OR
 
 He did send us the JSP the request is started from, but the problem is
 only during
 the rendering phase of the resulting JSP...
 
 hth
 Alexander
 
  -Original Message-
  From: Volker Weber [mailto:[EMAIL PROTECTED]
  Sent: Monday, February 06, 2006 2:49 PM
  To: MyFaces Discussion
  Subject: Re: Variable Resolver
 
  This stacktrace says the class 
 be.mnemonica.web.beans.LoginBean has no
  getLoginName() method.
 
  must be referenced somewhere in the jsf, but i don't see it in your
  posted code.
 
  Philippe Lamote wrote:
  True, thx, corrected that immediately. (Oops)
  However, still no change.
  The stack trace I'm getting is:
 
  006-02-06 14:33:09,147 ERROR
  [org.apache.myfaces.renderkit.RendererUtils] - Property not found -
  called by component : {Component-Path : [Class:
  javax.faces.component.UIViewRoot,ViewId:
  /WEB-INF/resources/pages/portal.jsp][Class:
  javax.faces.component.html.HtmlOutputLabel,Id: _idJsp0]}
  javax.faces.el.PropertyNotFoundException: Bean:
  be.mnemonica.web.beans.LoginBean
  http://web.beans.LoginBean, property:
  loginName
  -- 
  Don't answer to From: address!
  Mail to this account are droped if not recieved via mailinglist.
  To contact me direct create the mail address by
  concatenating my forename to my senders domain.
 
 
 


FW: Any way to disable/sidestep converters/validators while processing a ActionListener event?

2006-02-01 Thread Jesse Alexander \(KBSA 21\)
 

-Original Message-
From: Jesse Alexander (KBSA 21) 
Sent: Thursday, February 02, 2006 8:24 AM
To: MyFaces Development
Subject: RE: Any way to disable/sidestep converters/validators while
processing a ActionListener event?

Hello:
 
We would like to be able to handle the ActionListener event
without converters
and validators (associated with fields on the form) generating
error messages.
When the form is submitted, we do want the field converters and
validators to 
generate appropriate error messages.  Is there a way to
disable/sidestep 
converters and validators while processing an ActionListener
event?  Further
details are provided below.

The situation:
--
1. Have a date input field
2. Have a link next to the input field that is used to set a
default value in the date field.
   An ActionListener is associated with the link.
3. When the link is clicked, the form is posted and the
ActionListener method is invoked.  This 
   method sets and default value in the date field and returns.
4. Since it is an ActionListener event, JSP redisplays the same
page.

A well known usecase...


Problem:

1. If an illegal date format has been entered into the date
field before clicking the link,
   the converter on the date field detects an error.  JSF
redisplays the page with the
   error message. 
2. Even if the date field is empty or has a legal value, other
fields on the form can have
   bad values such that their converter or validator will detect
an error.  Again, JSP 
   redisplays the page with the error message. 


UI Goal:  Have the link set the default value and ignore any
illegal fields on the form.
---   At this point in time, the user in interested in
defaulting the date field, not
  validating fields.  The fields will be validated when
the form is submitted. 


Current Solution:
-
1. The link has: immediate=true set.
2. ActionListener associated with link runs early in the JSF
lifecycle. This method
   accesses the component and sets the date value by calling
component.setSubmittedValue() 
3  ActionListener method then terminates JSF lifecyle
4. JSF redisplays page.  Since the date component's submitted
value has been modified, the
   default value now appears in the date field.

What we found is that some fields would not show the values the user had
entered before...


Why We are Looking for a Better Solution:
-
We have other situations where the ActionListener method needs
access to several fields
on the form. These fields are currently not available to the
ActionListener since it is 
invoked early in the JSF lifecycle.

If the converters/validators could be disabled, the
ActionListener method could run
at the normal place in the JSF lifecycle.  It is understood that
JSF could not do the data
binding for any fields where the converter fails.  But all other
fields would be properly 
bound and accessible to the AtionListener method.

You might have a look at the OptionalValidators described here:
http://wiki.apache.org/myfaces/OptionalValidationFramework

Comments, testcases and problem-reports are welcome.

regards
Alexander
 
 
Thanks for your time.
 
Jay



  1   2   3   >