Re: EL question

2007-01-16 Thread Craig McClanahan

On 1/16/07, JS Portal Support [EMAIL PROTECTED] wrote:


Hi,



Maybe an ignorant (and more a simple JSP) question, but I can't seem to
figure out how to make an EL call that does:



org.apache.lucene.document.Document.get(String nameOfField)



I have my Hits (wrapped in a custom HitsToListWrapper) nicely accessible
for
each row of my dataTable (#{hit.document.butWhatHere}), but am struggling
with just this last seemingly simple step.



The EL used by JSP and JSF does not include support for arbitrary method
calls with parameters.  It can only call JavaBeans property getters (and
setters, in the case of JSF expressions).  You'll need to point your
expression at something that looks like getFoo().

The other thing to note is that a data table already knows how to iterate
over a List or array, so just pointing at one of those directly is the
easiest approach.

Thanks,


Joost



Craig


RE: Getting started...again.

2007-01-16 Thread Reynolds, James

That sounds great!  Thanks for doing this and letting me know.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, January 16, 2007 9:23 AM
To: user@shale.apache.org
Subject: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I
did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server
if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my
server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?
If so,
 it'd be interesting to do a detailed comparison of JARs in yours
versus that
 one.  If not, we've got something else weird, because the
out-of-the-box one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing
recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank
application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that
might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed
in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the
webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead
of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
  
'[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
 
attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
  
'[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
 
attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   attributeRemoved('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
attributeRemoved('org.apache.catalina.jsp_classpath',
  
 
'/C:/apache-tomcat-5.5.20/webapps/servlets-examples/WEB-INF/classes/;/C:
  
 
/apache-tomcat-5.5.20/common/classes/;/C:/apache-tomcat-5.5.20/common/i1
  
 
8n/tomcat-i18n-en.jar;/C:/apache-tomcat-5.5.20/common/i18n/tomcat-i18n-e
  
 
s.jar;/C:/apache-tomcat-5.5.20/common/i18n/tomcat-i18n-fr.jar;/C:/apache
  
 
-tomcat-5.5.20/common/i18n/tomcat-i18n-ja.jar;/C:/apache-tomcat-5.5.20/c
  
 
ommon/lib/commons-beanutils-1.7.0.jar;/C:/apache-tomcat-5.5.20/common/li
  
 

Re: Getting started...again.

2007-01-16 Thread Matthias Wessendorf

you need to build trinidad components yourself, since
we currently working on getting a release out...


On 1/16/07, Reynolds, James [EMAIL PROTECTED] wrote:


That sounds great!  Thanks for doing this and letting me know.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Matthias Wessendorf
Sent: Tuesday, January 16, 2007 9:23 AM
To: user@shale.apache.org
Subject: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I
did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server
if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my
server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?
If so,
 it'd be interesting to do a detailed comparison of JARs in yours
versus that
 one.  If not, we've got something else weird, because the
out-of-the-box one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing
recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank
application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that
might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed
in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the
webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead
of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
  
'[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
 
attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
  
'[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
 
attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   attributeRemoved('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
attributeRemoved('org.apache.catalina.jsp_classpath',
  
 
'/C:/apache-tomcat-5.5.20/webapps/servlets-examples/WEB-INF/classes/;/C:
  
 
/apache-tomcat-5.5.20/common/classes/;/C:/apache-tomcat-5.5.20/common/i1
  
 
8n/tomcat-i18n-en.jar;/C:/apache-tomcat-5.5.20/common/i18n/tomcat-i18n-e
  
 
s.jar;/C:/apache-tomcat-5.5.20/common/i18n/tomcat-i18n-fr.jar;/C:/apache
  
 

RE: Getting started...again.

2007-01-16 Thread Reynolds, James
Oh, thank you!  I'll drop my Tomcat version and go again.

:)


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 16, 2007 11:01 AM
To: user@shale.apache.org
Subject: SV: Getting started...again.

Hi

Just don't attempt to use Shale with 5.5.20 and jdk5. It works with any
version below 5.5.20 and jdk5. If your stuck to 5.5.20 you need to be
running jdk1.4

Hermod


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av
Matthias Wessendorf
Sendt: 16. januar 2007 17:23
Til: user@shale.apache.org
Emne: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?  If
so,
 it'd be interesting to do a detailed comparison of JARs in yours versus
that
 one.  If not, we've got something else weird, because the out-of-the-box
one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   attributeRemoved('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath',
  
  '/C:/apache-tomcat-5.5.20/webapps/servlets-examples/WEB-INF/classes/;/C:
  
  

SV: Getting started...again.

2007-01-16 Thread Hermod Opstvedt
Hi

How are you creating it? As a complete Maven2 project, or as Maven2
archetype?

Reason for asking, is that I recently submitted Shale/Clay kickstart project
(The first of more to come with other faces libs included). Take a look in
the shale sandbox under maven

Hermod


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av
Matthias Wessendorf
Sendt: 16. januar 2007 17:23
Til: user@shale.apache.org
Emne: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?  If
so,
 it'd be interesting to do a detailed comparison of JARs in yours versus
that
 one.  If not, we've got something else weird, because the out-of-the-box
one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   attributeRemoved('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath',
  
  '/C:/apache-tomcat-5.5.20/webapps/servlets-examples/WEB-INF/classes/;/C:
  
  /apache-tomcat-5.5.20/common/classes/;/C:/apache-tomcat-5.5.20/common/i1
  
  8n/tomcat-i18n-en.jar;/C:/apache-tomcat-5.5.20/common/i18n/tomcat-i18n-e
  
  

RE: Getting started...again.

2007-01-16 Thread Reynolds, James
I've been setting it up from scratch, since (oh the shame) I haven't used Maven 
yet.  This is yet another reason why I'd better hop on the bandwagon and set it 
up.  I'll check out that project too.

Thanks so much!


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 16, 2007 12:46 PM
To: user@shale.apache.org
Subject: SV: Getting started...again.

Hi

How are you creating it? As a complete Maven2 project, or as Maven2
archetype?

Reason for asking, is that I recently submitted Shale/Clay kickstart project
(The first of more to come with other faces libs included). Take a look in
the shale sandbox under maven

Hermod


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av
Matthias Wessendorf
Sendt: 16. januar 2007 17:23
Til: user@shale.apache.org
Emne: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?  If
so,
 it'd be interesting to do a detailed comparison of JARs in yours versus
that
 one.  If not, we've got something else weird, because the out-of-the-box
one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   

RE: EL question

2007-01-16 Thread JS Portal Support
Ok, that explains why I couldn't do it ;-) Just thought it'd be nice to be
able to call methods like that and pass it String arguments.

I did already wrap my lucene search results in a List so I could pass that
list to the dataTable. But the Hit's in the list had a
Hit.getDocument.fiels() method returning the Fields (no get you see). I now
also wrapped the Hit's and added the getters I needed.

Thank you,
joost 

JS Portal - Support
Dasstraat 21
2623CB Delft
the Netherlands
E: [EMAIL PROTECTED]
W: www.jsportal.com 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Wednesday, January 17, 2007 2:45 AM
To: user@shale.apache.org
Subject: Re: EL question

On 1/16/07, JS Portal Support [EMAIL PROTECTED] wrote:

 Hi,



 Maybe an ignorant (and more a simple JSP) question, but I can't seem to
 figure out how to make an EL call that does:



 org.apache.lucene.document.Document.get(String nameOfField)



 I have my Hits (wrapped in a custom HitsToListWrapper) nicely accessible
 for
 each row of my dataTable (#{hit.document.butWhatHere}), but am struggling
 with just this last seemingly simple step.


The EL used by JSP and JSF does not include support for arbitrary method
calls with parameters.  It can only call JavaBeans property getters (and
setters, in the case of JSF expressions).  You'll need to point your
expression at something that looks like getFoo().

The other thing to note is that a data table already knows how to iterate
over a List or array, so just pointing at one of those directly is the
easiest approach.

Thanks,

 Joost


Craig



Remoting and other app security concerns - shale 1.0.3

2007-01-16 Thread Costa Basil
Today, I added some code for calling bean methods from ajax via shale remoting 
and to my wonder I discovered the mechanisms for executing bean calls are 
enabled by default. 

I don't think this is right. I think they should be disabled by default, and 
they should be enabled once the configuration settings are added to the 
web.xml. When I added shale core and shale remoting to my project I didn't have 
time to read the remoting documentation (I didn't have to use it at that time) 
and I didn't think shale would provide ways to poke server code by default. Is 
there anything else that I should be aware of? 

Anyway, I want to enable access only to one bean. I used the 
DYNAMIC_RESOURCES_INCLUDES directive, but this doesn't make any difference. I 
didn't understand from the documentation how shale processes the 
DYNAMIC_RESOURCES_INCLUDES and DYNAMIC_RESOURCES_EXCLUDES parameters and I 
didn't have time to read the code. Can someone explain this?

The other way would be to use the default web app security settings.

Thanks


-
Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with 
Voice

Re: Getting started...again.

2007-01-16 Thread Matthias Wessendorf

m2 project
archetype will be the result

(need to add some more *demo* parts)

On 1/16/07, Hermod Opstvedt [EMAIL PROTECTED] wrote:

Hi

How are you creating it? As a complete Maven2 project, or as Maven2
archetype?

Reason for asking, is that I recently submitted Shale/Clay kickstart project
(The first of more to come with other faces libs included). Take a look in
the shale sandbox under maven

Hermod


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av
Matthias Wessendorf
Sendt: 16. januar 2007 17:23
Til: user@shale.apache.org
Emne: Re: Getting started...again.

James-

I am creating a sorta kickstart project, using technologies like

Apache MyFaces
Facelets
Apache Trinidad (formal Oracle ADF Faces)
Shale (View and application.manager (test will follow soon))
JPA
Toplink Essentials

as the container I am using jetty.

check here:
http://code.google.com/p/facesgoodies/

-M

On 1/15/07, Craig McClanahan [EMAIL PROTECTED] wrote:
 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
 
  Steps 0  1 are complete :)
 
  I'm much closer as I can see Tomcat behaving as I'd expect, though I did
  end up with a couple errors in the log:
 
  1. java.lang.NoClassDefFoundError: javax/el/ExpressionFactory


 This is supposed to be pulled in by the dependencies for MyFaces
 (commons-el?)  if you're using JSF 1.1.  It'll be part of the server if
 you're using JSF 1.2 (the RI, since MyFaces doesn't support this yet).

 2. org.apache.commons.chain.web.ChainListener


 Make sure commons chain is not *also* in your Tomcat shared or common
dirs.

 Commons-chain is definitely in my project, but I can't locate
  javax/el/ExpressionFactory in my jsf libs.  Should this be in my server
  or J2EE libs?  I'm attempting to use Tomcat 5.5.20


 Does the prebuilt war in the 1.0.4 test builds work out of the box?  If
so,
 it'd be interesting to do a detailed comparison of JARs in yours versus
that
 one.  If not, we've got something else weird, because the out-of-the-box
one
 runs for me.

 Craig

 On 1/15/07, Reynolds, James [EMAIL PROTECTED] wrote:
  
   I've been on a hiatus from Shale since changing jobs last year;
  however,
   my new company is considering it based on my gushing recommendation.
  
   Embarrassingly enough, I can't fire up the shale-blank application.
   When I run the app, I see the output below in the console then -
   nothing.  No errors in tomcat or anything (that I can see).  This
  output
   has changed since I last ran Shale.  Do you see anything that might
   explain the silent failure?
 
 
  I've never tried it with the Shale libraries or facelets installed in
  Tomcat's common/lib directory ... FIrst thing I would try is a
  completely
  vanilla Tomcat install, with the Shale jars deployed inside the webapp
  (as
  they should default when shale-blank builds).
 
  Actually, the zeroth thing I would try is the 1.0.4 release instead of
  1.0.3:-).  Rahul is in the process of getting it out there; his test
  build is
  available at http://people.apache.org/~rahul/shale/v104/.
 
  Craig
 
  Thanks!
  
  
   cmd /c C:\apache-tomcat-5.5.20\bin\catalina.bat run
   Using CATALINA_BASE:   C:\Documents and
   Settings\jReynolds\.IntelliJIdea60\system\tomcat_Unnamed_5094815
   Using CATALINA_HOME:   C:\apache-tomcat-5.5.20
   Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.20\temp
   Using JRE_HOME:C:\Java\jdk1.5.0_09
   log4j:WARN No appenders could be found for logger
   (org.apache.catalina.startup.Embedded).
   log4j:WARN Please initialize the log4j system properly.
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
  attributeAdded('org$apache$shale$view$VIEW_CALLBACKS',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.config.RuntimeConfig',
   '[EMAIL PROTECTED]')
   ContextListener:
   attributeAdded('org.apache.myfaces.webapp.webxml.WebXml',
   '[EMAIL PROTECTED]')
   ContextListener:
  
  attributeAdded('org.apache.myfaces.webapp.StartupServletContextListener.
   FACES_INIT_DONE', 'true')
   ContextListener:
   attributeRemoved('org.apache.shale.tiger.FACES_CONFIG_CONFIG',
   '[EMAIL PROTECTED]')
   ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath',
  
  '/C:/apache-tomcat-5.5.20/webapps/servlets-examples/WEB-INF/classes/;/C:
  
  

Re: Remoting and other app security concerns - shale 1.0.3

2007-01-16 Thread Craig McClanahan

On 1/16/07, Costa Basil [EMAIL PROTECTED] wrote:


Today, I added some code for calling bean methods from ajax via shale
remoting and to my wonder I discovered the mechanisms for executing bean
calls are enabled by default.

I don't think this is right. I think they should be disabled by default,
and they should be enabled once the configuration settings are added to the
web.xml. When I added shale core and shale remoting to my project I didn't
have time to read the remoting documentation (I didn't have to use it at
that time) and I didn't think shale would provide ways to poke server code
by default. Is there anything else that I should be aware of?

Anyway, I want to enable access only to one bean. I used the
DYNAMIC_RESOURCES_INCLUDES directive, but this doesn't make any difference.
I didn't understand from the documentation how shale processes the
DYNAMIC_RESOURCES_INCLUDES and DYNAMIC_RESOURCES_EXCLUDES parameters and I
didn't have time to read the code. Can someone explain this?

The other way would be to use the default web app security settings.



The 1.0.3 release did not support the restriction init parameters like
DYNAMIC_RESOURCES_INCLUDES, but the upcoming 1.0.4 release (currently being
voted on) does support them.

Thanks


Craig