Re: tr:inputDate

2007-09-15 Thread Leonardo Uribe
  and also if i click the first available date (in this case 16/09/2007),
 it populates the field with 15/09/2007.



I remember this issue. Are you using java.sql.Date as the type for the
property in the bean? I just changed it for java.util.Date and
all works well for me.

Regards

Leonardo Uribe


Re: Tomahawk Examples and MyFaces 1.2

2007-09-20 Thread Leonardo Uribe
You don't need configure myfaces listener

listener
listener-classorg.apache.myfaces.webapp.StartupServletContextListener
/listener-class
/listener

with myfaces 1.2.0

Probe remove this listener and see what happens

regards

Att: Leonardo Uribe


[ANNOUNCE] MyFaces Core v2.0.0-beta Release

2010-02-01 Thread Leonardo Uribe
 of PreJsf2ExceptionHandlerImpl for each call to 
getExceptionHandler()
   * [MYFACES-2487] - DeltaList does not deal correctly with transient 
objects
   * [MYFACES-2493] - ViewMetadata facelets compiler should not output 
DTD, ?xml or any UIInstruction outside f:metadata

   * [MYFACES-2494] - Component branches saved with PSS needs to be wrapped
   * [MYFACES-2496] - Provide a method to find out if a facelets 
TagHandler has children or not
   * [MYFACES-2505] - ComponentHandler.isNew requires deal with 
composite components


regards

Leonardo Uribe


[ANNOUNCE] MyFaces Core v2.0.0-beta-2 Release

2010-02-19 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 2.0.0-beta-2.


MyFaces Core is a JavaServer(tm) Faces 2.0 implementation as specified 
by JSR-314.


MyFaces Core 2.0.0-beta-2 is available in both binary and source 
distributions.


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

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


Release Notes - MyFaces Core - Version 2.0.0-beta-2

Bug

   * [MYFACES-2480] - @ResourceDependencies does not work on custom 
behaviors

   * [MYFACES-2500] - ResponseWriter clone should not include itself
   * [MYFACES-2507] - onClick on commandLink does not trigger loading 
of required jsf.js
   * [MYFACES-2516] - Allow any child for f:event in the case of a 
PreRenderViewEvent

   * [MYFACES-2517] - Problem with flash and GET
   * [MYFACES-2520] - UnsupportedOperationException when launching 
Trinidad 2 w/ MyFaces2 in Jetty

   * [MYFACES-2522] - f:event wrong attribute name
   * [MYFACES-2525] - Split javax.faces package in OSGi
   * [MYFACES-2526] - javax.faces.view.facelets.ResourceResolver support
   * [MYFACES-2527] - Support for decorator design pattern: RenderKit(s)
   * [MYFACES-2530] - ActionSourceRule does not deal with jsf 1.1 
ActionSouce instances
   * [MYFACES-2532] - getClientId() should not be called from listener 
registering tree changes on DefaultFaceletsStateManagementStrategy and 
PostAddToViewEvent
   * [MYFACES-2533] - FaceletViewDeclarationLanguage call 
StateManager.saveView() before write document
   * [MYFACES-2534] - ComponentSupport.addFacet adds a panel when there 
is only one component as a child
   * [MYFACES-2535] - view-param on navigation case redirects not being 
handled properly
   * [MYFACES-2537] - FacesConfigurator.sortRelativeOrderingList() 
algorithm is broken trying to resolve some examples

   * [MYFACES-2540] - Facelets server state saving does not work
   * [MYFACES-2541] - Support for actionlistener method without 
ActionEvent parameter

   * [MYFACES-2544] - UIViewRoot skips uncorrectly encodeBegin
   * [MYFACES-2547] - FacesConfigurator absolute ordering does not 
handle files with no name correctly
   * [MYFACES-2551] - Set charset=iso-8859-1 using f:view in facelets 
page makes current page not being rendered
   * [MYFACES-2553] - Handle MethodExpressions on composite:attribute 
correctly
   * [MYFACES-2556] - FaceletViewDeclarationLanguage should use 
javax.faces.event.ActionEvent instead of java.awt.event.ActionEvent
   * [MYFACES-2557] - AbortProcessingExceptions must be handled by the 
ExceptionHandler
   * [MYFACES-2558] - composite:attributes action, actionListener, 
validator and valueChangeListener don't need the attribute method-signature


Improvement

   * [MYFACES-2510] - Remove RendererUtils.NOTHING
   * [MYFACES-2545] - ProjectStage can be set via System Property and 
ProjectStage!=Production should create a log entry

   * [MYFACES-2548] - META-INF resource lookup in OSGi environment
   * [MYFACES-2549] - Support for valueChangeListener method without 
ValueChangeEvent parameter


New Feature

   * [MYFACES-2531] - Support for name/library attributes with 
h:commandButton

   * [MYFACES-2542] - Don't throw exception if no SelectItems found

Task

   * [MYFACES-2483] - Find a way to allow c:if work with partial state 
saving enabled
   * [MYFACES-2502] - Component state is lost for composite component 
childs of facets relocated by composite:insertChildren or 
composite:insertFacet
   * [MYFACES-2503] - f:event should support no arg method on listener 
attribute
   * [MYFACES-2511] - Handle 
javax.faces.validator.DISABLE_DEFAULT_BEAN_VALIDATOR correctly
   * [MYFACES-2512] - Ensure invocation of nextHandler.apply() in 
ValidatorTagHandlerDelegate when in wrapping-mode
   * [MYFACES-2514] - An empty default-validators in faces-config 
should disable default validators
   * [MYFACES-2518] - BeanValidator should not be installed if bean 
validation is not available
   * [MYFACES-2519] - f:event could be registered twice if it is child 
of UIViewRoot
   * [MYFACES-2524] - Change ExternalSpecifications to enable using it 
in automated tests
   * [MYFACES-2538] - Remove resourceVersion and libraryVersion from 
resource identifiers


regards,

Leonardo Uribe


Re: Request class is an empty placeholder

2010-02-25 Thread Leonardo Uribe
Hi

It is a known issue, so you can take a look at MYFACES-2434 too.

http://issues.apache.org/jira/browse/MYFACES-2434
http://issues.apache.org/jira/browse/MYFACES-2520

regards,

Leonardo Uribe

2010/2/25 Jakob Korherr jakob.korh...@gmail.com

 Hi,

 Are you using the latest versions of MyFaces Core and Trinidad? There
 already has been some work on this issue (see MYFACES-2520 for details) and
 this should be fixed.

 Regards,
 Jakob

 2010/2/25 navnath29 kumbhar.navn...@gmail.com

 
  Hi there,
 
  I am trying to implement jsf in my existing java project.
  So I have added required jar files and update web.xml
  When I run server I found out error something like this
 
  java.lang.UnsupportedOperationException: This request class is an empty
  placeholder
 at
 
 
 org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletReq
  uest.java:56)
 at $Proxy0.getContentType(Unknown Source)
 at
 
 
 javax.servlet.ServletRequestWrapper.getContentType(ServletRequestWrapper.java:134)
 at
 
 
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.getRequestContentType(Servl
  etExternalContextImpl.java:322)
 at
 
 
 org.apache.myfaces.trinidad.util.ExternalContextUtils.getContentType(ExternalContextUtils
  .java:341)
 at
 
 
 org.apache.myfaces.trinidadinternal.share.util.MultipartFormHandler.isMultipartRequest(Mu
  ltipartFormHandler.java:57)
 at
 
 
 org.apache.myfaces.trinidadinternal.config.upload.FileUploadConfiguratorImpl.beginRequest
  (FileUploadConfiguratorImpl.java:109)
 at
 
 
 org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._startConfiguratorServi
  ceRequest(GlobalConfiguratorImpl.java:532)
 at
 
 
 org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest(GlobalConf
  iguratorImpl.java:211)
 at
 
 
 org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(Glob
  alConfiguratorImpl.java:327)
 at
 
 
 org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init
  (FacesContextFactoryImpl.java:90)
 at
 
 
 org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(Faces
  ContextFactoryImpl.java:68)
 at
 
 
 org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFaces
  Initializer.java:140)
 at
 
 
 org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.jav
  a:109)
 at
 
 
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServlet
  ContextListener.java:155)
 at
 
 
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
 at
  org.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
 at
 
 
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at
  org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
 at
  org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
 at
 
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
 at
 
 
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
 at
  org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
 at
  org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
 at
 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
 at
 
 
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at
  org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
 at
  org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at
  org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at
  org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
  Feb 25, 2010 4:43:51 PM
 org.apache.myfaces.webapp.AbstractFacesInitializer
  initFaces
  SEVERE: An error occured while initializing MyFaces: This request class
 is
  an empty placeholder
  java.lang.UnsupportedOperationException: This request class is an empty

Re: [GSOC] HTML5 Renderkit Start-up

2010-03-02 Thread Leonardo Uribe
Hi

I want to ask you some questions with the objective of have a better idea.
I'm on vacations but I feel it is important to make this clear from now. So,
what are you planning:

1. A HTML5 Renderkit of existing components
2. A new component set with target HTML5 and JSF 2.
3. Something different.

Based on on the previous question, you will need utility code that your
components will use it. So where will you take it:

1. A new api (there is myfaces commons utils project so it would be great to
do a clean and stable jsf utility api that other libraries could use it).
2. Just take myfaces shared code as tomahawk or orchestra or portlet bridge.
This means repackage and copy that stuff
3. Take from trinidad or tobago.
4. Something different.

If there is some component creation you will:

1. Only write html 5 components and do not replicate the basic ones.
2. Write all possible components, even if duplicates some existing
components.
3. Something different.

And

1. Use myfaces builder plugin
2. Use trinidad maven faces plugin
3. Use tobago apt plugin

I think in my personal opinion myfaces commons is the right place to put
this effort, but first we can handle this code outside and at the end
integrate it in myfaces svn if the community agrees to.

regards,

Leonardo Uribe

2010/3/1 Ali Ok al...@aliok.com.tr

 Hi,

 I've started working on HTML5 renderkit, which I will apply GSOC this year.
 I haven't done much, just created the project, configured the builder
 (modified Tomahawk's building procedure).
 Now I am trying to determine what to implement and how people will use it
 after we are done. So I am writing some example component codes to get your
 ideas.
 The project is hosted on Google Code:
 http://code.google.com/p/myfaces-html5-starter/

 I will appreciate some review on pages at:

 http://code.google.com/p/myfaces-html5-starter/source/browse/#svn/trunk/src/test/resources/tag-interface
 Please note that, components are not implemented yet. Code on xhtml pages
 are just trials.

 If anybody is interested, please feel free to send me your feedback :)

 Thanks,
 Ali

 Sorry for duplicate post :(

 --
 My Blog: http://blog.aliok.com.tr
 Twitter: http://twitter.com/aliok_tr



Re: [myfaces][tomahawk]

2010-03-14 Thread Leonardo Uribe
Hi

Did you tried t:commandSortHeader? In tomahawk examples there is a demo for
it.

regards,

Leonardo Uribe

2010/3/14 Guy Bashan guy.bas...@gmail.com

 Hi,

 I want the sort direction of the t:datatable to start from large to small
 rather than small to large. I want this behavior to be for every column
 that
 is clicked on the table. Does anyone know how this can be done?

 Thanks,
 Guy.



Re: f:event throwing ClassNotFoundException for type

2010-03-16 Thread Leonardo Uribe
Hi

It seems we don't have it on org.apache.myfaces.config.NamedEventManager, so
f:event is unable to resolve it correctly. Just register it there will solve
the problem.

regards,

Leonardo Uribe

2010/3/16 Bruno Aranda brunoara...@gmail.com

 Hi,

 I am testing a webapp with the latest myfaces snapshot, and the f:event tag
 is throwing a ClassNotFoundException because it is not able to find the
 type
 preRenderView...

 f:event type=preRenderView listener=#{experimentController.loadData}/

 Why is it trying to search for the class preRenderView? Is this familiar
 to anyone before I dig further?

 javax.faces.view.facelets.TagAttributeException:
 /viewMetadata/curate/experiment.xhtml at line 16 and column 88
 type=preRenderView Couldn't create event class
at
 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.getEventClass(EventHandler.java:152)
at
 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.apply(EventHandler.java:94)
at
 javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
at
 org.apache.myfaces.view.facelets.tag.jsf.core.ViewMetadataHandler.apply(ViewMetadataHandler.java:76)
at
 org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57)
at
 org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45)
at
 org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:104)
at
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2076)
at
 org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:148)
at
 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:143)
at
 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:93)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
at
 org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
at
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
at
 org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
at
 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
at
 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)

...


 The thing works fine with Mojarra.

 Cheers,

 Bruno



Re: f:event throwing ClassNotFoundException for type

2010-03-16 Thread Leonardo Uribe
Hi

There was a problem about f:event name and type attribute. Finally it
was clearified the real attribute is type, but this attribute also has the
semantic of name, so the code proposed is valid. I'll create and issue and
fix it soon.

regards,

Leonardo Uribe

2010/3/16 Marcus Büttner m...@buett.at

 Hi,

 but if you will register the name you have to take the name property
 instead of type in f:event.
 The type property requires a class name.

 Isn't?

 regards,
 Marcus

 Leonardo Uribe schrieb:

  Hi

 It seems we don't have it on org.apache.myfaces.config.NamedEventManager,
 so
 f:event is unable to resolve it correctly. Just register it there will
 solve
 the problem.

 regards,

 Leonardo Uribe

 2010/3/16 Bruno Aranda brunoara...@gmail.com



 Hi,

 I am testing a webapp with the latest myfaces snapshot, and the f:event
 tag
 is throwing a ClassNotFoundException because it is not able to find the
 type
 preRenderView...

 f:event type=preRenderView
 listener=#{experimentController.loadData}/

 Why is it trying to search for the class preRenderView? Is this
 familiar
 to anyone before I dig further?

 javax.faces.view.facelets.TagAttributeException:
 /viewMetadata/curate/experiment.xhtml at line 16 and column 88
 type=preRenderView Couldn't create event class
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.getEventClass(EventHandler.java:152)
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.apply(EventHandler.java:94)
   at

 javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.ViewMetadataHandler.apply(ViewMetadataHandler.java:76)
   at

 org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57)
   at

 org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45)
   at

 org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:104)
   at

 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2076)
   at

 org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:148)
   at

 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:143)
   at
 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:93)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
   at
 org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
   at

 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
   at

 org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
   at

 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
   at

 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)

   ...


 The thing works fine with Mojarra.

 Cheers,

 Bruno










Re: f:event throwing ClassNotFoundException for type

2010-03-16 Thread Leonardo Uribe
Hi

It is done (see MYFACES-2608)

regards,

Leonardo Uribe

2010/3/16 Leonardo Uribe lu4...@gmail.com

 Hi

 There was a problem about f:event name and type attribute. Finally it
 was clearified the real attribute is type, but this attribute also has the
 semantic of name, so the code proposed is valid. I'll create and issue and
 fix it soon.

 regards,

 Leonardo Uribe

 2010/3/16 Marcus Büttner m...@buett.at

 Hi,

 but if you will register the name you have to take the name property
 instead of type in f:event.
 The type property requires a class name.

 Isn't?

 regards,
 Marcus

 Leonardo Uribe schrieb:

  Hi

 It seems we don't have it on org.apache.myfaces.config.NamedEventManager,
 so
 f:event is unable to resolve it correctly. Just register it there will
 solve
 the problem.

 regards,

 Leonardo Uribe

 2010/3/16 Bruno Aranda brunoara...@gmail.com



 Hi,

 I am testing a webapp with the latest myfaces snapshot, and the f:event
 tag
 is throwing a ClassNotFoundException because it is not able to find the
 type
 preRenderView...

 f:event type=preRenderView
 listener=#{experimentController.loadData}/

 Why is it trying to search for the class preRenderView? Is this
 familiar
 to anyone before I dig further?

 javax.faces.view.facelets.TagAttributeException:
 /viewMetadata/curate/experiment.xhtml at line 16 and column 88
 type=preRenderView Couldn't create event class
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.getEventClass(EventHandler.java:152)
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler.apply(EventHandler.java:94)
   at

 javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:51)
   at

 org.apache.myfaces.view.facelets.tag.jsf.core.ViewMetadataHandler.apply(ViewMetadataHandler.java:76)
   at

 org.apache.myfaces.view.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:57)
   at

 org.apache.myfaces.view.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:45)
   at

 org.apache.myfaces.view.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:104)
   at

 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage$FaceletViewMetadata.createMetadataView(FaceletViewDeclarationLanguage.java:2076)
   at

 org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:148)
   at

 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:143)
   at

 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:93)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
   at
 org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530)
   at

 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1216)
   at

 org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79)
   at

 org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1187)
   at

 org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:378)

   ...


 The thing works fine with Mojarra.

 Cheers,

 Bruno











Re: When a h:link disabled=true, it is not rendered correctly..

2010-03-16 Thread Leonardo Uribe
Hi

Yes, it is a new one. The code that renders this one is in shared. See
HtmlLinkRendererBase.renderOutcomeLinkStart(FacesContext, UIOutcomeTarget).

regards,

Leonardo Uribe

2010/3/16 Bruno Aranda brunoara...@gmail.com

 Hi,

 Again with my webapp. The h:links are not rendered correctly when disabled,
 only the span tags are rendered but no value... is that a new one?

 Cheers,

 Bruno



Re: MyFaces 1.2.6, JBoss PortletBridge 1.0.0CR3 Postback with LifeRay 5.2.3

2010-03-17 Thread Leonardo Uribe
Hi

I remember this one. In apache myfaces portlet bridge there is an special
configuration to allow some params to be preserved between action request
and render request, so the state is not lost when it is used server side
state saving. The hack there looks like this:

faces-config version=1.2 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:bridge=
http://www.apache.org/myfaces/xml/ns/bridge/bridge-extension;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd;

application

view-handlerorg.apache.myfaces.portlet.faces.application.PortletViewHandlerImpl/view-handler

state-managerorg.apache.myfaces.portlet.faces.application.PortletStateManagerImpl/state-manager

el-resolverorg.apache.myfaces.portlet.faces.el.PortletELResolver/el-resolver
application-extension
  bridge:excluded-attributes

bridge:excluded-attributecom.sun.faces.*/bridge:excluded-attribute

bridge:excluded-attributecom.sun.faces.util.*/bridge:excluded-attribute

bridge:excluded-attributeorg.apache.myfaces.application.jsp.JspStateManagerImpl.*/bridge:excluded-attribute

bridge:excluded-attributeorg.apache.myfaces.el.unified.resolver.managedbean.*/bridge:excluded-attribute

bridge:excluded-attributeorg.apache.myfaces.shared_impl.renderkit.RendererUtils.*/bridge:excluded-attribute

bridge:excluded-attributeorg.apache.myfaces.application.DefaultViewHandlerSupport.*/bridge:excluded-attribute

bridge:excluded-attributejsf_sequence/bridge:excluded-attribute
  /bridge:excluded-attributes
/application-extension
/application
/faces-config

to check if this is what is happening, change your jsf state saving to
client. If so, there should be something in jboss portlet bridge that allows
do something similar. I have never tried it before (but good to know that
this bridge exists).

regards,

Leonardo Uribe

2010/3/17 Sertic Mirko, Bedag mirko.ser...@bedag.ch

 h...@all



 We are running into a strange problem with MyFaces, Facelets, the JBoss
 PortletBridge running on LifeRay.



 It seems that normal h:commandLinks are no longer working. After some
 debugging, it seems that HtmlResponseStateManager.isPostback() always
 returns false, and the Lifecycle jumps to the RENDER_RESPONSE phase. No
 action is invoked. In fact there is no VIEW_STATE_PARAM request
 parameter.



 What is going wrong here? I noticed that there are two form elements
 in the resulting HTML of the page. Is the MyFaces JavaScript just
 submitting the wrong form?



 Thanks in advance

 Mirko






Re: Tutorial for MyFaces PortletBridge with Facelets

2010-03-18 Thread Leonardo Uribe
Hi

In fact, I remember there is a class called FaceletPortletViewHandler.

There are not on facelets jars, but exists:

http://www.docjar.com/docs/api/com/sun/facelets/FaceletPortletViewHandler.html

And it allows run a portlet in liferay with facelets (I tried when it was
added orchestra support on portlets and it works).

To find the code, it is somewhere on facelets cvs.

regards,

Leonardo Uribe

2010/3/18 Kito Mann kito.m...@virtua.com

 Michael,

 What would be the best way to distribute the portlet version of the
 Facelets
 view handler?
 ---
 Kito D. Mann | twitter: kito99 | Author, JSF in Action
 Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
 http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
 twitter:
 jsfcentral
 +1 203-404-4848 x3

 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17



 On Thu, Mar 18, 2010 at 9:44 AM, Michael Freedman 
 michael.freed...@oracle.com wrote:

  Not quite true.  Facelets native ViewHandler is servlet dependent.  The
  trick for running Facelets in a portlet environment via a bridge is to
  provide an alternative ViewHandler using the portlet APIs and configuring
  this ViewHandler in your faces-config.xml.  So yes the MyFace Portlet
 bridge
  doesn't inherently include this ViewHandler (it requires facelet
 dependent
  code) it is easy to add/generate to your app.  In fact I gave a workshop
  recently where one of the samples was to complete such a ViewHandler and
  package in an app with the MyFaces Portlet Bridge to run a facelets
 sample
  as a portlet.
 -Mike-
 
 
  On 3/18/2010 9:31 AM, ferna...@lozano.eti.br wrote:
 
  Hi there,
 
  AFAIK facelets is not supported by the current portlet-bridge JSRs (both
  for PortletAPI 1.0 and 2.0)
  so MyFaces Portlet Bridge, which is the RI for both JSRs, does not
 support
  facelets.
 
  []s, Fernand Lozano
 
 
 
 
  HiI'd like to know if there is a kind of reference documentation
  available for running the MyFaces
  Portlet Bridge with MyFaces 1.2.6, Facelets on LifeRay 5.2.3.Thanks in
  advanceMirko
 
 
 



Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-23 Thread Leonardo Uribe
Hi

Looking the stack trace provided very carefully, I can see the problem is
not in myfaces, it is on spring class FlowViewStateManager. Take a look at
this three lines:

at javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:643)

at
org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)

at
org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)


The code related is this:

public UIViewRoot restoreView(FacesContext context, String viewId,
String renderKitId) {
if (!JsfUtils.isFlowRequest()) {
return delegate.restoreView(context, viewId, 
renderKitId);
}
UIViewRoot viewRoot = restoreTreeStructure(context, viewId, 
renderKitId);
if (viewRoot != null) {
restoreComponentState(context, viewRoot, renderKitId);
}
return viewRoot;
}

What's the problem? well, look this code from myfaces JspStateManagerImpl:

if (state != null) {
Object[] stateArray = (Object[])state;
TreeStructureManager tsm = new TreeStructureManager();
uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);

if (uiViewRoot != null) {
facesContext.setViewRoot (uiViewRoot);
uiViewRoot.processRestoreState(facesContext,
stateArray[1]);
}
}

It is supposed after restore the tree structure, that
facesContext.setViewRoot(uiViewRoot) should be called. Inclusive, in
DefaultFaceletsStateManagementStrategy we do the same too. An issue should
be created against spring web flow.

regards,

Leonardo Uribe

2010/3/23 Jakob Korherr jakob.korh...@gmail.com

 Yeah, great! Thanks ;)

 Regards,
 Jakob

 2010/3/23 Matthias Leis matthias.l...@gmx.net

  Hi,
 
  JIRA link is https://issues.apache.org/jira/browse/MYFACES-2620
 
  I hope I've done it right ;)
 
  Matthias
   Original-Nachricht 
   Datum: Tue, 23 Mar 2010 15:59:22 +0100
   Von: Jakob Korherr jakob.korh...@gmail.com
   An: MyFaces Discussion users@myfaces.apache.org
   Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null
 
   Hi,
  
   OK great! I'll take a look at it later ;)
  
   Regards,
   Jakob
  
   2010/3/23 Matthias Leis matthias.l...@gmx.net
  
Hi,
   
I just saw, that I'm not working with the beta 2 but with the
 snapshot.
   In
beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
The line is:
   
  String renderKitId = context.getViewRoot().getRenderKitId();
   
And looking at the variables in debugging mode says, that the
 viewRoot
   is
null. Sorry for the confusion :)
   
Of course I don't mind to open a JIRA issue :)
   
PS: I know tomahawk isn't even supposed to work with myfaces 2, but
 in
generally it does. This one here is the only compatibility problem I
   found
(...for now ;) )
   
Matthias
 Original-Nachricht 
 Datum: Tue, 23 Mar 2010 15:44:32 +0100
 Von: Jakob Korherr jakob.korh...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Betreff: Re: UIComponentBase.java - context.getViewRoot() returns
  null
   
 Hi,

 Unfortunately there is no tomahawk port for MyFaces 2.0 available
  yet,
   so
 this might be a compatibility problem.

 I traced the Exception down and found out that it happens, because
  the
 RenderKitFactory returns null for the RenderKit here, see the code
   from
 UIComponentBase:

 String renderKitId =
 context.getViewRoot().getRenderKitId();
 RenderKitFactory rkf = (RenderKitFactory)
 FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
 RenderKit renderKit = rkf.getRenderKit(context,
 renderKitId);
 Renderer renderer = renderKit.getRenderer(getFamily(),
 rendererType);

 In the last line renderKit is null and thus we get a NPE.

 Do you mind opening a JIRA issue for this? This would be really
  great.

 Thanks!

 Regards,
 Jakob

 2010/3/23 Matthias Leis matthias.l...@gmx.net

  Hi,
 
  I'm using myfaces 2.0 beta 2 and currently I'm using a
  h:dataTable
   on
 my
  pages and everything is fine.
  For some reasons (sorting etc.) I want to use the t:dataTable
   (from
  Tomahawk 1.1.9).
 
  Now, when I click on a link inside the table, I get the following
  exception:
  java.lang.NullPointerException
 at
 

   
  
 
 javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1041)
 at
 

   
  
 
 org.apache.myfaces.component.html.ext.HtmlDataTableHack.getClientId(HtmlDataTableHack.java:111

Re: UIComponentBase.java - context.getViewRoot() returns null

2010-03-25 Thread Leonardo Uribe
Hi

2010/3/25 Matthias Leis matthias.l...@gmx.net

 Hi,

 I am not that into myfaces and webflow, so I better ask before creating an
 issue. ;)
 What exactly should be done by webflow? Should they call
 facesContext.setViewRoot(uiViewRoot) too? Wouldn't that be very...
 JSF-specific?


Yes, because FlowViewStateManager is not just delegating in this case, it is
saving and restoring by itself, so it is necessary in this case. In the
javadoc of StateManager, the methods restoreTreeStructure and
restoreComponentState now are implementation details, so in jsf 1.2 of upper
restoreView method should be used.

regards,

Leonardo Uribe



 Matthias
  Original-Nachricht 
  Datum: Tue, 23 Mar 2010 10:55:10 -0500
  Von: Leonardo Uribe lu4...@gmail.com
  An: MyFaces Discussion users@myfaces.apache.org
  Betreff: Re: UIComponentBase.java - context.getViewRoot() returns null

  Hi
 
  Looking the stack trace provided very carefully, I can see the problem is
  not in myfaces, it is on spring class FlowViewStateManager. Take a look
 at
  this three lines:
 
  at
  javax.faces.component.UIViewRoot.processRestoreState(UIViewRoot.java:643)
 
  at
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreComponentState(FlowViewStateManager.java:77)
 
  at
 
 org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:159)
 
 
  The code related is this:
 
public UIViewRoot restoreView(FacesContext context, String viewId,
  String renderKitId) {
if (!JsfUtils.isFlowRequest()) {
return delegate.restoreView(context, viewId,
 renderKitId);
}
UIViewRoot viewRoot = restoreTreeStructure(context, viewId,
  renderKitId);
if (viewRoot != null) {
restoreComponentState(context, viewRoot,
 renderKitId);
}
return viewRoot;
}
 
  What's the problem? well, look this code from myfaces
 JspStateManagerImpl:
 
  if (state != null) {
  Object[] stateArray = (Object[])state;
  TreeStructureManager tsm = new TreeStructureManager();
  uiViewRoot = tsm.restoreTreeStructure(stateArray[0]);
 
  if (uiViewRoot != null) {
  facesContext.setViewRoot (uiViewRoot);
  uiViewRoot.processRestoreState(facesContext,
  stateArray[1]);
  }
  }
 
  It is supposed after restore the tree structure, that
  facesContext.setViewRoot(uiViewRoot) should be called. Inclusive, in
  DefaultFaceletsStateManagementStrategy we do the same too. An issue
 should
  be created against spring web flow.
 
  regards,
 
  Leonardo Uribe
 
  2010/3/23 Jakob Korherr jakob.korh...@gmail.com
 
   Yeah, great! Thanks ;)
  
   Regards,
   Jakob
  
   2010/3/23 Matthias Leis matthias.l...@gmx.net
  
Hi,
   
JIRA link is https://issues.apache.org/jira/browse/MYFACES-2620
   
I hope I've done it right ;)
   
Matthias
 Original-Nachricht 
 Datum: Tue, 23 Mar 2010 15:59:22 +0100
 Von: Jakob Korherr jakob.korh...@gmail.com
 An: MyFaces Discussion users@myfaces.apache.org
 Betreff: Re: UIComponentBase.java - context.getViewRoot() returns
  null
   
 Hi,

 OK great! I'll take a look at it later ;)

 Regards,
 Jakob

 2010/3/23 Matthias Leis matthias.l...@gmx.net

  Hi,
 
  I just saw, that I'm not working with the beta 2 but with the
   snapshot.
 In
  beta 2 the NPW is thrown at line 1038 (in snapshot at line 1041).
  The line is:
 
String renderKitId = context.getViewRoot().getRenderKitId();
 
  And looking at the variables in debugging mode says, that the
   viewRoot
 is
  null. Sorry for the confusion :)
 
  Of course I don't mind to open a JIRA issue :)
 
  PS: I know tomahawk isn't even supposed to work with myfaces 2,
  but
   in
  generally it does. This one here is the only compatibility
 problem
  I
 found
  (...for now ;) )
 
  Matthias
   Original-Nachricht 
   Datum: Tue, 23 Mar 2010 15:44:32 +0100
   Von: Jakob Korherr jakob.korh...@gmail.com
   An: MyFaces Discussion users@myfaces.apache.org
   Betreff: Re: UIComponentBase.java - context.getViewRoot()
  returns
null
 
   Hi,
  
   Unfortunately there is no tomahawk port for MyFaces 2.0
  available
yet,
 so
   this might be a compatibility problem.
  
   I traced the Exception down and found out that it happens,
  because
the
   RenderKitFactory returns null for the RenderKit here, see the
  code
 from
   UIComponentBase:
  
   String renderKitId =
   context.getViewRoot().getRenderKitId();
   RenderKitFactory rkf = (RenderKitFactory)
   FactoryFinder.getFactory

[ANNOUNCE] MyFaces Core v2.0.0-beta-3 Release

2010-03-27 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 2.0.0-beta-3.


MyFaces Core is a JavaServer(tm) Faces 2.0 implementation as specified 
by JSR-314.


MyFaces Core 2.0.0-beta-3 is available in both binary and source 
distributions.


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

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


Release Notes - MyFaces Core - Version 2.0.0-beta-3

Bug

   * [MYFACES-2529] - use of view-param in faces-config causes a 
NoSuchMethodExcepion for addViewParam

   * [MYFACES-2536] - converterId and validatorId should not be required
   * [MYFACES-2543] - Facelets Taglib jars are not recognized
   * [MYFACES-2555] - 
org.apache.myfaces.config.annotation.LifecycleProvider context parameter 
is ignored
   * [MYFACES-2560] - Known class name for EL RI's 
ExpressionFactoryImpl is wrong
   * [MYFACES-2561] - StackOverflowError if a composite component 
implementation uses another composite component
   * [MYFACES-2563] - Trinidad 1.2.x generates on POSTBACK a 
NullPointerException on MyFAces2
   * [MYFACES-2564] - facelets in an app with a 1.2 level faces-config 
do not work
   * [MYFACES-2565] - BeanValidator throws Exception if external 
ExpressionLanguageFactory is being used
   * [MYFACES-2567] - Log indicates Tomahawk starting even if Tomahawk 
is not on the classpath
   * [MYFACES-2569] - setResourceHandler, setViewHandler and 
setStateManager must throw illegalStateException if called after at 
least one request has been processed by the Lifecycle instance
   * [MYFACES-2570] - FaceletVDL.retargetMethodExpressions() should use 
ActionSource2 instead of ActionSource
   * [MYFACES-2571] - converter, validator and actionListener tags 
nested in a composite component without a for attribute should throw a 
TagException
   * [MYFACES-2572] - MyFaces should release the dummy FacesContext 
created during startup/shutdown
   * [MYFACES-2573] - NavigationHandler decoration/delegation not 
supported in 2.0.0-beta2
   * [MYFACES-2574] - InterfaceHandler stores the componentType as the 
resolved value instead of the ValueExpression
   * [MYFACES-2577] - Multiple client behaviors confuse the 
jsf.util.chain function
   * [MYFACES-2578] - When using ui:repeat and inputText with 
attributes that are 'nullable' (for example date attributes) they cannot 
be set to null by entering an empty String ()
   * [MYFACES-2580] - OSGi: Missing javax.validation imports in api 
module manifest
   * [MYFACES-2581] - double slash breaks new prefix mapping 
(/faces//faces/*) - CTS failure

   * [MYFACES-2583] - f:ajax cannot retrieve clientId from component
   * [MYFACES-2591] - buildBehaviorChain() should also check the 
ClientBehaviors for the second eventName for submitting
   * [MYFACES-2592] - UIViewParameter.decode() should set the submitted 
value only if it is not null

   * [MYFACES-2593] - styles are escaped so that @import *.css doesn't work
   * [MYFACES-2598] - UIViewParameter does not get an automatic id
   * [MYFACES-2600] - @PostConstruct does not work
   * [MYFACES-2601] - java.lang.NoSuchFieldException when MyFaces and 
Mojarra are on the classpath

   * [MYFACES-2603] - Incorrect web-facesconfig_2_0.xsd
   * [MYFACES-2605] - java.lang.LinkageError loader constraint 
violation: loader (instance of 
org/mortbay/jetty/webapp/WebAppClassLoader) previously initiated loading 
for a different type with name javax/el/ExpressionFactory

   * [MYFACES-2608] - f:event type=preRenderView not resolved
   * [MYFACES-2609] - f:event type throws ClassNotFoundException for 
type 'preRenderView'
   * [MYFACES-2610] - h:link not being rendered correctly when disabled 
- no value shown
   * [MYFACES-2611] - UIComponentBase.getFacetsAndChildren() must not 
access the component's facets and children directly
   * [MYFACES-2613] - ExternalSpecifications has an import from 
javax.validation api, and this one should be optional

   * [MYFACES-2614] - EnumConverter uses toString() instead of name()

Improvement

   * [MYFACES-2559] - Google App Engine Support for Myfaces 2
   * [MYFACES-2575] - Replace RequestMap with 
FacesContext.getAttributes() where possible


New Feature

   * [MYFACES-2579] - Support the dynamic adding of servlets and 
servlet-mappings on Servlet API 3.0 to make web.xml entries for Faces 
Servlet not mandatory


Task

   * [MYFACES-2568] - Panel created to hold resource on UIViewRoot is 
transient
   * [MYFACES-2607] - Ugly NPE in 
CompositeFunctionMapper.resolveFunction() if second FunctionMapper is null


regards

Leonardo Uribe


Re: ConnectionException validating XML using t: panelTabbedPane [SEC=UNCLASSIFIED]

2010-03-29 Thread Leonardo Uribe
Hi

javax.servlet api jar should provide this dtd (maybe your web container is
not providing this dtds). In this case tomahawk try to get it, but it can't
see it. Try put this file under your webapp classpath:

javax/servlet/resources/web-app_2_3.dtd

That should work. The other alternative is override the EntityResolver used
by tomahawk to parse the document, to provide the file necessary to be
resolved.

regards,

Leonardo Uribe

2010/3/29 rob.mcauli...@medicareaustralia.gov.au

 Hi,

 I'm trying to use the Tomahawk panelTabbedPane tag on a project that
 already has some working tomahawk (tomahawk 1.1.9; jsf 1.1; java 1.6)
 tags.  It seems that the code for this tag is trying to validate the
 configuration in the web.xml file, and in doing so, is looking for the
 DTD, for some reason connecting to the URL in the dtd declaration to try
 and download it.  I'm behind a proxy (and I expect that my deployment
 environment will likewise be without accessible Internet) so this fails
 with a ConnectionFailedException.

 How can I either stop it looking for the DTD or provide one for it so that
 it doesn't do this check?

 Doctype declaration I've got in my web.xml:
 !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application
 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd;

 Exception stacktrace:

 javax.servlet.ServletException: Filter [MyFacesExtensionsFilter]: filter
 is unavailable.
at

 com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:231)
at

 com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at

 com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at

 com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:858)
at

 com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:863)
at

 com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:474)
at

 com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at
 com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3742)
at
 com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at
 com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:932)
at

 com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
at
 com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:175)
at

 com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at

 com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at

 com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at

 com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at

 com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at

 com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at

 com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
 Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:352)
at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:214)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:201)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:530)
at java.net.Socket.connect(Socket.java:480)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:406)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:541)
at sun.net.www.http.HttpClient.(HttpClient.java:245)
at sun.net.www.http.HttpClient.New(HttpClient.java:318)
at sun.net.www.http.HttpClient.New(HttpClient.java:335)
at

 sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:832)
at

 sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:773)
at

 sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:698)
at

 sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1021)
at
 org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source

Re: Facing error after Tomahawk upgrade.

2010-03-30 Thread Leonardo Uribe
Hi

Try tomahawk12-1.1.9 jar file. It is known tomahawk for jsf 1.1 + tiles +
jsf 1.2 does not work because
the ViewHandler spec changes on jsf 1.2. The corrected version is on that
jar.

regards,

Leonardo Uribe

2010/3/30 Now I find myself in question vin.si...@gmail.com

 So do you mean to say tomahawk 1.1.9 along with JSF. 1.2 will do the trick?

 On Tue, Mar 30, 2010 at 7:20 PM, Rene van Wijk 
 rw...@transfer-solutions.com
  wrote:

 
  Use component libraries which are compliant with the 1.2 JSF standard and
  not the 1.1 standard.
 
 
 
  There is a difference in binding component attributes in JSF 1.2 and 1.1,
  for example,
 
 
 
  1.1
 
  public void set_binding(String _binding) {
  this.binding = _binding;
  }
 
  public String getBinding() {
  return binding;
  }
 
 
 
  if (getBinding() != null) {
  if (isValueReference(getBinding())) {
  inputText.setValueBinding(binding,
  getValueBinding(getBinding()));
  } else {
  inputText.getAttributes().put(binding, getBinding());
  }
  }
 
 
 
  1.2
 
  public ValueExpression getBinding() {
  return binding;
  }
 
  public void setBinding(ValueExpression binding) {
  this.binding = binding;
  }
 
 
 
  if (getBinding() != null) {
  if (!getBinding().isLiteralText()) {
  inputText.setValueExpression(binding, getBinding());
  } else {
  inputText.getAttributes().put(binding,
  getBinding().getExpressionString());
  }
  }
 
 
 
  This also clearifies the exception you get expected ValueExpression got
  String.
 
  -Original message-
  From: nilakandan.v...@cognizant.com
  Sent: Tue 30-03-2010 15:34
  To: users@myfaces.apache.org;
  Subject: Facing error after Tomahawk upgrade.
 
  All,
 
   I'm getting the following exception when I try to access my
  application.
 
 
 
  I have recently updated the following components in my application
 
 
 
  weblogic8.1 to weblogic 10.3
 
  myfaces 1.1.5 to 1.2.8
 
  richfaces 3.0.1 to 3.3.3
 
  tomahawk  1.1.5 to 12_1.1.10
 
  Struts tiles to tiles 2.0.7
 
 
 
 
 
  I have also tried with  tomahawk 1.1.9 , but I have faced exception in
  t:stylesheet/ stating  there is no such method error with the method
  argument expecting 'Valueexpression' instead of String .
 
 
 
 
 
  Mar 30, 2010 6:39:45 PM
  org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl
  buildTilesViewLikeContain er
 
  SEVERE: Error rendering tile
 
  org.apache.tiles.util.TilesIOException: ServletException including path
  '/webContent/jsp/searchManager/layout/searchMana
 
  gerLayout.jsp'.
 
 at
  org.apache.tiles.servlet.context.ServletTilesRequestContext.wrapServletE
  xception(ServletTilesRequestContext.j
 
  ava:298)
 
 at
  org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(Serv
  letTilesRequestContext.java:200)
 
 at
  org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(Ser
  vletTilesRequestContext.java:179)
 
 at
  org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.b
  uildView(JspTilesTwoViewHandlerImpl.j
 
  ava:450)
 
 at
  org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.b
  uildTilesViewLikeContainer(JspTilesTw
 
  oViewHandlerImpl.java:354)
 
 at
  org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.r
  enderTilesView(JspTilesTwoViewHandler
 
  Impl.java:154)
 
 at
  org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.r
  enderView(JspTilesTwoViewHandlerImpl.
 
  java:135)
 
 at
  org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrappe
  r.java:100)
 
 at
  org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java
  :176)
 
 at
  org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRespon
  seExecutor.java:41)
 
 at
  org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140
  )
 
 at
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:182)
 
 at
  weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St
  ubSecurityHelper.java:227)
 
 at
  weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH
  elper.java:125)
 
 at
  weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2
  92)
 
 at
  weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 
 at
  weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
  42)
 
 at
  org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
 
 at
  org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
 
 at
  org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter
  .java:388

Re: Conversion error using inputDate with a non-US browser locale

2010-03-31 Thread Leonardo Uribe
Hi

Did you tried with the property popupDateFormat on t:inputCalendar? The
default is :

javax.text.SimpleDateFormat(dd.MM.,
facesContext.getViewRoot().getLocale());

regards,

Leonardo Uribe

2010/3/31 Derry Cannon d3r...@gmail.com

 I'm having trouble using the Tomahawk inputDate for non-US locales.  If in
 Firefox I set my general.useragent.locale to en-US, all is well.
  However,
 if I set my locale to en-GB, I get a conversion error from the inputDate.
 Stepping through the debugger, it appears that when my locale is en-GB
 and
 I submit a date of April 15, 2010, the value of the date submitted is
 4/15/2010, while the inputDate's DateTimeConverter is expecting the value
 of 15/04/2010.

 I've tried the following:

   - setting the inputDate's timezone to Europe/London
   - associating an f:convertDateTime with the inputDate, giving the
   converter the locale of en-GB
   - setting the locale in f:view to en-GB

 I've also confirmed that en-GB is a supported locale in the
 faces-config.xml.  I'm out of ideas over here, and any help would be
 greatly
 appreciated.

 Thanks much!
 Derry



Re: Conversion error using inputDate with a non-US browser locale

2010-03-31 Thread Leonardo Uribe
Hi

When t:inputDate is rendered, its input fields are rendered in this form:

encodeInputDay(inputDate, writer, clientId, userData, disabled,
readonly);
encodeInputMonth(inputDate, writer, clientId, userData,
currentLocale, disabled, readonly);
encodeInputYear(inputDate, writer, clientId, userData, disabled,
readonly);

For that component that is fixed and the code does not check the locale
before render them.

regards,

Leonardo Uribe

2010/3/31 Derry Cannon d3r...@gmail.com

 No, I've not tried the inputCalendar.  In stepping through the debugger,
 I'm
 seeing places where facesContext.getViewRoot().getLocale() is returning the
 proper Locale, so I'm at a loss as to why the pattern is staying
 dd.MM. instead of MM.dd..

 Derry



 On Wed, Mar 31, 2010 at 4:27 PM, Leonardo Uribe lu4...@gmail.com wrote:

  Hi
 
  Did you tried with the property popupDateFormat on t:inputCalendar? The
  default is :
 
  javax.text.SimpleDateFormat(dd.MM.,
  facesContext.getViewRoot().getLocale());
 
  regards,
 
  Leonardo Uribe
 
  2010/3/31 Derry Cannon d3r...@gmail.com
 
   I'm having trouble using the Tomahawk inputDate for non-US locales.  If
  in
   Firefox I set my general.useragent.locale to en-US, all is well.
However,
   if I set my locale to en-GB, I get a conversion error from the
  inputDate.
   Stepping through the debugger, it appears that when my locale is
 en-GB
   and
   I submit a date of April 15, 2010, the value of the date submitted is
   4/15/2010, while the inputDate's DateTimeConverter is expecting the
  value
   of 15/04/2010.
  
   I've tried the following:
  
 - setting the inputDate's timezone to Europe/London
 - associating an f:convertDateTime with the inputDate, giving the
 converter the locale of en-GB
 - setting the locale in f:view to en-GB
  
   I've also confirmed that en-GB is a supported locale in the
   faces-config.xml.  I'm out of ideas over here, and any help would be
   greatly
   appreciated.
  
   Thanks much!
   Derry
  
 



Re: Missing/changed methods after migrating to MyFaces 1.2.8

2010-04-06 Thread Leonardo Uribe
Hi

All tag class hierarchy was changed from 1.1 to 1.2, with the inclusion of
jsp EL expressions.

Right now, all tag hierarchy are generated by myfaces builder plugin. But
anyway, in tomahawk we have cases like this one:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java
http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core12/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java

You can create a custom jsf tag class with all properties from your base
component, and override/add the additional properties you need.

regards,

Leonardo Uribe

2010/4/6 Mike Kienenberger mkien...@gmail.com

 Not sure about

 1. setStringProperty.

 But for

 2. create a ValueExpression containing #{true} or #{false}

 I haven't tested this, but

 You could either ask JSF to create it for you:

 import javax.el.ValueExpression;

 FacesContext context = FacesContext.getCurrentInstance();
 ValueExpression vex = context.getApplication().
 getExpressionFactory().createValueExpression(context.getELContext(),
 #{false}, Boolean.class);

 Or you could implement your own, something along the lines
 of this:

new ValueExpression() {

@Override
public boolean isLiteralText() {
return false;
}

@Override
public int hashCode() {
return 0;
}

@Override
public String getExpressionString() {
return #{false};
}

@Override
public boolean equals(Object obj) {
return obj == this;
}

@Override
public void setValue(ELContext context, Object
 value) {
// TODO Auto-generated method stub
}

@Override
public boolean isReadOnly(ELContext context) {
return true;
}

@Override
public Object getValue(ELContext context) {
return Boolean.FALSE;
}

@Override
public Class? getType(ELContext context) {
return Boolean.class;
}

@Override
public Class? getExpectedType() {
return Boolean.class;
}
};


 On Tue, Apr 6, 2010 at 7:19 AM, Seema Mani seema.rich...@ust-global.com
 wrote:
 
  hi,
 
  I'm facing a few issues after migrating to MyFaces 1.2.8 from MyFaces
 1.1.7
 
  1. In my custom tag handler class, extending HtmlMessageTag, there were
  calls to setStringProperty method in the superclass. But these methods
 are
  not existing now
  2. In my custom tag handler class, extending HtmlCommandButtonTag, there
  were calls to the setDisabled method, which had String argument. This
 method
  now takes ValueExpression as the argument. But the values to be passed
 are
  static like true and false
 
  Please advise on how these can be resolved.
 
  Thanks,
  Seema
  --
  View this message in context:
 http://old.nabble.com/Missing-changed-methods-after-migrating-to-MyFaces-1.2.8-tp28150278p28150278.html
  Sent from the MyFaces - Users mailing list archive at Nabble.com.
 



Re: [orchestra jsf 2] conversationContext param repeated many times in URL

2010-04-19 Thread Leonardo Uribe
Hi

I fixed that one for myfaces 2 here:

https://issues.apache.org/jira/browse/MYFACES-2661

regards,

Leonardo Uribe

2010/4/19 Bruno Aranda brunoara...@gmail.com

 Hi,

 I am using orchestra and myfaces 2 and I have observed this phenomenon in
 my
 apps: the conversationContext param keeps repeting in the URL as I go...
 does anyone have an idea why this may be caused?

 Cheers,

 Bruno



Re: [orchestra jsf 2] conversationContext param repeated many times in URL

2010-04-19 Thread Leonardo Uribe
2010/4/19 Bruno Aranda brunoara...@gmail.com

 MMh, for some reason it seems not to be working for me. Is that part of the
 last candidate to be released? I removed the myfaces artifacts from my
 repository to get a clean copy, but I still have the same problem...


Yes, It was included on the last candidate.

regards,

Leonardo Uribe


 Cheers,

 Bruno

 On 19 April 2010 14:47, Leonardo Uribe lu4...@gmail.com wrote:

  Hi
 
  I fixed that one for myfaces 2 here:
 
  https://issues.apache.org/jira/browse/MYFACES-2661
 
  regards,
 
  Leonardo Uribe
 
  2010/4/19 Bruno Aranda brunoara...@gmail.com
 
   Hi,
  
   I am using orchestra and myfaces 2 and I have observed this phenomenon
 in
   my
   apps: the conversationContext param keeps repeting in the URL as I
 go...
   does anyone have an idea why this may be caused?
  
   Cheers,
  
   Bruno
  
 



[ANNOUNCE] MyFaces Core v2.0.0 Release

2010-04-22 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 2.0.0.


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


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

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

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


Release Notes - MyFaces Core - Version 2.0.0

Bug

   * [MYFACES-2361] - Add missing component system event dispatches
   * [MYFACES-2554] - myfaces's facelettaglibrary XSD incomplete
   * [MYFACES-2615] - Conversion errors should add a FacesMessage 
instead of throwing a FacesException

   * [MYFACES-2621] - BeanValidation does not work with Unified EL 2.2
   * [MYFACES-2622] - BeanValidator has to handle 
CompositeComponentExpressionHolder when resolving the ValueExpression
   * [MYFACES-2623] - validation-api and el-api 2.2 should be optional 
dependencies with scope compile in myfaces-api
   * [MYFACES-2624] - Automatically add h:messages if ProjectStage is 
Development
   * [MYFACES-2625] - TagLibrary using custom namespace fails to load 
composite component
   * [MYFACES-2626] - Application.createResource does not trip 
extension from resource name when try to resolve composite component 
class automatically

   * [MYFACES-2630] - HtmlBody 'onload' attribute encoding issues
   * [MYFACES-2631] - javax.faces.Messages.zh lacks two properties.
   * [MYFACES-2633] - Cannot set properties on custom composite 
component class when are implemented on getter/setter
   * [MYFACES-2636] - Need to check for null ValueExpression in 
_BeanValidatorUELUtils.getUELValueReferenceWrapper()

   * [MYFACES-2637] - Serious Bug! ajax cant work using multiple forms.
   * [MYFACES-2639] - Make 
org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS param = auto the default
   * [MYFACES-2641] - Use the application's ViewHandler to create the 
view in FaceletViewMetadata

   * [MYFACES-2643] - Update Google App Engine APT Doc
   * [MYFACES-2645] - The view state is saved before encodeAll() is 
called on every UIViewParameter in an AJAX request
   * [MYFACES-2646] - Missing unit test for 
application.createComponent(FacesContext context, Resource 
componentResource)
   * [MYFACES-2647] - MyFacesContainerInitializer doesn't check for 
null class name
   * [MYFACES-2649] - Ajax chokes on script triggered onchange if input 
has onchange=
   * [MYFACES-2650] - chaining ajax onchange with existing onchange 
creates syntax error

   * [MYFACES-2654] - Trinidad ajax-branch does not work with MyFaces2
   * [MYFACES-2656] - Use UINamingContainer.getSeparatorChar instead 
NamingContainer.SEPARATOR_CHAR
   * [MYFACES-2657] - Already escaped apostrophes are double-escaped 
while building the ClientBehavior JavaScript

   * [MYFACES-2659] - TagDecorator in IMPL and API ...
   * [MYFACES-2661] - h:link render conversationContext param multiple 
times


Improvement

   * [MYFACES-2546] - Conversion rules for obtaing renderable String 
from the value property of SelectItem
   * [MYFACES-2658] - Indicate a better error when using Facelet TAGs 
on JSP(X) pages


New Feature

   * [MYFACES-2116] - TODO 65: Partial View Lifecycle
   * [MYFACES-2644] - IDE Tutorials for Myfaces 2 Google App Engine support

Task

   * [MYFACES-2124] - Enforce new API on UIViewRoot
   * [MYFACES-2183] - Integrate Facelets
   * [MYFACES-2323] - Implement f:ajax tag handler
   * [MYFACES-2329] - Add Facelet taglib 2.0 schema
   * [MYFACES-2619] - FacesContext.validationFailed() must be called on 
validation errors in validate()

   * [MYFACES-2648] - AbstractMyFacesListener is not needed anymore
   * [MYFACES-2653] - Fix implee6 include on code and clean myfaces 
impl pom.xml

   * [MYFACES-2660] - Review Facelets api usage

regards

Leonardo Uribe


Re: question about configuring the inputDate element

2010-04-28 Thread Leonardo Uribe
Hi

I checked t:inputDate and there is no property to configure that. But it is
possible to provide your own javascript for the component, setting the
javascriptLocation property, copying the default resources and changing the
function org_apache_myfaces_PopupCalendar.prototype._constructYear in
popcalendar.js.

regards,

Leonardo Uribe

2010/4/28 lunar...@vuurwerk.nl

 I have a question regarding the inputDate element. In the default
 implementation, the datepicker popup shows about 30 different years. However
 I want to use it to pick a birth date. Therefore I would like it to show
 about a hundred years. Is there a way to configure the inputDate element to
 accomplish this?

 Regards,
 Linda van der Pal



Re: t:saveState and SpringBeanFacesELResolver

2010-05-12 Thread Leonardo Uribe
Hi

It could be good if you create an issue on:

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

and even better, provide an small example. It theory t:saveState should work
without problem.

regards,

Leonardo Uribe

2010/5/12 Quintin Kerby qke...@caci.com

 I am using JSF RI 1.2 and Tomahawk for JSF 1.2 with built in facelets
 support.  For some reason when I change the following in my faces-config:


 variable-resolverorg.springframework.web.jsf.DelegatingVariableResolver/variable-resolver

 to


 el-resolverorg.springframework.web.jsf.el.SpringBeanFacesELResolver/el-resolver

 t:saveState no longer works.  All I have to do to fix it is switch back to
 the deprecated variable resolver. The managed beans I am using are request
 scope and I made sure the objects I am putting in saveState are
 Serializable.  Basically I am dynamically build selectItems and put them in
 a selectOneMenu.  Works fine until I post the form back and it craps out on
 the validation phase.  Seems the selectItems are not restored in the view.
  Again, it works fine with the variableResolver.

 Has anyone else come across this or solved it?




[ANNOUNCE] release of myfaces builder plugin 1.0.6

2010-05-23 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of
Apache MyFaces Builder Plugin 1.0.6

Apache MyFaces Builder Plugin is a maven plugin, used internally in
other projects like myfaces core and tomahawk for generate component
classes,
tag classes, faces-config files, .tld files and facelets taglib files. In
other
words, its several maven goals provide a component kit for generate jsf
components with minimal effort.

Apache MyFaces Builder Plugin is available in the central Maven repository
under
Group ID org.apache.myfaces.buildtools.

Leonardo Uribe


Re: MyFaces Test

2010-05-24 Thread Leonardo Uribe
Hi Kito

There is no site for myfaces-test project yet. Currently, this project is
used by myfaces core 2.0.x. Some code that should be on myfaces-test is on
myfaces-core so in the long term it is necessary to move this code and do a
cleanup. Right now, on myfaces impl there are some tests (facelet testing
stuff) that requires create another module on myfaces-test project to be
moved. The only documentation available is the one that comes from
shale-test project.

regards,

Leonardo Uribe

2010/5/24 Kito Mann kito.m...@virtua.com

 Hello,

 I'm looking into testing frameworks, and the only info I can find on
 MyFaces
 Test is the Maven repo: (svn.apache.org/repos/asf/myfaces/test) . Has
 anything been written about it?
 ---
 Kito D. Mann | twitter: kito99 | Author, JSF in Action
 Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
 http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
 twitter:
 jsfcentral
 +1 203-404-4848 x3

 Sign up for the JSFCentral newsletter: http://oi.vresp.com/?fid=ac048d0e17



Re: t:tree2 Look and Feel

2010-05-24 Thread Leonardo Uribe
Hi

You can change the default images or javascript stuff using imageLocation
and javascriptLocation properties. There is no default css for that
component.

For any component in tomahawk 1.1 or 1.2 you can find the related resource
looking inside the jar file or if you want to take a look at the code this
is where it is located:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/

regards,

Leonardo Uribe

2010/5/24 Russell Collins russell.coll...@mclaneat.com

 I have been looking everywhere for this information but it seems like
 everything I see is kind of vague with no examples.  Can someone tell me or
 show me an example of how to modify the default CSS for the Tomahawk
 t:tree2 controls?  Where should I look to find the default style sheets?



 Russell Collins
 Sr. Software Engineer


 
 CONFIDENTIALITY NOTICE: The information contained in this electronic mail
 (email) transmission (including attachments), is intended by MCLANE ADVANCED
 TECHNOLOGIES for the use of the named individual or entity to which it is
 addressed and may contain information that is privileged, confidential
 and/or protected as a trade secret. It is not intended for transmission to,
 or receipt by, any individual or entity other than the named addressee(s).
 If you have received this email in error, please delete it (including
 attachments) and any copies thereof without printing, copying or forwarding
 it, and notify the sender of the error by email reply immediately.



Re: Missing ELResolver on MyFaces 1.2 for ManagedBean Accesssing

2010-05-31 Thread Leonardo Uribe
Hi

Try use provider scope to load EL api dependency:

dependency
groupIdjavax.el/groupId
artifactIdel-api/artifactId
version1.0/version
scopeprovided/scope
/dependency

regards,

Leonardo

2010/5/31 Christian Schneider ch.schnei...@gmx-topmail.de

 Hi experts,
 i try to access an RequestBean from a SessionBean like this:

 final DebuggerBean db = (DebuggerBean)
 FacesContext.getCurrentInstance().getApplication().getELResolver().resolveVariable(facesContext,
 neededBean);

 This way is described here [1].

 But i got an error that the needed classfile for ELResolver wasn't found on
 my classpath. The project is maven configured and these are my dependencies:
dependencies
dependency
groupIdjavax.faces/groupId
artifactIdjsf-api/artifactId
version1.2/version
/dependency

dependency
groupIdorg.apache.myfaces.core/groupId
artifactIdmyfaces-api/artifactId
version1.2.8/version
scopecompile/scope
/dependency

dependency
groupIdorg.apache.myfaces.core/groupId
artifactIdmyfaces-impl/artifactId
version1.2.8/version
scopecompile/scope
/dependency


dependency
groupIdorg.apache.myfaces.tomahawk/groupId
artifactIdtomahawk12/artifactId
version1.1.9/version
/dependency

dependency
groupIdcom.sun.facelets/groupId
artifactIdjsf-facelets/artifactId
version1.1.14/version
/dependency

dependency
groupIdjavax.servlet/groupId
artifactIdservlet-api/artifactId
version2.4/version
/dependency
/dependencies

 How can solve the missing ELResolver class?

 If i add the el-api and el-impl to the projects pom, the webserver won't
 start.

 !--dependency--
 !--groupIdjavax.el/groupId--
 !--artifactIdel-api/artifactId--
 !--version1.2/version--
 !--scoperuntime/scope--
 !--/dependency--
 !
 !--dependency--
 !--groupIdjavax.el/groupId--
 !--artifactIdel-ri/artifactId--
 !--version1.2/version--
 !--scoperuntime/scope--
 !--/dependency--

 Thanks for reading/helping,
 Christian.



 [1] http://wiki.apache.org/myfaces/AccessingOneManagedBeanFromAnother



Re: ExtVal: ELHelper composite component problem

2010-06-02 Thread Leonardo Uribe
Hi

It could be good to have more information about what you are trying to do.
In myfaces there is a special code that handles #{cc} resolution, using
the Location object to identify the right composite component from the
composite component stack, so in theory mojarra could have something similar
and that could be the source of the problem.

regards,

Leonardo Uribe

2010/6/2 Rene Stehr why-de...@gmx.de


 Dear Gerhard,

 thank you for the quick reply. I am using the ExtVal library in my custom
 code to get further information about the value binding in order to map
 errors (from our backend) that occur at the Invoke Application phase to the
 corresponding UIInput-fields. That means, I need to know for each
 UIInput-object the bound backing bean object and the attribute name, both
 are described by the EL expression in the value-attribute of the UIInput
 (e.g., #{cc.attrs.person.name} - Backing Bean object is person1:Person,
 attribute name is name; person1 is just an example of an existing object
 at runtime).

 If the ELHelper is not able to resolve cc.attrs expressions, I would be
 grateful if you could recommend me another solution.

 Regards,
 Rene

  Original-Nachricht 
  Datum: Wed, 2 Jun 2010 00:39:17 +0200
  Von: Gerhard Petracek gerhard.petra...@gmail.com
  An: MyFaces Discussion users@myfaces.apache.org
  Betreff: Re: ExtVal: ELHelper composite component problem

  hi rene,
 
  are you using the implementation provided by extval for your custom code?
  or
  are you just using extval and the problem occurs during the validation
  process?
 
  regards,
  gerhard
 
  http://www.irian.at
 
  Your JSF powerhouse -
  JSF Consulting, Development and
  Courses in English and German
 
  Professional Support for Apache MyFaces
 
 
  2010/6/2 Rene Stehr why-de...@gmx.de
 
   Hello,
  
  
  
   I am using the ELHelper class in order to achieve information about the
   value binding of UIComponents (the binded attribute and the
  corresponding
   backing bean). This information can be received by the method
   „ELHelper.getPropertyDetailsOfValueBinding(UIComponent)“, which
  returns a
   PropertyDetails-object that contains the data I need.
  
  
  
  
  
   Here is the code:
  
   ELHelper helper = ExtValUtils.getELHelper();
  
   PropertyDetails details =
 helper.getPropertyDetailsOfValueBinding(comp);
  //
   The comp-Object is an instance of UIInput.
  
  
  
  
  
   This solution works very well, however, if the comp-object is part of a
   custom Composite Component, the details-object is always null. I have
   started to debug the ELHelper but until now I have no clue how it works
  in
   detail. I suppose that the problem is caused by the “cc.attrs”
  expression
   in
   the value-binding of the composite components, e.g.,
   #{cc.attrs.person.name}, that probably can not be resolved.
  
   I also tried to use the ValueExpression directly but this did not work
  as
   well.
  
  
  
   Does anyone understand that problem or even have a solution?
  
  
  
   Thanks in advance for any help
  
   Regards,
  
   Rene
  
  
  
   -
  
   Facts:
  
   JSF: mojarra 2.0.2
  
   ExtVal: 2.0.4 Snapshot
  
   Server: Apache Tomcat 6.0.26
  
  
  
  

 --
 GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
 Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01



[ANNOUNCE] MyFaces Core v1.1.8 Release

2010-06-11 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 1.1.8.


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


Please note this release also contains a fix for:

MYFACES-2749 Encrypted View State does not include Message 
Authentication Code (MAC)


This fix prevents padding oracle attack on view state when client side 
state saving is used.


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

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

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


Release Notes - MyFaces Core - Version 1.1.8

Bug

   * [MYFACES-2006] - getTableIndex: Integer to String (ClassCastException)
   * [MYFACES-2382] - Duplicate id exception when weblogic portal and 
jsf native portlet (faces-adapter.jar) is used

   * [MYFACES-2525] - Split javax.faces package in OSGi
   * [MYFACES-2566] - HTMLEncoder requiring StringBuilder class from JDK 5
   * [MYFACES-2684] - UIComponentBase.saveAttachedState save transient 
elements as null values on List case
   * [MYFACES-2726] - CommandLink renderer do not escape \ characters 
in generated javascript
   * [MYFACES-2749] - Encrypted View State does not include Message 
Authentication Code (MAC)


Improvement

   * [MYFACES-2680] - Cache renderKit used
   * [MYFACES-2691] - Enhance MessageUtils adding methods when custom 
library bundle should be scanned

   * [MYFACES-2737] - Cache FacesContext on UIComponentBase instances

Enjoy!

regards

Leonardo Uribe


[ANNOUNCE] MyFaces Core v1.2.9 Release

2010-06-11 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 1.2.9.


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


Please note this release also contains a fix for:

MYFACES-2749 Encrypted View State does not include Message 
Authentication Code (MAC)


This fix prevents padding oracle attack on view state when client side 
state saving is used.


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

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

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


Release Notes - MyFaces Core - Version 1.2.9

Bug

   * [MYFACES-1834] - suffix added to component id when including files
   * [MYFACES-1838] - javax.crypto.BadPaddingException: Given final 
block not properly padded
   * [MYFACES-2433] - Variable name error in oamClearHiddenInput and 
oamSetHiddenInput: use formname instead of formName

   * [MYFACES-2463] - CLONE -f:param violates the JSF spec
   * [MYFACES-2491] - _ErrorPageWriter does not print component properties
   * [MYFACES-2525] - Split javax.faces package in OSGi
   * [MYFACES-2611] - UIComponentBase.getFacetsAndChildren() must not 
access the component's facets and children directly
   * [MYFACES-2684] - UIComponentBase.saveAttachedState save transient 
elements as null values on List case
   * [MYFACES-2685] - Cannot call invokeOnComponent on UIColumn without 
rowIndex
   * [MYFACES-2686] - javax.faces.FacesException: 
java.lang.NumberFormatException while initializing if MANIFEST.MF 
version exceeds int value
   * [MYFACES-2726] - CommandLink renderer do not escape \ characters 
in generated javascript
   * [MYFACES-2749] - Encrypted View State does not include Message 
Authentication Code (MAC)


Improvement

   * [MYFACES-2679] - Use a constant to identify 
FacesCompositeELResolver.Scope value

   * [MYFACES-2680] - Cache renderKit used
   * [MYFACES-2691] - Enhance MessageUtils adding methods when custom 
library bundle should be scanned

   * [MYFACES-2737] - Cache FacesContext on UIComponentBase instances

regards

Leonardo Uribe


[ANNOUNCE] release of myfaces master pom v8

2010-06-21 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of myfaces master
pom v 8.

This pom is used internally by define default configuration and community
information shared by all myfaces projects and used when site deployment and
reports are executed.

You can find it in the maven repo unde the group
org.apache.myfaces.myfaces.

http://repo2.maven.org/maven2/org/apache/myfaces/myfaces/8/myfaces-8.pom

regards

Leonardo Uribe


Re: ExtVal: NullPointer during EL resolving for custom component

2010-06-30 Thread Leonardo Uribe
 CompositeComponentAttributesMapWrapper) and if so
return the value as MapELResolver does (or in other words as FlashELResolver
does).

I have not tested this solution yet but I think it will work. The behavior
proposed is not described on jsf 2.0 spec section 5.6.2.2, but I think we
can consider it an implementation detail and create a fix on myfaces. Please
create an issue on myfaces issue tracker and I'll propose a patch for this
one.

regards,

Leonardo Uribe


Re: Problems with orchestra and JSF 2

2010-07-02 Thread Leonardo Uribe
Hi

It is not a problem related to orchestra. JSF implementation does not decode
request with enctype=multipart/form-data. Other user reported this on:

https://issues.apache.org/jira/browse/MYFACES-2688

For decode that kind of requests it is necessary to use a filter or a
FacesContextWrapper. Tomahawk is one option (using ExtensionFilter or
TomahawkFacesContextWrapper), but Trinidad and other jsf libraries usually
has filters that do that.

regards,

Leonardo Uribe

2010/7/2 Bruno Aranda brunoara...@gmail.com

 Hi! I have finally manager to create a very simple test case for my
 problem.

 My issue with data loss seems to be related to the enctype of the form
 (multipart/form-data) and the fact that I am loading data using a
 preRenderView event.

 To reproduce this problem, create a test page:

 html xmlns=http://www.w3.org/1999/xhtml;
  xmlns:h=http://java.sun.com/jsf/html;
  xmlns:f=http://java.sun.com/jsf/core;
  xmlns:ui=http://java.sun.com/jsf/facelets;

 f:view contentType=text/html

h:body

h:form prependId=false enctype=multipart/form-data

f:metadata
f:event type=preRenderView
 listener=#{playgroundController.load}/
/f:metadata

h:inputText value=#{playgroundController.car.colour}/
h:inputText value=#{playgroundController.car.make}/

h:outputText value=#{playgroundController.car}/

h:commandButton value=Talk
 actionListener=#{playgroundController.talk}/
/h:form

/h:body

 /f:view
 /html

 With a backing bean behind:

 @Controller
 @Scope( conversation.access )
 public class PlaygroundController implements Serializable {

private Car car;

public PlaygroundController() {
System.out.println(\nNEW PLAY INSTANCE
 +Integer.toHexString(hashCode())+\n);
}

public void load() {
System.out.println(\nLOAD +Integer.toHexString(hashCode())+\n);
car = new Car();
}

public void talk(ActionEvent evt) {
System.out.println(CAR: +car);
}

public Car getCar() {
return car;
}

public void setCar(Car car) {
this.car = car;
}
 }


 If the enctype is multipart/form-data, when I click on the submit button,
 the bean will be instantiated again and the load method won't be called...
 throwing an ugly exception. If the enctype is the default, everything works
 as expected and the method talk(ActionEvent evt) will print the car in
 the
 console as expected.

 I am using multipart/form-data because I wanted to upload some files. I can
 see it is troublesome... anyone could explain me why?

 Thanks!

 Bruno


 On 1 July 2010 17:09, Bruno Aranda brunoara...@gmail.com wrote:

  Hi,
 
  No I do not use portlets. I am now writing a simple test case, to see if
 I
  can reproduce it. With the simplest case, everything is working as
 expected,
  so there has to be some conflict with the rest of the application (e.g.
  Spring 3 proxies, the transaction manager or something else). I am
  investigating to see if I can reproduce it...
 
  The conversationContext is fine in both scenarios...
 
  Bruno
 
 
  On 1 July 2010 16:50, Mario Ivankovits ma...@ops.co.at wrote:
 
  Heya!
 
  Please check the url parameter conversationContext has been added to
 each
  and every url.
 
  If it is missing, a new context will be created each request and then a
  new
  bean will be created too.
 
  Now you sure would like to know why it is missing ... if it is missing.
 
  Hmmm ... do you use portlets or such?
 
 
  Ciao,
  Mario
 
  PS: Sorry for top-posting, Mail-Client oddities ... :)
 
  -Ursprüngliche Nachricht-
  Von: Bruno Aranda [mailto:brunoara...@gmail.com]
  Gesendet: Donnerstag, 01. Juli 2010 14:42
  An: MyFaces Discussion
  Betreff: Re: Problems with orchestra and JSF 2
 
  What I can see as well after putting a method with the @PostConstruct
  annotation, is that this method is called every request, as if the
  conversation didn't exist before, which is not true.
 
  I am outputting the orchestra logs in the console, and I can see:
 
  2010-07-01 14:05:32,729 [qtp33228489-20] DEBUG (DebugPhaseListener,40) -
  Before phase: RESTORE_VIEW(1)
  2010-07-01 14:05:32,823 [qtp33228489-20] DEBUG (Conversation,108) -
 start
  conversation:general
 
  NEW INSTANCE PUBCONTROLLER HASH: 9f720d
 
   POST CONS PUB === 9f720d
 
  NEW INSTANCE PUBCONTROLLER HASH: 147f75
  NEW INSTANCE PUBCONTROLLER HASH: 1bbefe8
 
  2010-07-01 14:05:32,844 [qtp33228489-20] DEBUG (Conversation,176) - put
  bean
  to conversation:org.springframework.beans.factory.support.Dispo
  sablebeanadap...@25394361
 
 
 (bean=org.apache.myfaces.orchestra.conversation.spring.AbstractSpringOrchest
  rascop...@17167e6
  )
  2010-07-01 14:05:32,846 [qtp33228489-20] DEBUG (Conversation,176) - put
  bean
  to conversation:org.apache.myfaces.orchestra.conversation.sprin
 
 
 g.PersistenceContextConversationInterceptor.PERSISTENCE_CONTEXT(bean=org.apa

[ANNOUNCE] MyFaces Core v2.0.1 Release

2010-07-19 Thread Leonardo Uribe
   * [MYFACES-2764] - Disable facelets reloading for 
PROJECT_STAGE=Production
   * [MYFACES-2769] - Resource should expire immediately in 
javax.faces.PROJECT_STAGE=Development
   * [MYFACES-2770] - Improve ui:debug with information about the 
saved state
   * [MYFACES-2772] - Javascript: Improve the unit testing and logging 
facilities

   * [MYFACES-2773] - (JSF.js) Performance fixes
   * [MYFACES-2777] - Remove VISITED_FACET_COUNT from component 
attributes map

   * [MYFACES-2780] - MyFaces performance improvements for production
   * [MYFACES-2786] - Fix foundation work for jsf 2.1 in the areas of 
pps, timeout, delay, queue control

   * [MYFACES-2789] - add ASL headers to our poms
   * [MYFACES-2794] - jsf.js: Replace some direct comparisons with 
equalsIgnoreCase

   * [MYFACES-2795] - jsf.js:browser independend auto eval detection
   * [MYFACES-2797] - jsf.js Performance of raw updates could need 
improvement compared to mojarra
   * [MYFACES-2802] - Remove 
CompositeComponentResourceTagHandler.ATTACHED_OBJECT_HADLERS_KEY from 
Attributes Map
   * [MYFACES-2804] - LifecycleImpl _firstRequestProcessed should be 
marked as volatile
   * [MYFACES-2805] - Use synchronized blocks for ApplicationImpl 
_defaultValidatorsIds

   * [MYFACES-2807] - Use specific Instruction for body end element
   * [MYFACES-2814] - Implement hidden attribute for composite tags 
(spec rev A)
   * [MYFACES-2816] - h:button must support the disabled attribute 
(spec rev A)
   * [MYFACES-2818] - Add constructor to MyfacesConfig that assign all 
default values for testing


New Feature

   * [MYFACES-2735] - Javascript: Adding delegation as primary pattern 
for _Runtime.js moving the logging out from _Lang. into a debugging Lang.js

   * [MYFACES-2766] - Check StartupFacesContextImpl in ApplicationImpl

Task

   * [MYFACES-2334] - get ifnavigation sample working
   * [MYFACES-2350] - All renderers of components that implements 
ClientBehaviorHolder should encode javascript attributes
   * [MYFACES-2374] - UIViewRoot.getBeforePhaseListener() and 
UIViewRoot.getAfterPhaseListener() could be called on PhaseId.RESTORE_VIEW
   * [MYFACES-2672] - Don't create more wrappers for _behaviorsMap than 
necessary
   * [MYFACES-2677] - Adapt CompositeComponentAttributesMapWrapper to 
changes from MYFACES-2633
   * [MYFACES-2687] - Make sure jsf.js is included if client behaviors 
are rendered
   * [MYFACES-2693] - UIRepeat has to override visitTree() and 
invokeOnComponent()
   * [MYFACES-2694] - FaceletTestCase should install 
MockVisitContextFactory

   * [MYFACES-2702] - Implement composite:clientBehavior
   * [MYFACES-2713] - UIRepeat.broadcast() has to push the component of 
the IndexedEvent target to the stack
   * [MYFACES-2731] - f:validateBean disabled=true / should only 
disable adding the validator as a default-validator
   * [MYFACES-2732] - ValidatorTagHandlerDelegate should ignore 
binding, disabled and for on its MetaRuleset
   * [MYFACES-2736] - Do not render CDATA section on UIDebug's 
JavaScript for partial requests

   * [MYFACES-2759] - Clean up FacesContextImpl
   * [MYFACES-2783] - Do not install DebugPhaseListener in 
AbstractFacesInitializer
   * [MYFACES-2785] - Clean up initialization code and add tests for 
StartupServletContextListener and MyFacesServlet
   * [MYFACES-2813] - Change Value to Length in LengthValidator message 
(spec rev A)
   * [MYFACES-2815] - includeViewParams=true can also be 
faces-include-view-params=true (spec rev A)
   * [MYFACES-2817] - name attribute of h:outputScript and 
h:outputStylesheet should be documented as required (spec rev A)


Test

   * [MYFACES-2733] - Provide tests for f:validateBean /

Wish

   * [MYFACES-1353] - HtmlResponseWriterImpl - Prematurely Closes HTML 
Elements


regards

Leonardo Uribe


Re: ui:param value accessible in backing bean?

2010-07-20 Thread Leonardo Uribe
Hi

I checked in deep some days ago ui:param, and it only define the expression
when the view is build, but its context is not preserved on other phases.
FaceletContext extends from ELContext and override its VariableMapper and
FunctionMapper. So in practice, ui:param just add a variable on the variable
mapper. but after ui:composition and ui:include ends its processing the
variable is just discarded, because the whole VariableMapper wrapper created
by this two tags is removed too.

regards,

Leonardo Uribe

2010/7/20 Michael Heinen mhn4...@googlemail.com

 Is it possible to access the value of a facelets ui:param tag in phase
 render response in a backing bean?
 I tried to resolve #{activeTab} in MyController.getOnlick() without
 success.

 Sample:
 1) Template
 ui:composition template=templates/main.xhtml
 ui:param name=activeTab value=blabla/

 ui:define name=navigation
 ui:include src=/facelets/navigation.xhtml/ui:include
 /ui:define


 2) navigation.xhtml
 ...
 t:commandLink onclick=#{MyController.onlick}
 ...

 I use myFaces 1.2.9 and facelets 1.1.15.

 Thanks,
 Michael




Re: [COMMUNITY] MyFaces += Rudy De Busscher

2010-07-22 Thread Leonardo Uribe
Welcome!

best regards,

Leonardo

2010/7/22 Jan-Kees van Andel jankeesvanan...@gmail.com

 Congratulations and welcome to club, Rudy!

 Regards,
 Jan-Kees

 2010/7/22 Gerhard Petracek gpetra...@apache.org

  The MyFaces PMC is proud to announce a new addition to our community.
 
  Please welcome Rudy De Busscher as the newest MyFaces committer!
  Rudy is an active member of the MyFaces community, especially in
  the MyFaces Extensions Validator section of the code.
 
  @Rudy: Please add yourself to the Master-POM at
 
 https://svn.apache.org/repos/asf/myfaces/myfaces-master-pom/trunk/pom.xml
 
  Welcome  regards,
  Gerhard
 



[ANNOUNCE] release of myfaces master pom v 9

2010-08-23 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of myfaces master
pom v 9.

This pom is used internally by define default configuration and community
information shared by all myfaces projects and used when site deployment and
reports are executed.

You can find it in the maven repo unde the group
org.apache.myfaces.myfaces.

http://repo2.maven.org/maven2/org/apache/myfaces/myfaces/9/myfaces-9.pom

regards

Leonardo Uribe


[ANNOUNCE] release of myfaces site skin v 1

2010-08-29 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of myfaces site
skin v 1.

This jar file is used internally to define the style and layout of myfaces
site.

You can find it in the maven repo unde the group
org.apache.myfaces.maven.myfaces-site-skin.

http://repo2.maven.org/maven2/org/apache/myfaces/maven/myfaces-site-skin/1/

Leonardo


Re: ViewExpiredException: MyFaces PrimeFaces

2010-08-31 Thread Leonardo Uribe
Hi

Could you check your server log?. A more detailed exception could be found
there, to identify easily what's going on.

regards,

Leonardo Uribe

2010/8/31 Rafael Santini raf...@santini.eti.br

 Hi Ali,

 I have posted this question on PrimeFaces Forum.

 With Mojarra 1.2_15-b01, works perfectly!
 The problem is that I need to continue with MyFaces for a while.

 Thanks,

 Rafael Santini

 2010/8/31 Ali Ok al...@aliok.com.tr

  Hi Rafael,
  Primefaces forum[1] might be a better place to discuss this, but at first
  sight at your code, you should put the autoCompleteBean in view scope
  (available with JSF2).
 
  [1]http://primefaces.prime.com.tr/forum/
 
  Cheers,
  Ali
 
  On Tue, Aug 31, 2010 at 6:12 PM, SANTINI, Rafael raf...@santini.eti.br
  wrote:
 
   Hi,
  
   I'm trying to get PrimeFaces AutoComplete component to work with
 MyFaces.
  I
   have tried with MyFaces 1.2.9  PrimeFaces 1.1, MyFaces 2.0.1 
  PrimeFaces
   2.1 and MyFaces 2.0.1  PrimeFaces 2.2.M1. In the all cases, the
  fowlloing
   exception is raised:
  
   31/08/2010 11:51:32 org.apache.myfaces.renderkit.ErrorPageWriter
   handleThrowable
   SEVERE: An exception occurred
   javax.faces.application.ViewExpiredException: /autocomplete.xhtmlNo
 saved
   view state could be found for the view identifier: /autocomplete.xhtml
 at
  
 
 org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:128)
 at
  
 
 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:171)
 at
  
 
 org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189)
 at
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at
  
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at
  
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
  
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at
  
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
  
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
  
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 at
  
 
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
 at
  
 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
 at
  
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
 at java.lang.Thread.run(Thread.java:619)
  
   I have created a simple test case (.war):
   http://www.4shared.com/get/Jm6REAgI/autocomplete.html
  
   Any suggestion?
  
   Thanks,
  
   Rafael Santini
  
  
  
 
 
  --
  My Blog: http://blog.aliok.com.tr
  Twitter: http://twitter.com/aliok_tr
 



Re: ViewExpiredException: MyFaces PrimeFaces

2010-09-02 Thread Leonardo Uribe
(LifecycleImpl.java:76)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
   at
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
  Caused by: javax.faces.application.ViewExpiredException
   at
 
 org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:481)
   ... 21 more
  01/09/2010 10:27:56 org.apache.myfaces.lifecycle.PhaseListenerManager
  informPhaseListenersAfter
  SEVERE: Exception in PhaseListener RESTORE_VIEW(1) afterPhase
  java.lang.NullPointerException
   at
 
 org.primefaces.application.PostRestoreViewHandler.buildPartialView(PostRestoreViewHandler.java:71)
   at
 
 org.primefaces.application.PostRestoreViewHandler.afterPhase(PostRestoreViewHandler.java:47)
   at
 
 org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:92)
   at
 
 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:107)
   at
  org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
   at
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
  01/09/2010 10:27:56 javax.faces.webapp._ErrorPageWriter handleThrowable
  SEVERE: An exception occurred
  javax.faces.application.ViewExpiredException: /autocomplete.jspNo saved
  view state could be found for the view identifier: /autocomplete.jsp
   at
 
 org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:88)
   at
 
 org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
   at
  org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:183)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
   at
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
   at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Thread.java:619)
 
  Thanks,
 
  Rafael Santini
 
  - Original Message -
  From: Leonardo Uribe lu4...@gmail.com
  To: MyFaces Discussion users@myfaces.apache.org
  Sent: Tuesday, August 31, 2010 4:46 PM
  Subject: Re: ViewExpiredException: MyFaces

Re: ViewExpiredException: MyFaces PrimeFaces

2010-09-02 Thread Leonardo Uribe
)
at
 
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
at
 
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at
  org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
at java.lang.Thread.run(Thread.java:619)
  Caused by: java.security.InvalidKeyException: Invalid key length: 5 bytes
at com.sun.crypto.provider.DESCipher.engineGetKeySize(DashoA13*..)
at javax.crypto.Cipher.b(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at
 
 org.apache.myfaces.shared_impl.util.StateUtils.encrypt(StateUtils.java:314)
... 40 more
 
 
  Thanks,
 
  Rafael Santini
 
  - Original Message - From: Leonardo Uribe lu4...@gmail.com
  To: MyFaces Discussion users@myfaces.apache.org
  Sent: Thursday, September 02, 2010 11:05 AM
 
  Subject: Re: ViewExpiredException: MyFaces  PrimeFaces
 
 
   Hi
 
  If the code fails there, means the MAC secret was reset.
 
  Try set a MAC secret using the web param org.apache.myfaces.MAC_SECRET
 to
  prevent that secret to be reinitialized when the application is
 restarted
  (the same goes for org.apache.myfaces.SECRET). That should work.
 
  regards,
 
  Leonardo
 
  2010/9/2 Jakob Korherr jakob.korh...@gmail.com
 
   Hi,
 
  Seems like the message authentication code (MAC) somehow fails, because
  the
  first ViewExpiredException comes from this code:
 
  if (!isMacEqual)
  {
throw new ViewExpiredException();
  }
 
  Can you try your code with MyFaces 2.0.0, please? We don't have the MAC
  check in that version.
 
  Regards,
  Jakob
 
  2010/9/1 SANTINI, Rafael raf...@santini.eti.br
 
   Hi Leonardo,
  
   Follow the complete log. I couldn't find any wrong.
  
   01/09/2010 10:27:43 org.apache.catalina.core.AprLifecycleListener
 init
   INFO: The APR based Apache Tomcat Native library which allows optimal
   performance in production environments was not found on the
   java.library.path: C:\Arquivos de
  
 
 
 programas\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\ARQUIV~1\Borland\Delphi5\Projects\Bpl;C:\ARQUIV~1\Borland\Delphi5\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos
   de programas\MySQL\MySQL Server
   5.0\bin;C:\ferramentas\putty;C:\ferramentas\bzip2;C:\Arquivos de
   programas\Firebird\Firebird_2_0\bin;C:\Arquivos de
   programas\Java\jdk1.6.0_18\bin;C:\Arquivos de programas\MySQL\MySQL
  Server
  
 
 
 5.1\bin;C:\ARQUIV~1\Borland\Delphi6\Bin;C:\ARQUIV~1\Borland\Delphi6\Projects\Bpl;C:\Arquivos
   de programas\Microsoft SQL
   Server\80\Tools\BINN;C:\software\isis\cisis\bin;C:\Arquivos de
   programas\Arquivos comuns\Ahead\Lib\
   01/09/2010 10:27:43 org.apache.coyote.http11.Http11Protocol init
   INFO: Initializing Coyote HTTP/1.1 on http-8080
   01/09/2010 10:27:43 org.apache.catalina.startup.Catalina load
   INFO: Initialization processed in 234 ms
   01/09/2010 10:27:43 org.apache.catalina.core.StandardService start
   INFO: Starting service Catalina
   01/09/2010 10:27:43 org.apache.catalina.core.StandardEngine start
   INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
   01/09/2010 10:27:43 org.apache.catalina.startup.HostConfig
  deployDescriptor
   INFO: Deploying configuration descriptor autocomplete.xml
   01/09/2010 10:27:44 org.apache.catalina.core.StandardContext
   addApplicationListener
   INFO: The listener
   org.apache.myfaces.webapp.StartupServletContextListener is already
   configured for this context. The duplicate definition has been
 ignored.
   01/09/2010 10:27:44
  org.apache.myfaces.webapp.StartupServletContextListener
   dispatchInitializationEvent
   INFO: Checking for plugins:org.apache.myfaces.FACES_INIT_PLUGINS
   01/09/2010 10:27:44
 org.apache.myfaces.shared_impl.config.MyfacesConfig
   getBooleanInitParameter
   INFO: No context init parameter
   'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using
  default
   value false
   01/09/2010 10:27:44
 org.apache.myfaces.shared_impl.config.MyfacesConfig
   getBooleanInitParameter
   INFO: No context init parameter
   'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found,
 using
   default value false
   01/09/2010 10:27:44
 org.apache.myfaces.shared_impl.config.MyfacesConfig
   getBooleanInitParameter
   INFO: No context init parameter
   'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default 
  value
   false
   01/09/2010 10:27:44
 org.apache.myfaces.shared_impl.config.MyfacesConfig
   getBooleanInitParameter
   INFO: No context init parameter 
  'org.apache.myfaces.VIEWSTATE_JAVASCRIPT'
   found, using default value false
   01/09/2010 10:27:44
 org.apache.myfaces.shared_impl.config.MyfacesConfig
   createAndInitializeMyFacesConfig
   INFO

Re: ViewExpiredException: MyFaces PrimeFaces

2010-09-02 Thread Leonardo Uribe
*..)
 at
 org.apache.myfaces.shared_impl.util.StateUtils.encrypt(StateUtils.java:310)
... 40 more

 !-- To enable encryption --
  context-param
param-nameorg.apache.myfaces.USE_ENCRYPTION/param-name
param-valuetrue/param-value
  /context-param

  !-- Indicate the encryption algorithm used for encrypt the view state.
 --
  context-param
param-nameorg.apache.myfaces.ALGORITHM/param-name
!-- See
 http://java.sun.com/j2se/1.4.2/docs/guide/security/jce/JCERefGuide.htmlfor 
 details --
param-valueAES/param-value
  /context-param

  !-- Defines the default mode and padding used for the encryption
 algorithm --
  context-param
param-nameorg.apache.myfaces.ALGORITHM.PARAMETERS/param-name
param-valueCBC/PKCS5Padding/param-value
  /context-param

  !-- Defines the initialization vector (Base64 encoded) used for the
   encryption algorithm. Note its usage depends on the algorithm config
 used,
   that means it must be defined if CBC mode is used and could not if
 ECB mode is used --
  context-param
param-nameorg.apache.myfaces.ALGORITHM.IV/param-name
param-valueNzY1NDMyMTA3NjU0MzIxMA==/param-value
  /context-param

   !-- Indicate the algorithm used to calculate the Message Authentication
 Code that is added to the view state. --
   context-param
 param-nameorg.apache.myfaces.MAC_ALGORITHM/param-name
 param-valueHmacSHA1/param-value
   /context-param

   !-- Defines the secret (Base64 encoded) used to initialize the secret
 key
for encryption algorithm. The size of it depends on the algorithm
 used for encryption --
context-param
 param-nameorg.apache.myfaces.SECRET/param-name
  param-valueMDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIz/param-value
   /context-param

   !-- Define the initialization code (Bas64 encoded) that are used to
 initialize the secret key used
on the Message Authentication Code algorithm. The size of it depends
 on the algorithm used for mac calculation --
context-param
 param-nameorg.apache.myfaces.MAC_SECRET/param-name
  param-valueYWJjZDEyMzQ=/param-value
   /context-param

 Thanks,

 Rafael Santini

 - Original Message -
 From: Leonardo Uribe lu4...@gmail.com
 To: MyFaces Discussion users@myfaces.apache.org
 Sent: Thursday, September 02, 2010 11:59 AM
 Subject: Re: ViewExpiredException: MyFaces  PrimeFaces


  Hi
 
  You have to generate the keys properly, according to the algorithm used
 for
  encrypt and authenticate. Take a look at this page:
 
  http://wiki.apache.org/myfaces/Secure_Your_Application
 
  regards,
 
  Leonardo
 
  2010/9/2 Bruno Aranda brunoara...@gmail.com
 
  I don't have the problem, but I am using the latest MyFaces and
 Primefaces
  and implemented a solution similar to this one:
 
  http://primefaces.prime.com.tr/forum/viewtopic.php?f=3t=2631p=12657
 
  
 
 http://primefaces.prime.com.tr/forum/viewtopic.php?f=3t=2631p=12657hilit=burns#p12657
  
  Bruno
 
  On 2 September 2010 15:33, SANTINI, Rafael raf...@santini.eti.br
 wrote:
 
   Hi Leonardo,
  
   I'm getting the following exception with theses two parameters:
  
context-param
 param-nameorg.apache.myfaces.MAC_SECRET/param-name
 param-valueen05kt/param-value
/context-param
  
context-param
 param-nameorg.apache.myfaces.SECRET/param-name
 param-value7yrjw9/param-value
/context-param
  
   02/09/2010 11:31:41 javax.faces.webapp._ErrorPageWriter
 handleThrowable
   SEVERE: An exception occurred
   javax.faces.FacesException: java.security.InvalidKeyException: Invalid
  key
   length: 5 bytes
 at
  
 
 org.apache.myfaces.shared_impl.util.StateUtils.encrypt(StateUtils.java:332)
 at
  
 
 org.apache.myfaces.shared_impl.util.StateUtils.construct(StateUtils.java:237)
 at
  
 
 org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeViewStateField(HtmlResponseStateManager.java:104)
 at
  
 
 org.apache.myfaces.renderkit.html.HtmlResponseStateManager.writeState(HtmlResponseStateManager.java:94)
 at
  
 
 javax.faces.render.ResponseStateManager.writeState(ResponseStateManager.java:67)
 at
  
 
 org.apache.myfaces.application.jsp.JspStateManagerImpl.writeState(JspStateManagerImpl.java:510)
 at
  
 
 com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:620)
 at
  
 
 org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
 at
  
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
 at
  
 
 org.apache.myfaces.custom.ppr.PPRLifecycleWrapper.render(PPRLifecycleWrapper.java:84)
 at
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:187)
  
 at
  
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at
  
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206

[ANNOUNCE] MyFaces Test v1.0.0 Release

2010-09-05 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces Test
1.0.0.

The Myfaces Test Framework provides mock object libraries, plus base classes
for creating your own JUnit TestCases for JSF.

For more information please see: http://myfaces.apache.org/test

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

Release Notes - MyFaces Test - Version 1.0.0

Bug

* [MYFACESTEST-23] - ConfigParser should use Class.forName to load
classes

Improvement

* [MYFACESTEST-11] - Update ConfigParser to jsf 2
* [MYFACESTEST-20] - Support for composite value expressions like 'test
#{foo}'
* [MYFACESTEST-21] - Update AbstractAttributeMap and replace
MockScopeMap with _ScopeMap
* [MYFACESTEST-24] - Include MockPartialViewContextFactory and
MockVisitContextFactory by default on all test suites for myfaces-test20

New Feature

* [MYFACESTEST-15] - Add new MockResponseStateManager
* [MYFACESTEST-19] - JUnit4 Runner that runs each Test method in a
seperate classloader

Task

* [MYFACESTEST-10] - Create a site for this project in
myfaces.apache.org and publish it
* [MYFACESTEST-12] - Update AbstractJsfTestCase to jsf 2
* [MYFACESTEST-13] - MockResource must implement all its methods
* [MYFACESTEST-14] - Update myfaces-test to use JUnit 4.x
* [MYFACESTEST-16] - Update license and notice for myfaces test
* [MYFACESTEST-17] - Update MockExternalContext so it delegate to mock
request and response objects and add new methods present on facelets mocks
* [MYFACESTEST-18] - Include in AbstractJsfTestCase and
AbstractJmockTestCase protected methods for setup elements and allow better
customization
* [MYFACESTEST-22] - MockVisitContextFactory should behave like the
myfaces core VisitContextFactoryImpl

regards,

Leonardo Uribe


[ANNOUNCE] release of myfaces builder plugin 1.0.7

2010-09-05 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of
Apache MyFaces Builder Plugin 1.0.7

Apache MyFaces Builder Plugin is a maven plugin, used internally in
other projects like myfaces core and tomahawk for generate component
classes,
tag classes, faces-config files, .tld files and facelets taglib files. In
other
words, its several maven goals provide a component kit for generate jsf
components with minimal effort.

Apache MyFaces Builder Plugin is available in the central Maven repository
under
Group ID org.apache.myfaces.buildtools.

Leonardo


[ANNOUNCE] MyFaces Core v2.0.2 Release

2010-09-26 Thread Leonardo Uribe
   * [MYFACES-2856] - Unnecesary calls to checkResourceExists found on 
DefaultViewHandlerSupport and DefaultRestoreViewSupport
   * [MYFACES-2858] - pointless oamsubmit inline rendering (patch available)
   * [MYFACES-2860] - Provide AnnotationScanner interface
   * [MYFACES-2863] - Create a new package org.apache.myfaces.spi and implement 
Providers for integration points with application containers
   * [MYFACES-2864] - Allow caching of resources by the default external 
context impl
   * [MYFACES-2873] - Provide a way to change the order of ELResolvers
   * [MYFACES-2879] - Cache introspection information about converters
   * [MYFACES-2885] - Update maven site plugin to 2.1.1
   * [MYFACES-2897] - Render a message if there was no match for outcome
   * [MYFACES-2898] - use shared FacesServletMapping when possible
   * [MYFACES-2899] - Move Resource Handler selected code to shared
   * [MYFACES-2901] - Bundle oamSubmit.js into jsf.js
   * [MYFACES-2902] - Removal of YUI code due to project participants internal 
demand
   * [MYFACES-2923] - jsf.js finalize the testing and fix last minute bugs from 
the tests for 2.0.2

Task

   * [MYFACES-2825] - composite:interface, attribute and facet should handle 
unspecified attributes and should expose certain values only in Development 
stage (spec rev A)
   * [MYFACES-2828] - Indicate a better error message if a composite component 
MethodExpression includes parameters
   * [MYFACES-2840] - Use a copied Iterator instead of the real Enumeration in 
AbstractAttributeMap.AbstractAttributeIterator
   * [MYFACES-2842] - Refactor FlashImpl
   * [MYFACES-2893] - Update qdox to 1.12 on myfaces-builder-plugin

Test

   * [MYFACES-2844] - Create tests for clientEvent properties

regards,

Leonardo Uribe



Re: Issues in using tomahawk with Jboss 5

2010-09-30 Thread Leonardo Uribe
Hi

I think there should be some problem with your extensions filter
configuration. Try
deploy the example app in tomahawk distribution:

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

http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.9-bin.zip

Just set the param and deploy. Take a look at jscook menu demo. It should
work without problem.

best regards,

Leonardo

2010/9/29 Geetika Srivastava geetika.srivast...@tcs.com

 Hi,

 We are using tomahawk in our application deployed on Jboss server 5.0.1
 GA. Since Jboss contains built-in JSF implementation, we are using

 context-param
 param-nameorg.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL/param-name
 param-valuetrue/param-value
/context-param

 in our  application web.xml to override the Jboss implementation.  The
 required jars myfaces-api 1.1.5, myfaces-1.1.5 and tomahawk 1.1.8 are
 bundled with the war. The application deploys correctly, however we get a
 error message:
 Both MyFaces and the RI are on your classpath. Please make sure to use
 only one of the two JSF-implementations.

 On accessing the application, the JSCookMenu javascript is not called and
 the menus are not displayed. However on page refresh, the menus are
 displayed correctly. The requires JsCookMenu scripts are also called.
 There is no error displayed in logs.

 Kindly help in resolving this issue.


 Regards,
 Geetika Srivastava
 Tata Consultancy Services
 Mailto: geetika.srivast...@tcs.com
 Website: http://www.tcs.com
 
 Experience certainty. IT Services
   Business Solutions
   Outsourcing
 __
 =-=-=
 Notice: The information contained in this e-mail
 message and/or attachments to it may contain
 confidential or privileged information. If you are
 not the intended recipient, any dissemination, use,
 review, distribution, printing or copying of the
 information contained in this e-mail message
 and/or attachments to it are strictly prohibited. If
 you have received this communication in error,
 please notify us by reply e-mail or telephone and
 immediately and permanently delete the message
 and any attachments. Thank you





[ANNOUNCE] release of MyFaces Tomahawk v 1.1.10

2010-10-01 Thread Leonardo Uribe
 should be a composite component for jsf 2.0
   * [TOMAHAWK-1501] - Use new jsf 2.0 Resource api on CAPTCHA component
   * [TOMAHAWK-1503] - Update script.aculo.us to version 1.8.3 and prototype to 
1.6.1 on core20 branch
   * [TOMAHAWK-1504] - Update autoscroll feature to JSF 2
   * [TOMAHAWK-1508] - Find a way to convert between the model type required 
for the renderer, and the model-type that the backing-beans use for 
t:inputCalendar and t:inputDate
   * [TOMAHAWK-1522] - Introduce valueType attribute for UISelectMany components
   * [TOMAHAWK-1533] - Add preserveRowComponentState to t:dataTable
   * [TOMAHAWK-1542] - Compress javascript files for production and show 
uncompressed versions when ProjectStage is not Production
   * [TOMAHAWK-1543] - Don't add transient component resources if it was 
already added, like @ResourceDependency does
   * [TOMAHAWK-1548] - Allow t:dataScroller to be Ajaxified using f:ajax

New Feature

   * [TOMAHAWK-1425] - Support to java.sql.Date using inputCalendar tag.

Task

   * [TOMAHAWK-1470] - Setup tomahawk core and sandbox code module for JSF 2.0
   * [TOMAHAWK-1471] - Update components to implement PartialStateHolder 
interface in jsf 2.0 module
   * [TOMAHAWK-1473] - Fix AliasBean hack on component binding to use the new 
api in jsf 2.0
   * [TOMAHAWK-1474] - Behavior support for components that contains event 
aware properties in jsf 2.0 module
   * [TOMAHAWK-1488] - Convert example pages from JSP to Facelets
   * [TOMAHAWK-1498] - Update t:inputHtml and kupu to 1.4.16
   * [TOMAHAWK-1523] - Move all tests in core and core12 branch to core20 and 
create tests for new introduced stuff
   * [TOMAHAWK-1526] - Implement visitTree and invokeOnComponent for t:tree2
   * [TOMAHAWK-1530] - Create tests for clientEvent properties
   * [TOMAHAWK-1532] - Do not include t:dojoInitializer in tomahawk for jsf 2.0

Enjoy!

regards

Leonardo Uribe



Re: Missing dojo classes in sandbox20

2010-10-11 Thread Leonardo Uribe
Hi

Sandbox components has not been ported to JSF 2.0 yet.

JSF 2.0 has now ajax support, so the idea is rewrite those components in a
way that do not require dojo.

regards,

Leonardo Uribe

2010/10/11 juergen.wien...@hella.com

 Hello everybody,

 I'm using MyFaces 2.0.2 with tomahawk20 1.1.10

 Now I added tomahawk-sandbox20-1.1.10-SNAPSHOT (I need the s:submitOnEvent
 tag)

 While starting the tomcat (6.0.29) the console shows:

 11.10.2010 15:00:54 org.apache.myfaces.shared_impl.util.ClassUtils
 newInstance
 SCHWERWIEGEND: Class :
 org.apache.myfaces.custom.dialog.ModalDialogRenderer not found.
 java.lang.NoClassDefFoundError: org/apache/myfaces/custom/dojo/DojoWidget
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(
 SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.apache.catalina.loader.WebappClassLoader.findClass(
 WebappClassLoader.java:1141)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
 WebappClassLoader.java:1612)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
 WebappClassLoader.java:1491)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(
 SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.apache.catalina.loader.WebappClassLoader.findClass(
 WebappClassLoader.java:1141)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
 WebappClassLoader.java:1612)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
 WebappClassLoader.java:1491)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(
 ClassUtils.java:346)
at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(
 ClassUtils.java:311)
at
 org.apache.myfaces.config.FacesConfigurator.configureRenderKits(
 FacesConfigurator.java:2363)
at org.apache.myfaces.config.FacesConfigurator.configure(
 FacesConfigurator.java:530)
at
 org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(
 AbstractFacesInitializer.java:296)
at
 org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(
 Jsp21FacesInitializer.java:73)
at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(
 AbstractFacesInitializer.java:118)
at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(
 StartupServletContextListener.java:111)
at org.apache.catalina.core.StandardContext.listenerStart(
 StandardContext.java:4135)
at org.apache.catalina.core.StandardContext.start(
 StandardContext.java:4630)
at org.apache.catalina.core.ContainerBase.addChildInternal(
 ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(
 ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(
 StandardHost.java:546)
at org.apache.catalina.startup.HostConfig.deployDescriptor(
 HostConfig.java:637)
at org.apache.catalina.startup.HostConfig.deployDescriptors(
 HostConfig.java:563)
at org.apache.catalina.startup.HostConfig.deployApps(
 HostConfig.java:498)
at org.apache.catalina.startup.HostConfig.start(
 HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(
 HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
 LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(
 ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(
 StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(
 ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start

Re: Tomahawk installation - infinite redirect when configuring extension filters

2010-10-19 Thread Leonardo Uribe
Hi

If ExtensionsFilter does not work for your particulat configuration, you can
use TomahawkFacesContextWrapper strategy instead. It is useful in situations
like this one, where ExtensionsFilter just does not fit well. To do that you
must set the following web.xml config params:

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

   context-param

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

There is additional details here:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/TomahawkFacesContextWrapper.java

regards,

Leonardo Uribe

2010/10/19 Jakob Korherr jakob.korh...@gmail.com

 Hi,

 Then I guess it is some sort of incompatibility with Seam. However I
 am sorry, I've never really used it, so I don't know why this is
 happening..

 Regards,
 Jakob

 2010/10/19 Benjamin Mark be...@bemar.de:
  Hi,
 
  thx for your help but it doesn't helped. Already the same problem with
  infinite redirect:
 
  Thats the actuall web.xml
 
  ?xml version=1.0 ?
  web-app xmlns=http://java.sun.com/xml/ns/javaee;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
version=2.5
 
!-- RichFaces --
 
context-param
param-nameorg.richfaces.SKIN/param-name
param-valueblueSky/param-value
/context-param
 
!-- Suppress spurious stylesheets --
 
context-param
param-nameorg.richfaces.CONTROL_SKINNING/param-name
param-valuedisable/param-value
/context-param
 
context-param
param-nameorg.richfaces.CONTROL_SKINNING_CLASSES/param-name
param-valuedisable/param-value
/context-param
 
!--
Change load strategy to DEFAULT to disable sending scripts/styles
 as
packs
--
 
context-param
param-nameorg.richfaces.LoadStyleStrategy/param-name
param-valueALL/param-value
/context-param
 
context-param
param-nameorg.richfaces.LoadScriptStrategy/param-name
param-valueALL/param-value
/context-param
 
!-- Seam --
 
listener
 
 listener-classorg.jboss.seam.servlet.SeamListener/listener-class
/listener
 
filter
filter-nameSeam Filter/filter-name
filter-classorg.jboss.seam.servlet.SeamFilter/filter-class
/filter
 
filter-mapping
filter-nameSeam Filter/filter-name
url-pattern/*/url-pattern
/filter-mapping
 
servlet
servlet-nameSeam Resource Servlet/servlet-name
 
  servlet-classorg.jboss.seam.servlet.SeamResourceServlet/servlet-class
/servlet
 
servlet-mapping
servlet-nameSeam Resource Servlet/servlet-name
url-pattern/seam/resource/*/url-pattern
/servlet-mapping
 
!-- Facelets development mode (disable in production) --
 
context-param
param-namefacelets.DEVELOPMENT/param-name
param-value@debug@/param-value
/context-param
 
!-- JSF --
 
context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.xhtml/param-value
/context-param
 
servlet
servlet-nameFaces Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
 
servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern*.seam/url-pattern
/servlet-mapping
  servlet-mapping
servlet-nameFaces Servlet/servlet-name
url-pattern/faces//url-pattern
/servlet-mapping
 
security-constraint
display-nameRestrict raw XHTML Documents/display-name
web-resource-collection
web-resource-nameXHTML/web-resource-name
url-pattern*.xhtml/url-pattern
/web-resource-collection
auth-constraint /
/security-constraint
 
!--
uncomment ejb-local-ref entries when deploying to GlassFish and
(optionally) JBoss AS 5
--
!--
ejb-local-ref
ejb-ref-namecreditfriend/AuthenticatorBean/local/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type local-home/
localch.bemar.creditfriend.action.Authenticator/local
/ejb-local-ref
--
 
!--
Add entries for each EJB session bean which is also a Seam
 component
(not required on JBoss AS)
--
 
persistence-unit-ref
 
 persistence-unit-ref-namecreditfriend/pu/persistence-unit-ref-name
 
 
 persistence-unit-name../creditfriend.jar#creditfriend/persistence-unit-name
!--
The relative reference doesn't work on GlassFish. Instead, set
 the
persistence-unit-name to creditfriend, package
 persistence.xml
  in
the WAR, and add a jar-file element in persistence.xml with
  value
../../creditfriend.jar

[ANNOUNCE] release of myfaces builder plugin 1.0.8

2010-12-06 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of
Apache MyFaces Builder Plugin 1.0.8.

Apache MyFaces Builder Plugin is a maven plugin, used internally in
other projects like myfaces core and tomahawk for generate component
classes,
tag classes, faces-config files, .tld files and facelets taglib files. In
other
words, its several maven goals provide a component kit for generate jsf
components with minimal effort.

Apache MyFaces Builder Plugin is available in the central Maven repository
under
Group ID org.apache.myfaces.buildtools.

Enjoy!

Leonardo Uribe


Re: java.io.InvalidObjectException: enum constant attributes does not exist in class javax.faces.component.UIComponent$PropertyKeys

2010-12-10 Thread Leonardo Uribe
Hi

Is there any way to see the app log? In theory, when a ViewExpiredException
is thrown, the reason is logged there, but there is not on the browser.

I readed your previous emails related to this one and one possibility that
comes to my mind is we are storing something on session without implement
Serializable interface. If that so, as soon as GAE serialize the session to
disk, that code causes an Exception and when MyFaces try to restore the
state it just has dissapeared (servlet session is invalid, so a new one is
created and our value in javax.faces.ViewState request parameter is not
found, so a ViewExpiredException is thrown).

The solution if that is the case is check all lines that do something with
session map and check if it is possible to serialize to disk.

regards,

Leonardo


Re: java.io.InvalidObjectException: enum constant attributes does not exist in class javax.faces.component.UIComponent$PropertyKeys

2010-12-10 Thread Leonardo Uribe
Hi

One last note, to make client side state saving work try configure this two
params:


org.apache.myfaces.SECRET

org.apache.myfaces.MAC_SECRET


It is probably that the ViewExpiredException is thrown because you are not
configured the mac secret.

See http://wiki.apache.org/myfaces/Secure_Your_Application  for details.

regards,

Leonardo Uribe

2010/12/10 Leonardo Uribe lu4...@gmail.com

 Hi

 Is there any way to see the app log? In theory, when a ViewExpiredException
 is thrown, the reason is logged there, but there is not on the browser.


 I readed your previous emails related to this one and one possibility that
 comes to my mind is we are storing something on session without implement
 Serializable interface. If that so, as soon as GAE serialize the session to
 disk, that code causes an Exception and when MyFaces try to restore the
 state it just has dissapeared (servlet session is invalid, so a new one is
 created and our value in javax.faces.ViewState request parameter is not
 found, so a ViewExpiredException is thrown).

 The solution if that is the case is check all lines that do something with
 session map and check if it is possible to serialize to disk.

 regards,

 Leonardo



Re: GAE problem

2010-12-13 Thread Leonardo Uribe
Hi

First try to set org.apache.myfaces.SECRET and org.apache.myfaces.MAC_SECRET
into your web.xml as described on:

http://wiki.apache.org/myfaces/Secure_Your_Application

regards,

Leonardo Uribe

2010/12/13 Nikolay Rychkov nikolay.rych...@gmail.com

 I have this error during local run. I didn't try to deploy it. All my beans
 are menaged beans

 package ru.agost.jsf.graphml;

 import javax.faces.bean.ManagedBean;
 import javax.faces.bean.RequestScoped;
 import java.io.Serializable;

 /**
  * Date: 06.08.2010
  * Time: 2:55:36
  * p/
  *
  * @author Николай Рычков
  */
 @ManagedBean
 @RequestScoped
 public class GraphmlInputBean implements Serializable{
private static final long serialVersionUID = 5817856927436316046L;

String key;

String fileName;

String body;



public GraphmlInputBean() {
}

public String getKey() {
return key;
}

public void setKey(String key) {
this.key = key;
}

public String getFileName() {
return fileName;
}

public void setFileName(String fileName) {
this.fileName = fileName;
}

public String getBody() {
return body;
}

public void setBody(String body) {
this.body = body;
}
 }

 2010/12/14 Werner Punz werner.p...@gmail.com

  Ok thanks a lot I will look into it tomorrow, just one last question, do
  you get the error only if you deploy or do you get it in the local
 testing
  scenario as well, and are your beans you reference normal managed beans?
 
  Werner
 
 
  Am 13.12.10 22:03, schrieb Nikolay Rychkov:
 
   ?xml version=1.0 encoding=UTF-8?
  project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
  http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
  http://maven.apache.org/maven-v4_0_0.xsd;
  modelVersion4.0.0/modelVersion
 
  !-- The Basics --
  groupIdru.agost/groupId
  artifactIdagost/artifactId
  version1.0/version
  packagingwar/packaging
 
  nameAgost/name
  descriptionAgost description/description
 
  repositories
  repository
  idjava.net/id
  nameGlassFish Maven Repository/name
  urlhttp://download.java.net/maven/glassfish/url
  /repository
  repository
  idobjectify-appengine/id
  urlhttp://objectify-appengine.googlecode.com/svn/maven
  /url
  /repository
  repository
  idrepo1.maven.org/id
  nameJava.net Repository for Maven/name
  urlhttp://repo1.maven.org/maven2//url
 
  /repository
  repository
  idgoogle-maven-repo/id
  nameGoogle Maven Repository/name
  url
  http://google-maven-repository.googlecode.com/svn/repository//url
  /repository
  repository
  idmaven-gae-plugin-repo1/id
  nameMaven Google App Engine Repository/name
  urlhttp://maven-gae-plugin.googlecode.com/svn/repository/
  /url
  /repository
 
  repository
  idobjectweb/id
  nameObjectweb repository/name
  urlhttp://maven.objectweb.org/maven2/url
  /repository
  repository
  idjboss/id
  nameJBoss Maven2 repository/name
  urlhttp://repository.jboss.com/maven2//url
  snapshots
  enabledfalse/enabled
  /snapshots
  releases
  enabledtrue/enabled
  /releases
  /repository
  repository
  idglassfish/id
  nameGlassfish repository/name
  urlhttp://download.java.net/maven/1/url
  layoutlegacy/layout
  releases
  enabledtrue/enabled
  /releases
  snapshots
  enabledfalse/enabled
  /snapshots
  /repository
  repository
  idapache.snapshots/id
  nameApache Snapshot Repository/name
  url
  http://people.apache.org/repo/m2-snapshot-repository
  /url
  releases
  enabledfalse/enabled
  /releases
  snapshots
  enabledtrue/enabled
  /snapshots
  /repository
  repository
  idops4j.repository/id
  nameOPS4J Repository/name
  urlhttp://repository.ops4j.org/maven2/url
  releases
  enabledtrue/enabled
  /releases
  snapshots
  enabledfalse/enabled
  /snapshots
  /repository
  repository
  idCodehaus Snapshots/id
  urlhttp://snapshots.repository.codehaus.org//url
  snapshots
  enabledtrue/enabled
  /snapshots
  releases
  enabledfalse/enabled

[ANNOUNCE] release of myfaces commons v 1.0.1

2010-12-13 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of
Apache MyFaces Commons 1.0.1.

This project contains non-renderkit-specific code that can be used with any
myfaces jsf framework.

MyFaces Commons 1.0.1 is available in both binary and source distributions.

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

Apache MyFaces Commons is available in the central Maven repository under
Group ID org.apache.myfaces.commons.

Release Notes - MyFaces Commons - Version 1.0.1

Bug

* [MFCOMMONS-1] - id attribute for html components on JSF 1.2 could be
set via an rtexprvalue (but not by a ValueExpression)
* [MFCOMMONS-3] - mc:exportActionListener does not work with Facelets
* [MFCOMMONS-8] - EnumConverter can't fetch target class automatically
* [MFCOMMONS-16] - EL expressions are to evaluated on validation time
for Validator classes on facelets
* [MFCOMMONS-22] - Detail message for mcv:validateDateRestriction is not
clear
* [MFCOMMONS-24] - Copy myfaces messages from
javax.faces.Messages.properties to myfaces commons utils bundle
* [MFCOMMONS-26] - validateRegExpr doesnt support value binding in
patter property

Improvement

* [MFCOMMONS-4] - Adding Facelets example module to test components
* [MFCOMMONS-6] - mc:exporterActionListener just reads first
outputText of content
* [MFCOMMONS-13] - Update MessageUtils to new implementation in shared
* [MFCOMMONS-14] - Add new utility class for init parameters
WebConfigParamUtils
* [MFCOMMONS-15] - Move and document some very useful classes from
shared to myfaces commons utils
* [MFCOMMONS-17] - Add facelet function findComponent
* [MFCOMMONS-18] - Use myfaces builder annotations instead doclets
* [MFCOMMONS-19] - Create branch for JSF 2.0
* [MFCOMMONS-21] - Update shale-test dependency with myfaces-test
* [MFCOMMONS-23] - Test for classes on tld and faces-config.xml requires
connection to java.sun.com
* [MFCOMMONS-25] - Add Facelets Support to myfaces commons

New Feature

* [MFCOMMONS-12] - Add ConverterBase class to allow create converters
that evaluate EL expressions at render time
* [MFCOMMONS-20] - Add mc:outputClientId component and Facelets EL
function

Enjoy!

Leonardo Uribe


[ANNOUNCE] MyFaces Core v2.0.3 Release

2010-12-18 Thread Leonardo Uribe
 it to shared ClassUtils
* [MYFACES-2938] - Allow @JSFValidator and @JSFConverter to define custom 
tagHandler class
* [MYFACES-2940] - Use VisitContext information for prevent scan a 
component subtree on NamingContainer instances
* [MYFACES-2944] - Make those add*** methods public in WebXml
* [MYFACES-2945] - Make a way to get the FacesConfig from a provider
* [MYFACES-2951] - [PERF] enhance scanning for #{cc} expressions
* [MYFACES-2952] - Improve Atmosphere Meteor support of MyFaces
* [MYFACES-2955] - Allow projects using myfaces builder plugin to be open 
on Netbeans IDE 6.8
* [MYFACES-2957] - Use maven shade plugin to handle myfaces-impl-ee6 module
* [MYFACES-2958] - Improve handling of AJAX response if source element is 
deleted
* [MYFACES-2963] - Set default templates automatically when jsfVersion is 
20 or 2.0 with myfaces-builder-plugin
* [MYFACES-2966] - jsf.js impl request function refactoring
* [MYFACES-2967] - jsf.js i18n of internal error messages
* [MYFACES-2976] - Support hiding myfaces impl classes in osgi, and provide 
a single osgi bundle for api + impl
* [MYFACES-2986] - Provide an interface to override how to find spi 
interfaces

Task

* [MYFACES-2943] - DefaultLifecycleProviderFactory does not log 
LifecycleProvider Class correctly
* [MYFACES-2997] - Clean up SpiUtils

regards,

Leonardo Uribe



[ANNOUNCE] MyFaces Test v1.0.1 Release

2011-02-01 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces Test
1.0.1.

The Myfaces Test Framework provides mock object libraries, plus base classes
for creating your own JUnit TestCases for JSF.

For more information please see: http://myfaces.apache.org/test

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

Release Notes - MyFaces Test - Version 1.0.1

Bug

* [MYFACESTEST-39] - MockApplication20 should traverse view
SystemEventListeners

Improvement

* [MYFACESTEST-40] - Add MockApplication12.setExpressionFactory

regards,

Leonardo Uribe


Re: How do I get the Method EL Expression of actionListener in JSF 2.0?

2011-02-10 Thread Leonardo Uribe
Hi

Sorry for the late response. The problem is jsp uses
UICommand.setActionListener method, but in facelets things are different.

Look this class:

http://svn.apache.org/repos/asf/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/view/facelets/tag/jsf/ActionSourceRule.java

If the target is instance of ActionSource, setActionListener is used, but if
is ActionSource2, the listener is added through addActionListener and use a
wrapper (javax.faces.event.MethodExpressionActionListener).

The problem is there is no underlying MethodBinding in this case.

The solution could be create a custom ComponentTagHandlerDelegate with a
special rule for ActionSource. I think it is the right moment to get the EL
expression.

regards,

Leonardo

2011/2/7 Rudy De Busscher rdebussc...@gmail.com

 Hi all,

 For an ExtVal-addon I need to have access to the expression string of the
 actionListener property of a command button.

 So when i have
 *h:commandButton id=check value=Validate
 actionListener=#{personBean.someActionListener}/*
 I need #{personBean.someActionListener}.

 In JSF 1.X, you could get the MethodBinding by calling
 *actionCommand.getActionListener() *
 but now it returns null. *The method is deprecated but maybe this is a bug
 that the old behaviour isn't respected?*

 I can access the actionListener by calling
 *actionCommand.getActionListeners()*
 but then I get the interface object back and not the underlying
 MethodBinding.

 Anyone an idea?

 Thx
 Rudy.



[ANNOUNCE] MyFaces Core v2.0.4 Release

2011-02-14 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.0.4.

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

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

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

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

Release Notes - MyFaces Core - Version 2.0.4

Bug

* [MYFACES-2857] - Its not possible to change the summary/ detail message 
of a ParametrizableFacesMessage
* [MYFACES-2920] - UISelectOne/UISelectMany validateValue: Before comparing 
each option, coerce the option value type to the type of component's value
* [MYFACES-3002] - FaceletComponsitionContextImpl drops viewParams
* [MYFACES-3004] - prerenderView system event callback only triggered in 
certain cases
* [MYFACES-3007] - HtmlRendererUtils: incorrect handling of JavaScript code 
containing quote ('  ') symbol
* [MYFACES-3009] - Flash scope looses values on redirect
* [MYFACES-3010] - 2.0.3 REGRESSION: 
javax.faces.component._ClassUtils.convertToType
* [MYFACES-3013] - ExternalContext: setRequest(...) method does not reset 
cached request maps
* [MYFACES-3016] - Need to synchronize some methods
* [MYFACES-3017] - MyFaces Shared (and Core) rework for portlet support
* [MYFACES-3021] - javax.faces.view.facelets.ComponentHandler initializes 
TagHandlerDelegate on startup, but it should be on demand
* [MYFACES-3024] - MyFaces hangs when converting 2.2250738585072012e-308
* [MYFACES-3027] - cc:attribute type=java.lang.Integer does not enforce 
Integer when value is taken from facelets template
* [MYFACES-3029] - DoubleConverter isn't Locale aware
* [MYFACES-3037] - Children of iterating components receive multiple 
PostRestoreStateEvents
* [MYFACES-3038] - MyFaces fails to recognize 
ViewDeclarationLanguageFactory when defined in META-INF/services -- throws 
IllegalStateException instead

Improvement

* [MYFACES-2953] - make myfaces maven-3 compatible
* [MYFACES-2958] - Improve handling of AJAX response if source element is 
deleted
* [MYFACES-3020] - jsf.js dutch i18n translations
* [MYFACES-3036] - Support SKIP_ITERATION FacesContext property

regards,

Leonardo Uribe



Re: NullPointerException with OSGi Bundle

2011-02-22 Thread Leonardo Uribe
Hi

The problem presented here is related to the custom OSGi setup used. In
theory, the default ResourceHandler implementation uses the Thread Context
Class Loader (TCCL) to load its resources. That includes everything inside
META-INF/resources and for MyFaces everything inside
META-INF/internal-resources, but across jar files. OSGi by default does not
set the TCCL, but MyFaces expects that, so the problem finally appears.

The first consideration is the fix on the manifest proposed is questionable.
At start META-INF/resources/javax.faces is not a java package!. Why should
MyFaces export that as a package?. That just does not make sense. Even if it
works, it is a quick fix that does not solves the main problem.

The problem is similar to the one with OSGi and SPI interfaces (scan files
through META-INF/services in different jars using a discovery mechanism). To
solve this problem in a friendly way, MyFaces has a new interface called
org.apache.myfaces.spi.ServiceProviderFinder, so users can implement this
interface to help MyFaces to find the files through bundles.

Here there are two solutions:

1. Install a TCCL that could scan through bundles the resources.
2. Create a custom ResourceHandler implementation that implement OSGi
specific rules.

It is possible to apply the hack proposed (add the additional entries on
myfaces bundle manifest). I don't see any side effect of doing that, but
note it is not a full solution (so in principle it is safe to apply the
changes proposed).

regards,

Leonardo Uribe

2011/2/22 Jakob Korherr jakob.korh...@gmail.com

 Hi Clovis,

 I agree that this issue (MYFACES-3044) should be fixed and not closed
 as invalid. Thus I just reopened it.

 However, before I commit your proposed solution, are there any
 objections? Leonardo?

 Regards,
 Jakob

 2011/2/22 Mark Struberg strub...@yahoo.de:
  Hi Clovis!
 
  Please note that there is a new myfaces-2.0.4 out since last week. Afaik
 this got a bit love in regards to the OSGi part.
 
  If you like to submit patches, then please open a Jira and provide a svn
 diff against the latest trunk from
 
  svn co https://svn.apache.org/repos/asf/myfaces/current20 myfaces-trunk
 
  current20 contains all svn references you need to build the latest
 MyFaces2 version.
 
  LieGrue,
  strub
 
  --- On Tue, 2/22/11, clovis.seragio...@raibau.at 
 clovis.seragio...@raibau.at wrote:
 
  From: clovis.seragio...@raibau.at clovis.seragio...@raibau.at
  Subject: NullPointerException with OSGi Bundle
  To: users@myfaces.apache.org
  Date: Tuesday, February 22, 2011, 8:05 AM
  Hello,
 
  using the OSGi Bundle of MyFaces
  (myfaces-bundle-2.0.3.jar), I get first a
  warning:
  WARNING: Resource referenced by resourceName jsf.js and
  libraryName
  javax.faces not found in call to
  ResourceHandler.createResource. It will
  be silenty ignored.
 
  and then a NullPointerException:
  javax.faces.FacesException: java.lang.NullPointerException
  at
  org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(
  ExceptionHandlerImpl.java:241)
  at
  org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(
  ExceptionHandlerImpl.java:156)
  at
  org.apache.myfaces.lifecycle.LifecycleImpl.render(
  LifecycleImpl.java:258)
  at
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
  ...
  Caused by: java.lang.NullPointerException
  at
 
 org.apache.myfaces.shared_impl.renderkit.html.util.ResourceUtils.renderDefaultJsfJsInlineIfNecessary(
  ResourceUtils.java:204)
  at
 
 org.apache.myfaces.shared_impl.renderkit.html.HtmlTextRendererBase.encodeEnd(
  HtmlTextRendererBase.java:69)
  at
  javax.faces.component.UIComponentBase.encodeEnd(
  UIComponentBase.java:519)
  at
  javax.faces.component.UIComponent.encodeAll(
  UIComponent.java:626)
  at
  javax.faces.component.UIComponent.encodeAll(
  UIComponent.java:622)
  at
  javax.faces.component.UIComponent.encodeAll(
  UIComponent.java:622)
  at
  javax.faces.component.UIComponent.encodeAll(
  UIComponent.java:622)
  at
 
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(
  FaceletViewDeclarationLanguage.java:1320)
  at
  org.apache.myfaces.application.ViewHandlerImpl.renderView(
  ViewHandlerImpl.java:263)
  at
  org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(
  RenderResponseExecutor.java:85)
  at
  org.apache.myfaces.lifecycle.LifecycleImpl.render(
  LifecycleImpl.java:239)
  ... 23 more
 
  I submitted a bug, but it was closed, as this is the
  expected behavior. I
  was able to solve the problem by adding
  META-INF.internal-resources.javax.faces
  and
  META-INF.services
  to the exported packages in MANIFEST.MF. but I'd like to
  know anyway how I
  can avoid the NullPointerException without patching myself
  the file
  myfaces-bundle-2.0.3.jar.
 
  (The application I used is the first example from the book

Re: myfaces-test site

2011-02-28 Thread Leonardo Uribe
Hi Kito

The site page is http://myfaces.apache.org/test/, but there is no
assembly artifacts for this project yet (because at start it was used
internally for myfaces core, like myfaces-builder-plugin).

You can download the artifacts from here:

http://repo2.maven.org/maven2/org/apache/myfaces/test/

If you have any issues or ideas for improvement you can fill an issue
here (maybe the one related to feed managed beans from a faces-config
file):

https://issues.apache.org/jira/browse/MYFACESTEST

I'll add a download section for this project.

regards,

Leonardo Uribe


Re: myfaces-test site

2011-03-01 Thread Leonardo Uribe
Hi Kito

 Question: does it parse faces-config.xml for managed beans yet?

Not yet. I haven't investigated too much about it, but it is possible
to do it, moving some myfaces core code into myfaces test.

regards,

Leonardo


[ANNOUNCE] MyFaces Core v1.2.10 Release

2011-03-01 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
1.2.10.

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

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

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

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

Release Notes - MyFaces Core - Version 1.2.10

Bug

* [MYFACES-1890] - Numberconverter has issue with bigdecimal
* [MYFACES-2751] - escape attribute of h:outputLabel is not picked up by 
HtmlLabelRenderer
* [MYFACES-2857] - Its not possible to change the summary/ detail message 
of a ParametrizableFacesMessage
* [MYFACES-2928] - FacesConfigurator cast for ApplicationImpl directly to 
load converter configuration, instead use RuntimeConfig object
* [MYFACES-2934] - Side-channel timing attack in StateUtils class may still 
allow padding oracle attack
* [MYFACES-2969] - Example number used by f:convertNumber messages are not 
formatted taking into account locale and parameters.
* [MYFACES-2970] - f:convertNumber conversion is not symmetric when 
currencyCode and currencySymbol are used
* [MYFACES-2982] - Update localized javax.faces.Messages.properties
* [MYFACES-3001] - Memory Leak in MyFaces 1.2 related to RuntimeConfig 
ThreadLocal
* [MYFACES-3015] - CLONE -ExternalContext: setRequest(...) method does not 
reset cached request maps (1.2 branch)
* [MYFACES-3057] - CLONE - MyFaces hangs when converting 
2.2250738585072012e-308 (1.2.x fix)

Improvement

* [MYFACES-2224] - Misleading hint in error message for NFE in 
BigDecimalConverter

Task

* [MYFACES-2840] - Use a copied Iterator instead of the real Enumeration in 
AbstractAttributeMap.AbstractAttributeIterator

regards,

Leonardo Uribe



Re: Tomahawk components' javascript are undefined

2011-03-01 Thread Leonardo Uribe
Hi

If you receive those errors, it is probably your filter blocks
tomahawk one, so the resource requested is not served. In normal
conditions the components should work, inclusive if that so, probably
other libraries using similar hacks will fail too.

regards,

Leonardo

2011/3/1 Richard Yee richard.k@gmail.com:
 Did you ever change the way you implemented your filter? I am pretty sure it 
 is incorrect.


 Richard

 Sent from my iPhone

 On Mar 1, 2011, at 4:35 AM, AMIR-TAHMASSEB Marc Kamran 
 marc.amir-tahmas...@ombudsman.europa.eu wrote:

 Dear Richard and Omid,

 Finaly the only (an easiest) solution I found to my problem, was : NOT using 
 those tomahawk component.
 I replaced them by some jquery component and it works well now.

 Thanks for your help
 Marc

 -Original Message-
 From: Richard Yee [mailto:richard.k@gmail.com]
 Sent: 13 February 2011 15:38
 To: MyFaces Discussion
 Subject: Re: Tomahawk components' javascript are undefined

 See http://www.oracle.com/technetwork/java/filters-137243.html

 You should do a chain.doFilter instead of a forward at the end
 of your method. Your filter isn't letting the other filters
 process the request.

 Richard

 Sent from my iPhone

 On Feb 12, 2011, at 11:34 PM, omid p vermind...@gmail.com wrote:

 Hi,
 Can you not use
 url-pattern/faces/*/url-pattern
 instead of
 url-pattern*.faces/url-pattern
 maybe you corrupt tomahawk filter servlet by changing URL, just a
 guess do you use any other javascript library like jQuery or
 sth else ?

 On Thu, Feb 10, 2011 at 7:02 PM, AMIR-TAHMASSEB Marc Kamran 
 marc.amir-tahmas...@ombudsman.europa.eu wrote:

 Dear all,

 I have some of my Tomahawk component encounter problems to
 be displayed.

 More specificaly, components such as
 - t:inputFileUpload,
 - t:swapImage
 - t:popup
 - t:inputDate
 generate the following javascript error :
 Error: xxx_3AtoolsPopupPopup is undefined
 Error: SI_MM_swapImage is not defined
 Error: SI_MM_swapImgRestore is not defined
 Error: orgApacheMyfacesPopup is not defined and so on

 Everything worked well until I added a new filter to my
 application :

 My web.xml :
 filter
 filter-namelocalLanguageFilter/filter-name


 filter-classec.ep.eo.eoweb.filter.LocalLanguageFilter/filter-class

 /filter

 filter-mapping
 filter-namelocalLanguageFilter/filter-name
 url-pattern*.faces/url-pattern
 /filter-mapping


 This filter, parse the url and try to localize the language code at
 the begining of it. Then it set the application local
 languge to this
 lanaguage and finaly redirect to the appropriate âge.
 Here is the code :
 public void doFilter(ServletRequest servletRequest, ServletResponse
 servletResponse, FilterChain filterChain) throws IOException,
 ServletException {  HttpServletRequest request =
 (HttpServletRequest)
 servletRequest;  HttpServletResponse response =
 (HttpServletResponse)
 servletResponse;  boolean redirect = false;  String currentURL =
 formatURL(request.getServletPath());
 String originalUri = request.getRequestURI();  String uri =
 originalUri;  String contextPath = request.getContextPath();  if
 (uri.startsWith(contextPath)) {
  uri = uri.substring(contextPath.length());
 }
 String[] parts = uri.split(Constants.PATTERN_SLASH);

 if (parts.length0  parts[1].length()==2) {
  String languageCode=parts[1];
  uri = uri.substring(3);

  ILanguage language =
 getServices().findLanguageByBusinessKey(languageCode);

  if (language==null) {
   language=Constants.ENGLISH;
  }

  request.getSession().setAttribute(Constants.SYSTEM_LANGUAGE,
 language);

 }
 RequestDispatcher requestDispatcher =
 request.getRequestDispatcher(uri);
 requestDispatcher.forward(request, response); } As i
 specified, if I
 remove the filter, everything goes well. But as soon as the
 filter is
 active, the tomahawk components are altered :-(

 Do someone have an idea ?

 Thank in advance,

 Marc




 *Médiateur européen*

 *Marc Kamran Amir-Tahmasseb*

 Unité Communication - Développeur web

 T. +33 (0)3 88 17 44 10

 marc.amir-tahmas...@ombudsman.europa.eu

 1 avenue du Président Robert Schuman

 CS 30403

 F - 67001 Strasbourg Cedex

 T. + 33 (0)3 88 17 23 13

 F. + 33 (0)3 88 17 90 62

 www.ombudsman.europa.eu










Re: myfaces-tree2 component

2011-03-01 Thread Leonardo Uribe
Hi

Use t:tree2 using client side mode obviously will cause the problem
you mentioned, even if the generated html code is optimized in size.
The alternative is use server side mode or other tree implementation
that uses ajax techniques to load and show data. Right now I haven't
tested if t:tree2 and f:ajax can work together.

By those reasons, in this case it is possible t:tree2 is not a good
alternative for you. Really I would like to have a t:tree3 component
...

regards,

Leonardo

2011/3/1 Michael Heinen mhn4...@googlemail.com:
  Hi Pritam,

 I migrated a few weeks ago to the richfaces tree which has ajax support on
 board.
 Maybe it's an alternative for you.

 Regards,
 Michael

 Am 01.03.2011 09:20, schrieb Jakob Korherr:

 Hi Pritam,

 I had a similar problem in one of my projects and we solved it by
 making the tree AJAX aware - which means that we only loaded the first
 section of the tree with the site and then loaded other sections on
 demand if a user clicked the related +.

 However, if that is not possible for you, you have 2 other options: 1)
 use a different tree component from another library (not tomahawk) or
 2) write your own tree component.

 I hope this helps!

 Regards,
 Jakob

 2011/3/1, Gaikwad, Pritam (Pritam)pgaik...@avaya.com:

 Hi,



 We are using tomahawk's tree2 component in our application. We have more
 than 12000 nodes in the navigation tree which is the most important
 component of our application.



 The problem is- with 12000 nodes tree renderer generates large amount of
 html (~ 20MB) which is repetitive and   the browser takes almost 40-45
 minutes to render the tree. So, do we have any way to avoid this
 problem?



 Mentioned below html  is only a small part of what's being sent from the
 server.

 table cellpadding=0 cellspacing=0 border=0trtd width=19
 height=100% nowrap=nowrap
 background=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.re
 nderkit.html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/
 images/line-trunk.gifimg
 src=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.renderkit
 .html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/images/
 line-trunk.gif alt= width=19 height=18 border=0 //tdtd
 width=19 nowrap=nowrap height=100% valign=topa href=#
 onclick=setID(this.id);;return
 oamSubmitForm('navigation:_idJsp1','navigation:_idJsp1:enterprise:enterp
 rise-tree:enterprisetree:0:0:0:t2g',null,[['enterprisetree:org.apache.my
 faces.tree.NAV_COMMAND','0:0:0']]);
 id=navigation:_idJsp1:enterprise:enterprise-tree:enterprisetree:0:0:0:t
 2gimg
 id=navigation:_idJsp1:enterprise:enterprise-tree:enterprisetree:0:0:0:t
 2
 src=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.renderkit
 .html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/images/
 nav-minus-line-last.gif alt=Collapse border=0 height=18
 width=19 title=Collapse //a/tdtd nowrap=nowrapspan
 style=white-space:nowrap;img
 src=/CS-OAM/images/dtree/folderopen.gif alt=Folder Open border=0
 /a href=# onclick=setID(this.id);return
 oamSubmitForm('navigation:_idJsp1','navigation:_idJsp1:enterprise:enterp
 rise-tree:enterprisetree:0:0:0:_idJsp35');
 id=navigation:_idJsp1:enterprise:enterprise-tree:enterprisetree:0:0:0:_
 idJsp35 class=documentDefault Admin
 Site/a/span/td/tr/table
 table cellpadding=0 cellspacing=0 border=0trtd width=19
 height=100% nowrap=nowrap
 background=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.re
 nderkit.html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/
 images/line-trunk.gifimg
 src=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.renderkit
 .html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/images/
 line-trunk.gif alt= width=19 height=18 border=0 //tdtd
 width=19 height=100% nowrap=nowrap
 background=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.re
 nderkit.html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/
 images/spacer.gifimg
 src=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.renderkit
 .html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/images/
 spacer.gif alt= width=19 height=18 border=0 //tdtd
 width=19 nowrap=nowrap height=100% valign=top
 background=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.re
 nderkit.html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/
 images/line-trunk.gifimg id=t2
 src=/CS-OAM/faces/myFacesExtensionResource/org.apache.myfaces.renderkit
 .html.util.MyFacesResourceLoader/12986260/tree2.HtmlTreeRenderer/images/
 line-middle.gif alt= border=0 height=18 width=19 //tdtd
 nowrap=nowrapspan style=white-space:nowrap;a href=#
 onclick=setID(this.id);return
 oamSubmitForm('navigation:_idJsp1','navigation:_idJsp1:enterprise:enterp
 rise-tree:enterprisetree:0:0:0:0:_idJsp38');
 id=navigation:_idJsp1:enterprise:enterprise-tree:enterprisetree:0:0:0:0
 :_idJsp38 class=documentmhprfadmin/a/span/td/tr/table
 table cellpadding=0 cellspacing=0 border=0trtd width=19
 

Re: [ANNOUNCE] MyFaces Core v1.2.10 Release

2011-03-02 Thread Leonardo Uribe
Hi

It seems is caused by the solution committed on:

https://issues.apache.org/jira/browse/MYFACES-2873

I already reopened the issue.

regards,

Leonardo Uribe

2011/3/2 steffen.sp...@oeffentliche.de s...@oeffentliche.de:
 Hi,

 I am using MyFaces 1.2 in combination with Trinidad 1.2.14 on TomCat 6.0.20

 After changing the MyFaces Core Jar's from version 1.2.9 to version 1.2.10,
 I am getting the following NullPointerException:

 INFO: Server startup in 1352 ms
 Mar 2, 2011 8:57:08 AM org.apache.catalina.core.StandardWrapperValve invoke
 SEVERE: Servlet.service() for servlet Faces Servlet threw exception
 java.lang.NullPointerException
        at org.apache.myfaces.el.unified.ResolverBuilderBase.sortELResolvers(
 ResolverBuilderBase.java:114)
        at org.apache.myfaces.el.unified.ResolverBuilderForFaces.build(
 ResolverBuilderForFaces.java:63)
        at org.apache.myfaces.application.ApplicationImpl.createFacesResolver
 (ApplicationImpl.java:189)
        at org.apache.myfaces.application.ApplicationImpl.getELResolver(
 ApplicationImpl.java:181)
        at org.apache.myfaces.trinidadinternal.config.LazyValueExpression
 $MockELContext.init(LazyValueExpression.java:194)
        at
 org.apache.myfaces.trinidadinternal.config.LazyValueExpression._getELContext
 (
 LazyValueExpression.java:143)
        at
 org.apache.myfaces.trinidadinternal.config.LazyValueExpression._createValueExpressionFromApplication
 (
 LazyValueExpression.java:176)
        at
 org.apache.myfaces.trinidadinternal.config.LazyValueExpression.createValueExpression
 (
 LazyValueExpression.java:55)
        at org.apache.myfaces.trinidadinternal.config.ConfigParser
 $Handler.endElement(ConfigParser.java:252)
        at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
 AbstractSAXParser.java:601)
        at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement
 (
 XMLDocumentFragmentScannerImpl.java:1782)
        at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
 $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
        at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(
 XMLDocumentScannerImpl.java:648)
        at
 com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(
 XMLNSDocumentScannerImpl.java:140)
        at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument
 (
 XMLDocumentFragmentScannerImpl.java:511)
        at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
 XML11Configuration.java:808)
        at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
 XML11Configuration.java:737)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
 XMLParser.java:119)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
 (AbstractSAXParser.java:1205)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
 $JAXPSAXParser.parse(SAXParserImpl.java:522)
        at
 org.apache.myfaces.trinidadinternal.config.ConfigParser.parseConfigFile(
 ConfigParser.java:81)
        at
 org.apache.myfaces.trinidadinternal.context.RequestContextFactoryImpl._getBean
 (
 RequestContextFactoryImpl.java:71)
        at
 org.apache.myfaces.trinidadinternal.context.RequestContextFactoryImpl.createContext
 (
 RequestContextFactoryImpl.java:56)
        at
 org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl._attachRequestContext
 (
 GlobalConfiguratorImpl.java:470)
        at
 org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.beginRequest
 (
 GlobalConfiguratorImpl.java:208)
        at
 org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(
 TrinidadFilterImpl.java:155)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(
 TrinidadFilter.java:92)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
 ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(
 StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(
 StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(
 StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(
 ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(
 StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(
 CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(
 Http11Processor.java:849)
        at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
 JIoEndpoint.java:454)
        at java.lang.Thread.run(Thread.java:662)
 FormularDBNew

Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-10 Thread Leonardo Uribe
Hi

I think one of the problems right now it is necessary to overcome is create
a javascript documentation maven plugin for trinidad, myfaces core 2.0.x,
and probably tobago.

If you take a look at the sites of those projects, you'll see there is
generated javadoc, tlddoc, facelets-tlddoc and other documentation reports
available on the site. But there is not anything for javascript.

The reason is there is not a maven plugin written in java that do the job.
In theory it is possible to use jsdoc toolkit, but unfortunately there is
some code on myfaces core that by its structure can't be documented properly
with that tool (I already tried it, it just don't), and mozilla rhino causes
some problems when the goal is executed, because it loads the javascript
file too.

This is a good idea for a Google Summer Of Code, because in practice half of
the solution is done. Trinidad javascript plugin contains a code that is
capable of parse javascript files (look the obfuscator), so what we need is
use this code and create some code that scan for doclets (annotations on the
comments), get the information and build a model and finally generate the
documentation using a template tool like velocity. Again we have already
some code on myfaces builder plugin that could be useful.

Trinidad code is very robust. With JSF 2.0, we have a common ajax framework,
so in theory it is possible to create custom ajaxified components and make
them work together with trinidad. But I think what users wants is to know
the details behind it and how they can extend or override trinidad stuff.

regards,

Leonardo Uribe

2011/3/10 Scott O'Bryan darkar...@gmail.com

 Walter,

 Yeah, while creating a new renderkit isn't trivial, the Trinidad
 internals and API really lend themselves to allowing extensions to the
 framework.

 I know Oracle, for instance, has a very large renderkit extension
 which is based on Trinidad Internals.  Now it's mostly geared toward
 support of web business applications, but it really shows what can be
 done with the framework.

 I really would like to see a project like this get some traction
 personally.  ;)

 Scott

 On Mar 6, 2011, at 5:39 AM, Walter Mourão walter.mou...@gmail.com wrote:

  Thank you Dominik.
 
  Just to be clear: the aim is not simply compete...
  I think Trinidad has:
  - rock solid back-end;
  - support to non-javascript browser (I have applications running in old
 data
  collectors - windows mobile)
  ...
  and I would like to keep most of the java code untouched when migrating
 my
  applications to an up to date UI.
 
  I am personally highly involved in another open source project and I
 don't
  have much experience with JSF/Trinidad internals. I am not sure I can
 help
  much in such a task (create the new render kit), but I'm experimenting to
  see if I should go ahead with Trinidad or just migrate to another
 library.
 
  Best regards,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
  2011/3/6 Dominik Dorn domi...@dominikdorn.com
 
  If you're really want to compete with PrettyFaces, IceFaces, RichFaces
  etc.,
  I suggest to take a look at
 
  http://demo.sproutcore.com/sample_controls/
  http://www.sproutcore.com
 
  and rebuilt those for JSF.
  Sproutcore is currently quite hyped in twitter and gains a lot of
  interest, especially
  in the rails community.
 
 
 
 
  2011/3/6 Walter Mourão walter.mou...@gmail.com:
  Hi folks,
  following the thread Concerns about the future of Trinidad I would
 like
  to
  know the opinions about the best' Javascript package to use as a base
 to
  a
  new Trinidad render kit.
 
  JQuery http://jquery.org/
 
  Dojo Toolkit http://dojotoolkit.org/
 
  (another options ?)
 
  What do you think ? what about the licensing ?
 
  Thanks,
 
  Walter Mourão
  http://waltermourao.com.br
  http://arcadian.com.br
  http://oriens.com.br
 
 
 
 
  --
  Dominik Dorn
  http://dominikdorn.com
  http://twitter.com/domdorn
 
  Tausche Deine Lernunterlagen auf http://wu.studyguru.eu !
 



Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-11 Thread Leonardo Uribe
Hi

+1

That's good news. I'm interested. In the medium/long term we'll have more
javascript stuff in myfaces projects that needs to be documented, and this
could be a very valuable contribution.

regards,

Leonardo

2011/3/11 Scott O'Bryan darkar...@gmail.com

 So I did do some checking on this and we have something we are using
 in-house here at Oracle.  It uses a more robust javascript parser to
 generate the Javadocs and even allows the code to be annotated to produce
 much cleaner documentation.  The only bad thing about it is that we have
 some parsing for inheritance that is probably specific to our richclient.

 I talked with the guy who wrote and and he'd be willing to donate it if
 people are interested.  He said ripping out the proprietary stuff for
 inheritance should be pretty easy and then the MyFaces community could
 enhance to to allow the docs to work on our own stuff.  Are people
 interested?

 If so, I can open up a discussion on the dev list with the specifics.

 Scott


 On 03/10/2011 10:59 AM, Scott O'Bryan wrote:

 Very good points Leonardo, and your right about Trinidad's parser.  I
 do know that I've seen some stuff in-house which generates
 javascriptDoc and even does auditing.  Let me check to see if it's
 something we can donate or if it's too specific to our legacy code..

 On Mar 10, 2011, at 10:35 AM, Leonardo Uribelu4...@gmail.com  wrote:

  Hi

 I think one of the problems right now it is necessary to overcome is
 create
 a javascript documentation maven plugin for trinidad, myfaces core 2.0.x,
 and probably tobago.

 If you take a look at the sites of those projects, you'll see there is
 generated javadoc, tlddoc, facelets-tlddoc and other documentation
 reports
 available on the site. But there is not anything for javascript.

 The reason is there is not a maven plugin written in java that do the
 job.
 In theory it is possible to use jsdoc toolkit, but unfortunately there is
 some code on myfaces core that by its structure can't be documented
 properly
 with that tool (I already tried it, it just don't), and mozilla rhino
 causes
 some problems when the goal is executed, because it loads the javascript
 file too.

 This is a good idea for a Google Summer Of Code, because in practice half
 of
 the solution is done. Trinidad javascript plugin contains a code that is
 capable of parse javascript files (look the obfuscator), so what we need
 is
 use this code and create some code that scan for doclets (annotations on
 the
 comments), get the information and build a model and finally generate the
 documentation using a template tool like velocity. Again we have already
 some code on myfaces builder plugin that could be useful.

 Trinidad code is very robust. With JSF 2.0, we have a common ajax
 framework,
 so in theory it is possible to create custom ajaxified components and
 make
 them work together with trinidad. But I think what users wants is to know
 the details behind it and how they can extend or override trinidad stuff.

 regards,

 Leonardo Uribe

 2011/3/10 Scott O'Bryandarkar...@gmail.com

  Walter,

 Yeah, while creating a new renderkit isn't trivial, the Trinidad
 internals and API really lend themselves to allowing extensions to the
 framework.

 I know Oracle, for instance, has a very large renderkit extension
 which is based on Trinidad Internals.  Now it's mostly geared toward
 support of web business applications, but it really shows what can be
 done with the framework.

 I really would like to see a project like this get some traction
 personally.  ;)

 Scott

 On Mar 6, 2011, at 5:39 AM, Walter Mourãowalter.mou...@gmail.com
  wrote:

  Thank you Dominik.

 Just to be clear: the aim is not simply compete...
 I think Trinidad has:
 - rock solid back-end;
 - support to non-javascript browser (I have applications running in old

 data

 collectors - windows mobile)
 ...
 and I would like to keep most of the java code untouched when migrating

 my

 applications to an up to date UI.

 I am personally highly involved in another open source project and I

 don't

 have much experience with JSF/Trinidad internals. I am not sure I can

 help

 much in such a task (create the new render kit), but I'm experimenting
 to
 see if I should go ahead with Trinidad or just migrate to another

 library.

 Best regards,

 Walter Mourão
 http://waltermourao.com.br
 http://arcadian.com.br
 http://oriens.com.br



 2011/3/6 Dominik Dorndomi...@dominikdorn.com

  If you're really want to compete with PrettyFaces, IceFaces, RichFaces
 etc.,
 I suggest to take a look at

 http://demo.sproutcore.com/sample_controls/
 http://www.sproutcore.com

 and rebuilt those for JSF.
 Sproutcore is currently quite hyped in twitter and gains a lot of
 interest, especially
 in the rails community.




 2011/3/6 Walter Mourãowalter.mou...@gmail.com:

 Hi folks,
 following the thread Concerns about the future of Trinidad I would

 like

 to

 know the opinions about the best' Javascript package

Re: Tomahawk Input Calendar is showing in the wrong position

2011-03-17 Thread Leonardo Uribe
Hi

That is something new. I have never seen that before. Maybe some css
configuration affects the div or the calendar, so maybe you need to
create a custom theme for the calendar so you can override the default
values where the popup appear.

The properties to do that are styleLocation, javascriptLocation and
imageLocation (in tomahawk for jsf 2.0 there is also styleLibrary,
javascriptLibrary and imageLibrary).

regards,

Leonardo

2011/3/17 emerson echofloripa.y...@gmail.com:
 We changed the template of the page, and afterwards the calendar popup
 started to appear away from the button.

 The component configuration is:

 t:inputCalendar value=#{ConsultaDiarioForm.dataInicio}
 renderPopupButtonAsImage=true renderAsPopup=true
 popupWeekString=Semana size=10    popupTodayString=Hoje é
 id=dataInicio popupDateFormat=dd/MM/ alt=Digite a data
 inicial para pesquisar title=Digite a data inicial para pesquisar
 /t:inputCalendar

 The imagens of the before/After

 Before:
 https://picasaweb.google.com/lh/photo/H9ML-JtAIzj-5mXeunEM7SyftixIMAaR_uGG46TnU-0?feat=directlink

 After:
 https://picasaweb.google.com/lh/photo/-S1izZxddwHVR0EVg362TiyftixIMAaR_uGG46TnU-0?feat=directlink

 I would like to highlight that when using firebug, it shows in the div
 tag that wraps the calendar a fixed posiition by top and left style
 attributes. We dont know however where this is set.

 Any ideas?



Re: Tomahawk Input Calendar is showing in the wrong position

2011-03-17 Thread Leonardo Uribe
Hi

To locate the default files it uses tomahawk AddResource api. In
tomahawk for JSF 2.0 it uses the new ResourceHandler that is part of
the standard api.

In the first case look on tomahawk jar on
org/apache/myfaces/custom/calendar/resource/ path. You'll see two
themes (DB and WH).

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core/src/main/resources/org/apache/myfaces/custom/calendar/resource/

In the second case look on tomahawk jar on META-INF/resources.

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/core20/src/main/resources/META-INF/resources/

The easy way is just copy the default resources and do the necessary changes.

regards,

Leonardo

2011/3/17 emerson echofloripa.y...@gmail.com:
 What would be the original CSS on regards to location?
 Would it possible to just override that positioning without loosing
 the rest of the CSS?

 thanks
 emerson

 On 17 March 2011 15:40, Leonardo Uribe lu4...@gmail.com wrote:
 Hi

 That is something new. I have never seen that before. Maybe some css
 configuration affects the div or the calendar, so maybe you need to
 create a custom theme for the calendar so you can override the default
 values where the popup appear.

 The properties to do that are styleLocation, javascriptLocation and
 imageLocation (in tomahawk for jsf 2.0 there is also styleLibrary,
 javascriptLibrary and imageLibrary).

 regards,

 Leonardo

 2011/3/17 emerson echofloripa.y...@gmail.com:
 We changed the template of the page, and afterwards the calendar popup
 started to appear away from the button.

 The component configuration is:

 t:inputCalendar value=#{ConsultaDiarioForm.dataInicio}
 renderPopupButtonAsImage=true renderAsPopup=true
 popupWeekString=Semana size=10    popupTodayString=Hoje é
 id=dataInicio popupDateFormat=dd/MM/ alt=Digite a data
 inicial para pesquisar title=Digite a data inicial para pesquisar
 /t:inputCalendar

 The imagens of the before/After

 Before:
 https://picasaweb.google.com/lh/photo/H9ML-JtAIzj-5mXeunEM7SyftixIMAaR_uGG46TnU-0?feat=directlink

 After:
 https://picasaweb.google.com/lh/photo/-S1izZxddwHVR0EVg362TiyftixIMAaR_uGG46TnU-0?feat=directlink

 I would like to highlight that when using firebug, it shows in the div
 tag that wraps the calendar a fixed posiition by top and left style
 attributes. We dont know however where this is set.

 Any ideas?





[ANNOUNCE] MyFaces Core v1.1.9 Release

2011-03-22 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces 
Core 1.1.9.


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


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

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

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


Release Notes - MyFaces Core - Version 1.1.9

Bug

* [MYFACES-2857] - Its not possible to change the summary/ detail 
message of a ParametrizableFacesMessage
* [MYFACES-2928] - FacesConfigurator cast for ApplicationImpl 
directly to load converter configuration, instead use RuntimeConfig object
* [MYFACES-2934] - Side-channel timing attack in StateUtils class 
may still allow padding oracle attack
* [MYFACES-2970] - f:convertNumber conversion is not symmetric when 
currencyCode and currencySymbol are used


Task

* [MYFACES-2840] - Use a copied Iterator instead of the real 
Enumeration in AbstractAttributeMap.AbstractAttributeIterator



regards,

Leonardo Uribe


Re: [Trinidad] Best Javascript package to use in a new render kit

2011-03-22 Thread Leonardo Uribe
Hi

So, which one is the next step?

Leonardo


[ANNOUNCE] MyFaces Test v1.0.2 Release

2011-03-29 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces
Test 1.0.2.

The Myfaces Test Framework provides mock object libraries, plus base
classes for creating your own JUnit TestCases for JSF.

For more information please see: http://myfaces.apache.org/test

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

Binary and source assemblies can be found on:
http://myfaces.apache.org/test/download.html

Release Notes - MyFaces Test - Version 1.0.2

Bug

* [MYFACESTEST-43] - MockExternalContext20 does not implement all
its methods.
* [MYFACESTEST-44] - MockApplication20 should implement
createComponent methods and scan for @ListenerFor and
@ResourceDependency annotations

Improvement

* [MYFACESTEST-41] - Allow the definition of resourcebundle by
name as in faces-config.xml file
* [MYFACESTEST-46] - Create assembly packages and download page on site

regards,

Leonardo Uribe


[ANNOUNCE] release of myfaces builder plugin 1.0.9

2011-03-29 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of
Apache MyFaces Builder Plugin 1.0.9.

Apache MyFaces Builder Plugin is a maven plugin, used internally in
other projects like myfaces core and tomahawk for generate component classes,
tag classes, faces-config files, .tld files and facelets taglib files. In other
words, its several maven goals provide a component kit for generate jsf
components with minimal effort.

Apache MyFaces Builder Plugin is available in the central Maven repository under
Group ID org.apache.myfaces.buildtools.

Enjoy!

Leonardo Uribe


Re: JBoss 6: problem with tomahawk

2011-04-03 Thread Leonardo Uribe
Hi

It seems you could have two tomahawk versions on the same classpath.

The generated jsp tag class on version 1.2 or 2.0 looks like this:

public class FieldsetTag
extends org.apache.myfaces.custom.htmlTag.HtmlTagTag
{
public FieldsetTag()
{
}

public String getComponentType()
{
return org.apache.myfaces.Fieldset;
}

public String getRendererType()
{
return org.apache.myfaces.FieldsetRenderer;
}

private ValueExpression _legend;

public void setLegend(ValueExpression legend)
{
_legend = legend;
}

The previous code is correct. In tomahawk for version 1.1, String is used
instead ValueExpression. So it is probably your code takes tomahawk12 tld
and tomahawk for jsf 1.1 classes, causing the problem previously mentioned.

regards,

Leonardo Uribe

2011/4/3 Anton Gavazuk antongava...@gmail.com

 Hi all,

 got a nice issue during migration of my jsf 1.2 application to JBoss 6.
 Current version of tomahawk in my project is: tomahawk12-1.1.10.jar

 I'm getting such error when one of my jsps containing fieldset tag is being
 accessed:

 The method setLegend(String) in the type FieldsetTag is not applicable for
 the arguments (JspValueExpression)

 I looked in tld class for legend attribute definition:

attribute
namelegend/name
deferred-value/deferred-value
description![CDATA[The fieldset's legend.]]/description
/attribute

 And compared  with previous version - they are the same and I dont see any
 issue with this one.

 What could be wrong?

 Thanks,
 Anton



Re: [trinidad]

2011-04-04 Thread Leonardo Uribe
Hi

MyFaces provides some SPI interfaces to deal with this type of problems:

http://myfaces.apache.org/core20/myfaces-impl/apidocs/org/apache/myfaces/spi/package-summary.html

In is known some application servers could cause conflicts or just has its
own way to handle artifacts (in jboss for example, jar urls starts with
jndi:// ).

The solution for this problem is provide a custom implementation for
org.apache.myfaces.spi.AnnotationProvider, that follows the algorithm
described by the spec but deal with those specific details for your
particular application server (in this case just prevent scan those jars for
annotations, overriding getBaseUrls() method is enough). The default code
provided by MyFaces is fine.

regards,

Leonardo Uribe

2011/4/4 Scott O'Bryan darkar...@gmail.com

 This might be a good question to post to the Oracle Forums.

 As for classloaders, they work in a hierarchical fashion.  As such,
 classes can load other classes from outside of their classloader
 provided the Cpassloader in question is a parent of the current
 classloader.

 I doubt this is an issue with MyFaces specifically..

 Scott

 Sent from my iPhone

 On Apr 4, 2011, at 6:52 AM, Me Self wmso...@gmail.com wrote:

  When I deploy a web application that depends on:
 
  \WEB-INF\lib\jstl-1.2.jar
  \WEB-INF\lib\myfaces-api-2.0.4.jar
  \\WEB-INF\lib\myfaces-impl-2.0.4.jar
  \\WEB-INF\lib\trinidad-api-2.0.0-beta-2.jar
  \WEB-INF\lib\trinidad-impl-2.0.0-beta-2.jar
 
  ..in a clean weblogic 10.3 then all i fine, but when I deploy it in a
  weblogic server with oracle service bus then I get this error:
 
  04-04-2011 14:32:32 CEST Error
  org.apache.myfaces.webapp.AbstractFacesInitializer BEA-00 An
  error occured while initializing MyFaces: java.io.FileN
  otFoundException:
 
 \Oracle\Middleware\Oracle_OSB1\soa\connectors\FileAdapter.rar!fileAdapter.jar
  (The system cannot find the file specified)
  javax.faces.FacesException: java.io.FileNotFoundException:
 
 \Oracle\Middleware\Oracle_OSB1\soa\connectors\FileAdapter.rar!fileAdapter.jar
  (The system cannot find
  the file specified)
 at
 org.apache.myfaces.config.annotation.DefaultAnnotationProvider.getAnnotatedClasses(DefaultAnnotationProvider.java:174)
 at
 org.apache.myfaces.config.annotation.AnnotationConfigurator.createFacesConfig(AnnotationConfigurator.java:92)
 at
 org.apache.myfaces.config.DefaultFacesConfigurationProvider.getAnnotationsFacesConfig(DefaultFacesConfigurationProvider.java:148)
 at
 org.apache.myfaces.config.DefaultFacesConfigurationMerger.getFacesConfigData(DefaultFacesConfigurationMerger.java:91)
 at
 org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:452)
 at
 org.apache.myfaces.webapp.AbstractFacesInitializer.buildConfiguration(AbstractFacesInitializer.java:303)
 at
 org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:73)
 at
 org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:126)
 at
 org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111)
 at
 weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
 
  My own application has no reference to fileAdapter.jar but other
  apps on the server probably have. Is the getAnnotatedClasses()
  method cabable of seeing classes outside the applications own
  classloader and thereby conflicting with applications installed as
  part of the service bus? How should I interpret the error msg?



[ANNOUNCE] MyFaces Core v2.0.5 Release

2011-04-10 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.0.5.

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

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

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

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

Release Notes - MyFaces Core - Version 2.0.5

Bug

* [MYFACES-2457] - f:selectItem escape property not bound in facelets
* [MYFACES-3035] - PostConstruct method is called before properties are 
injected on Tomcat 7
* [MYFACES-3039] - MyFaces broken in Portlet environment: Fails to support 
extendable FacesContextFactory/FacesContext/ExternalContext
* [MYFACES-3040] - @PreDestroy Has Called 2 times
* [MYFACES-3042] - CCE: when running in portlet: Remove Servlet 
dependencies in FaceletViewDeclarationLanguage.java
* [MYFACES-3043] - Ajax: response(...) function breaks if request(...) has 
not been called previously
* [MYFACES-3044] - Resource jsf.js not found when using the OSGi bundle
* [MYFACES-3045] - jsf.js jsf.ajax.request doesn't resolve calling URL 
correctly -- ajax use in portlets broken
* [MYFACES-3047] - Component resources disappear after page reload
* [MYFACES-3049] - Bean Validation doesn't work with Glassfish el-impl-2.2
* [MYFACES-3050] - jsf.js: Bug in onload handler and queue
* [MYFACES-3054] - Allow forClass and value (converterId) together for 
@FacesConverter
* [MYFACES-3061] - Failure rendering the whole page by ajax due to ui:debug
* [MYFACES-3064] - UIView.createUniqueId shouldn't call encodeNameSpace to 
build the id.
* [MYFACES-3065] - checkedViewIdCacheEnabled should only be FALSE in 
ProjectStage#Development
* [MYFACES-3069] - Ajax: response function cannot be overrided by custom 
components
* [MYFACES-3081] - javax.faces.Application addBehaviors() throws 
UnsupportedOperationException when it shouldn't
* [MYFACES-3096] - Attached object pointing to the same component twice add 
one of them twice
* [MYFACES-3102] - FaceletViewDeclarationLanguage.getRenderedViewId is not 
necessary anymore since JSF 2.0

Improvement

* [MYFACES-2995] - Make method of determinine app context in FactoryFinder 
pluggable
* [MYFACES-3005] - Only send Flash cookie if needed
* [MYFACES-3071] - jsf.js: improve dynamic code loading
* [MYFACES-3072] - jsf.js: improvement in the error reporting
* [MYFACES-3073] - jsf.js: code cleanup _Runtime.js

New Feature

* [MYFACES-2290] - Add OSGi bundle information and bundle classloader / 
activator

Test

* [MYFACES-3062] - drop cglib from api tests

regards,

Leonardo Uribe



Re: Can anybody show me some sample about t:dataScroller with f:ajax?

2011-04-25 Thread Leonardo Uribe
Hi

Try this:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/dataScrollerAjax.xhtml

Maybe this one could be interesting too:

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/masterDetailAjax.xhtml

regards,

Leonardo Uribe

2011/4/20 周恩 ejbst...@hotmail.com

  Can anybody show me some sample about t:dataScroller with f:ajax?

 I want to provide t:dataTable and t:dataScroller with f:ajax!

 Thanks a lot for any reply!


 Below is some code with no f:ajax for t:dataScroller, just same as the
 file listCustomers.xhtml.


 ---
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 xmlns:f=http://java.sun.com/jsf/core;
 xmlns:h=http://java.sun.com/jsf/html;
 xmlns:ui=http://java.sun.com/jsf/facelets;
 xmlns:t=http://myfaces.apache.org/tomahawk;
 h:head

   f:loadBundle basename=com.zhouen.sample.view.bundle.messages
 var=msgs/
   h:outputStylesheet name=style.css library=css/
   h:outputStylesheet name=skin.css  library=css/
   h:outputScript name=script.js library=js/

   title
h:outputText value=#{msgs.application} -
 #{msgs.title_customer_list}/
   /title
 /h:head
 h:body
   ui:include src=/inc/header.xhtml/
   center

h:panelGrid columns=1
 h:outputText value=#{msgs.title_customer_list} styleClass=title /
 h:commandButton id=preCreateAction
 value=#{msgs.title_customer_create} styleClass=button
 action=#{customerController.preCreateAction}/
/h:panelGrid

h:form styleClass=normalForm

 h:panelGroup id=customers
 t:dataTable id= customersData
  nbs p;   styleClass   = dataTable
  headerClass   = dataTable_header
  footerClass= dataTable_footer
  rowClasses= dataTable_rows_odd,
 dataTable_rows_even
var  nbsp ; = customer
  value  =
 #{customerController.customerBeans}
 binding   = #{customerController.row}

  preserveDataModel = true
  nb sp;   rows   = 15
  rowId =
 #{customer.customerId}
  sortColumn  =
 #{customerController.sort}
  sortAscending= #{cus
 tomerController.ascending}
  preserveSort= true

   t:column width=15%
 f:facet name=header
   f:ajax excute=@this render=@form
   t:commandSortHeader id=customerId
 columnName=customerId arrow=true
 h:outputText value=#{msgs.customer_customerId}/

   /t:commandSortHeader
   /f:ajax
 /f:facet
 h:commandLink id=customerId_
 action=#{customerController.viewAction}
   h:outputText value=#{customer.customerId}/
 /h:commandLink
   /t:column

   t:column width= 15%
 f:facet name=header
   f:ajax excute=@this render=@form
   t:commandSortHeader id=customerTypeId
 columnName=customerTypeId arrow=true
 h:outputText value=#{msgs.customer_customerTypeId}/
   /t:commandSortHeader
   /f:ajax
 /f:facet
  lt;h:outputText id=customerTypeId_ value=#{
 customer.customertype.name}/
   /t:column

   t:column width=25%
 f:facet name=header
   f:ajax excute=@this render=@form
   t:commandSortHeader id=name columnName=name
 arrow=true
 h:outputText value=#{msgs.customer_name}/
   /t:commandSortHeade r
   /f:ajax
 /f:facet
 h:outputText id=name_ value=#{customer.name}/
   /t:column

   t:column width=15%
 f:facet name=header
   f:ajax excute=@this render=@form
   t:commandSortHeader id=phone columnName=phone
 arrow=true
 n bsp;   h:outputText value=#{msgs.customer_phone}/
   /t:commandSortHeader
   /f:ajax
 /f:facet
 h:outputText id=phone_ value=#{customer.phone}/
   /t:column

   t:column width=15%
 f:facet name=header
   f:ajax excute=@this render=@form
   t:commandSortHeader id=remark columnName=remark
 arrow=true
 h:outputText value=#{msgs.customer_remark

Re: Problems retrieving selection data from t:datalist via actionlistener

2011-04-25 Thread Leonardo Uribe
Hi

The problem you described here is because JSF javax.faces.UIData
default implementation depends on the rowIndex to indicate which row
is being affected by the action (for example click a link), or restore
the state of the row. I'll do a description about the problem, to give a
better idea about what's going on.

For example, suppose this list of data:

- A
- C

Now suppose between the first request and the next one when you
press the link (for C row), by some reason (other user, same user
other window, ... ), now the list is this:

- A
- B
- C

When UIData tries to know which link was clicked, it says
... look for the second row ..., so in practice, the server assume B
was clicked, but the client clicked C.

There is a lot of solutions in JSF to deal with this problem. JSF libraries
has
overcome this issue creating its custom JSF component hierarchy
and its custom model interfaces (see Trinidad for example). Other
solutions include
use MyFaces Orchestra to store the model in access scope,
t:dataTable preserveDataModel property or in a future release of tomahawk
(1.1.11) use
an EL expression to identify the row and derive the child clientIds called
rowKey. Below
there is the description:

* - Used to assign a value expression that identify in a unique way a row.
This value
   will be used later instead of rowIndex as a key to be appended to the
container
   client id using getDerivedSubClientId() method.
*
The only disadvantage of use rowKey, is that in some way the
primary key or a derivate of your data is output on the html, and somebody
could
not want that by some special reason. Note the default strategy used for
years in UIData using rowIndex hides that information.

regards,

Leonardo Uribe

2011/4/8 Georg Füchsle giofy...@googlemail.com

 Hallo!


 I use Jsf 1.2 with Tomahawk and Facelets.

 On a page listing users that belong to a company, I use t:datalist ..
 To edit one user, I call an actionListener, that retrieves the id of
 the selected user.

 This works since some years. Now it happens sometimes that the
 selection of the user finds a userid of a user that belongs to another
 company as listed.

 This is really bad... :-(

 Is there any advance to replace the actionlistener with
 f:setPropertyActionListener ...?
 Has anybody an idea?

 Thanks!



 here is may actual code:




 table
t:dataList id=tablebediener
rowCountVar=macCount
value=#{mbBedienerVerwaltung.bedienerEB}
var=bediener
rowIndexVar=index
tr
td class=tabA_rahmen
style=padding-left: 5px; width: 310px;
div
t:commandLink  styleClass=aLink

  value=#{bediener.bedAnzeigeName}

  action=#{mbBedienerVerwaltung.edit}

  actionListener=#{mbBedienerVerwaltung.mandantSearch}
/t:commandLink
/div
/td

td.../td
...
/tr

/t:dataList
 /table




 Here my backing bean:



 public class MbBedienerVerwaltung implements Serializable
 {
private ListBedienerData bedienerEB=null;
private Integer idBediener;



public void mandantSearch(ActionEvent event)
{
this.idBediener = 0;
try
{
BedienerData bed = null;
UIData ob = JsfUtils.getUIDataParent(event);
Object tmp = ob.getRowData();
bed = (BedienerData) tmp;
this.idBediener = bed.getBedId();

}
catch (RuntimeException e)
{
log_tech.warn(mandantSearch(): Die BedienerId kann nicht
 bestimmt werden! Der Bediener kann nicht editiert werden);
this.idBediener = null;
}

}

public String edit()
{
if ((mbBediener != null))
{
// retrieve Backingbean for User
MbBediener mbBediener = JsfUtils.getMbBediener();
// read Userdate for id from Database
mbBediener.read(idBediener);
return edit;
}
// Error
return error;
}

 .

 }



Re: JBoss 6: problem with tomahawk

2011-05-02 Thread Leonardo Uribe
Hi

Here you can download the snapshots of myfaces projects, including tomahawk.

https://repository.apache.org/content/repositories/snapshots/org/apache/myfaces

regards,

Leonardo


Re: Myfaces extension: changing default resource uri

2011-05-03 Thread Leonardo Uribe
Hi

The web config param you are looking for is this one:

org.apache.myfaces.RESOURCE_VIRTUAL_PATH

by default is:

/faces/myFacesExtensionResource

so you'll need to change your filter mapping and this param to make it work.

regards,

Leonardo

2011/5/3 sundaram wit_su...@yahoo.co.in:

 Myfaces resources for extension are loaded from this default path

 /faces/myFacesExtensionResource/*

 But in my web app, for security purpose urls can have only
 path like this /faces/fduf/*

 and thus extension resources are not getting loaded in webpages, as
 extension resource urls are not allowed.

 How can i change the default extension url.


 usual entry in web.xml
    filter-mapping
        filter-nameMyFacesExtensionsFilter/filter-name
        url-pattern/faces/myFacesExtensionResource/*/url-pattern
    /filter-mapping
 --
 View this message in context: 
 http://old.nabble.com/Myfaces-extension%3A-changing-default-resource-uri-tp31535354p31535354.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: Myfaces extension: changing default resource uri

2011-05-04 Thread Leonardo Uribe
Hi

Look here (just replace extensionResource with ndm):

http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk/examples/simple20/src/main/webapp/WEB-INF/web.xml

Check this param:

  context-param
description
Change the url-pattern from the ExtensionsFilter
Default is /faces/myFacesExtensionResource
Note: The filter-mapping for ExtensionsFilter, the url-pattern is
this value + /*, else there comes a exception
/description
param-nameorg.apache.myfaces.RESOURCE_VIRTUAL_PATH/param-name
param-value/faces/extensionResource/param-value
  /context-param

and then this one:

  filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/*/url-pattern
  /filter-mapping

it could be too:

  filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern/faces/extensionResource/*/url-pattern
  /filter-mapping

regards,

Leonardo

2011/5/4 sundaram wit_su...@yahoo.co.in:

 can you provide a example for this.


 like original resource location = /faces/myFacesExtensionResource/*

 allowed url = /faces/ndm/*



 Leonardo Uribe wrote:

 Hi

 The web config param you are looking for is this one:

 org.apache.myfaces.RESOURCE_VIRTUAL_PATH

 by default is:

 /faces/myFacesExtensionResource

 so you'll need to change your filter mapping and this param to make it
 work.

 regards,

 Leonardo

 2011/5/3 sundaram wit_su...@yahoo.co.in:

 Myfaces resources for extension are loaded from this default path

 /faces/myFacesExtensionResource/*

 But in my web app, for security purpose urls can have only
 path like this /faces/fduf/*

 and thus extension resources are not getting loaded in webpages, as
 extension resource urls are not allowed.

 How can i change the default extension url.


 usual entry in web.xml
    filter-mapping
        filter-nameMyFacesExtensionsFilter/filter-name
        url-pattern/faces/myFacesExtensionResource/*/url-pattern
    /filter-mapping
 --
 View this message in context:
 http://old.nabble.com/Myfaces-extension%3A-changing-default-resource-uri-tp31535354p31535354.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.





 --
 View this message in context: 
 http://old.nabble.com/Myfaces-extension%3A-changing-default-resource-uri-tp31535354p31543632.html
 Sent from the MyFaces - Users mailing list archive at Nabble.com.




Re: f:setPropertyActionListener does not work

2011-05-04 Thread Leonardo Uribe
Hi

Could you provide the exception to see if there is a configuration problem?

regards,

Leonardo

2011/5/4 Georg Füchsle giofy...@googlemail.com:
 Hallo

 I have made up a small JSF-Project using maven.
 It works as long I will not use f:setPropertyActionListener.
 When f:setPropertyActionListener is called, it runs into an exception.

 I deploy to WebShpere 6.1.

 I tried to switch the class loading without success.
 Looking forward for any help!

 Thanks Georg


 ***
 Here my sources:
 pom.xml:

 project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
        xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/maven-v4_0_0.xsd;
        modelVersion4.0.0/modelVersion
        groupIdde.safir/groupId
        artifactIdInvestInformWeb/artifactId
        version0.0.1-SNAPSHOT/version
        packagingwar/packaging
        name /
        description /
        dependencies
                dependency
                        groupIdorg.apache.openejb/groupId
                        artifactIdjavaee-api/artifactId
                        version5.0-3/version
                /dependency
                dependency
                        groupIdjavax.faces/groupId
                        artifactIdjsf-api/artifactId
                        version1.2_04/version
                        scopecompile/scope
                /dependency
                dependency
                        groupIdjavax.servlet/groupId
                        artifactIdjstl/artifactId
                        version1.2/version
                        scopeprovided/scope
                /dependency
                dependency
                        groupIdjavax.servlet.jsp/groupId
                        artifactIdjsp-api/artifactId
                        version2.1/version
                        scopeprovided/scope
                /dependency
                dependency
                        groupIdjavax.faces/groupId
                        artifactIdjsf-impl/artifactId
                        version1.2_04/version
                        scopecompile/scope
                /dependency
                dependency
                        groupIdcom.sun.facelets/groupId
                        artifactIdjsf-facelets/artifactId
                        version1.1.9/version
                /dependency
                dependency
                        groupIdjavax.el/groupId
                        artifactIdel-api/artifactId
                        version1.0/version
                /dependency
                dependency
                        groupIdcom.sun.el/groupId
                        artifactIdel-ri/artifactId
                        version1.0/version
                /dependency
        /dependencies
        build
                sourceDirectory${basedir}/src/sourceDirectory
                
 outputDirectory${basedir}/WebRoot/WEB-INF/classes/outputDirectory
                resources
                        resource
                                directory${basedir}/src/directory
                                excludes
                                        exclude**/*.java/exclude
                                /excludes
                        /resource
                /resources
                plugins
                        plugin
                                groupIdorg.apache.maven.plugins/groupId
                                artifactIdmaven-war-plugin/artifactId
                                configuration
                                        
 webappDirectory${basedir}/WebRoot/webappDirectory
                                        
 warSourceDirectory${basedir}/WebRoot/warSourceDirectory
                                        archive
                                                manifest
                                                        
 addClasspathtrue/addClasspath
                                                /manifest
                                        /archive
                                /configuration
                        /plugin
                        plugin
                                groupIdorg.apache.maven.plugins/groupId
                                artifactIdmaven-compiler-plugin/artifactId
                                version2.3.2/version
                                configuration
                                        source1.5/source
                                        target1.5/target
                                /configuration
                        /plugin
                /plugins
        /build
 /project



 
 The web-Page:

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

 html xmlns=http://www.w3.org/1999/xhtml;
        xmlns:h=http://java.sun.com/jsf/html;

Re: Problems with ResourceResolver

2011-05-06 Thread Leonardo Uribe
Hi

It is a known problem in JSF 2.0. see:

https://issues.apache.org/jira/browse/MYFACES-2628
http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-893

Theorically there are 2 options:

1. Use MyFaces core 2.1.0-SNAPSHOT.
2. Use prefix mapping for your pages instead suffix mapping.

Please close the issue as duplicate.

regards,

Leonardo Uribe

2011/5/6 Jakob Korherr jakob.korh...@gmail.com:
 Hi,

 This seems to be an implementation issue of MyFaces. Please file a
 ticket in our JIRA at https://issues.apache.org/jira/browse/MYFACES

 Thanks!

 Regards,
 Jakob

 2011/5/6 Juan Fernandez-Corugedo Igual jfcorug...@gmail.com:

 Hi.

 I'm working in a project with Myfaces 2.0.5 and I have had a problem with a
 custom ResourceResolver.

 I have coded a ResourceResolver that dynamically builds an XHTML file when
 the engine asks him to resolve a certain URL.

 To achieve this, I have update the web.xml as follows:

   context-param
     param-namejavax.faces.FACELETS_VIEW_MAPPINGS/param-name
     param-value*.test;*.xhtml/param-value
   /context-param

   context-param
       param-namejavax.faces.FACELETS_RESOURCE_RESOLVER/param-name

 param-valuecom.test.view.facelets.CustomResourceResolver/param-value
   /context-param

 My CustomResourceResolver is very simple:

 package com.test.view.facelets;

 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.net.URLConnection;
 import java.net.URLStreamHandler;

 import javax.faces.view.facelets.ResourceResolver;

 public class CustomResourceResolver extends ResourceResolver {

     private ResourceResolver innerResourceResolver;

     private String viewSource =  xhtml of the test page ;

     public CustomResourceResolver(ResourceResolver resourceResolver){
         this.innerResourceResolver = resourceResolver;
     }

     @Override
     public URL resolveUrl(String path) {
         System.out.println(Buscando la URL del recurso:  + path);
         URL result = null;

         if(path.endsWith(.test)){
             try{
                 result = getUrlForResourceAsStream(path);
             }catch(Exception e){
                 System.out.println(Unexpected error while obtaining the URL
 from resource  + path);
                 e.printStackTrace(System.out);
             }

         }else{
             result = this.innerResourceResolver.resolveUrl(path);
         }

         return result;
     }

     private URL getUrlForResourceAsStream(String path) throws
 MalformedURLException {
     URLStreamHandler handler = new URLStreamHandler() {
     protected URLConnection openConnection(URL u) throws IOException
 {
     final String file = u.getFile();
     return new URLConnection(u) {
     public void connect() throws IOException {
     }

     public InputStream getInputStream() throws IOException {
     System.out.println(Opening internal url to  +
 file);

     try{
                 System.out.println(Generando el InputStream de
 la pagina:\n + viewSource);
                 return new
 ByteArrayInputStream(viewSource.getBytes(UTF-8));
             }catch (Exception e) {
                 e.printStackTrace();
                 throw new RuntimeException(Unexpected error
 while obtaining the view, e);
             }
     }
     };
     }
     };
     return new URL(internal, null, 0, path, handler);
     }
 }


 As you can see, the code is very simple. When the suffix matches the pattern
 .test, the Resolver creates a mock URL with a backing
 ByteArrayInputStream. If the suffix does not matches the pattern, the normal
 ResourceResolver is invoked.

 With this configuration and code, when I request the URL:
 http://xx:/z/anything.test  the application fails with error:

 The problem is this:

 java.lang.NullPointerException
     at java.lang.StringBuilder.init(StringBuilder.java:92)
     at
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.getRenderedViewId(FaceletViewDeclarationLanguage.java:1630)
     at
 org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.buildView(FaceletViewDeclarationLanguage.java:279)
     

 The executes the viewHandler.createView(.test) method. It internally
 calls the getViewHandlerSupport().calculateViewId(context, viewId); method
 to obtain the viewId, and this method calls
 DefaultViewHandlerSupport.checkResourceExists(FacesContext context, String
 viewId), that checks the physical file of this resource, but there are not
 any file for this resource so it return false, and the viewId of the
 resulting ViewRoot is assigned to null.

 This causes a NullPointerException later, when the code executes

Re: Problems with ResourceResolver

2011-05-06 Thread Leonardo Uribe
Hi

Unfortunately, I already tried it without success. The problem is the algorithm
for calculate the viewId when suffix mapping is used requires check if the
physical resource exists, and there is no access from this part of the
lifecycle to that object (because is a facelets object, so the only one
who knows about it is facelets vdl). That's the reason why in this case a spec
change was required to fix it.

Note in some part of MYFACES-2628 it says:

To solve this issue maybe we can hold a duplicate instance to
ResourceResolver, one on facelets vdl (specifically on the factory) and the
other one on RestoreViewSupport instance. After all, this class is expected
to be stateless, so it will be no problem. ...

It is possible to create a fix, but from my point of view since there
is a proper
fix on 2.1.x, that version should be used in this case instead.

regards,

Leonardo Uribe

2011/5/6 Jakob Korherr jakob.korh...@gmail.com:
 Hi,

 we could provide a config parameter that enables this fix also in MyFaces 
 2.0.x.

 WDYT Leo?

 Regards,
 Jakob

 2011/5/6 Leonardo Uribe lu4...@gmail.com:
 Hi

 It is a known problem in JSF 2.0. see:

 https://issues.apache.org/jira/browse/MYFACES-2628
 http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-893

 Theorically there are 2 options:

 1. Use MyFaces core 2.1.0-SNAPSHOT.
 2. Use prefix mapping for your pages instead suffix mapping.

 Please close the issue as duplicate.

 regards,

 Leonardo Uribe

 2011/5/6 Jakob Korherr jakob.korh...@gmail.com:
 Hi,

 This seems to be an implementation issue of MyFaces. Please file a
 ticket in our JIRA at https://issues.apache.org/jira/browse/MYFACES

 Thanks!

 Regards,
 Jakob

 2011/5/6 Juan Fernandez-Corugedo Igual jfcorug...@gmail.com:

 Hi.

 I'm working in a project with Myfaces 2.0.5 and I have had a problem with a
 custom ResourceResolver.

 I have coded a ResourceResolver that dynamically builds an XHTML file when
 the engine asks him to resolve a certain URL.

 To achieve this, I have update the web.xml as follows:

   context-param
     param-namejavax.faces.FACELETS_VIEW_MAPPINGS/param-name
     param-value*.test;*.xhtml/param-value
   /context-param

   context-param
       param-namejavax.faces.FACELETS_RESOURCE_RESOLVER/param-name

 param-valuecom.test.view.facelets.CustomResourceResolver/param-value
   /context-param

 My CustomResourceResolver is very simple:

 package com.test.view.facelets;

 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.net.URLConnection;
 import java.net.URLStreamHandler;

 import javax.faces.view.facelets.ResourceResolver;

 public class CustomResourceResolver extends ResourceResolver {

     private ResourceResolver innerResourceResolver;

     private String viewSource =  xhtml of the test page ;

     public CustomResourceResolver(ResourceResolver resourceResolver){
         this.innerResourceResolver = resourceResolver;
     }

     @Override
     public URL resolveUrl(String path) {
         System.out.println(Buscando la URL del recurso:  + path);
         URL result = null;

         if(path.endsWith(.test)){
             try{
                 result = getUrlForResourceAsStream(path);
             }catch(Exception e){
                 System.out.println(Unexpected error while obtaining the 
 URL
 from resource  + path);
                 e.printStackTrace(System.out);
             }

         }else{
             result = this.innerResourceResolver.resolveUrl(path);
         }

         return result;
     }

     private URL getUrlForResourceAsStream(String path) throws
 MalformedURLException {
     URLStreamHandler handler = new URLStreamHandler() {
     protected URLConnection openConnection(URL u) throws 
 IOException
 {
     final String file = u.getFile();
     return new URLConnection(u) {
     public void connect() throws IOException {
     }

     public InputStream getInputStream() throws IOException 
 {
     System.out.println(Opening internal url to  +
 file);

     try{
                 System.out.println(Generando el InputStream de
 la pagina:\n + viewSource);
                 return new
 ByteArrayInputStream(viewSource.getBytes(UTF-8));
             }catch (Exception e) {
                 e.printStackTrace();
                 throw new RuntimeException(Unexpected error
 while obtaining the view, e);
             }
     }
     };
     }
     };
     return new URL(internal, null, 0, path, handler);
     }
 }


 As you can see, the code is very simple. When the suffix matches the 
 pattern
 .test, the Resolver creates a mock URL with a backing
 ByteArrayInputStream. If the suffix does not matches

Re: Problem with spring-security 2.0.6

2011-05-13 Thread Leonardo Uribe
Hi

I this case the only way to find what's going on is do a step by step
debugging. There should be some part that calls writer.flush or
something like that and then the forward.

But in this case the problem should be on your spring security
configuration. It could be 2 rules that conflicts (login and a
intercept_url).

regards,

Leonardo Uribe

2011/5/13 vale_java_dev fabrizi_valent...@yahoo.it:

 Hi all!

 This is my scenario:
   - jboss_4.2.2
   - myFaces 1.2.8
   - tomahawk 1.1.9
   - trinidad 1.2.10
   - jQuery4Jsf
   - primefaces 1.0
   - spring 2.5
   - spring-security 2.0.6
   - hibernate 3.0

 I added into my web-app spring security but I've a faces servlet exception
 when I invoke my web-app

 EXCEPTION
 [CODE]
 13-mag-2011 16:11:38,125 ERROR
 [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/GOWeb].[facesServlet]]
 Servlet.service() for servlet facesServlet threw exception
 java.lang.IllegalStateException: Cannot forward after response has been
 committed
        at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:302)
        at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
        at
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:341)
        at
 org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
        at
 org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
        at
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.buildView(JspViewHandlerImpl.java:486)
        at
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:337)
        at
 javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:48)
        at
 org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188)
        at
 org.jquery4jsf.application.JQueryViewHandler.renderView(JQueryViewHandler.java:59)
        at
 org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
        at
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:182)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.jquery4jsf.application.filter.JQueryResourceFilter.doFilter(JQueryResourceFilter.java:113)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:285)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
        at
 org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
        at
 org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
        at
 org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:179)
        at
 org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236)
        at
 org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
        at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
        at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
 it.niuma.goWeb.sessionTimeoutFilter.GOWebSessionTimeoutFilter.doFilter(GOWebSessionTimeoutFilter.java:58

[ANNOUNCE] MyFaces Test v1.0.3 Release

2011-05-23 Thread Leonardo Uribe
The Apache MyFaces team is pleased to announce the release of MyFaces
Test 1.0.3.

The Myfaces Test Framework provides mock object libraries, plus base
classes for creating your own JUnit TestCases for JSF.

For more information please see: http://myfaces.apache.org/test

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

Release Notes - MyFaces Test - Version 1.0.3

Bug

* [MYFACESTEST-48] - MockResponseStateManager is not symetric

Improvement

* [MYFACESTEST-49] - Add
AbstractJsfConfigurableMultipleRequestsTestCase class

regards,

Leonardo Uribe


Re: [Tomahawk] t:inputCalendar do not work on IE9

2011-05-25 Thread Leonardo Uribe
Hi

I have checked it and it is a bug, because IE9 is more strict. I
created this issue:

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

And commit a solution (you can take a look at the fix there). Thanks
for the report, it helps a lot.

Leonardo Uribe

2011/5/21 Werner Punz werner.p...@gmail.com:
 Am 13.05.11 08:17, schrieb Admirolas:

 Hello,

 I have tried my JSF application, that uses MyFaces Tomahawk 1.1.10 with
 Internet Explorer 9. After click on calendar button I get JavaScript
 error: DOM Exception: INVALID_CHARACTER_ERR (5). IE9 JavaScript debugger
 shows, that exception is thrown in calendar/popcalendar.js line 164.
 There is call to: document.createElement and passes html tag as parameter.

 Maybe there is some workaround? A patch? Should I migrate to 1.2.10?

 Admirolas

 Hi this is unfortunately a known issue with ie9 I will patch this out next
 week. Actually it is not an issue, but ie9 behaves more spec compliant in
 that area. For a quick fix you can force IE9 into quirks mode if that is an
 option.


 Werner





[ANNOUNCE] MyFaces Core v2.0.6 Release

2011-05-29 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.0.6.

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

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

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

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

Release Notes - MyFaces Core - Version 2.0.6

Sub-task

* [MYFACES-3134] - Move all code related to state caching into one place
* [MYFACES-3137] - Align ResponseStateManager implementation with the spec
* [MYFACES-3138] - Simplify ResponseStateManager implementation code

Bug

* [MYFACES-2924] - Component bindings are not reset when explicit 
navigation to the same page is derived from action
* [MYFACES-3080] - 'begin' event does not have 'status' property set
* [MYFACES-3100] - Repeated postbacks create additional serialized views
* [MYFACES-3101] - NavigationHandlerImpl throws NullpointerException if 
view is expired
* [MYFACES-3107] - FacesConfigurator doesn't recognize Tobago
* [MYFACES-3108] - ResourceHandlerCache does not honor localePrefix
* [MYFACES-3109] - UIInput SystemEvents are called with wrong sourceBaseTyp
* [MYFACES-3114] - jsf.js jsf.ajax.response relies on internal parameters
* [MYFACES-3115] - jsf.js event handler source id might be missing
* [MYFACES-3116] - MyFaces cannot resolve @ManagedProperty on startup, 
throws UnsupportedOperationException
* [MYFACES-3117] - Current server state saving implementation prevents 
multi-window usage
* [MYFACES-3118] - jsf.js: ie9 fixes
* [MYFACES-3125] - ValidatorTagHandlerDelegate does not invoke next handler 
in partial processing mode, which damages the component structure
* [MYFACES-3131] - jsf.js:tables not rendering after ajax call in internet 
explorer 6
* [MYFACES-3132] - javax.faces.context.ResponseWriterWrapper implementation 
is overdone
* [MYFACES-3139] - jsf.js: various ie fixes of the final pre release 
testing round
* [MYFACES-3140] - FacesMessage.VALUES is not ordered properly
* [MYFACES-3141] - FacesMessage implements Serializable but cannot be 
serialized
* [MYFACES-3142] - h:outputScript and h:outputStylesheet renderer listeners 
cannot implement PartialStateHolder
* [MYFACES-3152] - javax.faces.application.StateManager default 
implementation for writeState and saveSerializedView needs to be implemented
* [MYFACES-3154] - UIDebug doesn't check for existing url parameters

Improvement

* [MYFACES-1753] - Do not require to buffer the output with 
server-side-state-saving
* [MYFACES-1791] - state management and multiple frames
* [MYFACES-3111] - [PERF] Review UIData.saveDescendantComponentStates and 
restoreDescendantComponentStates
* [MYFACES-3129] - [PERF] Call first getChildCount() or getFacetCount() 
before try to create the iterator

Task

* [MYFACES-3095] - Check h:button and h:link modifications.

regards,

Leonardo Uribe



[ANNOUNCE] MyFaces Core v2.1.0 Release

2011-05-29 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.1.0.

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

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

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

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

Release Notes - MyFaces Core - Version 2.1.0

Sub-task

* [MYFACES-3120] - Use ExternalContext.encodeResourceUrl for stylesheet and 
script links
* [MYFACES-3121] - Add media attribute to h:outputStylesheet
* [MYFACES-3134] - Move all code related to state caching into one place
* [MYFACES-3137] - Align ResponseStateManager implementation with the spec
* [MYFACES-3138] - Simplify ResponseStateManager implementation code

Bug

* [MYFACES-2628] - Facelets ResourceSolver cant work
* [MYFACES-2881] - Server state saving with two forms, ajax and normal 
request is broken
* [MYFACES-2924] - Component bindings are not reset when explicit 
navigation to the same page is derived from action
* [MYFACES-3103] - Composite component using new .view.xml mapping does not 
work
* [MYFACES-3117] - Current server state saving implementation prevents 
multi-window usage
* [MYFACES-3124] - Use both SKIP_ITERATION hints in RESTORE_VIEW
* [MYFACES-3125] - ValidatorTagHandlerDelegate does not invoke next handler 
in partial processing mode, which damages the component structure
* [MYFACES-3128] - Problems with a custom Resource Resolver
* [MYFACES-3132] - javax.faces.context.ResponseWriterWrapper implementation 
is overdone
* [MYFACES-3140] - FacesMessage.VALUES is not ordered properly
* [MYFACES-3141] - FacesMessage implements Serializable but cannot be 
serialized
* [MYFACES-3142] - h:outputScript and h:outputStylesheet renderer listeners 
cannot implement PartialStateHolder
* [MYFACES-3152] - javax.faces.application.StateManager default 
implementation for writeState and saveSerializedView needs to be implemented
* [MYFACES-3154] - UIDebug doesn't check for existing url parameters

Improvement

* [MYFACES-1753] - Do not require to buffer the output with 
server-side-state-saving
* [MYFACES-1791] - state management and multiple frames
* [MYFACES-2837] - jsf.js 2.0 reva new functions
* [MYFACES-3111] - [PERF] Review UIData.saveDescendantComponentStates and 
restoreDescendantComponentStates
* [MYFACES-3123] - jsf.js: Merge in the latest javascript fixes and changes 
from the 2.0 core into the 2.1 core
* [MYFACES-3129] - [PERF] Call first getChildCount() or getFacetCount() 
before try to create the iterator
* [MYFACES-3136] - [perf] review UIComponentBase.getRendererType
* [MYFACES-3148] - Log PanelGrid ... has not enough children with 
Level.FINE in Production
* [MYFACES-3151] - [perf] minimize ExternalContext.getInitParameter 
invocations in myfaces API

New Feature

* [MYFACES-3075] - Allow ELResolvers filtering

Task

* [MYFACES-2616] - Fix UIData state saving model (spec issue 153)
* [MYFACES-3025] - 2.1: implement VisitHint.SKIP_ITERATION support in UIData
* [MYFACES-3083] - Implement StateManager.IS_SAVING_STATE
* [MYFACES-3084] - Add FacesContext.isReleased() method
* [MYFACES-3085] - Modify ResourceHandler.RESOURCE_EXCLUDES_DEFAULT_VALUE 
to include .groovy as an excluded default extension
* [MYFACES-3086] - Add h:doctype component
* [MYFACES-3087] - Add h:head and h:body xmlns property
* [MYFACES-3088] - Implement ExternalContext.isSecure() and 
getSessionMaxInactiveInterval() method
* [MYFACES-3089] - Implement FaceletCacheFactory and FaceletCache methods
* [MYFACES-3090] - Implement VisitHint.SKIP_ITERATION hint in UIRepeat
* [MYFACES-3091] - Implement UIComponent.ATTRS_WITH_DECLARED_DEFAULT_VALUES 
behavior
* [MYFACES-3092] - Implement 
UIComponent.HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME
* [MYFACES-3093] - Check FacesServlet description for support servlet 3.0 
spec
* [MYFACES-3094] - Check javax.faces.resource.Script and 
javax.faces.resource.Stylesheet modifications
* [MYFACES-3095] - Check h:button and h:link modifications.
* [MYFACES-3097] - Add cc:attribute targetAttributeName
* [MYFACES-3098] - Add support for view.xml handling and 
facelets-processing element
* [MYFACES-3110] - Allow use the same library for a composite component for 
resources defined inside it (resolve #{resource['this:...']} )
* [MYFACES-3122] - Create xsd schemas for .view.xml pages

regards,

Leonardo Uribe



Re: Issue with Myfaces NavigationMenuItem

2011-06-04 Thread Leonardo Uribe
Hi

I tried it just for curiosity and it works. I don't see any problem
with the code above.

regards,

Leonardo Uribe

2011/6/2 Julian Osorio Amaya julian.oso...@linuxmail.org:
 Greetings

  We've a navigation problem with myfaces NavigationMenuItem class 
 implementation in tomcat 6.32. There's a page refresh with a click over a 
 menu item

  Here is the code

  BackingBean code

  NavigationMenuItem menu = new NavigationMenuItem[2];
  menu[0] = new NavigationMenuItem(, null,/img/image.jpg, false);
  menu[1] = new NavigationMenuItem(, logOut,/img/icon.png, false);
  NavigationMenuItem[] options = new NavigationMenuItem[1];
  menu[0].setNavigationMenuItems(options);
  opciones[0] = new NavigationMenuItem(Download,download);

  Jsp code

  input type=hidden name=jscook_action /
  t:jscookMenu id=menu layout=hbr theme=ThemeOffice
  t:navigationMenuItems id=items value=#{MenuMB.menu} /
  /t:jscookMenu

  web.xml myfaces configuration

  filter
  filter-nameextensionsFilter/filter-name
  filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
  init-param
  descriptionDescription/description
  param-nameuploadMaxFileSize/param-name
  param-value100m/param-value
  /init-param
  init-param
  description /
  param-nameuploadThresholdSize/param-name
  param-value100k/param-value
  /init-param
  /filter
  filter-mapping
  filter-nameextensionsFilter/filter-name
  servlet-nameFaces Servlet/servlet-name
  /filter-mapping
  filter-mapping
  filter-nameextensionsFilter/filter-name
  url-pattern/faces/myFacesExtensionResource/*/url-pattern
  /filter-mapping

  The project has the following libraries in the classpath
  Sun JSF 1.2
  MyFaces 1.2.8
  Tomahawk 1.1.9

  Are we missing something?

  Thanks for your time

 Julian Osorio Amaya



[ANNOUNCE] MyFaces Core v2.0.7 Release

2011-06-12 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.0.7.

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

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

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

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

Release Notes - MyFaces Core - Version 2.0.7

Bug

[MYFACES-3161] - UIData.restoreDescendantComponentStates fails when empty 
datatable is used and a new row is created
[MYFACES-3162] - AJAX Broken when State Caching Mechanics turned off
[MYFACES-3165] - UIData.broadcast does not push composite component on EL 
stack

Improvement

[MYFACES-3167] - UIComponent EventListenerWrapper optimizations

regards,

Leonardo Uribe



[ANNOUNCE] MyFaces Core v2.1.1 Release

2011-06-12 Thread Leonardo Uribe

The Apache MyFaces team is pleased to announce the release of MyFaces Core 
2.1.1.

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

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

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

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

Release Notes - MyFaces Core - Version 2.1.1

Sub-task

[MYFACES-3155] - [perf] reduce (internal) usage of getFacetsAndChildren()

Bug

[MYFACES-3161] - UIData.restoreDescendantComponentStates fails when empty 
datatable is used and a new row is created
[MYFACES-3162] - AJAX Broken when State Caching Mechanics turned off
[MYFACES-3165] - UIData.broadcast does not push composite component on EL 
stack

Improvement

[MYFACES-3167] - UIComponent EventListenerWrapper optimizations

regards,

Leonardo Uribe



Re: javax.faces.SEPARATOR_CHAR not working well together with AJAX

2011-06-15 Thread Leonardo Uribe
Hi

I don't think use underscore could be a good choice, because for
generated ids, the prefix is j_id, so methods like
UIComponent.findComponent will not work correctly.

I have checked it and it is a bug. It should use
UINamingContainer.getSeparatorChar(FacesContext) instead a constant.
Please file an issue on myfaces issue tracker here:

https://issues.apache.org/jira/browse/MYFACES

so it can be fixed

regards,

Leonardo Uribe

2011/6/15 Christoph Dietze christoph.die...@ergodirekt.de:
 Hello,

 we changed the default SEPARATOR_CHAR from colon to underscore. However,
 that causes an Exception

 javax.faces.FacesException: Component with id:myid not found at
 org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer.getComponentId(HtmlAjaxBehaviorRenderer.java:291)

 It looks like org.apache.myfaces.renderkit.html.HtmlAjaxBehaviorRenderer
 assumes that the separator char is always a colon. Here is the method
 throwing the exception:

    private final String getComponentId(ClientBehaviorContext context,
 String id) {

        UIComponent contextComponent = context.getComponent();
        UIComponent target = contextComponent.findComponent(id);
        if (target == null) {
            target = contextComponent.findComponent(COLON + id);
        }
        if (target != null) {
            return target.getClientId();
        }
        throw new FacesException(Component with id: + id +  not found
 );
    }

 Is this a bug?

 (using myfaces 2.1.1)

 greets,
 Christoph



 www.ergodirekt.de
 www.facebook.com/ergodirekt
 www.twitter.com/ergodirekt

 ___

 ERGO Direkt Lebensversicherung AG · Sitz: Fürth
     Amtsgericht Fürth HRB 2787 · UST-ID-Nr. DE159593454
 ERGO Direkt Versicherung AG · Sitz: Fürth
     Amtsgericht Fürth HRB 2934 · UST-ID-Nr. DE159593438
 ERGO Direkt Krankenversicherung AG · Sitz: Fürth
     Amtsgericht Fürth HRB 4694 · UST-ID-Nr. DE159593446
 Vorsitzender der Aufsichtsräte: Dr. Daniel von Borries
 Vorstände: Peter M. Endres (Vorsitzender),
     Ralf Hartmann, Dr. Jörg Stoffels
 Adresse: Karl-Martell-Straße 60 · 90344 Nürnberg · Deutschland


Re: Both child and facet list should be checked while moving an existing child ?

2011-06-15 Thread Leonardo Uribe
Hi

Checking the code I see that
_ComponentChildrenList.removeChildrenFromParent do this:

private void removeChildrenFromParent(UIComponent child)
{
UIComponent oldParent = child.getParent();
if (oldParent != null)
{
oldParent.getChildren().remove(child);
}
}

so, when set is called:

@Override
public UIComponent set(int index, UIComponent value)
{
checkValue(value);
removeChildrenFromParent(value);
UIComponent child = _list.set(index, value);
if (child != value)
{
updateParent(value);
if (child != null)
{
child.setParent(null);
}
}

return child;
}

if the component is on a facet, it will not be removed. Sounds like a
bug, but note that code is not very common so it could be good to know
the intention behind this. Please create a bug on myfaces issue
tracker.

https://issues.apache.org/jira/browse/MYFACES

regards,

Leonardo Uribe

2011/6/14 Ivan xhh...@gmail.com:
 Any thought for this, thanks !

 2011/6/13 Ivan xhh...@gmail.com

 Hi,
     Per the Java doc of
 http://javaserverfaces.java.net/nonav/docs/2.0/javadocs/javax/faces/component/UIComponent.html#getChildren(),
 if I set an existing child in the returned children list, the target child
 should be removed from its previous parent in both children and facet list.
 While currently MyFaces seems only remove from the children list. And for
 the facet map, now it only remove from the facet map. Is it a bug for
 MyFaces ?
     ---
 getChildren

 public abstract ListUIComponent getChildren()

 Return a mutable List representing the child UIComponents associated with
 this component. The returned implementation must support all of the standard
 and optional List methods, plus support the following additional
 requirements:

 The List implementation must implement the java.io.Serializable interface.
 Any attempt to add a null must throw a NullPointerException
 Any attempt to add an object that does not implement UIComponent must throw
 a ClassCastException.
 *Whenever a new child component is added, the parent property of the child
 must be set to this component instance. If the parent property of the child
 was already non-null, the child must first be removed from its previous
 parent (where it may have been either a child or a facet).*
 Whenever an existing child component is removed, the parent property of the
 child must be set to null.

 After the child component has been added to the view, if the following
 condition is not met:


 FacesContext.isPostback() returns true and FacesContext.getCurrentPhaseId() 
 returns PhaseId.RESTORE_VIEW

 Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class,
 java.lang.Object) must be called, passing PostAddToViewEvent.class as the
 first argument and the newly added component as the second argument.

 --
 Ivan




 --
 Ivan



Re: MyFaces test downloads are down

2011-06-22 Thread Leonardo Uribe
Hi

Yesterday I fixed the links. Thanks for the tip.

Leonardo Uribe

2011/6/21 Gerhard Petracek gerhard.petra...@gmail.com:
 hi kito,
 thx for the info.
 the artifacts are online (see [1] and [2]) but the links are wrong and we
 have to fix them.
 regards,
 gerhard
 [1] http://www.apache.org/dist//myfaces/source/
 [2] http://www.apache.org/dist//myfaces/binaries/

 http://www.irian.at

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

 Professional Support for Apache MyFaces


 2011/6/21 Kito Mann kito.m...@virtua.com

 FYI, the 1.03 downloads links all yield 404 Not Found.
 ---
 Kito D. Mann | twitter: kito99 | Author, JSF in Action
 Virtua, Inc. | http://www.virtua.com | JSF/Java EE training and consulting
 http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info |
 twitter:
 jsfcentral
 +1 203-404-4848 x3

 * Listen to the latest headlines in the JSF and Java EE newscast:

 http://blogs.jsfcentral.com/roller/editorsdesk/category/JSF+and+Java+EE+Newscast
 * See you at JAX and JSF Summit 2011 June 20-23rd in San Jose:
 http://jaxconf.com/




Re: ViewExpiredException in MyFaces 2.0.6

2011-06-25 Thread Leonardo Uribe
Hi

There was some changes on state saving algorithm. All tests done passed, but
the previous algorithm was preserved too. It was found a bug on 2.0.6, so
the following is valid 2.0.7 / 2.1.1 . Add in your web.xml file the
following:

  context-param

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

and then on faces-config.xml

state-managerorg.apache.myfaces.application.jsp.JspStateManagerImpl/state-manager

This goes inside application section. In this way the previous algorithm
is used instead. If that works let us know, to try to reproduce it and fix
it on future MyFaces versions.

regards,

Leonardo

2011/6/25 Hamed Iravanchi iravan...@gmail.com

 Hi,

 I'm getting ViewExpiredSession by clicking on any button in my pages after
 upgrading MyFaces 2.0.5 to 2.0.6.
 My pages have multiple forms, any button in any of them raises the same
 error.

 I'm using facelets version 1.1.6.

 I see some changes in the state caching on the change list of 2.0.6, and
 I'm
 not sure is it something that I'm doing wrong (and it worked by chance in
 2.0.5) or there's some bug in 2.0.6.
 (I tried 2.0.7, and it has the same problem.)

 -Hamed



Re: PostConstruct annotation not working on Tomcat 7

2011-06-25 Thread Leonardo Uribe
Hi

Tomcat 7 should work without problem. It has been already tested on the
past.

The first thing you can do is try add this web config param:

  context-param

param-nameorg.apache.myfaces.config.annotation.LifecycleProvider/param-name

param-valueorg.apache.myfaces.config.annotation.Tomcat7AnnotationLifecycleProvider/param-value
  /context-param

That force tomcat 7 lifecycle provider to be used. If that does not work
please create an issue and attach an example of your configuration, so we
can reproduce the problem and check if it is a bug or not.

regards,

Leonardo Uribe

2011/6/25 Hamed Iravanchi iravan...@gmail.com

 Hi,

 I was trying to port my application to Tomcat 7, where I found that
 @PostConstruct annotations fail to work silently.
 The annotated beans are recognized alright (@ManagedBean works). But
 postConstruct methods are not invoked at all.

 I've tried it on the latest Tomcat 7 x64 version (7.0.16), and I've changed
 my web.xml file to servlet spec 3.0.
 MyFaces core version: tried both 2.0.5 and 2.0.7.


 Is this a bug, or there's some configuration that I'm missing?!

 -Hamed



  1   2   3   4   5   6   >