Re: Statistic

2008-02-04 Thread Daniel del Río
We are developing a cms oriented to jsf components that uses clay as
template technology.

El lun, 04-02-2008 a las 10:48 -0600, Greg Reddin escribió:
 On Feb 2, 2008 5:44 AM, samju [EMAIL PROTECTED] wrote:
 
  I just want to check how many user, Companies, etc. are using Shale. thanks
  For your feedback  in advance!
 
 The company I work for uses the Remoting architecture.
 
 Greg



Re: Dynamic clay in a datatable

2008-01-21 Thread Daniel del Río
Finally I found a solution! Thanks Gary to point me on the right way.
In resume, it consists in duplicate the clay component for every
distinct jsfid (every clay page template), and setting the rendered
property accordingly. 
To achieve it the more easy way I found is to create a new jsf component
that adds 1 child for page setting the rendered attribute with a value
expression.

Thanks.

El vie, 18-01-2008 a las 15:06 -0500, Ryan Wynn escribió:
 Could you try first this more direct way and see what happens?
 
 
 t:dataTable value=#{home.banners} var=c
t:column
clay:clay id=prueba jsfid=#{c.jsfid}/clay:clay
/t:column
 /t:dataTable
 
 
 Not sure that the symbol tag is being evaluated in time to be
 available for the clay component.
 
 I have not used clay's jsp tags but have done something like this
 before with html templates.
 
 Ryan
 
 
 
 
 On Jan 18, 2008 1:46 PM, Daniel del Río [EMAIL PROTECTED] wrote:
  Hello, I know similar questions was made in the past but I haven't found
  a response. I'm trying to render an HTML that depends of the current
  datatable row value,  but the result is that all render the same page:
 
  This is the code:
 
  
  t:dataTable value=#{home.banners} var=c
  t:column
  clay:clay id=prueba jsfid=WDynamicClay 
  managedBeanName=c
  c:symbol name=page value=[EMAIL PROTECTED]/
  /clay:clay
  /t:column
  /t:dataTable
  
 
  And WDynamicClay is an xml component definition:
 
  
  component jsfid=WDynamicClay extends=clay
  attributes
  set name=clayJsfid value=@page/
  /attributes
  /component
  
 
  The managedBeanName's attribute jsfid returns a different clay html 
  template but always the last template is rendered.
  I tried other alternatives but always with identical result:
 
  - Using a ShapeValidator
  - Create a JSF component that adds a clay component
  - Extending the Clay component
 
  Thanks in advance.
  Daniel del Río.
 
 
-- 
--
Daniel del Río
Software Architect
t. 690211287
e. [EMAIL PROTECTED]

www.programaria.com
--



Dynamic clay in a datatable

2008-01-18 Thread Daniel del Río
Hello, I know similar questions was made in the past but I haven't found
a response. I'm trying to render an HTML that depends of the current
datatable row value,  but the result is that all render the same page:

This is the code:


t:dataTable value=#{home.banners} var=c
t:column
clay:clay id=prueba jsfid=WDynamicClay managedBeanName=c
c:symbol name=page value=[EMAIL PROTECTED]/
/clay:clay
/t:column
/t:dataTable


And WDynamicClay is an xml component definition:


component jsfid=WDynamicClay extends=clay
attributes
set name=clayJsfid value=@page/
/attributes
/component


The managedBeanName's attribute jsfid returns a different clay html template 
but always the last template is rendered. 
I tried other alternatives but always with identical result:

- Using a ShapeValidator
- Create a JSF component that adds a clay component
- Extending the Clay component

Thanks in advance.
Daniel del Río.



Error when deployed as ear

2007-05-17 Thread Daniel del Río
 Hello all,
I have a strange problem with a JSF project that uses myfaces and shale. I'm 
using Netbeans 5.5 and the Sun App Server 9, and all works fine when the web 
application is deployed independently as a war, but when deploy the full ear i 
have the following error:

java.lang.NullPointerException
at org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:75)
...
at 
org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:450)



. I'm using a 'mock' application with no complex ejbs and jsps, so I discard a 
component problem. Someone have experimented this problem?

Thanks in advance. 



Re: Why I get org.apache.tiles.FactoryNotFoundException

2006-08-29 Thread Daniel del Río
I'm not using tiles views, only clay templates (as far I know clay templates 
haven't any relation to tiles, isn't?)

In fact, my clay-tiles-config.xml is empty:

!DOCTYPE view PUBLIC
   -//Apache Software Foundation//DTD Shale Clay View Configuration 
1.0//EN

   http://struts.apache.org/dtds/shale-clay-config_1_0.dtd;
view
/view

The complete stack trace is:

[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default 
(self-tuning)' ERROR tiles.TilesViewHandler - Tiles error
org.apache.tiles.FactoryNotFoundException: Can't get definitions factory 
from context.

at org.apache.tiles.TilesUtilImpl.getDefinition(TilesUtilImpl.java:227)
at org.apache.tiles.TilesUtil.getDefinition(TilesUtil.java:183)
at 
org.apache.shale.tiles.TilesViewHandler.getTile(TilesViewHandler.java:263)
at 
org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:129)
at 
org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:151)
at 
org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:442)
at 
org.apache.shale.clay.faces.ClayViewHandler.renderView(ClayViewHandler.java:442)
at 
org.apache.shale.view.faces.ViewViewHandler.renderView(ViewViewHandler.java:151)
at 
org.apache.shale.tiles.TilesViewHandler.renderView(TilesViewHandler.java:175)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
at 
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
at 
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:272)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
org.apache.shale.faces.ShaleApplicationFilter.doFilter(ShaleApplicationFilter.java:271)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3151)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at 
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1973)
at 
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1880)
at 
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1310)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:179)



- Original Message - 
From: Greg Reddin [EMAIL PROTECTED]

To: user@shale.apache.org
Sent: Tuesday, August 29, 2006 3:52 PM
Subject: Re: Why I get org.apache.tiles.FactoryNotFoundException


Can you post your stacktrace?  Are you actually getting tiles-based
views to work?

Greg

On Aug 29, 2006, at 2:44 AM, Daniel del Río wrote:


Hello,
looking in he logs i see a lot of erros with the message:

.. tiles.TilesViewHandler - Tiles error 
org.apache.tiles.FactoryNotFoundException: Can't get definitions  factory 
from context ...


the application runs well and seems this error doesn't affect,  anyway 
this is a bit annoying.

It is normal or I forgot something ? I don't use full xml clay views.

Thanks.
drh.








Re: Escape xml characters in set element at clay-config.xml

2006-08-19 Thread Daniel del Río
Ooops ... 
yes, you are right.

Thanks Gary.
  - Original Message - 
  From: Gary VanMatre 
  To: user@shale.apache.org ; Daniel del Río 
  Sent: Friday, August 18, 2006 11:38 PM
  Subject: Re: Escape xml characters in set element at clay-config.xml


  From: Daniel del Río [EMAIL PROTECTED] 
  
   
   Thanks Gary, 
   It's a good idea. Anyhow, it seems strange to me because the escape 
   attribute appears in the jsf reference, 
  

  Ahh, I think your are looking at the JSF 1.2 Standard HTML Render Kit 
Documentation.  You are most likely using 1.1_01.  The escape attribute on the 
javax.faces.Output/javax.faces.Label is new to JSF 1.2.

  http://java.sun.com/javaee/javaserverfaces/reference/api/index.html

  Gary


   thanks. 


Escape xml characters in set element at clay-config.xml

2006-08-18 Thread Daniel del Río
Hi all, I have the following problem when using clay components:

I want to create a simple form with a label and an input. The input have an 
accesskey, so I want to make a letter from the label underscored. My code looks 
like this:

...
component jsfid=name extends=outputLabel
set name=value value=#{messages['name']}/
set name=escape value=false/
/component
...

and my resource boundle have an entry with the right html code:

...
name=uN/uame
...


The problem is that clay resolves with an HTML that shows literally 
uN/uname (lt;N ..) instead of underscore N. 

I'm using the last nightly version of shale.
 
Thanks in advance.
drh.


Re: Escape xml characters in set element at clay-config.xml

2006-08-18 Thread Daniel del Río


Thanks Gary,
It's a good idea. Anyhow, it seems strange to me because the escape 
attribute appears in the jsf reference,


thanks.
- Original Message - 
From: Gary VanMatre [EMAIL PROTECTED]

To: user@shale.apache.org; Daniel del Río [EMAIL PROTECTED]
Sent: Friday, August 18, 2006 8:58 PM
Subject: Re: Escape xml characters in set element at clay-config.xml



From: Daniel del Río [EMAIL PROTECTED]


Hi all, I have the following problem when using clay components:

I want to create a simple form with a label and an input. The input have 
an
accesskey, so I want to make a letter from the label underscored. My code 
looks

like this:

...
component jsfid=name extends=outputLabel
   set name=value value=#{messages['name']}/
   set name=escape value=false/
/component
...

and my resource boundle have an entry with the right html code:

...
name=uN/uame
...


The problem is that clay resolves with an HTML that shows literally
uN/uname (lt;N ..) instead of underscore N.




As odd as it may seem, the JSF outputLabel component doesn't have an 
escape property.


Try nesting an outputText component under the outputLabel and use the 
outputText's escape property.


component jsfid=name extends=outputLabel
  attributes
 set name=accesskey value=N/
  /attributes

   element renderId=0 jsfid=outputText
  attributes
 set name=value value=#{messages['name']}/
 set name=escape value=false/
  /attributes
   /element
/component



I'm using the last nightly version of shale.

Thanks in advance.
drh.



Gary