Where's s:exporterActionListener ?

2008-12-05 Thread Rogerio Pereira
Hi!

Where I can find a build that contains s:exporterActionListener as described
in the issue below?

https://issues.apache.org/jira/browse/TOMAHAWK-1230

-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: Where's s:exporterActionListener ?

2008-12-05 Thread Rogerio Pereira
Nevermind, I found a build that contains this actionlistener at
people.apache.org repo.

2008/12/5 Rogerio Pereira [EMAIL PROTECTED]

 Hi!

 Where I can find a build that contains s:exporterActionListener as
 described in the issue below?

 https://issues.apache.org/jira/browse/TOMAHAWK-1230

 --
 Regards,

 Rogério (_rogerio_)

 [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
  [Twitter: http://twitter.com/ararog]

 Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
 distribua e aprenda mais.
 (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)




-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Back button issue with actionlisteners.

2008-10-26 Thread Rogerio Pereira
Hi!
Since 2006, I'm using JSF/Facelets to write search frontend solutions on top
o FAST ESP, I could write many seach apps in a very small amount of time
with this amazing framework, Facelets helped a lot on view definition, we
have several reusable compositions, many of these compositions uses several
jsf core and tomahawk components, providing some search funcionalities, like
navigators (aka faceted seach), search results pagination, documents teasers
and etc. I'm using server side state saving.

Now I'm having a problem related with navigators, this composition shows a
list of commandlinks on the page, each of these links will perform a
drilldown on my search by a specific term, once a click on one of these
commandlinks the actionlisteners is triggered and a drilldown is performed
on my search returning a new list of command links to the user, now a little
smaller then previous list. If I click on back button I can get the original
list of commandlinks on the screen but if I click on another commandlink on
this list nothing no actionslistener is triggered, example:

(1) Consider the following list of links generated dinamically by a
t:dataList:

Refine by 1
Refine by 2
Refine by 3
Refine by 4

(2) Now the user clicks on commandLink2:

Refine by 1
Refine by 2 (actionlistener triggered, replaced by outputText)
Refine by 3
Refine by 4

(3) Then the user clicks on back button and the page returns to the previous
state:

Refine by 1
Refine by 2
Refine by 3
Refine by 4

(4) If the user clicks on the commandLink3 I'll get the following list:

Refine by 1
Refine by 2 (actionlistener isn't triggered, replaced by outputText)
Refine by 3 (actionlistener isn't triggered , replaced by outputText)
Refine by 4

(5) But I was expecting something like this:

Refine by 1
Refine by 2
Refine by 3 (actionlistener triggered, replaced by outputText)
Refine by 4

After few hours of debbuging I found the problem, when I click on the back
button, the previous state of this view should be restored (1) and the
actionlistener attached to commandlink should be called on next execution of
jsf lifecycle, instead of this, the current state of this view is always
restored (2) and no actionlistener gets called, a little different from what
I'm really looking for (5).

Thanks for any answer.

-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: JWebUnit or Selenium to test JSF applications?

2008-10-06 Thread Rogerio Pereira
Thanks Marc!

2008/10/6 Marc Schneider [EMAIL PROTECTED]

 Hi Rogerio,

 We have this structure :

 project
 |_ src/main/java/myapp/...
 |_ src/test/java/myapp/itest

 Marc.

 Rogerio Pereira a écrit :
  Thanks Matthias, one last question, do you have a module that only
  contains the selenium tests or your selenium tests are always running in
  the same module as your web application?
 
  Example:
 
  project
  |__integration-tests (selenium tests)
  |__aplication (application code)
 
  I'm just trying to figure out the best pratices.
 
 
  2008/10/3 Matthias Wessendorf [EMAIL PROTECTED] mailto:
 [EMAIL PROTECTED]
 
  2008/10/3 Rogerio Pereira [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]:
   But what about continuous integrations? Selenium works well when
 using
   CruiseControl or Hudson for automated builds?
 
  we use maven, and we have an *automation* project.
  Selenium provides api to automate things,
 
  like, com.thoughtworks.selenium.DefaultSelenium;
 
  -M
 
  
   2008/10/3 Matthias Wessendorf [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
  
   Hi,
  
   we, at Oracle, use Selenium to test.
  
   -M
  
   On Fri, Oct 3, 2008 at 4:38 PM, Rogerio Pereira
   [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote:
Hi guys!
I would like to know which is the prefered solution to test JSF
applications, someone had evaluated these two solutions?
   
--
Regards,
   
Rogério (_rogerio_)
   
[Blog: http://faces.eti.br]  [Sandbox:
 http://bmobile.dyndns.org]
 [Twitter:
http://twitter.com/ararog]
   
Faça a diferença! Ajude o seu país a crescer, não retenha
  conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)
   
  
  
  
   --
   Matthias Wessendorf
  
   blog: http://matthiaswessendorf.wordpress.com/
   sessions: http://www.slideshare.net/mwessendorf
   twitter: http://twitter.com/mwessendorf
  
  
  
   --
   Regards,
  
   Rogério (_rogerio_)
  
   [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
   [Twitter:
   http://twitter.com/ararog]
  
   Faça a diferença! Ajude o seu país a crescer, não retenha
  conhecimento,
   distribua e aprenda mais.
   (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)
  
 
 
 
  --
  Matthias Wessendorf
 
  blog: http://matthiaswessendorf.wordpress.com/
  sessions: http://www.slideshare.net/mwessendorf
  twitter: http://twitter.com/mwessendorf
 
 
 
 
  --
  Regards,
 
  Rogério (_rogerio_)
 
  [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
   [Twitter: http://twitter.com/ararog]
 
  Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
  distribua e aprenda mais.
  (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)




-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


JWebUnit or Selenium to test JSF applications?

2008-10-03 Thread Rogerio Pereira
Hi guys!
I would like to know which is the prefered solution to test JSF
applications, someone had evaluated these two solutions?

-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: JWebUnit or Selenium to test JSF applications?

2008-10-03 Thread Rogerio Pereira
But what about continuous integrations? Selenium works well when using
CruiseControl or Hudson for automated builds?

2008/10/3 Matthias Wessendorf [EMAIL PROTECTED]

 Hi,

 we, at Oracle, use Selenium to test.

 -M

 On Fri, Oct 3, 2008 at 4:38 PM, Rogerio Pereira
 [EMAIL PROTECTED] wrote:
  Hi guys!
  I would like to know which is the prefered solution to test JSF
  applications, someone had evaluated these two solutions?
 
  --
  Regards,
 
  Rogério (_rogerio_)
 
  [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
  [Twitter:
  http://twitter.com/ararog]
 
  Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
  distribua e aprenda mais.
  (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)
 



 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf




-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: JWebUnit or Selenium to test JSF applications?

2008-10-03 Thread Rogerio Pereira
Thanks Matthias, one last question, do you have a module that only contains
the selenium tests or your selenium tests are always running in the same
module as your web application?
Example:

project
|__integration-tests (selenium tests)
|__aplication (application code)

I'm just trying to figure out the best pratices.


2008/10/3 Matthias Wessendorf [EMAIL PROTECTED]

 2008/10/3 Rogerio Pereira [EMAIL PROTECTED]:
  But what about continuous integrations? Selenium works well when using
  CruiseControl or Hudson for automated builds?

 we use maven, and we have an *automation* project.
 Selenium provides api to automate things,

 like, com.thoughtworks.selenium.DefaultSelenium;

 -M

 
  2008/10/3 Matthias Wessendorf [EMAIL PROTECTED]
 
  Hi,
 
  we, at Oracle, use Selenium to test.
 
  -M
 
  On Fri, Oct 3, 2008 at 4:38 PM, Rogerio Pereira
  [EMAIL PROTECTED] wrote:
   Hi guys!
   I would like to know which is the prefered solution to test JSF
   applications, someone had evaluated these two solutions?
  
   --
   Regards,
  
   Rogério (_rogerio_)
  
   [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
[Twitter:
   http://twitter.com/ararog]
  
   Faça a diferença! Ajude o seu país a crescer, não retenha
 conhecimento,
   distribua e aprenda mais.
   (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)
  
 
 
 
  --
  Matthias Wessendorf
 
  blog: http://matthiaswessendorf.wordpress.com/
  sessions: http://www.slideshare.net/mwessendorf
  twitter: http://twitter.com/mwessendorf
 
 
 
  --
  Regards,
 
  Rogério (_rogerio_)
 
  [Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]
  [Twitter:
  http://twitter.com/ararog]
 
  Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
  distribua e aprenda mais.
  (http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)
 



 --
 Matthias Wessendorf

 blog: http://matthiaswessendorf.wordpress.com/
 sessions: http://www.slideshare.net/mwessendorf
 twitter: http://twitter.com/mwessendorf




-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: JSF for mobile device WAP/WML?

2008-09-27 Thread Rogerio Pereira
I'm not sure about the current status of wml renderkit of myfaces but you
have mobilesfaces as an option too:

http://www.ericsson.com/mobilityworld/sub/open/technologies/open_development_tips/tools/mobilefaces_src_code_lib

2008/9/27 Dave [EMAIL PROTECTED]

 Hello, I am using JSF myfaces.  I got requirement to extend our current JSF
 app to mobile device such cell phone.  Does JSF support WAP/WML?  is there
 any tools?  Thanks for advice.

 Dave




-- 
Regards,

Rogério (_rogerio_)

[Blog: http://faces.eti.br]  [Sandbox: http://bmobile.dyndns.org]  [Twitter:
http://twitter.com/ararog]

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais.
(http://faces.eti.br/2006/10/30/conhecimento-e-amadurecimento)


Re: How does t:saveState work?

2008-04-10 Thread Rogerio Pereira
saveState never save objects in session, this component is used to
avoid session overload, saveState serializes all objects somewhere in
you filesystem.

2008/4/10, Nitin Deshmukh [EMAIL PROTECTED]:
 Hi,

  I am trying to find out how saveState works? does it
  save objects in the session or keeps it in a hidden
  variable or what does it do?

  any guidance or pointing in the right direction will
  be helpful.

  Thanks,

 Nitin


  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com



-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha
conhecimento, distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: About Portlets 2.0 and JSF

2008-03-06 Thread Rogerio Pereira
 mapped PRP Expressions (call the getters) and for 
 each
that yields a result different then what is in the request -- return a new
PRP/value.



 Scott O'Bryan wrote:

 There is going to be a spec covering this as part of JSR-301, but although
 it's well under design, there is not a public draft released yet.  We are
 trying to get the 168 bridge out first.

 Scott

 Rogerio Pereira wrote:

 Hi guys!

 I saw the list of speakers at JSFDays and the topics to be discussed, I'm
 specially interested about portlets and jsf topic because I have been
 working on portlets recently, I could use jsf and facelets without any
 problems on liferay and some others portal implementations but now I need to
 use the event mechanism as defined in JSR-286, how can we handle this kind
 of feature when using jsf as framework to develop portlets? My first thought
 is related with some kind of interface and can used to indicate which beans
 will publish/listen portlets events.

 Right now we have JBoss Portlet Container 2.0 as the only portlet
 container that supports JSR-286, I would like to know what you guys think
 about portlets events and jsf topic.

 --
 Yours truly (Atenciosamente),

 Rogério (_rogerio_)
 http://faces.eti.br

 Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
 distribua e aprenda mais. (http://faces.eti.br/?p=45)





-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: About Portlets 2.0 and JSF

2008-03-06 Thread Rogerio Pereira
Thanks Scott and Mike for all support.

2008/3/6, Scott O'Bryan [EMAIL PROTECTED]:

 Rog,

 Keep watch on the mailing list for announcements regarding releases of
 Portlet-Bridge 2.0.  That's the one that will have the eventing support.

 Scott


 Rogerio Pereira wrote:
  Thanks for all answers Mike, I think you are on the right way, I'm
  about start a project that requires the event mechanism as described
  in JSR 286, after some research I found jboss portlet container 2.0 as
  the first usable implementation and now I use it, my first approach
  about jsf and portlet events worked as expected but with a very poor
  implementation (create FacesContext from factory and resolving the
  target managed bean), I'll continue my work on this project using JSP
  and JSTL but I'll create another version in JSF as soon as we have
  portlet events support on JSR 301 implementation.
 
 
  2008/3/6, Michael Freedman [EMAIL PROTECTED]

  mailto:[EMAIL PROTECTED]:

 
  FYI ... here are the preliminary thoughts related to Portlet 2.0
  Coordination features (events and public parameters) that are
  being worked on in the JSR 301 EG -- the plan is to have an Early
  Public Draft and hopefully an basic impl of the RI (MyFaces
  PortletBridge project between mid-April and mid-May.
 
 
Portlet Coordination:  Public Render Parameters
 
  Summary:
  Idea is to map PRPs (and events) as alternative input to models.
  Because JSF doesn't really have concept of render parameters (i.e.
  state not remembered/reflected in the view state/models) the
  bridge makes PRPs look more like events.  I.e. PRPs in JSR 286 are
  resupplied on each request hence the portlet isn't expected to
  retain their state -- rather they merely render using this
  additional information.  In Faces we map directly to the models
  where we expect this state to be preserved @ some scope, or in the
  view state, or in the bridge request scope.  The model mapping is
  accomplished via a new faces-config bridge application-extension.
  The extension names a PRP and defines the associated Faces EL it
  executes.  Received PRPs have the associated set accessor of this
  EL executed.  The get accessors are called at end of lifecycle to
  see if there are new values to be returned.  It will works as
 follows:
 
  PRPs received in an Action:
 

 1. Activate FacesContext/Lifecycle/View/Restore bridge managed
scope (as usual).
 2. Check request parameters for PRPs.  For each PRP execute the

associated set accessor on the EL mapped to this PRP passing
the value of the parameter. As parameters are String only,
the accessors must also be String typed.  I.e. we don't do
type conversion -- in part because we expect the model to
have to distinguish between being updated via a PRP vs.
regular Faces execution -- hence potentially a discrete
accessor for PPRs that then push into the regular model field.

 3. If the portlet has configured an EventHandler call it

passing a well known Event representing
PublicRenderParametersChanged (pass request so handler can
see the PPRs if needed).  This allows event handler to
trigger any needed model updates/recomputations.

 4. Wrap the request to hide PPRs from request(map) during

further processing -- note they are still available if call
the getPublicRenderParameters api directly.

 5. Call lifecycle.execute (ensures that the model values are
pulled into the view)
 6. Process result of action/save bridge request scope as usual

except re-execute all mapped PRP Expressions (call the
getters) and for each that yields a result different then
what is in the request -- return a new PRP/value.  Open
question:  only check those params that were in the request
or all mapped PPRs?  I would argue that we do all and for
any that return null we delete the PPR from the response.
 
  PRPs received in Events:
 

 1. Activate FacesContext/Lifecycle/View/Restore bridge managed

scope (as usual). If no bridge request scope, create one.

 2. Check request parameters for PRPs.  For each PRP execute the

associated set accessor on the EL mapped to this PRP passing
the value of the parameter. As parameters are String only,
the accessors must also be String typed.  I.e. we don't do
type conversion -- in part because we expect the model to
have to distinguish between being updated via a PRP vs.
regular Faces execution -- hence potentially a discrete
accessor for PPRs that then push into the regular model field.

 3. If the portlet has

About Portlets 2.0 and JSF

2008-03-04 Thread Rogerio Pereira
Hi guys!

I saw the list of speakers at JSFDays and the topics to be discussed, I'm
specially interested about portlets and jsf topic because I have been
working on portlets recently, I could use jsf and facelets without any
problems on liferay and some others portal implementations but now I need to
use the event mechanism as defined in JSR-286, how can we handle this kind
of feature when using jsf as framework to develop portlets? My first thought
is related with some kind of interface and can used to indicate which beans
will publish/listen portlets events.

Right now we have JBoss Portlet Container 2.0 as the only portlet container
that supports JSR-286, I would like to know what you guys think about
portlets events and jsf topic.

-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: [OFFTOPIC] JSF Days Vienna

2008-01-11 Thread Rogerio Pereira
I would like to be with you guys someday, but I need earn more money first
because this travel is very expensive for a brazilian citizen.

2008/1/11, Martin Marinschek [EMAIL PROTECTED]:

 Hi *,

 I'd like to repeat my invitation to come to the JSF Days Vienna - the
 program promises to be very interesting, and we have a lot of attendees
 already - we are sure it will be an exciting conference for everyone.

 The 3-day conference costs 100€, and you will meet a lot of people working
 with JSF and technologies around JSF there.

 More info under:

 http://conference.irian.at/

 regards,

 Martin

 --

 http://www.irian.at

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

 Professional Support for Apache MyFaces




-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: Is it possible to use AddResource with my own components?

2008-01-11 Thread Rogerio Pereira
The best solution is ask for permission to use myfaces AddResource code into
your component code.
The resource handling will be standardized in JSF 2.0 (I think).

2008/1/11, [EMAIL PROTECTED] 
[EMAIL PROTECTED]:

  Hi,



 I've written a custom component that requires some Javascript. I have the
 js in an external file but I was hoping to have it included in the tag, kind
 of like the myfaces tags do. I tried using the AddResource class, basically
 looked at the myfaces source and tried to do the same thing, but it fails on
 the component validation. It checks if the package starts with
 org.apache.myfaces.custom… or something like that. I can't really get past
 that unless if I want to rebuild myfaces. Is there a way to get this to work
 externally? Or is there a way to do this I don't know about. For now I have
 to just manually include the script in the JSP pages. This will work, but it
 can lead to complication if someone else is using the tag and neglects to
 add the javascript.



 Thanks

 Matt




-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: JSF Book

2007-11-24 Thread Rogerio Pereira
Nice news! But I hope to very soon because JSF 2.0 is coming, merging some
Facelets features into JSF spec :)

2007/11/23, Cagatay Civici [EMAIL PROTECTED]:

 Also The Definitive Guide to MyFaces and Facelets book is coming
 soon(hopefully).

 On Nov 23, 2007 11:52 PM, Jesse Alexander (KSFH 323) [EMAIL PROTECTED]
 wrote:

  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
 




-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: JSF Book

2007-11-24 Thread Rogerio Pereira
Nice to hear this from an JSF expert, JSF 2.0 will be a big step in JSF
development, I'll be able to create search engine frontends faster than
ever, with a lot of components that can be easily customized. I hope :D

2007/11/24, Matthias Wessendorf [EMAIL PROTECTED]:

 by end of 08, sure!

 On Nov 24, 2007 6:00 PM, Rogerio Pereira [EMAIL PROTECTED] wrote:
  Nice news! But I hope to very soon because JSF 2.0 is coming, merging
 some
  Facelets features into JSF spec :)
 
  2007/11/23, Cagatay Civici [EMAIL PROTECTED] :
 
   Also The Definitive Guide to MyFaces and Facelets book is coming
  soon(hopefully).
  
  
  
   On Nov 23, 2007 11:52 PM, Jesse Alexander (KSFH 323) 
  [EMAIL PROTECTED] wrote:
  
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
   
  
  
 
 
 
  --
  Yours truly (Atenciosamente),
 
  Rogério (_rogerio_)
  http://faces.eti.br
 
  Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
  distribua e aprenda mais. ( http://faces.eti.br/?p=45)



 --
 Matthias Wessendorf

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




-- 
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


About donate drag and drop components to myfaces sandbox

2007-05-31 Thread Rogerio Pereira

Hi guys!

I'll donate my draggable and droppable containers to myfaces sandbox, the
patches will be sent to Jira ASAP!

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


State saving issues

2007-04-17 Thread Rogerio Pereira

Hi guys!

I would like know if someone had problems saving the state of more than 30
beans on server side. If someone had bad experiences, please let me know.

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


loadBundle performance

2007-01-23 Thread Rogerio Pereira

Hi guys!

How myfaces handles resource bundle load using f:loadBundle? MyFaces load
the resource bundle only one time at or tries to load at every page request?

Thanks for any answer,

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


server side state saving and session timeout

2007-01-03 Thread Rogerio Pereira

Hi guys!

Somebody had problems with server side state saving and session timeout,
somebody found a way to handle this situation?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: IRC channel

2006-12-28 Thread Rogerio Pereira

#myfaces at irc.freenode.net

2006/12/28, Michael Ageeb [EMAIL PROTECTED]:


Guys do you have an IRC channel





--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


For all chartcreator users

2006-12-12 Thread Rogerio Pereira

Hi guys!

I'm about starting a work about make jsf-comp chartcreator more
customizable, i would like some input from chartcreator users inside myfaces
community about design, features and volunteers on coding.

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


How can i disable the exception Detected cyclic reference to managedBean mybean?

2006-12-05 Thread Rogerio Pereira

Hi guys!

One of guys that works with me in a project wrote a set of classes to be
used in search engines, this set of classes uses the concept of
publisher/listener to exchange some info between these beans, now we found a
situation where:


  - beanA is publisher and beanB is listerner of beanA.
  - beanB is publisher and beanA is listener of beanB

How can avoid this cyclic reference exception and make my beans working in
the way as we design?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


client state saving issue

2006-12-01 Thread Rogerio Pereira

Hi guys!

How can i compress the viewstate info saved on my page? Right now my pages
has about 152k in size.

Any tips?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: client state saving issue

2006-12-01 Thread Rogerio Pereira

I added:

   context-param
   param-name
   org.apache.myfaces.COMPRESS_STATE_IN_CLIENT
   /param-name
   param-valuetrue/param-value
   /context-param

2006/12/1, David Delbecq [EMAIL PROTECTED]:


Just activate the tranfert compression of the full page inside your
webapp container, this will save you lots of bandwidth.
Alternatively, you can store data server side.

Rogerio Pereira a écrit :
 Hi guys!

 How can i compress the viewstate info saved on my page? Right now my
 pages has about 152k in size.

 Any tips?

 --
 Yours truly (Atenciosamente),

 Rogério (_rogerio_)
 http://faces.eti.br

 Faça a diferença! Ajude o seu país a crescer, não retenha
 conhecimento, distribua e aprenda mais. (http://faces.eti.br/?p=45)





--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


MyFaces subForms

2006-12-01 Thread Rogerio Pereira

Hi guys!

MyFaces subForm works fine with Facelets?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


How to use TreeNodeChecked?

2006-11-29 Thread Rogerio Pereira

Hi guys!

I need use Tree2 with TreeNodeChecked but when i try read the checked
property i'm getting a propertynotfoundexception.

Any ideas about how to fix this?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


iterating over numbers (like c:forEach)

2006-11-24 Thread Rogerio Pereira

Hi guys!

Somebody knows a component where i can iterate over a range of numbers like
this example:

c:forEach begin=3 end=10 var=pageIndex
   h:outputText value=#{pageIndex}/
/c:forEach

i can't use c:forEach in my pages right now because i'm having state saving
issues when the numbers range changes.


--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


somebody uses c:set, c:choose, c:when with myfaces 1.1.5?

2006-11-22 Thread Rogerio Pereira

I tried this here using facelets 1.1.11 and myfaces

http://www.canaljava.com.br/paste/show/339

using the namespace: xmlns:c=http://java.sun.com/jstl/core;

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


MyFaces 1.1.5 and state issue

2006-11-16 Thread Rogerio Pereira

Hi guys!

I build myfaces 1.1.5 today from svn and not i'm getting this error:

No serialized component state found in client request!

Is there a way to fix this?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Rogerio Pereira

Hi!

I found this issue after build myfaces core 1.1.5 from svn sources:

No serialized component state found in client request!

Any ideas about what is happening?

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


Re: MyFaces Core 1.1.5-SNAPSHOT and state issue

2006-11-16 Thread Rogerio Pereira

Thx guys!

2006/11/16, Matthias Wessendorf [EMAIL PROTECTED]:


fixed

On 11/16/06, Cagatay Civici [EMAIL PROTECTED] wrote:
 Hi,

 Matthias and I've identified the problem and working on it now:)

 I dont think there's an issue about that.

 Cagatay

 On 11/16/06, Wendy Smoak [EMAIL PROTECTED] wrote:
  On 11/16/06, Richard Capraro  [EMAIL PROTECTED] wrote:
   Hi Rogerio,
   i have the same problem.
   I manage to fix it, changing this parameter in web.xml
  
   param-name javax.faces.STATE_SAVING_METHOD/param-name
   param-valueserver/param-value
  
   from 'client' to 'server'
  
   Hope it helps you to wait for an official bug fix ;-)
 
  Is there an issue open for the underlying problem?
 
  http://issues.apache.org/jira/browse/MYFACES
 
  --
  Wendy
 




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

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





--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br

Faça a diferença! Ajude o seu país a crescer, não retenha conhecimento,
distribua e aprenda mais. (http://faces.eti.br/?p=45)


outputFormat and html code

2006-11-14 Thread Rogerio Pereira
Hi guys!I have this resouce string:results_details=b{0}/b primeiros resultados de b{1}/b.and this component:h:outputFormat escape=false value=#{appLabel['results_details']} styleClass=ftCheckNormal
 f:param value=#{queryResultBean.documentsPerPage * queryResultBean.page} / f:param value=#{queryResultBean.hitCount} //h:outputFormat 
but when the page is generated i get:b10/b primeiros resultados de b2.094/b.
instead of:10 primeiros resultados de 2.094.
Somebody had this problem before?-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.brFaça a diferença! Ajude o seu país a crescer, não retenha conhecimento, distribua e aprenda mais. (
http://faces.eti.br/?p=45)


Velocity and JSF

2006-10-25 Thread Rogerio Pereira
Hi guys!I would like know if somebody wrote something related with Velocity renderers for JSF components. If yes, is there a url of this stuff?Thanks in advance.-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


Re: can't compile tobago

2006-10-24 Thread Rogerio Pereira
Hmmm, in my case i don't use Java 5...2006/10/23, Bernd Bohmann [EMAIL PROTECTED]:
Hello Rogerio,you need a mvn install in the main directory of Tobago not only in core.See:http://myfaces.apache.org/tobago/getting-started.html
RegardsBerndRogerio Pereira wrote: Hi guys! I'm getting this error when compiling tobago using maven: [ERROR] BUILD FAILURE [INFO] 
 [INFO] A required plugin was not found: Plugin could not be found - check that t he goal name is correct: Unable to download the artifact from any repository Try downloading the file manually from the project website.
 Then, install it using the command:mvn install:install-file -DgroupId=org.apache.myfaces.tobago-DartifactId=ma ven-apt-plugin \-Dversion=1.0.9-SNAPSHOT -Dpackaging=maven-plugin
 -Dfile=/path/to/fileorg.apache.myfaces.tobago:maven-apt-plugin:maven-plugin:1.0.9-SNAPSHOT from the specified remote repositories:central (
http://repo1.maven.org/maven2)org.apache.myfaces.tobago:maven-apt-plugin:maven-plugin:1.0.9-SNAPSHOT from the specified remote repositories:central (
http://repo1.maven.org/maven2)-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


can't compile tobago

2006-10-23 Thread Rogerio Pereira
Hi guys!I'm getting this error when compiling tobago using maven:[ERROR] BUILD FAILURE[INFO] [INFO] A required plugin was not found: Plugin could not be found - check that t
he goal name is correct: Unable to download the artifact from any repositoryTry downloading the file manually from the project website.Then, install it using the command: mvn install:install-file -DgroupId=
org.apache.myfaces.tobago -DartifactId=maven-apt-plugin \ -Dversion=1.0.9-SNAPSHOT -Dpackaging=maven-plugin -Dfile=/path/to/file org.apache.myfaces.tobago:maven-apt-plugin:maven-plugin:1.0.9-SNAPSHOT
from the specified remote repositories: central (http://repo1.maven.org/maven2) org.apache.myfaces.tobago:maven-apt-plugin:maven-plugin:1.0.9-SNAPSHOT
from the specified remote repositories: central (http://repo1.maven.org/maven2)-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br


differences betweens t:stylesheet and s:script

2006-10-18 Thread Rogerio Pereira
Hi guys,Why these both tags can't have the same attribute name for file paths? t:stylesheet has path attribute while s:script has src attribute, like any other component, why not value attribute instead of path or src?
-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Sandbox build on current svn module is broken

2006-10-02 Thread Rogerio Pereira
Hi guys!I'm having problems compiling sandbox stuff, the reason is a bug in a newer component. Any ideas about how solve this?-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br


Re: Sandbox build on current svn module is broken

2006-10-02 Thread Rogerio Pereira
I'm getting this message:C:\Rogerio\projetos\java\myfaces\tomahawk\sandbox\core\src\main\java\org\apache\myfaces\custom\toggle\ToggleOutputLinkRenderer.java:[145,56] replace(char,char)in java.lang.String cannot be applied to (
java.lang.String,java.lang.String)2006/10/2, Gerald Müllan [EMAIL PROTECTED]:
Hi Rogerio,to me current sandbox head works fine; I let ran maven over the stuff,and all seems to work to me.What is the exactly problem? Which component?cheers,GeraldOn 10/2/06, Rogerio Pereira 
[EMAIL PROTECTED] wrote: Hi guys! I'm having problems compiling sandbox stuff, the reason is a bug in a newer component. Any ideas about how solve this?
 -- Yours truly (Atenciosamente), Rogério (_rogerio_)http://faces.eti.br--http://www.irian.at
Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


To tree2 gurus: How keep tree2 nodes closed?

2006-10-02 Thread Rogerio Pereira
Hi guys!I tried clientSideToggle=true and preserveToggle=false but when i open each node and click in a commandLink that just reload the view the tree nodes remains opened, why?Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


Re: [OFFTOPIC] What I wish that JSF 2.0 would be like...

2006-09-26 Thread Rogerio Pereira
Ah! Talk about JSF in the middle of this fest? I'm not sure. :)Someday i'll meet with you guys!2006/9/26, Martin Marinschek [EMAIL PROTECTED]
:Hi there,Ed Burns, Jesse Alexander and me will be heading a discussion on what
our users dreamed JSF 2.0 would be like - on friday, 2006/09/29, inMunich, at the Oktoberfest.So it's a good opportunity for both talking about JSF and drinkingbeer - probably the best of the world. We'll meet up in:
http://www.weisses-brauhaus.de/at 18:00and if you're interested in coming, reply to this mail and I'llinclude you in the reservation.regards,
Martin--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces
-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Re: Authorization via view-handler

2006-09-22 Thread Rogerio Pereira
I created a PhaseListener for this purpose.2006/9/22, Patrick Dreyer [EMAIL PROTECTED]:
Sorry, forgot about the MyFaces wiki...Just found the page about Access FacesContext from Servlet http://wiki.apache.org/myfaces/AccessFacesContextFromServlet
Patrick Dreyer schrieb: Hi Jan Don't do authentication/authorization through a ViewHandler, use a servlet filter instead. Citation from JavaWorld (
http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html): * Use a base backing bean: This solution is simple. However, it ties the backing beans to a specific inheritance hierarchy. * Use a JSF ViewHandler decorator: This way, the security logic is tightly coupled with a specific Web tier technology.
 * Use a servlet filter: A JSF application is no different from other Java-based Web applications. It makes a filter the best place  to handle authentication checking. This way, the authentication logic is decoupled from the Web application.
 Additionally, by using a ServletFilter the configuration keeps in web.xml and it's a snap to force SSL for example. There is an interesting article about page authorization in JSF on 
http://jdj.sys-con.com/read/250254.htm We generally put secured page in different directories (user role dependent) and close the whole directory with a security constraint. I'm pretty sure, you'd like to store authentication/authorization information in a JSF backing bean, thus you'll ask yourself: How to access backing beans in a servlet filter? A quick google search (access jsf backing bean from servlet filter) showed up a very good hit at the first place (
http://www.thoughtsabout.net/blog/archives/33.html). Patrick janw schrieb: Hello, I'd like to use a ViewHandler for authorization.
 I use tiles, so I have already a Viewhandler defined in my application (JspTilesViewHandlerImpl). How can I integrate these two view-handlers? I think I cannot define a second view-handler.
 I know there are frameworks like SecurityFilter, Acegi, but I need only a very simple auth mechanism. Regards, Jan
-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


rendered attribute not working as expect in components in home page of an webapp

2006-09-19 Thread Rogerio Pereira
Hi guys!I have a component in a first page that is only rendered when an conditional EL _expression_ is satiesfied:h:outputText value=Save Topic  'newTopicPanel'); styleClass=txtpq hand rendered=#{
ftSearchResult.resultCount  -1}/But when i do the first request on this page in my webapp the component is still rendered.Any ideas? I'm using MyFaces 1.1.1 in this app.-- 
Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


JSFAttr.SHOW_ROOT_NODE replacement

2006-09-18 Thread Rogerio Pereira
Hi!JSFAttr.SHOW_ROOT_NODE has replaced by something?-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


strange html being printed

2006-09-18 Thread Rogerio Pereira
Hi guys!I can't understand why i'm getting this html output:!-- MYFACES JAVscript type=text/_javascript_ src=""
//--/scriptscript type=text/_javascript_ 
src=/ESPSearchComponents/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11586036/tree2.HtmlTreeRenderer/_javascript_/cookielib.js
!--//--/scriptASCRIPT --I'm using myfaces 1.1.5 built from svn.-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br


Re: strange html being printed

2006-09-18 Thread Rogerio Pereira
I checked the ExtensionsPhaseListener and there's a line breakpoint there, how can i remove this?2006/9/18, Rogerio Pereira [EMAIL PROTECTED]
:Hi guys!I can't understand why i'm getting this html output:
!-- MYFACES JAVscript type=text/_javascript_ src=""
//--/scriptscript type=text/_javascript_ 
src=/ESPSearchComponents/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11586036/tree2.HtmlTreeRenderer/_javascript_/cookielib.js!--
//--/scriptASCRIPT --I'm using myfaces 1.1.5 built from svn.-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


somebody have seen this error?

2006-09-15 Thread Rogerio Pereira
I'm trying to find where this class is being used in my app:javax.faces.FacesException: java.io.NotSerializableException: java.util.RandomAccessSubList
	at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:191)	at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:151)	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState
(HtmlResponseStateManager.java:105)	at org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java:428)	at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:606)
	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:383)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)	at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65)
	at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)	at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)	at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:186)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)	at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)	at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)	at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)	at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)	at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
(Http11Protocol.java:705)	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)	at java.lang.Thread.run
(Unknown Source)Caused by: java.io.NotSerializableException: java.util.RandomAccessSubList	at java.io.ObjectOutputStream.writeObject0(Unknown Source)	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)	at java.io.ObjectOutputStream.writeObject0(Unknown Source)	at java.io.ObjectOutputStream.defaultWriteFields
(Unknown Source)	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)	at java.io.ObjectOutputStream.writeObject0(Unknown Source)	at 
java.io.ObjectOutputStream.writeObject(Unknown Source)	at java.util.ArrayList.writeObject(Unknown Source)	at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(Unknown Source)	at java.lang.reflect.Method.invoke(Unknown Source)	at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)	at java.io.ObjectOutputStream.writeOrdinaryObject
(Unknown Source)	at java.io.ObjectOutputStream.writeObject0(Unknown Source)	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)	at 
java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)	at java.io.ObjectOutputStream.writeObject0(Unknown Source)	at java.io.ObjectOutputStream.writeObject(Unknown Source)	at java.util.ArrayList.writeObject
(Unknown Source)	at 

Re: somebody have seen this error?

2006-09-15 Thread Rogerio Pereira
Thx, but was another cause.2006/9/15, Mike Kienenberger [EMAIL PROTECTED]:
Maybe you're t:saveStating a bean with UIComponents as instancevariables? Declare them as private transient UIComponentcomponentBinding; instead.On 9/15/06, Rogerio Pereira 
[EMAIL PROTECTED] wrote: I'm trying to find where this class is being used in my app: javax.faces.FacesException: java.io.NotSerializableException: java.util.RandomAccessSubList
at org.apache.myfaces.shared_impl.util.StateUtils.getAsByteArray(StateUtils.java:191)at org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:151)at
 org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState (HtmlResponseStateManager.java:105)at org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java
:428)at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:606)at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:383)at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:237)at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:65)at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter
(BaseFilter.java:226)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)at org.apache.catalina.core.ApplicationFilterChain.doFilter (
ApplicationFilterChain.java:157)at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java :186)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)at org.apache.catalina.core.StandardValveContext.invokeNext (StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:520)at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:520)at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:118)at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java
:520)at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109)at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:929)at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection
 (Http11Protocol.java:705)at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java
:683)at java.lang.Thread.run (Unknown Source) Caused by: java.io.NotSerializableException: java.util.RandomAccessSubListat java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)at java.io.ObjectOutputStream.writeSerialData(Unknown Source)at java.io.ObjectOutputStream.writeOrdinaryObject
(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.defaultWriteFields (Unknown Source)at java.io.ObjectOutputStream.writeSerialData
(Unknown Source)at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.writeObject
(Unknown Source)at java.util.ArrayList.writeObject(Unknown Source)at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke
 (Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)at java.io.ObjectOutputStream.writeSerialData(Unknown
 Source)at java.io.ObjectOutputStream.writeOrdinaryObject (Unknown Source)at java.io.ObjectOutputStream.writeObject0(Unknown Source)at java.io.ObjectOutputStream.defaultWriteFields
(Unknown Source)at java.io.ObjectOutputStream.writeSerialData(Unknown Source

overriding resource bundle keys

2006-09-13 Thread Rogerio Pereira
Hi guys!Can i override an resource bundle keys?I mean:menu.properties:login=Loginothermenu.properties:

login=Other Login
and then in my page:h:outputText value=#{loginBundle['login']}/that will return the key value inside othermenu.properties, this is possible?-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-24 Thread Rogerio Pereira
Let's see, it's a question of time and permission from some people.2006/8/23, Wdiaz [EMAIL PROTECTED]:
If these bookshops will be free?xmlns:fbr=http://faces.eti.br/jsfRogerio Pereira escribió: Guys, the correct url is 
http://faces.eti.br/arquivos/test-morefaces.war I can't understand why the teste-morefaces.war can be downloaded since the same doesn't exist anymore on my website. Maybe the hosting provider has a kind of mirror somewhere.
 For the old version that some guys had downloaded, they can test by typing the the url: http://localhost:8080/teste-morefaces/dragandrop.jsf
 2006/8/19, Eurig Jones [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]:
 This doesn't seem to be working on mine (Firefox / Tomcat 5.5.17). I'm not seeing any links Wendy Smoak wrote:  On 8/19/06, Rafael Nami 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:   Rogerio  The war link is broken.  Can't wait to see the power of this combo...
   Try:http://faces.eti.br/arquivos/teste-morefaces.war 
http://faces.eti.br/arquivos/teste-morefaces.war(it's missing  an 'e').  - To unsubscribe, e-mail: 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 -- Yours truly (Atenciosamente), Rogério (_rogerio_) http://faces.eti.br 
 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date: 22/08/2006--Cordialmente
William Diaz PabónCoordinador Técnico de DesarrolloVicerrectoría de Gestión y Desarrollo TecnológicoUniversidad de Pamplona-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


svn build error

2006-08-21 Thread Rogerio Pereira
Hi guys! Somebody got this error while building from svn?C:\Rogerio\projetos\java\myfaces\tomahawk\core\src\test\java\org\apache\myfaces\custom\tree2\AbstractTreeTestCase.java:[79,19] setUp() in org.apache.myfaces.cus
tom.tree2.AbstractTreeTestCase cannot override setUp() in org.apache.shale.test.base.AbstractJsfTestCase; attempting to assign weaker access privileges; was public-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-21 Thread Rogerio Pereira
Updated, if somebody is interested.


Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-20 Thread Rogerio Pereira
Guys the link http://faces.eti.br/arquivos/test-morefaces.war is on. Please enjoy.2006/8/20, Rogerio Pereira 
[EMAIL PROTECTED]:I'm uploading again...
2006/8/20, David Friedman [EMAIL PROTECTED]:








Are you 
looking for the download or a working example of it?
Download: 
http://faces.eti.br/arquivos/teste-morefaces.war

Working Example - I 
have no idea if anyone has it live.

Regards,
David

-Original Message-From: Guy 
Katz [mailto:[EMAIL PROTECTED]]Sent: Sunday, August 20, 2006 2:50 
AMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: 
RE: For all Java developers, Dojo Drag and Drop made easy with JavaServer 
Faces

  
  If someone can please 
  provide a working link that would be great.
  Thanks,
  
  
  
  
  
  From: Rogerio 
  Pereira [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 20, 2006 2:27 
  AMTo: 
  [EMAIL PROTECTED]; MyFaces DiscussionSubject:

 Re: For all Java developers, 
  Dojo Drag and Drop made easy with JavaServer 
  Faces
  
  Guys, the correct url is 

http://faces.eti.br/arquivos/test-morefaces.war 
  I can't understand why the teste-morefaces.war can be downloaded since 
  the same doesn't exist anymore on my website. Maybe the hosting provider has a 
  kind of mirror somewhere. For the old version that some guys had 
  downloaded, they can test by typing the the url:http://localhost:8080/teste-morefaces/dragandrop.jsf
 
  
  
  2006/8/19, Eurig Jones 

[EMAIL PROTECTED]:
  This doesn't seem to be working on mine 
  (Firefox / Tomcat 5.5.17). I'mnot seeing any linksWendy Smoak 
  wrote: On 8/19/06, Rafael Nami [EMAIL PROTECTED] wrote: 
   Rogerio The war link is broken. 
  Can't wait to see the power of this combo... 
  Try:http://faces.eti.br/arquivos/teste-morefaces.war 
  (it's missing an 
  'e').-To 
  unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]


  -- Yours truly 
  (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br 
  

-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-20 Thread Rogerio Pereira
A little note:1. Doesn't works on Glassfish right now.2. To memorize the dropped content you must supply code for this inside dropListener.2006/8/20, Rogerio Pereira 
[EMAIL PROTECTED]:Guys the link 
http://faces.eti.br/arquivos/test-morefaces.war is on. Please enjoy.2006/8/20, Rogerio Pereira 

[EMAIL PROTECTED]:
I'm uploading again...
2006/8/20, David Friedman [EMAIL PROTECTED]:








Are you 
looking for the download or a working example of it?
Download: 
http://faces.eti.br/arquivos/teste-morefaces.war

Working Example - I 
have no idea if anyone has it live.

Regards,
David

-Original Message-From: Guy 
Katz [mailto:[EMAIL PROTECTED]]Sent: Sunday, August 20, 2006 2:50 
AMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: 
RE: For all Java developers, Dojo Drag and Drop made easy with JavaServer 
Faces

  
  If someone can please 
  provide a working link that would be great.
  Thanks,
  
  
  
  
  
  From: Rogerio 
  Pereira [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 20, 2006 2:27 
  AMTo: 
  [EMAIL PROTECTED]; MyFaces DiscussionSubject:


 Re: For all Java developers, 
  Dojo Drag and Drop made easy with JavaServer 
  Faces
  
  Guys, the correct url is 


http://faces.eti.br/arquivos/test-morefaces.war 
  I can't understand why the teste-morefaces.war can be downloaded since 
  the same doesn't exist anymore on my website. Maybe the hosting provider has a 
  kind of mirror somewhere. For the old version that some guys had 
  downloaded, they can test by typing the the url:http://localhost:8080/teste-morefaces/dragandrop.jsf
 
  
  
  2006/8/19, Eurig Jones 


[EMAIL PROTECTED]:
  This doesn't seem to be working on mine 
  (Firefox / Tomcat 5.5.17). I'mnot seeing any linksWendy Smoak 
  wrote: On 8/19/06, Rafael Nami [EMAIL PROTECTED] wrote: 
   Rogerio The war link is broken. 
  Can't wait to see the power of this combo... 
  Try:http://faces.eti.br/arquivos/teste-morefaces.war 
  (it's missing an 
  'e').-To 
  unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]



  -- Yours truly 
  (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br 
  

-- Yours truly (Atenciosamente),Rogério (_rogerio_)

http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-20 Thread Rogerio Pereira
3. Only works with MyFaces as JSF implI'll work on fixes for 1 and 32006/8/20, Rogerio Pereira [EMAIL PROTECTED]:
A little note:1. Doesn't works on Glassfish right now.2. To memorize the dropped content you must supply code for this inside dropListener.
2006/8/20, Rogerio Pereira 

[EMAIL PROTECTED]:Guys the link 

http://faces.eti.br/arquivos/test-morefaces.war is on. Please enjoy.2006/8/20, Rogerio Pereira 


[EMAIL PROTECTED]:
I'm uploading again...
2006/8/20, David Friedman [EMAIL PROTECTED]:








Are you 
looking for the download or a working example of it?
Download: 
http://faces.eti.br/arquivos/teste-morefaces.war

Working Example - I 
have no idea if anyone has it live.

Regards,
David

-Original Message-From: Guy 
Katz [mailto:[EMAIL PROTECTED]]Sent: Sunday, August 20, 2006 2:50 
AMTo: MyFaces Discussion; [EMAIL PROTECTED]Subject: 
RE: For all Java developers, Dojo Drag and Drop made easy with JavaServer 
Faces

  
  If someone can please 
  provide a working link that would be great.
  Thanks,
  
  
  
  
  
  From: Rogerio 
  Pereira [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 20, 2006 2:27 
  AMTo: 
  [EMAIL PROTECTED]; MyFaces DiscussionSubject:



 Re: For all Java developers, 
  Dojo Drag and Drop made easy with JavaServer 
  Faces
  
  Guys, the correct url is 



http://faces.eti.br/arquivos/test-morefaces.war 
  I can't understand why the teste-morefaces.war can be downloaded since 
  the same doesn't exist anymore on my website. Maybe the hosting provider has a 
  kind of mirror somewhere. For the old version that some guys had 
  downloaded, they can test by typing the the url:http://localhost:8080/teste-morefaces/dragandrop.jsf
 
  
  
  2006/8/19, Eurig Jones 



[EMAIL PROTECTED]:
  This doesn't seem to be working on mine 
  (Firefox / Tomcat 5.5.17). I'mnot seeing any linksWendy Smoak 
  wrote: On 8/19/06, Rafael Nami [EMAIL PROTECTED] wrote: 
   Rogerio The war link is broken. 
  Can't wait to see the power of this combo... 
  Try:http://faces.eti.br/arquivos/teste-morefaces.war 
  (it's missing an 
  'e').-To 
  unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]




  -- Yours truly 
  (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br 
  

-- Yours truly (Atenciosamente),Rogério (_rogerio_)


http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)

http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br

-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Re: the biggest myfaces webapp

2006-08-20 Thread Rogerio Pereira
Maybe client state saving with JBossSerialization can increase the performance.2006/8/20, Rogerio Pereira [EMAIL PROTECTED]:
Have u done tests with client side state saving using compression?
2006/8/20, Frederic Auge [EMAIL PROTECTED]:

Hi guys,We had big performance problems with client state saving.Changing to server helped a lot ! x4-5 improvement for serving pages !We don't have any problems anymore. Our average load is 30requests/min 24/24 7/7
And we could take a lot more (hopefully)We use a profiler when we have a specific performance problem(understand a page that is slow). It's more likely to be in thebusiness tier than the web tier.

Regards,FredOn 8/20/06, Yee CN [EMAIL PROTECTED] wrote:
 I am in the same boat – a distributed application that I was building has to
 be converted to become centralized, so the number of users suddenly becomes at least an order of magnitude larger. I am thinking memory might not be such a big issue as a multi-CPU Intel
 boxes with 8GB of memory is getting rather common place nowadays. But I am a bit concerned about view rendering time. A while back somebody posted a benchmark which I recalled was showing that JSF pages took about 4 times
 longer to render, and there were some non-linear issues as well. In principle faster CPU plus cheaper boxes for clustering should handle the problem, but I am dying for someone to share his/her experience on large
 scale deployment of JSF. I have no regret so far – after the initial learning curve the faster development/prototype time has been a great advantage to our team.

 Regards Yee From: Rogerio Pereira [mailto:
[EMAIL PROTECTED]
]Sent: Sunday, August 20, 2006 7:31 AMTo: MyFaces DiscussionSubject: Re: the biggest myfaces webapp Thanks guys, this kind of discussion is very useful.
 2006/8/19, Kevin Galligan [EMAIL PROTECTED]:
 If memory is the major concern, I think the real unknown is the view state
 storage.To be honest, this is an unknown for me also.Currently I'm keeping that stuff on the client.If the page download size isn't too big, I think this is the direction I'd stick with even in production, as I don't
 have to worry about old views getting dumped from the session in case the user really digs the back button.But, in general, I'm not sure what the memory issue would be beyond the view storage.I'm anti-session for most things anyway, besides carrying
 around some standard user info.I'm planning to rely on smart coding, tuning hibernate settings (which, obvisouly, requires the use of hibernate) and, possibly, turning on the hibernate cache for certain parts of the data.
However, I do understand your concern.I'm sort of in the same boat.I'm implementing an app and I'm not sure how many people will be logging into it.I don't know what the performance will really be like.I still think
 there is some technical understanding of the JSF view that I've ignored until now that would probably help.If anybody happens to have a good page to point to that discusses the view, please forward that along.
What kind of box will this be running on?I assume if this is a production app that you might have a few hundred megs of memory available for the application to play in?Making that assumption, you've got about a meg per
 user.Right?While compared to some other technologies, a meg per user is a lot, but at the same time, hardware is cheap compared to developer time. Again, the big question mark in my mind is the view storage.If it were
 stored on the client, in theory you wouldn't need much session space besides authentication, if any.Right? On 8/19/06, Eurig Jones  

[EMAIL PROTECTED] wrote: As far as I'm aware after the research I've done I haven't seen anylarge websites done in JSF.I'm in the same boat as you. I'm developing an application which
potentially could have 200/300 users concurrently logged on and this isa worry for me too. I'm trying to code the application as carefully as Ipossibly can with the fact that LOTS of users will be logged on at the
same time, always in the back of my mind. Like with any web framework,you need to code the application in best possible practices and asefficiently as possible (avoid using session beans as much as you
possibly can. etc.)My concerns are memory usage more than anything. But this is a concernnot with JSF but with developing my site with Tomcat and J2EE ingeneral. As for performance, to be honest with you, I feel like I'm
sailing into unchartered waters, because I really don't know! I can'thelp looking at PHP/Apache and thinking how efficient and proven it isunder heavy load (And that wasn't a call for a start on a PHP/Java debate).
Regards,EurigRogerio Pereira wrote: Somebody has myfaces webapps with more than 50/100 concurrent users? -- Yours truly (Atenciosamente),
 Rogério (_rogerio_)--Yours truly (Atenciosamente),Rogério (_rogerio_)

http://faces.eti.br-- Yours truly (Atenciosamente),Rogério (_rogerio_)
http://faces.eti.br

-- Yours truly

For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-19 Thread Rogerio Pereira
I created a JavaServer Faces component that uses some cool features of Dojo, this webapp runs very well under tomcat 5.5 and shows the power of JavaServer Faces / Dojo development.You can grab here: 
http://faces.eti.br/arquivos/test-morefaces.warPut this war in $TOMCAT_HOME/webapps folder an then type 
http://localhost:8080/test-morefacesYou will find three links, click in the third link, you can click in the others too if u wish. :)Nice weekend for all!-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.brNo war! Peace for all! Just coding and love.


Re: the biggest myfaces webapp

2006-08-19 Thread Rogerio Pereira
Thanks guys, this kind of discussion is very useful.2006/8/19, Kevin Galligan [EMAIL PROTECTED]:
If memory is the major concern, I think the real unknown is the view state storage. To be honest, this is an unknown for me also. Currently I'm keeping that stuff on the client. If the page download size isn't too big, I think this is the direction I'd stick with even in production, as I don't have to worry about old views getting dumped from the session in case the user really digs the back button.
But, in general, I'm not sure what the memory issue would be beyond the view storage. I'm anti-session for most things anyway, besides carrying around some standard user info. I'm planning to rely on smart coding, tuning hibernate settings (which, obvisouly, requires the use of hibernate) and, possibly, turning on the hibernate cache for certain parts of the data.
However, I do understand your concern. I'm sort of in the same boat. I'm implementing an app and I'm not sure how many people will be logging into it. I don't know what the performance will really be like. I still think there is some technical understanding of the JSF view that I've ignored until now that would probably help. If anybody happens to have a good page to point to that discusses the view, please forward that along.
What kind of box will this be running on? I assume if this is a production app that you might have a few hundred megs of memory available for the application to play in? Making that assumption, you've got about a meg per user. Right? While compared to some other technologies, a meg per user is a lot, but at the same time, hardware is cheap compared to developer time. Again, the big question mark in my mind is the view storage. If it were stored on the client, in theory you wouldn't need much session space besides authentication, if any. Right?
On 8/19/06, Eurig Jones 
[EMAIL PROTECTED] wrote:
As far as I'm aware after the research I've done I haven't seen anylarge websites done in JSF.I'm in the same boat as you. I'm developing an application whichpotentially could have 200/300 users concurrently logged on and this is
a worry for me too. I'm trying to code the application as carefully as Ipossibly can with the fact that LOTS of users will be logged on at thesame time, always in the back of my mind. Like with any web framework,
you need to code the application in best possible practices and asefficiently as possible (avoid using session beans as much as youpossibly can. etc.)My concerns are memory usage more than anything. But this is a concern
not with JSF but with developing my site with Tomcat and J2EE ingeneral. As for performance, to be honest with you, I feel like I'msailing into unchartered waters, because I really don't know! I can'thelp looking at PHP/Apache and thinking how efficient and proven it is
under heavy load (And that wasn't a call for a start on a PHP/Java debate).Regards,EurigRogerio Pereira wrote: Somebody has myfaces webapps with more than 50/100 concurrent users?

 -- Yours truly (Atenciosamente), Rogério (_rogerio_)

-- Yours truly (Atenciosamente),Rogério (_rogerio_)http://faces.eti.br


Re: define another ResourceHandler

2006-08-18 Thread Rogerio Pereira
Cagatay pointed the Mert solution for me, but how can i use this to generated the css/js import only at html head?2006/8/17, Rogerio Pereira 
[EMAIL PROTECTED]:Hi guys!Is there another context parameter to especify a alternative ResourceHandler? With 
MyFacesResourceHandler i'm getting this error:java.lang.IllegalArgumentException: expected a myfaces custom component class in package org.apache.myfaces.customat org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.validateCustomComponent
(MyFacesResourceHandler.java:75)at org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.init(MyFacesResourceHandler.java:46)at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:391)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeJavascriptAtHeader(HtmlDropableContainerRenderer.java:170)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeBegin
(HtmlDropableContainerRenderer.java:75)at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java
:434)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd
(HtmlGridRendererBase.java:98)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)

at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java
:65)at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:213)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at java.lang.Thread.run(Unknown Source)-- Yours truly (Atenciosamente),
Rogério (_rogerio_)

-- Yours truly (Atenciosamente),Rogério (_rogerio_)


Re: define another ResourceHandler

2006-08-18 Thread Rogerio Pereira
I agree.2006/8/18, Mert Çalışkan [EMAIL PROTECTED]:
the head tag should be placed inside f:view to make it work. But i think thats not a nice solution.Mert..
On 8/18/06, Cagatay Civici [EMAIL PROTECTED]
 wrote:

Hi Rogerio,I dont think importing at head is possible with the phaselistener approach.
Cagatay

On 8/18/06, Rogerio Pereira  [EMAIL PROTECTED]
 wrote: 

Cagatay pointed the Mert solution for me, but how can i use this to generated the css/js import only at html head? 
2006/8/17, Rogerio Pereira  [EMAIL PROTECTED]:




Hi guys!Is there another context parameter to especify a alternative ResourceHandler? With MyFacesResourceHandler i'm getting this error:java.lang.IllegalArgumentException
: expected a myfaces custom component class in package org.apache.myfaces.customat org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.validateCustomComponent(MyFacesResourceHandler.java
:75)
at org.apache.myfaces.renderkit.html.util.MyFacesResourceHandler.init(MyFacesResourceHandler.java:46)at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition


(StreamingAddResource.java:391)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeJavascriptAtHeader(HtmlDropableContainerRenderer.java:170)at br.eti.faces.morefaces.dropablecontainer.HtmlDropableContainerRenderer.encodeBegin
(HtmlDropableContainerRenderer.java:75)at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
(RendererUtils.java:434)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:216)at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd
(HtmlGridRendererBase.java:98)at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java
:242)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSupport.java:239)at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java
:580)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter
(BaseXMLFilter.java:65)at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:226)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)


at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)



at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at java.lang.Thread.run(Unknown Source)
-- Yours truly (Atenciosamente), Rogério (_rogerio_) 

-- Yours truly (Atenciosamente),Rogério (_rogerio_) 

-- Yours truly (Atenciosamente),Rogério (_rogerio_)


More than one org.apache.myfaces.ADD_RESOURCE_CLASS ?

2006-08-18 Thread Rogerio Pereira
Hi guys!Can i have more than org.apache.myfaces.ADD_RESOURCE_CLASS registered on web.xml?-- Yours truly (Atenciosamente),Rogério (_rogerio_)


the biggest myfaces webapp

2006-08-18 Thread Rogerio Pereira
Somebody has myfaces webapps with more than 50/100 concurrent users?-- Yours truly (Atenciosamente),Rogério (_rogerio_)


Re: the biggest myfaces webapp

2006-08-18 Thread Rogerio Pereira
No, just to know.2006/8/18, Gerald Müllan [EMAIL PROTECTED]:
You have performance problems with jsf? :)cheers,GeraldOn 8/18/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Somebody has myfaces webapps with more than 50/100 concurrent users?
 -- Yours truly (Atenciosamente), Rogério (_rogerio_)--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria0043 699 11772506
[EMAIL PROTECTED]-- Yours truly (Atenciosamente),Rogério (_rogerio_)


Re: how to use a new dojo class in myfaces?

2006-08-16 Thread Rogerio Pereira
Ok for sandbox, but what about when i have a dojo enabled component
(collapsiblePanel) and i need to create a new dojo module for my own
dojo class and package this dojo class in my own jar. I couldn't find a
way to pass the location of the resouce inside my jar.
This thing will be for a personal project and can be donated
to myfaces in the future, but not now. So i need find a way to call
DojoUtils.addNamespace and pass the location of my dojo class packaged
as resource in my own jar?2006/8/16, Rogerio Pereira [EMAIL PROTECTED]:
Ok for sandbox, but what about when i have a dojo enabled component (collapsiblePanel) and i need to create a new dojo module for my own dojo class and package this dojo class in my own jar. I couldn't find a way to pass the location of the resouce inside my jar.
This thing will be for a personal project and can be donated to myfaces in the future, but not now. So i need find a way to call DojoUtils.addNamespace and pass the location of my dojo class packaged as resource in my own jar.
2006/8/16, Gerald Müllan 
[EMAIL PROTECTED]:
Yes, werner has written the dojo foundation stuff in sandbox environment.If you add the js file like i suggested, it is automatically packagedinto the sandbox jar.Just test it; Try a mvn install with maven (only in sandbox dir), and
have a look at the jar.The js. file is than automatically loaded into the browser; and thusdojo should be able to understand that file.Does it work now?cheers,GeraldOn 8/16/06, Rogerio Pereira 
[EMAIL PROTECTED] wrote: Is Werner that created the dojo support for myfaces? DojoUtils.addNamespace
 seens the right way, but my only problem is related with location parameter,
 how can i pass the resource folder inside my component jar to this method. 2006/8/16, Rogerio Pereira 
[EMAIL PROTECTED]: 
  H, with DojoUtils.addNamespace i can define my own namespace and then point this namespace to the location that you mentioned for my component dojo class. Thx Gerald.  
  2006/8/16, Gerald Müllan  [EMAIL PROTECTED]:Hi,
 if you contribute the component, it will first go to sandbox.
 So put your custom .js stuff where the other js files for the   components are located; in the resources dir: tomahawk\sandbox\core\src\main\resources\org\apache\myfaces\custom\yourComponentDir
 You can load the js resource than easily via the _javascript_ location   and the extensions filter.   See other renderers as an example, e.g. TableSuggestAjaxRenderer.
 cheers, Gerald On 8/16/06, Rogerio Pereira  
[EMAIL PROTECTED]
  wrote:Hi guys!   I need create a new dojo class that will be use by my component, how can iaccess this class if the same will be packaged in my component jar, or
 imust package in tomahawk-sandbox.jar ?  --Yours truly (Atenciosamente),   Rogério (_rogerio_)
   --   Gerald Müllan   Schelleingasse 2/11   1040 Vienna, Austria   0043 699 11772506   
[EMAIL PROTECTED]--
   Yours truly (Atenciosamente), 
  Rogério (_rogerio_) -- Yours truly (Atenciosamente), Rogério (_rogerio_)--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria
0043 699 11772506[EMAIL PROTECTED]
-- Yours truly (Atenciosamente),Rogério (_rogerio_)

-- Yours truly (Atenciosamente),Rogério (_rogerio_)


Re: Potlets with Tomahawk in Liferay

2006-08-16 Thread Rogerio Pereira
Wiki this please.2006/8/16, David Chandler [EMAIL PROTECTED]:
I'm running Tree2 from Tomahawk 1.1.3 inJetspeed2with server-side expansion so as not to require _javascript_. The ExtensionsFilter is therefore needed only to serve up the image resources needed by Tree2,and image requests are handled through the Faces Servlet, not the portal, so the ExtensionsFilter will run as normal for these requests. However,Tomahawk 
1.1.3 checks to see if the ExtensionsFilter has been configured, which fails in the portal context, but you can disable the check with a web.xml context param. 

So to summarize, you can use Tree2 1.1.3 in a portal without any of the MYFACES-434 patches if

1) You use server-side toggle
2) You configure ExtensionsFilter as normal for the Faces Servlet
3) You disable the ExtensionsFilter configuration check as follows in web.xml:

 context-param param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name 
param-valuefalse/param-value   /context-param 

/dmc
David Chandler
blog: http://turbomanage.wordpress.com
On 8/14/06, Dave Brondsema [EMAIL PROTECTED]
 wrote:
Marcus Smith wrote: Hi, I tried to run Tomahawk components (which require _javascript_) like InputCalendar or tree2 in a Portlet on the Liferay Portal without success.
 On portlet deployment Exceptions are thrown regarding to the ExtensionFilter. I know there is a JIRA entry about this issues and many patches are available. (

http://issues.apache.org/jira/browse/MYFACES-434). Can somebody tell me how to apply which patch to the myfaces src? Has anybody successful deployed portlets using Tomahawk components?

I use some tomahawk components that do not use _javascript_, but thatdoesn't really help you.The MYFACES-434 patches are probablyout-of-date from the current development code and need some tweaking

before they can be used easily.We really need a MyFaces developer who works with portlets.FWIW, I use the popup calendar from 
http://www.jenia.org/ which worksfine with no filter.
--Dave BrondsemaSoftware DeveloperCornerstone University

-- Yours truly (Atenciosamente),Rogério (_rogerio_)


Re: how to use a new dojo class in myfaces?

2006-08-16 Thread Rogerio Pereira
2006/8/16, Werner Punz [EMAIL PROTECTED]:
First of all sorry for having been absent for a whiledue to health reasons. I will try to be more presentin the immediate future.Welcome back. 
The best way, given from what I can remember about the namespace issueis to simply extend the dojo namespace.This however is probably not possible in your case unless you arewilling to roll your own myfaces.
What we did was to bend the resource loading mechanismsmyfaces already had in place to our own namespace withinthe myfaces structure and adjusted our own dojo basedcomponent classes to that namespace (check the code for that
it was more or less a trial and error on my side til thingsstarted to work, due to lack of documentation on this issue back then).The lack of documentation is the sad part. 
I am not entirely sure since I do not know the current statusof the resource loading if stuff like that works from a differentjar as well, you can give it a try however.But as I said it is probably the easiest to just add your
stuff to the dojo namespace, this is the recommendedway by the dojo people for now until the entirenamespacing issue is more or less fixed (rollingyour own namespaces is not fully documentedand not very well working to my knowledge)
I have not checked out the current dojo version in this regardif the entire namespacing issue has been fixed.The resource loading itself works well, but i think that's no chance to have a module in another jar since dojo requires the modules in a relative path from dojo source tree, as you already know, this isn't changed in the last version of myfaces.



how to use a new dojo class in myfaces?

2006-08-15 Thread Rogerio Pereira
Hi guys!I need create a new dojo class that will be use by my component, how can i access this class if the same will be packaged in my component jar, or i must package in tomahawk-sandbox.jar ?
-- Yours truly (Atenciosamente),Rogério (_rogerio_)


how retrive the view state input hidden value?

2006-08-14 Thread Rogerio Pereira
Hi guys!I need retrieve the viewstate value from the inputHidden field and use dojo.io.bind to send this data, what's the best way to retrieve the id of this info? Using JS or what?-- Yours truly (Atenciosamente),
Rogério (_rogerio_)


which dojo version is packaged into sandbox?

2006-08-13 Thread Rogerio Pereira
Hi guys!Somebody knows what is the dojo version packaged on sandbox? The upgrade to the latest version is possible?-- Yours truly (Atenciosamente),Rogério


Re: which dojo version is packaged into sandbox?

2006-08-13 Thread Rogerio Pereira
I'm having some problems with dnd stuff, i can't get the id of dragObject, the onDragEnd is never called and some other issues, do you know some examples about dojo dnd?2006/8/13, Gerald Müllan 
[EMAIL PROTECTED]:Hi,it`s currently the previous version before 
0.3. We wanted to wait till0.3.1 (because there are many bugfixes between these two versions) andpackage the new dojo stuff into sandbox.Werner wanted to do this migration but still got no time to do the work.
cheers,GeraldOn 8/13/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Hi guys! Somebody knows what is the dojo version packaged on sandbox? The upgrade to
 the latest version is possible? -- Yours truly (Atenciosamente), Rogério--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria0043 699 11772506
[EMAIL PROTECTED]-- Yours truly (Atenciosamente),Rogério


Re: Ajax Compnents

2006-08-11 Thread Rogerio Pereira
The components on sandbox has WIP (Work in Progress) status and takes some time to be feature complete, as options i can point ajax4jsf, ajaxanywhere, jsf-extensions and icefaces.2006/8/11, Gerald Müllan 
[EMAIL PROTECTED]:Hi,are you using client-side state saving? (have a look at your 
web.xml)Some of the components may only work with server-side state saving.Apart from this point, there are no special requirements.cheers,GeraldOn 8/11/06, Robert Locklear 
[EMAIL PROTECTED] wrote: What are the requirements for using the Ajax components form the sandbox? I'm trying into to work them in but I just keep getting the spinning clock
 that never ends. I see the actions on the server side but the client never updates. HtmlCommandButtonAjax HtmlSelectManyCheckboxAjax HtmlSelectOneRadioAjax
 InputSuggestAjax InputTextAjaxRegards, Robert--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria
0043 699 11772506[EMAIL PROTECTED]-- Yours truly (Atenciosamente),Rogério


Re: Tomahawk tree2 in portlet

2006-08-09 Thread Rogerio Pereira
If u need use tomahawl components in portlets environment u must take a look in this jira entry:http://issues.apache.org/jira/browse/MYFACES-434
2006/8/9, Pfau, Oliver [EMAIL PROTECTED]:





Hi,

I try to use the 
tree2 tomahawk component in a portlet. But the necessary extensionsListener has 
no affect. It is declared in the web.xml of my portlet. What can I do ? I don't 
want to declare it in the web.xml of the portal because portlets can use 
different myfaces version.

Thanks
Oliver

-- Yours truly (Atenciosamente),Rogério


Re: trinidad and portlets

2006-08-08 Thread Rogerio Pereira
Please post the stacktrace, some JSF components has problems with resouces to be added other has some problems with RENDER_RESPONSE phase (ServletResponse x PortletResponse) issues. Right now the only portlet container capable to handle RENDER_RESPONSE phase better is IBM WebSphere portal since the cast from PortletResponse to ServletResponse is possible.
2006/8/8, Nicolas Kalkhof [EMAIL PROTECTED]:
hi there,does anyone know if jsr168 portlets can handle trinidad(ADF Faces) elements? so far i wasnŽt sucessfull trying to integrate them into portlets because of problems with the render kit (faces renderer).
regards_Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071distributionid=0071-- Yours truly (Atenciosamente),Rogério


Re: trinidad and portlets

2006-08-08 Thread Rogerio Pereira
I'm not sure if the same hack exists for HttpServletResponse (in Pluto)http://wiki.java.net/bin/view/Portlet/JSR168FAQ#Can_I_get_the_HttpServletRequest
2006/8/8, Nicolas Kalkhof [EMAIL PROTECTED]:
ok, iŽll do that tonight. currently iŽm using pluto 1.1.regards -Ursprüngliche Nachricht- Von: MyFaces Discussion users@myfaces.apache.org
 Gesendet: 08.08.06 13:15:39 An: MyFaces Discussion users@myfaces.apache.org Betreff: Re: trinidad and portletsPlease post the stacktrace, some JSF components has problems with resouces to be added other has some problems with RENDER_RESPONSE phase(ServletResponse x PortletResponse) issues. Right now the only portlet container capable to handle RENDER_RESPONSE phase better is IBM WebSphere portal since the cast from PortletResponse to ServletResponse is possible.
 2006/8/8, Nicolas Kalkhof [EMAIL PROTECTED]: hi there, does anyone know if jsr168 portlets can handle trinidad(ADF Faces) elements? so far i wasnŽt sucessfull trying to integrate them into portlets because of problems with the render kit (faces renderer).
 regards _ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
http://smartsurfer.web.de/?mc=100071distributionid=0071 -- Yours truly (Atenciosamente), Rogério__
XXL-Speicher, PC-Virenschutz, Spartarife  mehr: Nur im WEB.DE Club!Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130
-- Yours truly (Atenciosamente),Rogério


Re: Ajax and Portlets

2006-08-05 Thread Rogerio Pereira
Todd, I tried Ajax4JSF and this one seens be able to receive requests and then tries to render the response but due to large usage of ServletResponse/Request stuff the render phase always fails.The most part of problems related with AJAX stuff is related with ServletResponse/Request beyond the URL portal thing that you mentioned.
I'm checking DWR since yesterday and my first impression about JSF integration makes me see the backing bean working as normal java bean and doesn't makes use of JSF features, or i'm wrong?Thanks,
2006/8/4, Matthias Wessendorf [EMAIL PROTECTED]:
Just a side hint; (never used ajax and jsf in a portlet)Have you tried to ask the apache portal guys?they provide a jsf-portlet bridge for instance.Also I have no idea, what JBoss or others do on that.
-MatthiasOn 8/3/06, Rogerio Pereira [EMAIL PROTECTED] wrote: Any sucess reports? -- Yours truly (Atenciosamente),
 Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorfmail: mwessendorf-at-gmail-dot-com
-- Yours truly (Atenciosamente),Rogério


MyFaces and AjaxAnywhere

2006-08-03 Thread Rogerio Pereira
Hi guys,Somebody got this error with MyFaces and AjaxAnywhere?java.lang.NullPointerException at org.ajaxanywhere.jsf.ZoneUIComponent.isRefreshZone(ZoneUIComponent.java:143) at org.ajaxanywhere.jsf.ZoneUIComponent.noIncludedSubZones
(ZoneUIComponent.java:125) at org.ajaxanywhere.jsf.ZoneUIComponent.canSkipRendering(ZoneUIComponent.java:101) at org.ajaxanywhere.jsf.ZoneUIComponent.encodeBegin(ZoneUIComponent.java:34) at javax.faces.webapp.UIComponentTag.encodeBegin
(UIComponentTag.java:464) at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:360) at org.ajaxanywhere.jsf.ZoneJSFTag.doEndTag(ZoneJSFTag.java:110) at org.apache.jsp.teste_jsp._jspx_meth_aa_zoneJSF_0
(teste_jsp.java:214) at org.apache.jsp.teste_jsp._jspx_meth_h_form_0(teste_jsp.java:159) at org.apache.jsp.teste_jsp._jspx_meth_f_view_0(teste_jsp.java:114) at org.apache.jsp.teste_jsp._jspService(teste_jsp.java:75)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java
:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward
(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java
:416) at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service
(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)I´m using myfaces 1.1.5 and AjaxAnywhere 1.2 RC1
-- Yours truly (Atenciosamente),Rogério


Ajax and Portlets

2006-08-03 Thread Rogerio Pereira
Any sucess reports?-- Yours truly (Atenciosamente),Rogério


Re: Ajax - toggle display/edit mode?

2006-08-03 Thread Rogerio Pereira
Better, why not try ajax4jsf?https://ajax4jsf.dev.java.net2006/8/3, Gerald Müllan [EMAIL PROTECTED]
:Hi,I think you can not achieve your goal with the sandbox ajax components.
What is about using AjaxAnywhere in combination with this tomahawkcomponent attributeand binding it against a value model which is updated with the help of AA?cheers,GeraldOn 8/3/06, John Ruffin 
[EMAIL PROTECTED] wrote: Ideally, what I want to do is use the displayValueOnly input component attribute to flip between display and edit modes: displayValueOnly=#{
searchForm.s2dEditMode} - using Ajax. However, I don't think I can do this using Sandbox input components because they don't have this attribute as the Tomahawk input components do.
 So, my work around is to use rendered=#{searchForm.s2dEditMode} on s:inputText and s:outputText components. I have the following selectBooleanCheckboxAjax: s:selectBooleanCheckboxAjax id=toggle1
 value=#{searchForm.s2dEditMode}/ Based on the value ofcheckbox (toggle1) I want to render the correct component. I thought something like this would work:
 s:outputText value=#{searchForm.selectedS2D.shiptodeptname} rendered=#{searchForm.s2dEditMode}s:listener on=toggle1/ /s:outputText
 Clicking toggle1 doesn't have any effect on the renedered=* value.Looks like itcauses the get accessor method to fire on the component value binding. Any ideas on how I can acheive this display edit mode toggle with an Ajax
 component? -- View this message in context: http://www.nabble.com/Ajax---toggle-display-edit-mode--tf2042635.html#a5623427
 Sent from the MyFaces - Users forum at Nabble.com.--Gerald MüllanSchelleingasse 2/111040 Vienna, Austria0043 699 11772506
[EMAIL PROTECTED]-- Yours truly (Atenciosamente),Rogério


Re: I want to contribute

2006-08-03 Thread Rogerio Pereira
Hi dude,To work on MyFaces as a commiter you must send a lot of patches and help answering some question before your name goes to MyFaces team to be voted as commiter candidate.
2006/8/3, Dudu [EMAIL PROTECTED]:
Hi, I want to contribute with Trindad projectascommiter, but I never worked in a great and open source project...Is already possible, or the Trindad projectwill be merged with tomahawk?When I can find information about how to join in the commiter group?
Thanks 

-- Yours truly (Atenciosamente),Rogério


commandButtonAjax doesn't use ExtensionsFilter to add resources?

2006-08-02 Thread Rogerio Pereira
Hi, I'm getting some problems with commandButtonAjax under portlets and when the exceptions happens i don't see any reference to ExtensionsFilter, why?Thanks for any answer.-- Yours truly (Atenciosamente),
Rogério


DIV Container

2006-08-01 Thread Rogerio Pereira
Marcio,Estava pensando no assunto e creio que pelo fato de ser necessário usar _javascript_ não vai ser possível usar Facelets nesse caso, digo isso porque o mesmo arquivo .js vai ser adicionado à página toda vez que o componente for utilizado na página.
Isso não acontece com um componente do myfaces porque o myfaces possui uma estrutura toda pronta para gerenciar recursos externos como scripts que inclusive evitam que o mesmo recurso seja adicionado mais de uma vez à página, como é o caso de scripts e folhas de estilo.
-- Yours truly (Atenciosamente),Rogério


Re: tree2 : ExpandAll and client side toggle

2006-07-31 Thread Rogerio Pereira
Have u tried clientSideToggle=true?2006/7/31, Marcio E Miranda [EMAIL PROTECTED]:













Hi all,



I can't make the expandAll method to work with the
tree2 component. I've checked the sample tomahawk application and noticed
that it's using server side toggling. Is it a requirement? Can I use
expandAll and client side toggling? Does anyone have sample code?



Thanks!



__
Marcio Miranda









-- Yours truly (Atenciosamente),Rogério


Re: tree2 : ExpandAll and client side toggle

2006-07-31 Thread Rogerio Pereira
Take a look here too for a complete tree2 reference:http://wiki.apache.org/myfaces/Tree22006/7/31, Sloan, Noah M 
[EMAIL PROTECTED]:Are you using Facelets?You have to set the attributes differently in that case.
http://wiki.apache.org/myfaces/Use_Facelets_with_TomahawkHere's my tree that uses client side toggling:t:tree2 value=#{tree} var=node
 org.apache.myfaces.tree2.CLIENT_SIDE_TOGGLE=#{true} org.apache.myfaces.tree2.SHOW_ROOT_NODE=#{false} org.apache.myfaces.tree2.PRESERVE_TOGGLE=#{false} org.apache.myfaces.tree2.SHOW_LINES=
#{true} org.apache.myfaces.tree2.SHOW_NAV=#{true}...Facets.../t:tree2-Original Message-From: Marcio E Miranda [mailto:
[EMAIL PROTECTED]]Sent: Mon 31-Jul-06 11:47 AMTo: MyFaces DiscussionSubject: tree2 : ExpandAll and client side toggleHi all,I can't make the expandAll method to work with the tree2 component. I've
checked the sample tomahawk application and noticed that it's usingserver side toggling. Is it a requirement? Can I use expandAll andclient side toggling? Does anyone have sample code?Thanks!
__Marcio Miranda-- Yours truly (Atenciosamente),Rogério


Re: serialize a form bean using portlet bridges

2006-07-31 Thread Rogerio Pereira
I think u are starting to use JSF for portlet development in wrong way, your backing beans doensn't need extends from FacesPortlet.2006/7/31, Nicolas Kalkhof 
[EMAIL PROTECTED]:hi folks,is there a way to serialize a formbean(backingbean) using the myfaces portlet brigde? i need to validate input values during a tabbed pane switch. so far the TabChangeListener seems to fire on every tab switch but the backingbean cannot be serialized and therefore i cannot access the input fields when the TabChangeListener fires.
or is there another way to accomplish thisso far i wasnŽt successful using:public class UserProfileBean extends FacesPortlet implements Serializable, TabChangeListener {...}org.apache.portals.bridges.jsf.PortletExternalContextImpl
 is not serializable.any help is very much apprechiated.best regards,nicolas_Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071distributionid=0071-- Yours truly (Atenciosamente),
Rogério


Re: serialize a form bean using portlet bridges

2006-07-31 Thread Rogerio Pereira
Look this for instructions about how use JSF to create Portlets:http://wiki.apache.org/myfaces/Using_Portlets2006/7/31, Rogerio Pereira 
[EMAIL PROTECTED]:I think u are starting to use JSF for portlet development in wrong way, your backing beans doensn't need extends from FacesPortlet.
2006/7/31, Nicolas Kalkhof 
[EMAIL PROTECTED]:hi folks,
is there a way to serialize a formbean(backingbean) using the myfaces portlet brigde? i need to validate input values during a tabbed pane switch. so far the TabChangeListener seems to fire on every tab switch but the backingbean cannot be serialized and therefore i cannot access the input fields when the TabChangeListener fires.
or is there another way to accomplish thisso far i wasnŽt successful using:public class UserProfileBean extends FacesPortlet implements Serializable, TabChangeListener {...}org.apache.portals.bridges.jsf.PortletExternalContextImpl

 is not serializable.any help is very much apprechiated.best regards,nicolas_Der 
WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071distributionid=0071
-- Yours truly (Atenciosamente),
Rogério

-- Yours truly (Atenciosamente),Rogério


Re: serialize a form bean using portlet bridges

2006-07-31 Thread Rogerio Pereira
My Portlet class is something like this:package br.eti.faces.mail;import java.io.IOException;import javax.portlet.PortletException;import javax.portlet.PortletMode
;import javax.portlet.PortletSession;import javax.portlet.RenderRequest;import javax.portlet.RenderResponse;import javax.portlet.UnavailableException;import org.apache.myfaces.portlet.MyFacesGenericPortlet
;public class MailPortlet extends MyFacesGenericPortlet { private String viewPage = null; private String editPage = null; private String helpPage = null; public void init() throws UnavailableException, PortletException {
  viewPage = (String) this.getInitParameter(ViewPage);  editPage = (String) this.getInitParameter(EditPage);  helpPage = (String) this.getInitParameter(HelpPage);
  super.init(); } public void render(RenderRequest request, RenderResponse response)  throws PortletException, IOException {  PortletSession session = request.getPortletSession
();  PortletMode mode = (PortletMode)session.getAttribute(CurrentPortletMode);  if (mode == null) {   mode = request.getPortletMode();   }  if (!mode.equals(
request.getPortletMode())) {   request.setAttribute(isPortletModeChanged, Boolean.TRUE);  } else {   request.setAttribute(isPortletModeChanged, Boolean.FALSE);
  }  session.setAttribute(CurrentPortletMode, request.getPortletMode());  super.render(request, response); }   protected void setDefaultView() throws UnavailableException {
 this.defaultView = getPortletConfig().getInitParameter(DEFAULT_VIEW); if (defaultView == null) {  this.defaultView = this.viewPage; } if (defaultView == null) {
 String msg = Fatal2: must specify a JSF view id as the default view in portlet.xml; throw new UnavailableException(msg); } }  protected void doEdit(RenderRequest request, RenderResponse response)
 throws PortletException, IOException {  Boolean isPortletModeChanged = (Boolean) request.getAttribute(isPortletModeChanged);  if (isPortletModeChanged.booleanValue()) {   setPortletRequestFlag(request);
   nonFacesRequest(request, response, editPage);   return;  }  facesRender(request, response); } protected void doHelp(RenderRequest request, RenderResponse response)
 throws PortletException, IOException {  Boolean isPortletModeChanged = (Boolean) request.getAttribute(isPortletModeChanged);  if (isPortletModeChanged.booleanValue()) {   setPortletRequestFlag(request);
   nonFacesRequest(request, response, helpPage);   return;  }  facesRender(request, response); } }
And the bean used in the page in View mode is this:package br.eti.faces.mail;import java.io.BufferedReader;import java.io.InputStream;import java.io.InputStreamReader;import java.io.Serializable
;import java.nio.charset.Charset;import java.util.ArrayList;import java.util.Properties;import javax.faces.context.FacesContext;import javax.portlet.PortletPreferences;import javax.portlet.RenderRequest
;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;/*** @author a href="" href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]Rogerio P. Araujo/a
*/public class MailView implements Serializable{ static final long serialVersionUID = 1l;  private static Log log = LogFactory.getLog(MailView.class);  private String  usuario;
 private String  senha;  private ArrayListMensagem mensagens;  private String mensagem;  public MailView() { }  public String verificar()
 {  return null; } public ArrayListMensagem getMensagens() {  return mensagens; } public void setMensagens(ArrayListMensagem mensagens) {  
this.mensagens = mensagens; } public String getSenha() {  return senha; } public void setSenha(String senha) {  this.senha = senha; } public String getUsuario() {
  return usuario; } public void setUsuario(String usuario) {  this.usuario = usuario; } public String getMensagem() {  return mensagem; } public void setMensagem(String mensagem) {
  this.mensagem = mensagem; }}


Advice about StreamingAddResouce changes

2006-07-28 Thread Rogerio Pereira
Hi guys,Basically to get StreamingAddResouce working on all ExternalContext implementations we need change:WritablePositionedInfo.writePositionedInfo(HttpServletResponse response, ResponseWriter writer)
StreamablePositionedInfo.writePositionedInfo(HttpServletResponse response, PrintWriter writer)toWritablePositionedInfo.writePositionedInfo(ExternalContext context, ResponseWriter writer)
StreamablePositionedInfo.writePositionedInfo(ExternalContext context, PrintWriter writer)the first scenario only works on ServletContext, but if we want make some components avaliable on others contexts we need give External context as parameter since this will contain an Context Response implementation, this will make StreamingAddResouce  more generic instead of something Servlet centric.
In the most circunstances the only thing called from context response is encodeURL method, but the correct is FacesContext.getCurrentInstance().getExternalContext().encodeResourceURL(String url);For PortletContexts this will only works on Portlet portals that uses ServletFilters (Jetspeed, Liferay).
Any comments?-- Yours truly (Atenciosamente),Rogério


t:popup and liferay portlets

2006-07-27 Thread Rogerio Pereira
Hi guys,Somebody got this error with t:popup component and liferay?SEVERE: Error Rendering View[/mail-view.xhtml]java.lang.ClassCastException: com.liferay.portlet.RenderResponseImpl at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:479) at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:467) at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition
(StreamingAddResource.java:373) at org.apache.myfaces.component.html.util.StreamingAddResource.addJavaScriptAtPosition(StreamingAddResource.java:391) at org.apache.myfaces.custom.popup.HtmlPopupRenderer.writePopupScript
(HtmlPopupRenderer.java:117) at org.apache.myfaces.custom.popup.HtmlPopupRenderer.encodeEnd(HtmlPopupRenderer.java:64) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:536) at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild
(RendererUtils.java:443) at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChildren(RendererUtils.java:420) at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java
:441) at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.renderColumnBody(HtmlTableRenderer.java:588) at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeColumnChild(HtmlTableRendererBase.java
:299) at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeColumnChild(HtmlTableRenderer.java:496) at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java
:275) at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:123) at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java
:171) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:234) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580) at org.apache.myfaces.lifecycle.LifecycleImpl.render
(LifecycleImpl.java:384) at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:403) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265)
 at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:235) at javax.portlet.GenericPortlet.render(GenericPortlet.java:163) at br.eti.faces.mail.MailPortlet.render(MailPortlet.java:43) at 
com.liferay.portal.shared.servlet.PortletServlet.service(PortletServlet.java:83) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java
:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter
(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286) at org.mortbay.jetty.servlet.Dispatcher.include
(Dispatcher.java:163) at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:289) at com.liferay.portlet.CachePortlet.render(CachePortlet.java:153) at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService
(render_005fportlet_jsp.java:649) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service
(HttpServlet.java:810) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830) at 
org.mortbay.jetty.servlet.jsr77.Jsr77Filter.doFilter(Jsr77Filter.java:77) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch
(WebApplicationHandler.java:471) at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:286) at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:163) at com.liferay.portal.util.PortalUtil.renderPortlet
(PortalUtil.java:925) at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:121) at 

Re: t:popup and liferay portlets

2006-07-27 Thread Rogerio Pereira
I think that i can fix this bug related to t:popup (and others) by changing few things in StreamingAddResource.2006/7/27, Mike Kienenberger [EMAIL PROTECTED]
:On 7/27/06, Martin Marinschek 
[EMAIL PROTECTED] wrote: which replacement do you mean? You mean buffering the HTML file and then adding scripts and styles to the header? With streaming add ressource, we don't do this anymore...
By post-renderResponse phase listener replacement, I mean the phaselistener that replaces the servlet filter. I'm going to call thetranslation that this phase listener does servlet-filter activities
for reference.It seems to me that an end-user (or component writer) cannot create apost-renderResponse phase listener as they have no way of knowing ifthey're in the beforeservlet-filter activities or after
servlet-filter activities part of the phase, and the generated htmlwill look different in each case. On 7/27/06, Mike Kienenberger [EMAIL PROTECTED] wrote:
  On 7/27/06, Martin Marinschek [EMAIL PROTECTED] wrote:   Portlets and the extension filter don't work together.  
   I've been reiterating that we need to change to a phase-listener from   the filter, but there hasbeen no one investing the work so far.   Hey Martin. 
  How will you guarantee that a post-renderResponse phase listener  replacement runs after all of the other post-renderResponse phase  listeners that might expect the rendered data format to be in an
  unprocessed state?   Any time someone suggests that the framework implement something as a  phase-listener, I get nervous since you're adding some non-predictable  behavior based on ordering of the phase-listeners registered at any
  given run.  -- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German
 Professional Support for Apache MyFaces-- Yours truly (Atenciosamente),Rogério


Jetspeed2 and MyFaces

2006-07-25 Thread Rogerio Pereira
Hi guys!Somebody got myfaces portlets working on jetspeed2? The portals-bridges-jsf-1.0.jar is required?-- Yours truly (Atenciosamente),Rogério


Re: Jetspeed2 and MyFaces

2006-07-25 Thread Rogerio Pereira
I could get the portlet rendered, but i could'n call the method in bean and the bean is properly registered. Do u use facelets in your portlets?2006/7/25, Greg Reddin 
[EMAIL PROTECTED]:On Jul 25, 2006, at 9:47 AM, Rogerio Pereira wrote:
 Somebody got myfaces portlets working on jetspeed2? The portals- bridges-jsf-1.0.jar is required?I haven't tried with J2, but I'm working with Liferay.I don't thinkyou need portals-bridges to do this.You can probably just use
MyFacesGenericPortlet.See the wiki page:http://wiki.apache.org/myfaces/Using_PortletsGreg
-- Yours truly (Atenciosamente),Rogério


Jetspeed2, MyFaces and Facelets

2006-07-25 Thread Rogerio Pereira
Anyone has some experience with this combination?-- Yours truly (Atenciosamente),Rogério


ajax and custom css/js files for porlets

2006-07-25 Thread Rogerio Pereira
Somebody could get AJAX support on portlets? Any ideas about how add custom css/js files on page head to use on my portlets?-- Yours truly (Atenciosamente),Rogério


Re: EntityConverter

2006-07-23 Thread Rogerio Pereira
Matthias and Cagatay (Validator man):Sure! I'll add to myfaces wiki.2006/7/23, Cagatay Civici [EMAIL PROTECTED]:
Hi,I'm an hibernate user and cannot think of using hibernate-jsf without an entity converter. We've also written one for our project.

http://www.jroller.com/page/cenkcivici?entry=binding_made_easy_with_jsfAlso I've written a lookup data resolver to load all the data of the given class to a component as select items.As Matze said, a wiki would be great, I'll also add more Rogerio,
Regards,CagatayOn 7/23/06, Matthias Wessendorf
 [EMAIL PROTECTED] wrote:

Since I am not a hibernate user but thinking that can be sorta usfulfor other people,may I ask you to add this stuff to our wiki ?Thanks,On 7/22/06, Rogerio Pereira 

[EMAIL PROTECTED] wrote: Hi guys! I created a EntityConverter that get the value entered by user in a UIInput component and when the form is submited this value is converted to an
 persistence layer entity that you can managed in you bean as u wish, can work with persistence layers that provide a generic way to load entities, e. g. Hibernate session.get(Class, Serializable).
 The only thing that u need to do is create a class that implement EntityLoader (that belongs to EntityConverter package). And inside this class u do this: public Object getEntity(Class type, Serializable id) {
 Session session = HibernateUtil.currentSession(); Object object = session.get(type, id); return object; } and then add this entry to your 
web.xml : context-param param-namebr.eti.faces.entityLoader/param-name param-valuebr.gov.go.tj.scu.util.EntityLoader/param-value

 /context-param using in your page: h:selectOneMenu value=#{bean.selectedEntity}converter=#{entityConverter.entity['package.Entity;id']}
 s:selectItems value=#{bean.entities}var=entity itemLabel=#{ 
entities.name}itemValue=#{entity} /
/h:selectOneMenu note: package.Entity is the full class name of your entity and id is the name of your id property in your entity with their get/set methods reading the submited value in your bean:
 Entity entity = selectedEntity; Uses a little of reflection but tries to do some caching on reflection stuff to enhance performance. -- Yours truly (Atenciosamente),
 Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-- Yours truly (Atenciosamente),Rogério


Re: EntityConverter

2006-07-23 Thread Rogerio Pereira
Wiki entry created.2006/7/23, Rogerio Pereira [EMAIL PROTECTED]:
Matthias and Cagatay (Validator man):Sure! I'll add to myfaces wiki.2006/7/23, Cagatay Civici 
[EMAIL PROTECTED]:
Hi,I'm an hibernate user and cannot think of using hibernate-jsf without an entity converter. We've also written one for our project.

http://www.jroller.com/page/cenkcivici?entry=binding_made_easy_with_jsfAlso I've written a lookup data resolver to load all the data of the given class to a component as select items.As Matze said, a wiki would be great, I'll also add more Rogerio,
Regards,CagatayOn 7/23/06, Matthias Wessendorf
 [EMAIL PROTECTED] wrote:


Since I am not a hibernate user but thinking that can be sorta usfulfor other people,may I ask you to add this stuff to our wiki ?Thanks,On 7/22/06, Rogerio Pereira 


[EMAIL PROTECTED] wrote: Hi guys! I created a EntityConverter that get the value entered by user in a UIInput component and when the form is submited this value is converted to an
 persistence layer entity that you can managed in you bean as u wish, can work with persistence layers that provide a generic way to load entities, e. g. Hibernate session.get(Class, Serializable).
 The only thing that u need to do is create a class that implement EntityLoader (that belongs to EntityConverter package). And inside this class u do this: public Object getEntity(Class type, Serializable id) {
 Session session = HibernateUtil.currentSession(); Object object = session.get(type, id); return object; } and then add this entry to your 
web.xml : context-param param-namebr.eti.faces.entityLoader/param-name param-valuebr.gov.go.tj.scu.util.EntityLoader/param-value

 /context-param using in your page: h:selectOneMenu value=#{bean.selectedEntity}converter=#{entityConverter.entity['package.Entity;id']}
 s:selectItems value=#{bean.entities}var=entity itemLabel=#{ 

entities.name}itemValue=#{entity} /
/h:selectOneMenu note: package.Entity is the full class name of your entity and id is the name of your id property in your entity with their get/set methods reading the submited value in your bean:
 Entity entity = selectedEntity; Uses a little of reflection but tries to do some caching on reflection stuff to enhance performance. -- Yours truly (Atenciosamente),
 Rogério--Matthias Wessendorffurther stuff:blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

-- Yours truly (Atenciosamente),Rogério

-- Yours truly (Atenciosamente),Rogério


about converters

2006-07-21 Thread Rogerio Pereira
Hi guys,The converters only works for selectOneMenus when i send data from page to bean or works when i change the value from bean and then refresh the page?In my case when i call selectOneMenu.setSubmittedValue
(someObject); from a ValueChangeEvent, no conversion is done, this is correct?-- Yours truly (Atenciosamente),Rogério


Re: about converters

2006-07-21 Thread Rogerio Pereira
Oh man sorry, it was a mistake with GMail :)Well i use submitted value because this is the way that i prefer to work with some forms that do intensive use of ValueChangeEvents.
2006/7/21, Mike Kienenberger [EMAIL PROTECTED]:
Rog, keep it on the mailing list, please. :-)I do something similar for my Cayenne entities without problems. I'mnot sure why you'd need the submitted value. getAsObject passes thesubmitted value as an argument, and the return value for getAsString
will be used as the submitted value on rendering.On 7/21/06, Rogerio Pereira [EMAIL PROTECTED] wrote: In my case i'm creating a generic entity converter that returns an hibernate
 entity to use on my bean by calling (MyEntity) selectOneMenu.getSubmittedValue(). I would like to do this: selectOneMenu.setSubmittedValue(myEntity) and when the converter is called the option value is set to entity id, but after your response i think this
 is impossible. 2006/7/21, Mike Kienenberger [EMAIL PROTECTED]:  The submitted value for a UIInput component is the unconverted value, yes.
  Converters get called from processValidations, renderResponse, and  possibly other phases as well (I think the submitted value is  converted to a local value in processValidations (applyValues for
  immediate components) and the backing bean data is converted back to a  string during renderResponse).   On 7/21/06, Rogerio Pereira 
[EMAIL PROTECTED] wrote:   Hi guys, The converters only works for selectOneMenus when i send data from page to   bean or works when i change the value from bean and then refresh the
 page? In my case when i call selectOneMenu.setSubmittedValue (someObject); from a   ValueChangeEvent, no conversion is done, this is correct?  
   --   Yours truly (Atenciosamente), Rogério  -- Yours truly (Atenciosamente), Rogério
-- Yours truly (Atenciosamente),Rogério


can i use sandbox selectItems with an converter?

2006-07-20 Thread Rogerio Pereira
Hi!Can i use the brand new selectItems tag in tomahawk sandbox with an converter?-- Yours truly (Atenciosamente),Rogério


t:dataTable DataModel must exist when using sorting?

2006-07-19 Thread Rogerio Pereira
Hi guys,I have a dataTable that only filled after execute a method on my bean, this table uses sorting using this code:t:dataTable var=item
value=#{bean.results}preserveDataModel=falserenderedIfEmpty=falsesortable=true 
sortColumn=#{bean.sortColumn} sortAscending=#{bean.sortAscending}preserveSort=true
rows=10 t:column defaultSorted=true   f:facet name=header 
   h:outputText value=ID //f:faceth:outputText value=#{
item.id} /  /t:column/t:dataTableand this bean:public abstract class Bean{ //Variaveis de uso interno do bean
 private String  keyword; private String  sortColumn = null; private boolean sortAscending = true; private List  results; ... getters and setters ... public String search()
 { results = new ArrayList(); ... fill results ArrayList with some entity instances ... }}but when i load the page i get this error:java.lang.NullPointerException
: value at javax.faces.component._ComponentChildrenList.checkValue(_ComponentChildrenList.java:93) at javax.faces.component._ComponentChildrenList.add(_ComponentChildrenList.java:61) at org.apache.myfaces.component.html.ext.HtmlDataTable.createSortHeaderComponent
(HtmlDataTable.java:538) at org.apache.myfaces.component.html.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:490) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive
(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580) at org.apache.myfaces.lifecycle.LifecycleImpl.render
(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java
:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source)Any ideas?-- Yours truly (Atenciosamente),Rogério


Re: t:dataTable DataModel must exist when using sorting?

2006-07-19 Thread Rogerio Pereira
The real problem is, i have columns that doesn´t have the header facet.2006/7/19, Rogerio Pereira [EMAIL PROTECTED]:
Hi guys,I have a dataTable that only filled after execute a method on my bean, this table uses sorting using this code:
t:dataTable var=item
value=#{bean.results}preserveDataModel=falserenderedIfEmpty=falsesortable=true 
sortColumn=#{bean.sortColumn} sortAscending=#{bean.sortAscending}preserveSort=true
rows=10 t:column defaultSorted=true   f:facet name=header 
   h:outputText value=ID //f:faceth:outputText value=#{

item.id} /  /t:column/t:dataTableand this bean:public abstract class Bean{ //Variaveis de uso interno do bean
 private String  keyword; private String  sortColumn = null; private boolean sortAscending = true; private List  results; ... getters and setters ...
 public String search()
 { results = new ArrayList(); ... fill results ArrayList with some entity instances ... }}but when i load the page i get this error:java.lang.NullPointerException

: value at javax.faces.component._ComponentChildrenList.checkValue(_ComponentChildrenList.java:93) at javax.faces.component._ComponentChildrenList.add(_ComponentChildrenList.java:61) at org.apache.myfaces.component.html.ext.HtmlDataTable.createSortHeaderComponent

(HtmlDataTable.java:538) at org.apache.myfaces.component.html.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:490) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)

 at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive

(ComponentSupport.java:239) at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580) at org.apache.myfaces.lifecycle.LifecycleImpl.render

(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter

(ApplicationFilterChain.java:173) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java

:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke

(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke

(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection

(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java

:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source)Any ideas?-- Yours truly (Atenciosamente),
Rogério

-- Yours truly (Atenciosamente),Rogério


  1   2   3   >