Re: [Trinidad] Slider component in Trinidad for mobile devices

2010-02-10 Thread Matthias Wessendorf
yes.

you could use facelets. A demo slider (based on jQuery) is here:
http://facesgoodies.googlecode.com/svn/MS/trunk/src/main/webapp/resources/ms/


On Wed, Feb 10, 2010 at 3:13 AM, Seema Richard (UST, IND)
seema.rich...@ust-global.com wrote:
 Hi,



 We need to develop a web application supporting multiple mobile devices
 like Blackberry, iPhone, Android and so on and we were considering
 Apache Trinidad. The client has already supplied the mock up pages which
 seem to have a lot of Ajax functionality and controls like Slider. I
 could not find a slider control in Trinidad. Does this mean that we
 would need to create a custom component instead?



 Thanks,

 Seema





-- 
Matthias Wessendorf

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


AW: el expression

2010-02-10 Thread Martin Monshausen
Hi,
calling methods with parameters is not possible in JSF as far as I know. Try to 
set Parameter in Bean before calling the method and then refer to it in your 
parameter-less method.
Yours,
 
Martin 


Von: Krishna K. Pandit [mailto:krishna.pan...@aptuit.com]
Gesendet: Mi 10.02.2010 06:14
An: MyFaces Discussion
Betreff: el expression 



Hi all

Can any one can help me how to pass a parameter to a method while
calling it in EL expression.
Im trying this

#{myBean.method('JAVA')}

But I m getting errors while rendering.

Thanks
Krishna Pandit
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by email
reply and delete it from your system.
The integrity and security of this email cannot be guaranteed on the Internet.






Re: el expression

2010-02-10 Thread Mark Struberg
Hiho!

It is possible, but only with a little trick.
Using a parameter in the EL is a new EL-2.2 feature which is _not_ part of 
JSP-2.1 delivered with tomcat6 and jetty6 but defined in JSR-245 MR-2 (JSP-2.2) 
[1].

You can enable EL-2.2 by using a few tricks even in tomcat-6 and jetty6.
Here is how goes:

A.) You have to use el-api.jar and el-impl.jar from the glassfish reference 
implementation. In your pom.xml:

!-- EL 2 --
dependency
groupIdjavax.el/groupId
artifactIdel-api/artifactId
version2.2/version
scopeprovided/scope
/dependency
profiles
profile
idjetty/id
build
plugins
plugin
groupIdorg.mortbay.jetty/groupId
artifactIdmaven-jetty-plugin/artifactId
version${jetty-version}/version
configuration
scanIntervalSeconds10/scanIntervalSeconds
/configuration
/plugin
/plugins
/build
dependencies
dependency
groupIdjavax.el/groupId
artifactIdel-api/artifactId
version2.2/version
scopecompile/scope
/dependency
dependency
groupIdorg.glassfish.web/groupId
artifactIdel-impl/artifactId
scoperuntime/scope
version2.2/version
/dependency
/dependencies
/profile
/profiles

This will allow you to use EL-2.2 by running
$ mvn clean install -Pjetty jetty:run

B.) preparing tomcat
   1.  go to the tomcat home directory
   2. remove tomcats el-api.jar from the classpath:
  $ mv ./lib/el-api.jar ./lib/el-api.jar.nixda

   3. copy the EL-2.2 jars into ./lib (el-api-2.2.jar, el-impl-2.2.jar)
   4. make sure that the applications don't contain those 2 el jars!

voila, have fun!

LieGrue,
strub

[1] http://jcp.org/aboutJava/communityprocess/mrel/jsr245/index.html


--- Michael Kurz michi.k...@gmx.at schrieb am Mi, 10.2.2010:

 Von: Michael Kurz michi.k...@gmx.at
 Betreff: Re: el expression
 An: users@myfaces.apache.org
 Datum: Mittwoch, 10. Februar 2010, 9:33
 Hi,
 
 it is true that it is not possible to use method parameters
 or to call 
 methods of an object that are no getters or setters (at
 least before 
 Java EE 6).
 
 But there are ways to bypass this limitation:
 
 * If you only want to call a method in an EL expression you
 could define 
 an EL function (possible with JSP and Facelets).
 
 * If you want to pass a parameter to an action method you
 could use an 
 alternative EL implementation like JBoss EL (see [1]). For
 this you have 
 to include the JBoss EL libraries and replace the
 expression factory of 
 MyFaces like this in your web.xml:
 
    !-- Replace ExpressionFactory for
 Apache MyFaces --
    context-param
  
    param-nameorg.apache.myfaces.EXPRESSION_FACTORY/param-name
  
    param-valueorg.jboss.el.ExpressionFactoryImpl/param-value
    /context-param
 
 regards
 Michael
 
 [1]: 
 http://docs.jboss.org/seam/2.0.1.GA/reference/en/html/elenhancements.html
 
 Am 10.02.2010 09:20, schrieb Martin Monshausen:
  Hi,
  calling methods with parameters is not possible in JSF
 as far as I know. Try to set Parameter in Bean before
 calling the method and then refer to it in your
 parameter-less method.
  Yours,
 
  Martin
  
 
  Von: Krishna K. Pandit [mailto:krishna.pan...@aptuit.com]
  Gesendet: Mi 10.02.2010 06:14
  An: MyFaces Discussion
  Betreff: el expression
 
 
 
  Hi all
 
  Can any one can help me how to pass a parameter to a
 method while
  calling it in EL expression.
  Im trying this
 
  #{myBean.method('JAVA')}
 
  But I m getting errors while rendering.
 
  Thanks
  Krishna Pandit
  This email and any files transmitted with it are
 confidential and intended
  solely for the use of the individual or entity to whom
 they are addressed.
  If you have received this email in error please notify
 the sender by email
  reply and delete it from your system.
  The integrity and security of this email cannot be
 guaranteed on the Internet.
 
 
 
 
 

__
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen 
Massenmails. 
http://mail.yahoo.com


AW: el expression

2010-02-10 Thread Martin Monshausen
Hi,
there are some further tricks which you can use to pass parameters: 
http://wiki.apache.org/myfaces/Parameters_In_EL_Functions
Yours,
Martin


Von: Krishna K. Pandit [mailto:krishna.pan...@aptuit.com]
Gesendet: Mi 10.02.2010 06:14
An: MyFaces Discussion
Betreff: el expression 


Hi all

Can any one can help me how to pass a parameter to a method while
calling it in EL expression.
Im trying this

#{myBean.method('JAVA')}

But I m getting errors while rendering.

Thanks
Krishna Pandit
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by email
reply and delete it from your system.
The integrity and security of this email cannot be guaranteed on the Internet.






RE: el expression

2010-02-10 Thread Krishna K. Pandit
Thanks I am trying. :)


-Original Message-
From: Martin Monshausen [mailto:martin.monshau...@prodyna.de] 
Sent: 10 February 2010 15:08
To: MyFaces Discussion
Subject: AW: el expression 

Hi,
there are some further tricks which you can use to pass parameters:
http://wiki.apache.org/myfaces/Parameters_In_EL_Functions
Yours,
Martin


Von: Krishna K. Pandit [mailto:krishna.pan...@aptuit.com]
Gesendet: Mi 10.02.2010 06:14
An: MyFaces Discussion
Betreff: el expression 


Hi all

Can any one can help me how to pass a parameter to a method while
calling it in EL expression.
Im trying this

#{myBean.method('JAVA')}

But I m getting errors while rendering.

Thanks
Krishna Pandit
This email and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to whom they are
addressed.
If you have received this email in error please notify the sender by
email
reply and delete it from your system.
The integrity and security of this email cannot be guaranteed on the
Internet.




This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender by email
reply and delete it from your system.
The integrity and security of this email cannot be guaranteed on the Internet.




Re: el expression

2010-02-10 Thread Mark Struberg
done:
http://wiki.apache.org/myfaces/Parameters_In_EL_Functions
http://wiki.apache.org/myfaces/HowToEnableEl22

LieGrue,
strub

--- Matthias Wessendorf mat...@apache.org schrieb am Mi, 10.2.2010:

 Von: Matthias Wessendorf mat...@apache.org
 Betreff: Re: el expression
 An: MyFaces Discussion users@myfaces.apache.org
 Datum: Mittwoch, 10. Februar 2010, 10:36
 thanks mark,
 
 do you mind putting this into a wiki page ? :)
 
 -Matthias
 
 On Wed, Feb 10, 2010 at 10:10 AM, Mark Struberg strub...@yahoo.de
 wrote:
  Hiho!
 
  It is possible, but only with a little trick.
  Using a parameter in the EL is a new EL-2.2 feature
 which is _not_ part of JSP-2.1 delivered with tomcat6 and
 jetty6 but defined in JSR-245 MR-2 (JSP-2.2) [1].
 
  You can enable EL-2.2 by using a few tricks even in
 tomcat-6 and jetty6.
  Here is how goes:
 
  A.) You have to use el-api.jar and el-impl.jar from
 the glassfish reference implementation. In your pom.xml:
 
     !-- EL 2 --
     dependency
         groupIdjavax.el/groupId
       
  artifactIdel-api/artifactId
         version2.2/version
         scopeprovided/scope
     /dependency
     profiles
         profile
             idjetty/id
             build
                 plugins
                     plugin
                       
  groupIdorg.mortbay.jetty/groupId
                       
  artifactIdmaven-jetty-plugin/artifactId
                       
  version${jetty-version}/version
                       
  configuration
                           
  scanIntervalSeconds10/scanIntervalSeconds
                       
  /configuration
                     /plugin
                 /plugins
             /build
             dependencies
                 dependency
                   
  groupIdjavax.el/groupId
                   
  artifactIdel-api/artifactId
                   
  version2.2/version
                   
  scopecompile/scope
                 /dependency
                 dependency
                   
  groupIdorg.glassfish.web/groupId
                   
  artifactIdel-impl/artifactId
                   
  scoperuntime/scope
                   
  version2.2/version
                 /dependency
             /dependencies
         /profile
     /profiles
 
  This will allow you to use EL-2.2 by running
  $ mvn clean install -Pjetty jetty:run
 
  B.) preparing tomcat
    1.  go to the tomcat home directory
    2. remove tomcats el-api.jar from the classpath:
       $ mv ./lib/el-api.jar
 ./lib/el-api.jar.nixda
 
    3. copy the EL-2.2 jars into ./lib (el-api-2.2.jar,
 el-impl-2.2.jar)
    4. make sure that the applications don't contain
 those 2 el jars!
 
  voila, have fun!
 
  LieGrue,
  strub
 
  [1] http://jcp.org/aboutJava/communityprocess/mrel/jsr245/index.html
 
 
  --- Michael Kurz michi.k...@gmx.at
 schrieb am Mi, 10.2.2010:
 
  Von: Michael Kurz michi.k...@gmx.at
  Betreff: Re: el expression
  An: users@myfaces.apache.org
  Datum: Mittwoch, 10. Februar 2010, 9:33
  Hi,
 
  it is true that it is not possible to use method
 parameters
  or to call
  methods of an object that are no getters or
 setters (at
  least before
  Java EE 6).
 
  But there are ways to bypass this limitation:
 
  * If you only want to call a method in an EL
 expression you
  could define
  an EL function (possible with JSP and Facelets).
 
  * If you want to pass a parameter to an action
 method you
  could use an
  alternative EL implementation like JBoss EL (see
 [1]). For
  this you have
  to include the JBoss EL libraries and replace the
  expression factory of
  MyFaces like this in your web.xml:
 
     !-- Replace ExpressionFactory for
  Apache MyFaces --
     context-param
 
 
    param-nameorg.apache.myfaces.EXPRESSION_FACTORY/param-name
 
 
    param-valueorg.jboss.el.ExpressionFactoryImpl/param-value
     /context-param
 
  regards
  Michael
 
  [1]:
  http://docs.jboss.org/seam/2.0.1.GA/reference/en/html/elenhancements.html
 
  Am 10.02.2010 09:20, schrieb Martin Monshausen:
   Hi,
   calling methods with parameters is not
 possible in JSF
  as far as I know. Try to set Parameter in Bean
 before
  calling the method and then refer to it in your
  parameter-less method.
   Yours,
  
   Martin
   
  
   Von: Krishna K. Pandit [mailto:krishna.pan...@aptuit.com]
   Gesendet: Mi 10.02.2010 06:14
   An: MyFaces Discussion
   Betreff: el expression
  
  
  
   Hi all
  
   Can any one can help me how to pass a
 parameter to a
  method while
   calling it in EL expression.
   Im trying this
  
   #{myBean.method('JAVA')}
  
   But I m getting errors while rendering.
  
   Thanks
   Krishna Pandit
   This email and any files transmitted with it
 are
  confidential and intended
   solely for the use of the individual or
 entity to whom
  they are addressed.
   If you have received this email in error
 please notify
  the sender by email
   reply and delete it from your system.
   The integrity and security of this email
 cannot be
  guaranteed on the 

help jsf2 with Trinidad-2.0.0-alpha : NullPointerException in the render kit.

2010-02-10 Thread Edmond B. Mulemangabo

Hello !


I've been trying to use MyFaces-2.0 beta with Trinidad-2.0.0-alpha. I 
can't get get ok : I'm getting a NullPointer Exception in the Trinidad 
render kit. Here is the error stack :


---
javax.faces.FacesException: java.lang.NullPointerException: renderKitId
	at 
org.apache.myfaces.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
	at 
org.apache.myfaces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
	at 
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:157)
	at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:88)

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.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
	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 
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:286)
	at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException: renderKitId
	at 
org.apache.myfaces.renderkit.RenderKitFactoryImpl.getRenderKit(RenderKitFactoryImpl.java:75)
	at 
org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRenderKit(CoreRenderKitFactory.java:55)
	at 
javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1040)

at 
javax.faces.component.UIComponentBase.decode(UIComponentBase.java:390)
	at 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1101)
	at 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1095)
	at 
javax.faces.component.UIViewRoot._processDecodesDefault(UIViewRoot.java:1345)

at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:75)
	at 
javax.faces.component.UIViewRoot$ApplyRequestValuesPhaseProcessor.process(UIViewRoot.java:1380)

at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1311)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:642)
	at 
org.apache.myfaces.lifecycle.ApplyRequestValuesExecutor.execute(ApplyRequestValuesExecutor.java:35)
	at 
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:138)

... 18 more
-


need to access fully initilized context at deployment time

2010-02-10 Thread Jigar Joshi
Hello all:

my need is i need to use context at deployment time,
with fully blown injections,
how to accomplish this ?
i tried
phase listner,
servletcontext listner but didnt work for me,
i am using JSF 1.2

is there any way out?


Thanks in advance.