Re: Tomact 5.5 Incompatibility

2006-06-29 Thread taylan saldiray

there is no problem with tomcat 5.5 it should work

On 6/30/06, Murray Brandon <[EMAIL PROTECTED]> wrote:

The real error/stack trace will be in your Tomcat logs (see
${TOMCAT_HOME}/logs - can you show us that?
> Sarkar, Subhasis wrote:
>>
>> Hi there,
>> I am trying to use MyFaces binary with Tomcat 5.5 but I am getting
>> following error before add any UI components. I just added myfaces
>> jar files in my war. Please suggest me what to do.
>>
>> *Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext
>> start*
>> *SEVERE: Error listenerStart*
>> *Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext
>> start*
>> *SEVERE: Context [/ModelManager] startup failed due to previous errors*
>> Thanks
>> 
>> Subhasis Sarkar, SR&T
>> Wood Hall
>> Rosedale Road & Carter Road
>> Princeton NJ 08541
>> 609-734-1187




AW: Exception in PhaseListener RENDER_RESPONSE(6) afterPhase

2006-06-29 Thread Schaal, Roland



Hello,
 
I encounter the same problem in my app.
 
Does anybody know what is going on?
 
Thanks,
Roland 


Von: Harald Mueller 
[mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. Juni 2006 
17:25An: users@myfaces.apache.orgBetreff: Exception in 
PhaseListener RENDER_RESPONSE(6) afterPhase
Hi!I have some problems upgrading from 
1.1.3-SNAPSHOT-libraries to the latest stable 
1.1.3!Log:17:08:25,804 ERROR [PhaseListenerManager] Exception in 
PhaseListener RENDER_RESPONSE(6) afterPhasejava.lang.NullPointerException : 
null values not allowedat 
org.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251)at 
org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection.add 
(JspStateManagerImpl.java:717)at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)at 
org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView 
(JspStateManagerImpl.java:332)at 
org.apache.myfaces.renderkit.html.util.DummyFormUtils.writeDummyForm(DummyFormUtils.java:153)at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd 
(ExtensionsPhaseListener.java:112)at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd 
(ExtensionsPhaseListener.java:86)at 
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)at 
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter 
(PhaseListenerManager.java:89)at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)at 
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:252)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java 
:144)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) 
at 
net.wimaxxed.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:35)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at 
org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at 
org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at 
net.wimaxxed.jbpm.webapp.filter.CharsetFilter.doFilter 
(CharsetFilter.java:25)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java 
:173)at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at 
org.apache.catalina.core.StandardContextValve.invoke 
(StandardContextValve.java:178)at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java 
:159)at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at 
org.apache.catalina.valves.ErrorReportValve.invoke 
(ErrorReportValve.java:105)at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)a

and JSF

2006-06-29 Thread R. Müller
hi group,

i run into troubles while trying to include some fragments into my pages
with -tag.










[...]





where 'menu.jspf' is as follows :

<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>





[...]



i'm quite sure, that it was working some time ago. It seems there runs a
neverending loop which leads to StackOverflow like you can see in the
error log.
The static include :

<%@ include file="/fragments/menu/menu.jspf"  %>

works fine.
There is an article from Kito Mann :

http://www.javaworld.com/javaworld/jw-12-2004/jw-1213-jsf_p.html

which pointed out, that the dynamic include should work as well.

I'm migrated from 1.1.1 to myfaces 1.1.3.


at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
at
org.apache.jsp.project.main_jsp._jspx_meth_f_view_0(main_jsp.java:149)
at org.apache.jsp.project.main_jsp._jspService(main_jsp.java:95)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
Caused by: javax.faces.FacesException: java.lang.StackOverflowError
... 1024 more

[ ... again and again ]

Caused by: javax.faces.FacesException: java.lang.StackOverflowError
... 1024 more
Caused by: javax.faces.FacesException: java.lang.StackOverflowError



regards

ronald



What supports JSF 1.2?

2006-06-29 Thread octoberdan

Does stable support 1.2 and all the nifty anotations? Nightly?
-- 
View this message in context: 
http://www.nabble.com/What-supports-JSF-1.2--tf1871288.html#a5114729
Sent from the MyFaces - Users forum at Nabble.com.



Re: Tomact 5.5 Incompatibility

2006-06-29 Thread Murray Brandon
The real error/stack trace will be in your Tomcat logs (see 
${TOMCAT_HOME}/logs - can you show us that?

Sarkar, Subhasis wrote:


Hi there,
I am trying to use MyFaces binary with Tomcat 5.5 but I am getting 
following error before add any UI components. I just added myfaces 
jar files in my war. Please suggest me what to do.


*Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext 
start*

*SEVERE: Error listenerStart*
*Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext 
start*

*SEVERE: Context [/ModelManager] startup failed due to previous errors*
Thanks

Subhasis Sarkar, SR&T
Wood Hall
Rosedale Road & Carter Road
Princeton NJ 08541
609-734-1187




Problem with ValuechangeListener on h:selectOneRadio in IE

2006-06-29 Thread Tushar
I am using valuechangelistner on h:selectOneRadio. Everything works fine in FireFox but on IE the behaviour is totally different. On IE after changing the selection of Radio Button one more mouse click is required to trigger the listener.  Did anybody faced the similar problem and has some solution?  
	

	
		 
Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here

RE: Tree2: Unable to locate facet with the name ... after node selection.

2006-06-29 Thread Sloan, Noah M

Amazing, that was it!

-Original Message-
From: Hagen, Nicholas [mailto:[EMAIL PROTECTED]
Sent: Thu 29-Jun-06 4:06 PM
To: MyFaces Discussion
Subject: RE: Tree2: Unable to locate facet with the name ... after node 
selection.
 
You know I just had the same issue 5 minutes ago...I solved it by using
h:outputText around the EL:  ie:



I am assuming you are using Facelets and I think that since Facelets does
not actually save its UIText components (see the transient flag on them),
they are not in the component tree.  Thus, there is actually no child
component when the tree is rebuilt for that facet and so null is returned.
At least that is what I think is occurring...did not look into much...just
figured using h:outputText would fix it and it did for me.

Nick

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 3:57 PM
To: MyFaces Discussion
Subject: RE: Tree2: Unable to locate facet with the name ... after node
selection.

Sorry, that should be:




#{node.description}









The second facet is actualy an include file...

<>

RE: Tree2: Unable to locate facet with the name ... after node se lection.

2006-06-29 Thread Hagen, Nicholas
You know I just had the same issue 5 minutes ago...I solved it by using
h:outputText around the EL:  ie:



I am assuming you are using Facelets and I think that since Facelets does
not actually save its UIText components (see the transient flag on them),
they are not in the component tree.  Thus, there is actually no child
component when the tree is rebuilt for that facet and so null is returned.
At least that is what I think is occurring...did not look into much...just
figured using h:outputText would fix it and it did for me.

Nick

-Original Message-
From: Sloan, Noah M [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 3:57 PM
To: MyFaces Discussion
Subject: RE: Tree2: Unable to locate facet with the name ... after node
selection.

Sorry, that should be:




#{node.description}









The second facet is actualy an include file...


Re: selectManyCheckbox and pre-selected values

2006-06-29 Thread Gregg Bolinger
Alright, good news for me.  I was able to go ahead and test it and it seems to work just fine.  Is this Wiki worthy or does everyone already know how to do this?Thanks.On 6/29/06, 
Gregg Bolinger <[EMAIL PROTECTED]> wrote:
I have written some code that I am waiting for some of the DAO stuff to get finished before I can test it.  So thought I'd go ahead and ping this list and see if what I am trying to do might actually work.I have an Article.  Each article contains a List.  When I view the Article details for review/modify/aprove, etc, I display a group of checkboxes for the Markets using t:selectManyCheckbox.  But what I need is for the markets to be checked that are in the List.  So I have the following method:
public String[] getMarkets()    {    String[] marketArray = {};    List marketList = currentArticle.getMarketList();    if (marketList != null)    {    marketArray = new String[
marketList.size()];    int counter = 0;    for (Market m : marketList)    {    marketArray[counter] = m.getMarketCode();    }    }    return marketArray;
    }public List getMarketList()    {    List list = new ArrayList();    List marketList = articleService.getMarkets();

    for (Market m : marketList)    {    list.add(new SelectItem(m.getMarketCode(), m.getMarketName()));    }    return list;    }                           So does this look correct? If not, what would need to be changed?
Thanks.




selectManyCheckbox and pre-selected values

2006-06-29 Thread Gregg Bolinger
I have written some code that I am waiting for some of the DAO stuff to get finished before I can test it.  So thought I'd go ahead and ping this list and see if what I am trying to do might actually work.I have an Article.  Each article contains a List.  When I view the Article details for review/modify/aprove, etc, I display a group of checkboxes for the Markets using t:selectManyCheckbox.  But what I need is for the markets to be checked that are in the List.  So I have the following method:
public String[] getMarkets()    {    String[] marketArray = {};    List marketList = currentArticle.getMarketList();    if (marketList != null)    {    marketArray = new String[
marketList.size()];    int counter = 0;    for (Market m : marketList)    {    marketArray[counter] = m.getMarketCode();    }    }    return marketArray;
    }public List getMarketList()    {    List list = new ArrayList();    List marketList = articleService.getMarkets();
    for (Market m : marketList)    {    list.add(new SelectItem(m.getMarketCode(), m.getMarketName()));    }    return list;    }                           So does this look correct? If not, what would need to be changed?
Thanks.


Tree2 + Immediate Links

2006-06-29 Thread Hagen, Nicholas
I have a simple tree2 via:


...






...


When first accessed, the page works correctly and the generated html shows:



However, if I click on the "Test" link that has "immediate" set to true,
using no navigation rules so that the page just gets redisplayed, then I end
up with an end result page with html:

...

Looking into the code it appears that the ":0" is appended during
UIDataTree.getClientId() because the nodeId is not null.  Normally, the tree
is processed by calling the processDecodes, then processValidators,
processUpdates, etc.  At the end of processValidators and processUpdates,
setNodeId(null) is called to reset the node id.  Then, when encodeChidren is
called on the renderer, the nodeId is null so that the clientId is correct.
When "immediate" is set to true, then processValidators and processUpdates
do not get called.  Thus, the last decoded child (from processDecodes) is
set as the node id, because processDecodes does not call setNodeId(null) nor
does encodeBegin().  I looked at the implementation of HtmlDataTable and it
appears that in its encodeBegin function that it calls setRowIndex(-1) to
ensure the row is reset prior to building the table.  I am wondering if this
same behavior needs to be done in UIDataTree so that the node id is reset to
null prior to rendering the tree.  Also, should processDecodes call
setNodeId(null) at the end of its processing similar to processValidators
and processUpdates?

If this is a bug, let me know and I will write it up; otherwise, let me know
if something else needs to happen when using immediate links with a tree to
ensure the "id" is properly set.

Thanks,
Nick




RE: Tree2: Unable to locate facet with the name ... after node selection.

2006-06-29 Thread Sloan, Noah M
Sorry, that should be:




#{node.description}









The second facet is actualy an include file...
<>

Tree2: Unable to locate facet with the name ... after node selection.

2006-06-29 Thread Sloan, Noah M

I have a tree2 that displays a contest hierarchy.  Many of the nodes are 
clickable, and when clicked, they are supposed to set a backing bean property 
based on a property of the node. The code for it is:




#{node.description}









The problem is, when I click on the link for any of the system nodes I get:

15:47:38,517 ERROR [faces]:253 - Servlet.service() for servlet faces threw 
exception
java.lang.IllegalArgumentException: Unable to locate facet with the name: root
at 
org.apache.myfaces.custom.tree2.UITreeData.processNodes(UITreeData.java:484)
at 
org.apache.myfaces.custom.tree2.UITreeData.processDecodes(UITreeData.java:161)
at javax.faces.component.UIForm.processDecodes(UIForm.java:53)
at 
oracle.adf.view.faces.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:818)
at 
oracle.adf.view.faces.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:803)
at 
oracle.adf.view.faces.component.UIXComponentBase.processDecodes(UIXComponentBase.java:673)
at 
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:605)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:136)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:108)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at 
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
at 
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:216)
at 
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:195)
at 
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:90)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
...

Am I doing something wrong?


Re: Tomahawk Maven2 oddity: 1.1.3 requires Shale and Struts1.2.8. Why?

2006-06-29 Thread Gary VanMatre

>From: "David Friedman" <[EMAIL PROTECTED]> >> I just added Tomahawk 1.1.3 to my Maven2 build with: > > <>dependency>	>org.apache.myfaces.tomahawk	>tomahawk	>1.1.3>> > And it suddenly added Struts-1.2.8 to my .war file. The tomahawk-1.1.3.pom > file lists Struts like so: > > >	>struts	>struts	>1.2.8	>compile>>
> > What kind of dependency is that? I couldn't find anything in the Wiki about > it as some kind of Tomahawk 1.1.3 upgrade dependencies. I can understand > Shale for the "test" segment but it is ALSO getting packaged by Maven2 in my > .war file: >
 
The struts dependency is most likely for Struts Tiles integration.
 
> >>org.apache.struts.shale	>shale-test	>1.0.2	>test>> > > Regards, > David > 



Re: Tomahawk Maven2 oddity: 1.1.3 requires Shale and Struts1.2.8. Why?

2006-06-29 Thread Wendy Smoak

On 6/29/06, David Friedman <[EMAIL PROTECTED]> wrote:


And it suddenly added Struts-1.2.8 to my .war file.  The tomahawk-1.1.3.pom
file lists Struts like so:


struts
struts
1.2.8
compile


What kind of dependency is that?  I couldn't find anything in the Wiki about
it as some kind of Tomahawk 1.1.3 upgrade dependencies.  I can understand
Shale for the "test" segment but it is ALSO getting packaged by Maven2 in my
.war file:


Maven should not be picking up a 'test' scoped dependency in your .war file.

I think the Struts dependency is wrong -- it should be marked
'optional'.  You can add an  to the tomahawk dependency in
your pom to get rid of it.

I'm going to move this to the dev list because we've branched for
1.1.4 and we'll need to check this on both the branch and the trunk.

Can someone please check and/or open a JIRA issue for it?

Followups on dev@myfaces.apache.org, please.

--
Wendy


Re: Invoking Javascript after a bean method

2006-06-29 Thread Cagatay Civici
Hi,I guess this could be done with some Ajax tricks. After the ajax response returns, you can call your _javascript_ call.Regards,CagatayOn 6/29/06, 
Meghana <[EMAIL PROTECTED]> wrote:Hi,
  I have a button clicking on which, a method in the backing bean needs to be called and then a _javascript_ function is to be called. Can any one help me in accomplishing this? Thanks a bunch,
-M 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. 
 Great rates starting at 1¢/min.



Invoking Javascript after a bean method

2006-06-29 Thread Meghana
Hi,  I have a button clicking on which, a method in the backing bean needs to be called and then a _javascript_ function is to be called. Can any one help me in accomplishing this? Thanks a bunch,-M 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.

Re: t:saveState and StateHolder

2006-06-29 Thread Matt Hughes
Thanks for your help Dennis.  I created a new issue (TOMAHAWK-509) 
describing this problem.


Dennis Byrne wrote:

Matt,

Can you please make some noise in the issue tracker on this?  Please mark this 
as a enhancement ( someone has to add StateHolder functinality ) and not a bug 
( someone will just remove a few javadoc lines ).

Thanks.

Dennis Byrne

  

-Original Message-
From: Matt Hughes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 02:00 PM
To: 'MyFaces Discussion'
Subject: Re: t:saveState and StateHolder

Again, it would be of great value to me. 

FYI, it says in the Tomahawk JavaDocs that StateHolder is supported: 
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/savestate/UISaveState.html


Dennis Byrne wrote:


The saveState component does not do a StateHolder check.  If you want this 
functionality it would be a pretty simple patch.  Any takers?

Dennis Byrne

  
  

-Original Message-
From: Matt Hughes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 01:50 PM
To: 'MyFaces Discussion'
Subject: t:saveState and StateHolder

I am experiencing a bit of a problem with using t:saveState.  Up until 
now, I've always just made the bean that I was saving Serializable; but 
today I came across a situation where I wanted more control over what 
parts of the bean were actually saved. 

My code follows.  Basically, I have a backing bean with a field that 
implements StateHolder.  I try to saveState just that field:




When FooBar just implemented Serializable, it got saved and restored 
fine.  When I changed FooBar to implement StateHolder, the 
saveState/restoreState methods never got called.  Am I missing something?


/** BACKING BEAN **/
public class BackingBean {
   private FooBar fooBar;

   public FooBar getFooBar()
   {
   return fooBar;
   }

   public void setFooBar(FooBar fooBar)
   {
   this.fooBar = fooBar;
   }
}

class FooBar implements StateHolder
{

   public Object saveState(FacesContext context)
   {
   System.out.println("Saving state");
   return null;
   }

   public void restoreState(FacesContext context, Object state)
   {
   System.out.println("Restoring state");
   }

   public boolean isTransient()
   {
   return false;
   }

   public void setTransient(boolean newTransientValue)
   {
   }
}







  
  






  




Tomahawk Maven2 oddity: 1.1.3 requires Shale and Struts1.2.8. Why?

2006-06-29 Thread David Friedman
I just added Tomahawk 1.1.3 to my Maven2 build with:


org.apache.myfaces.tomahawk
tomahawk
1.1.3


And it suddenly added Struts-1.2.8 to my .war file.  The tomahawk-1.1.3.pom
file lists Struts like so:


struts
struts
1.2.8
compile


What kind of dependency is that?  I couldn't find anything in the Wiki about
it as some kind of Tomahawk 1.1.3 upgrade dependencies.  I can understand
Shale for the "test" segment but it is ALSO getting packaged by Maven2 in my
.war file:


org.apache.struts.shale
shale-test
1.0.2
test


Regards,
David



Re: Tomact 5.5 Incompatibility

2006-06-29 Thread Bruno Aranda

Can you post your web.xml file, and the list of myfaces jars used?

Regards,

Bruno

On 6/29/06, Sarkar, Subhasis <[EMAIL PROTECTED]> wrote:





Hi there,
I am trying to use MyFaces binary with Tomcat 5.5 but I am getting following
error before add any UI components. I just added myfaces jar files in my
war. Please suggest me what to do.

Jun 29, 2006 10:43:33 AM
org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 29, 2006 10:43:33 AM
org.apache.catalina.core.StandardContext start
SEVERE: Context [/ModelManager] startup failed due to previous errors
Thanks
 
 Subhasis Sarkar, SR&T
 Wood Hall
 Rosedale Road & Carter Road
 Princeton NJ 08541
 609-734-1187
 --
This e-mail and any files transmitted with it may contain privileged or
confidential information.
It is solely for use by the individual for whom it is intended, even if
addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not
disclose, copy, distribute,
or take any action in reliance on the contents of this information; and
delete it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--




RE: myfaces-impl-1.1.3 instantiates the request scope bean

2006-06-29 Thread David Friedman



> myfaces-impl-1.1.3 instantiates 
the request scope bean every request 
> (like it suppose to), however 
it doesn't retain any state information 
> about the bean even though 
t:saveState tag is specified.
 
Your bean code "snippet" doesn't list your class implementing 
serializable.  This is an old note from the MyFaces 
FAQ:
 
You 
can also save the whole bean. Example: 
saveState id="saveCalcForm" value="#{calcForm}"/> 

The whole bean automatically is saved 
and restored by MyFaces. To 
be able to save and restore the value of a bean property or the bean itself, it 
must implement one of the following: 
the java.io.Serializable interface 

the javax.faces.component.StateHolder 
interface and a default constructor 
Regards,
David


Re: Authorization aware component?

2006-06-29 Thread Cagatay Civici
Hi,You can also check out the acegi-jsf components in jsf-comp. They can also work now even you do not use acegi and depend on container security.
//secured components hereRegards,CagatayOn 6/28/06, Martin Grotzke <
[EMAIL PROTECTED]> wrote:Hello,On Wed, 2006-06-28 at 18:06 +0200, Gilles DEMARTY wrote:
> Hi martin,>> > i want to have/create an authorization aware (menu/button) component.> Every Tomahawk components are user-role aware> 
http://wiki.apache.org/myfaces/User-role_AwarenessThanx for this hint!Until now i thought we could not use the principal/role concept becausewe have a more fine grained security concept based on roles that have
a specific "userType" and associate several permissions (roleA ->userTypeFoo, [permission1, permission2]; roleB -> ...).But if i we tie our permissions to the principal's roles, this should
do the trick, so it simply depends on the point of view.Otherwise, if we would like to enable anything dependent on the user'srole (in our terms of role, e.g. roleA) or userType, this would not bepossible, or we would have to create pseudo permissions for the role and
the userType. I'll think about it some minutes :)Thanx for pushing my mind,cheers,Martin>> hope this answers your request>-BEGIN PGP SIGNATURE-Version: GnuPG 
v1.4.3 (GNU/Linux)iD8DBQBEoq7F7FvOl7Te+pYRAqyNAJ0SY8pMGHXfcOtlmzgZ0ySoMmOi4QCghACn5eyDiUFdfjBD9nxdLyfuC1A==ZNzw-END PGP SIGNATURE-


Re: t:saveState and StateHolder

2006-06-29 Thread Dennis Byrne
Matt,

Can you please make some noise in the issue tracker on this?  Please mark this 
as a enhancement ( someone has to add StateHolder functinality ) and not a bug 
( someone will just remove a few javadoc lines ).

Thanks.

Dennis Byrne

>-Original Message-
>From: Matt Hughes [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 29, 2006 02:00 PM
>To: 'MyFaces Discussion'
>Subject: Re: t:saveState and StateHolder
>
>Again, it would be of great value to me.
>
>FYI, it says in the Tomahawk JavaDocs that StateHolder is supported:
>http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/savestate/UISaveState.html
>
>Dennis Byrne wrote:
>> The saveState component does not do a StateHolder check.  If you want this 
>> functionality it would be a pretty simple patch.  Any takers?
>>
>> Dennis Byrne
>>
>>
>>> -Original Message-
>>> From: Matt Hughes [mailto:[EMAIL PROTECTED]
>>> Sent: Thursday, June 29, 2006 01:50 PM
>>> To: 'MyFaces Discussion'
>>> Subject: t:saveState and StateHolder
>>>
>>> I am experiencing a bit of a problem with using t:saveState.  Up until
>>> now, I've always just made the bean that I was saving Serializable; but
>>> today I came across a situation where I wanted more control over what
>>> parts of the bean were actually saved.
>>>
>>> My code follows.  Basically, I have a backing bean with a field that 
>>> implements StateHolder.  I try to saveState just that field:
>>>
>>> 
>>>
>>> When FooBar just implemented Serializable, it got saved and restored 
>>> fine.  When I changed FooBar to implement StateHolder, the
>>> saveState/restoreState methods never got called.  Am I missing something?
>>>
>>> /** BACKING BEAN **/
>>> public class BackingBean {
>>>private FooBar fooBar;
>>>
>>>public FooBar getFooBar()
>>>{
>>>return fooBar;
>>>}
>>>
>>>public void setFooBar(FooBar fooBar)
>>>{
>>>this.fooBar = fooBar;
>>>}
>>> }
>>>
>>> class FooBar implements StateHolder
>>> {
>>>
>>>public Object saveState(FacesContext context)
>>>{
>>>System.out.println("Saving state");
>>>return null;
>>>}
>>>
>>>public void restoreState(FacesContext context, Object state)
>>>{
>>>System.out.println("Restoring state");
>>>}
>>>
>>>public boolean isTransient()
>>>{
>>>return false;
>>>}
>>>
>>>public void setTransient(boolean newTransientValue)
>>>{
>>>}
>>> }
>>>
>>>
>>>
>>
>>
>>
>>
>>
>
>




Tomact 5.5 Incompatibility

2006-06-29 Thread Sarkar, Subhasis
Title: Tomact 5.5 Incompatibility







Hi there,

I am trying to use MyFaces binary with Tomcat 5.5 but I am getting following error before add any UI components. I just added myfaces jar files in my war. Please suggest me what to do. 

Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Jun 29, 2006 10:43:33 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [/ModelManager] startup failed due to previous errors

Thanks

Subhasis Sarkar, SR&T
Wood Hall
Rosedale Road & Carter Road
Princeton NJ 08541
609-734-1187 




--
This e-mail and any files transmitted with it may contain privileged or confidential information.
It is solely for use by the individual for whom it is intended, even if addressed incorrectly.
If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute,
or take any action in reliance on the contents of this information; and delete it from
your system. Any other use of this e-mail is prohibited.

Thank you for your compliance.
--



Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Cagatay,
I have not ruled anything out.  I am still looking at the options.  In 
general I like what I see in JSF-COMP.


JSF_COMP appears to be a very simple way to embed charts!

Paul Spencer


Cagatay Civici wrote:

Hi,

Why not use the JSF Chart Creator of JSF-COMP?

It does not use a servlet, instead a phaselistener to render the charts so
there is no need to to do any configuration in the application.

Cagatay

On 6/29/06, Julian Ray <[EMAIL PROTECTED]> wrote:


Sure.

First you need to be able to access the faces context from a non-faces
servlet. I posted some info on the WIKI about how to get the faces 
context

(and therefor all session values and access to managed beans) within a
servlet. Take a look at
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet.

Our charting servlet uses simple get params to control the chart -- as
this
is "visible" to the outside world we only pass params which allow us to
get
the appropriate managed bean and session properties from within faces
context. So in the doGet() we call appropriate managed beans and
JFreeChart
methods to creat and return the chart. This is standard servlet stuff
(with
the myfaces context added). Included code below

protected void processRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
FacesContext facesContext = getFacesContext(request, response);
  // Here we get whatever we need from the faces context.
SessionBean sessionBean = (SessionBean)
getSessionBean(facesContext);

if (null == sessionBean) {
log.debug("Session bean is null.");
} else {
log.debug("Got session bean. Userid=" +
sessionBean.getUserId());
}

// Get the chart type to process from the URL
AbstractChart chart = null;
Integer chartType =
NumberUtils.createInteger(request.getParameter("type").trim());

log.debug("Chart Type = '" + chartType + "'");

// Here we do whatever needed to create the chart...
String className = ChartType.getChartClassName(chartType);
log.debug("Creating chart object for class '" + className + "'");

String reportTitle = request.getParameter("til");
log.debug("Chart Title = '" + reportTitle + "'");

String reportSubTitle = request.getParameter("sub");
log.debug("Chart Sub Title = '" + reportSubTitle + "'");

// See if the chart is in the cache. The servlet is
single-threaded
and reuasable which means
/// that a new chart map is created for each instance of a chart.
Charts should be serializable
// and not store state in any way
if (map.containsKey(className)) {
chart = (AbstractChart) map.get(className);
} else {
// Use reflection to get the chart. Note that is must have a
no-args constructor
try {
chart = (AbstractChart)
Class.forName(className).newInstance();
// Push the chart to the map.
map.put(className, chart);
} catch (ClassNotFoundException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (InstantiationException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalAccessException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalArgumentException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
}
}

// Chart setup here
if (null == chart) {
log.error("Chart # " + chartType + " not found on server.");
response.setContentType("text/html");

ServletOutputStream outputStream = 
response.getOutputStream();

outputStream.println("Chart not found on server.");
outputStream.flush();
outputStream.close();
} else {
// Populate the chart so it can access the params
chart.setRequest(request);
chart.setSessionBean(sessionBean);

// Process the chart
JFreeChart jfreeChart = chart.getChart();
// get the image
response.setContentType("image/png");
ChartUtilities.writeChartAsPNG(response.getOutputStream(),
jfreeChart, chart.getChartWidth(), chart.getChartHeight());
}
}

Our JSF backing bean constructs a url based on options selected by the
user.
This url is passed to the  tag. The form of the URL is
/myContextRoot/myChartServlet?param1=value1¶m2=value2 etc.

In the backing bean we have

Public String getChartURL() {
StringBuffer sb = new StringBuffer();
sb.append("/myContextRoot/myChartServlet");
//sb.append(.) etc...
return sb.toString();
}
and in the JSF we have

Re: logging clicked component id in a filter?

2006-06-29 Thread Dean Hiller
Also, I can't seem to figure out how I log the page I am coming from as welll(since in the beginning of the filter(before calling chain.doFilter) I won't now the page I am going to go to as well?thanks,dean
On 6/29/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
How can I log the component id of the component(commandlink or button) that was clicked in the filter? thanks,dean




logging clicked component id in a filter?

2006-06-29 Thread Dean Hiller
How can I log the component id of the component(commandlink or button) that was clicked in the filter? thanks,dean


Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Julian,
Can you explain the code and configuration behind 
#{myBackingBean.chartURL} and the servlet you have created?


I need to understand where the graphic is created, i.e. in the managed 
bean or servlet, how the servlet gets what is needs, and any 
housekeeping that is performed.



Paul Spencer

Julian Ray wrote:

Hi Paul,

We use JFreeCharts by creating a servlet which serves up the charts and then
creating a URL in the backingbean which is set as the value for the
graphicImage

Eg  


-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:14 PM

To: MyFaces Discussion
Subject: How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently the
generation of the image is in an action of a managed bean and is displayed
in a separate windows via .  How should I convert this to a
 so it can be displayed in an existing page?

Paul Spencer






RE: Problem with myfaces

2006-06-29 Thread Guy BELHOMME

-Message d'origine-
De : Jurgen Lust [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 28 juin 2006 17:16
À : Guy BELHOMME
Cc : MyFaces Discussion
Objet : Re: Problem with myfaces

Hi,

First of all: those screenshots look great! Any chance you want to
donate the code back to myfaces? The multiple resource thing would be a
very nice addition to the schedule component.

[Guy] 
At the moment only ScheduleDetailedDayRenderer is done. I add these notions:
multiple resources, selectable entries, layers, travel times
I expect to donate the code back to myfaces in the future.

I will look into the problem this weekend. Have you tried with the
tooltip="false" setting? I have noticed that the domTT library causes
some problems...
[Guy] 
I tried with tooltip="false" setting and I got the same bug. 




Kind regards,

Jurgen

Op wo, 28-06-2006 te 17:05 +0200, schreef Guy BELHOMME:
> Hello,
> 
>  
> 
> I work for a small French company which works on scheduling problems.
> 
> I’m using the base of your schedule component to develop a multiple
> resource schedule component with a custom entry renderer for travel
> time:
> 
>  
> 
> 
> 
>  
> 
>  
> 
> It seems very good but I encounter a problem which is not systematic.
> 
>  
> 
> Sometime rendering for travel time goes wrong (abnormal height):
> 
>  
> 
> 
> 
>  
> 
> If this schedule is refreshed, all is ok! To get this problem, I must
> click or refresh schedule a lot of time.
> 
> In fact there is a problem in html : 
> 
>  
> 
>
>class="travelTime" 
> 
>style="padding: 0px; position: absolute; height: 13px; top:
> 44px; left: 50%; width: 49.5%;">
> 
>   
> 
>   
> 
>  
> 
>   
> 
> 
> 
>align="center">
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
>class="travelTime">
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>  
> 
> The problem is that “” is not at a good place it should be afer
> “”.
> 
>  
> 
> Here is the renderer code:
> 
>  
> 
> String styleClass = getEntryRenderer(schedule,
> entry).getEntryStyleClass(
> 
> context, schedule, wrapper.entry, selected);
> 
> 
> 
> //if the schedule is read-only, the entries should not
> be
> 
> //hyperlinks
> 
> writer.startElement(
> 
> (schedule.isReadonly()) ? HTML.DIV_ELEM :
> HTML.ANCHOR_ELEM, schedule);
> 
>  
> 
> //draw the tooltip
> 
> if (showTooltip(schedule))
> 
> {
> 
> getEntryRenderer(schedule,
> entry).renderToolTip(context, writer,
> 
> schedule, wrapper.entry, selected);
> 
> }
> 
>  
> 
> if (!schedule.isReadonly() && entry.isSelectable())
> 
> {
> 
> writer.writeAttribute("href", "#", null);
> 
>  
> 
> writer.writeAttribute(
> 
> HTML.ONMOUSEUP_ATTR,
> 
> "fireEntrySelected('"
> 
> + formId + "', '"
> 
> + clientId + "', '"
> 
> + wrapper.entry.getId()
> 
> + "');",
> 
> null);
> 
> }
> 
>  
> 
> if (styleClass != null){
> 
> writer.writeAttribute(HTML.CLASS_ATTR,
> styleClass, null);
> 
> } else {
> 
> writer.writeAttribute(HTML.CLASS_ATTR,
> getStyleClass(schedule,
> 
> "entry"), null);
> 
> }
> 
> writer.writeAttribute(HTML.STYLE_ATTR,
> entryStyle.toString(),
> 
> null);
> 
>  
> 
> //draw the content
> 
> getEntryRenderer(schedule,
> entry).renderContent(context, writer,
> 
> schedule, day, wrapper.entry, false,
> selected);
> 
> writer.endElement((schedule.isReadonly()) ?
> HTML.DIV_ELEM : HTML.ANCHOR_ELEM);
> 
>  
> 
> When reading this code, “” should be after the entry rendering.
> 
>  
> 
> Is there a problem in HtmlResponseWriterImpl ? 
> 
> Can  you help me or forward this problem or tell me where to declare
> this problem.
> 
>  
> 
> Thanks for help.
> 
>  
> 
>  
> 
> Best regards
> 
>  
> 
> 
> Guy BELHOMME
> [EMAIL PROTECTED]
> Mobile : +33(0)6.84.08.86.58
> 
>  
> 
> 
> Delia Systems R&D
> 10 rue du Colonel Rémy
> 14000 Caen
> Tél : +33(0)2.31.46.92.30
> Fax : +33(0)2.31.46.92.31
> www.deliasystems.com
> 
>  
> 
> 
>  
> 
> 




Re: Authorization aware component?

2006-06-29 Thread Martin Grotzke
Hello,

On Wed, 2006-06-28 at 18:06 +0200, Gilles DEMARTY wrote:
> Hi martin,
> 
> > i want to have/create an authorization aware (menu/button) component.
> Every Tomahawk components are user-role aware
> http://wiki.apache.org/myfaces/User-role_Awareness

Thanx for this hint!

Until now i thought we could not use the principal/role concept because
we have a more fine grained security concept based on roles that have
a specific "userType" and associate several permissions (roleA ->
userTypeFoo, [permission1, permission2]; roleB -> ...).

But if i we tie our permissions to the principal's roles, this should
do the trick, so it simply depends on the point of view.
Otherwise, if we would like to enable anything dependent on the user's
role (in our terms of role, e.g. roleA) or userType, this would not be
possible, or we would have to create pseudo permissions for the role and
the userType. I'll think about it some minutes :)

Thanx for pushing my mind,
cheers,
Martin


> 
> hope this answers your request
> 



signature.asc
Description: This is a digitally signed message part


myfaces-impl-1.1.3 instantiates the request scope bean

2006-06-29 Thread Elliot Khazon
Hi all,myfaces-impl-1.1.3 instantiates the request scope bean every request (like it suppose to), however it doesn't retain any state information about the bean even though t:saveState tag is specified.When I use myfaces-impl it works just fine:
Here is how i use the bean.Bean.java---private String value = "";private int number = 0;public Bean() {}getValue() {return value;}setValue (String v) {
value = v;...initBean (int n) number= n;}page.jsp<%int number = req.getParameter ("number");if (number != INVALID_VALUE) {
   //if value wasn't invalid then init the bean FacesContext facesCtxt = FacesContext.getCurrentInstance();  VariableResolver variableResolver = facesCtxt.getApplication().getVariableResolver();  Bean myBean = (Bean) 
variableResolver.resolveVariable(    facesCtxt, "Bean" );myBean.initBean (number);}%>  
   .   .   .   .faces-config.xml-  "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 
1.0//EN"  "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
...        Bean    com.mypackage.Bean
    request    ...Thanks in advance,Elliot


Re: Problem with myfaces

2006-06-29 Thread Jurgen Lust
Hi,

First of all: those screenshots look great! Any chance you want to
donate the code back to myfaces? The multiple resource thing would be a
very nice addition to the schedule component.

I will look into the problem this weekend. Have you tried with the
tooltip="false" setting? I have noticed that the domTT library causes
some problems...

Kind regards,

Jurgen

Op wo, 28-06-2006 te 17:05 +0200, schreef Guy BELHOMME:
> Hello,
> 
>  
> 
> I work for a small French company which works on scheduling problems.
> 
> I’m using the base of your schedule component to develop a multiple
> resource schedule component with a custom entry renderer for travel
> time:
> 
>  
> 
> 
> 
>  
> 
>  
> 
> It seems very good but I encounter a problem which is not systematic.
> 
>  
> 
> Sometime rendering for travel time goes wrong (abnormal height):
> 
>  
> 
> 
> 
>  
> 
> If this schedule is refreshed, all is ok! To get this problem, I must
> click or refresh schedule a lot of time.
> 
> In fact there is a problem in html : 
> 
>  
> 
>
>class="travelTime" 
> 
>style="padding: 0px; position: absolute; height: 13px; top:
> 44px; left: 50%; width: 49.5%;">
> 
>   
> 
>   
> 
>  
> 
>   
> 
> 
> 
>align="center">
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
>class="travelTime">
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
>  
> 
> The problem is that “” is not at a good place it should be afer
> “”.
> 
>  
> 
> Here is the renderer code:
> 
>  
> 
> String styleClass = getEntryRenderer(schedule,
> entry).getEntryStyleClass(
> 
> context, schedule, wrapper.entry, selected);
> 
> 
> 
> //if the schedule is read-only, the entries should not
> be
> 
> //hyperlinks
> 
> writer.startElement(
> 
> (schedule.isReadonly()) ? HTML.DIV_ELEM :
> HTML.ANCHOR_ELEM, schedule);
> 
>  
> 
> //draw the tooltip
> 
> if (showTooltip(schedule))
> 
> {
> 
> getEntryRenderer(schedule,
> entry).renderToolTip(context, writer,
> 
> schedule, wrapper.entry, selected);
> 
> }
> 
>  
> 
> if (!schedule.isReadonly() && entry.isSelectable())
> 
> {
> 
> writer.writeAttribute("href", "#", null);
> 
>  
> 
> writer.writeAttribute(
> 
> HTML.ONMOUSEUP_ATTR,
> 
> "fireEntrySelected('"
> 
> + formId + "', '"
> 
> + clientId + "', '"
> 
> + wrapper.entry.getId()
> 
> + "');",
> 
> null);
> 
> }
> 
>  
> 
> if (styleClass != null){
> 
> writer.writeAttribute(HTML.CLASS_ATTR,
> styleClass, null);
> 
> } else {
> 
> writer.writeAttribute(HTML.CLASS_ATTR,
> getStyleClass(schedule,
> 
> "entry"), null);
> 
> }
> 
> writer.writeAttribute(HTML.STYLE_ATTR,
> entryStyle.toString(),
> 
> null);
> 
>  
> 
> //draw the content
> 
> getEntryRenderer(schedule,
> entry).renderContent(context, writer,
> 
> schedule, day, wrapper.entry, false,
> selected);
> 
> writer.endElement((schedule.isReadonly()) ?
> HTML.DIV_ELEM : HTML.ANCHOR_ELEM);
> 
>  
> 
> When reading this code, “” should be after the entry rendering.
> 
>  
> 
> Is there a problem in HtmlResponseWriterImpl ? 
> 
> Can  you help me or forward this problem or tell me where to declare
> this problem.
> 
>  
> 
> Thanks for help.
> 
>  
> 
>  
> 
> Best regards
> 
>  
> 
> 
> Guy BELHOMME
> [EMAIL PROTECTED]
> Mobile : +33(0)6.84.08.86.58
> 
>  
> 
> 
> Delia Systems R&D
> 10 rue du Colonel Rémy
> 14000 Caen
> Tél : +33(0)2.31.46.92.30
> Fax : +33(0)2.31.46.92.31
> www.deliasystems.com
> 
>  
> 
> 
>  
> 
> 



onfocus and inputCalendar

2006-06-29 Thread Lking
It seems to me onfocus is not working with inputCalendar wz tomahawk 1.1.2. Is there anyone having the same problem?tks


Re: t:saveState and StateHolder

2006-06-29 Thread Matt Hughes
Again, it would be of great value to me. 

FYI, it says in the Tomahawk JavaDocs that StateHolder is supported: 
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/savestate/UISaveState.html


Dennis Byrne wrote:

The saveState component does not do a StateHolder check.  If you want this 
functionality it would be a pretty simple patch.  Any takers?

Dennis Byrne

  

-Original Message-
From: Matt Hughes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 01:50 PM
To: 'MyFaces Discussion'
Subject: t:saveState and StateHolder

I am experiencing a bit of a problem with using t:saveState.  Up until 
now, I've always just made the bean that I was saving Serializable; but 
today I came across a situation where I wanted more control over what 
parts of the bean were actually saved. 

My code follows.  Basically, I have a backing bean with a field that 
implements StateHolder.  I try to saveState just that field:




When FooBar just implemented Serializable, it got saved and restored 
fine.  When I changed FooBar to implement StateHolder, the 
saveState/restoreState methods never got called.  Am I missing something?


/** BACKING BEAN **/
public class BackingBean {
   private FooBar fooBar;

   public FooBar getFooBar()
   {
   return fooBar;
   }

   public void setFooBar(FooBar fooBar)
   {
   this.fooBar = fooBar;
   }
}

class FooBar implements StateHolder
{

   public Object saveState(FacesContext context)
   {
   System.out.println("Saving state");
   return null;
   }

   public void restoreState(FacesContext context, Object state)
   {
   System.out.println("Restoring state");
   }

   public boolean isTransient()
   {
   return false;
   }

   public void setTransient(boolean newTransientValue)
   {
   }
}








  




Re: t:saveState and StateHolder

2006-06-29 Thread Dennis Byrne
The saveState component does not do a StateHolder check.  If you want this 
functionality it would be a pretty simple patch.  Any takers?

Dennis Byrne

>-Original Message-
>From: Matt Hughes [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 29, 2006 01:50 PM
>To: 'MyFaces Discussion'
>Subject: t:saveState and StateHolder
>
>I am experiencing a bit of a problem with using t:saveState.  Up until 
>now, I've always just made the bean that I was saving Serializable; but 
>today I came across a situation where I wanted more control over what 
>parts of the bean were actually saved. 
>
>My code follows.  Basically, I have a backing bean with a field that 
>implements StateHolder.  I try to saveState just that field:
>
>
>
>When FooBar just implemented Serializable, it got saved and restored 
>fine.  When I changed FooBar to implement StateHolder, the 
>saveState/restoreState methods never got called.  Am I missing something?
>
>/** BACKING BEAN **/
>public class BackingBean {
>private FooBar fooBar;
>
>public FooBar getFooBar()
>{
>return fooBar;
>}
>
>public void setFooBar(FooBar fooBar)
>{
>this.fooBar = fooBar;
>}
>}
>
>class FooBar implements StateHolder
>{
>
>public Object saveState(FacesContext context)
>{
>System.out.println("Saving state");
>return null;
>}
>
>public void restoreState(FacesContext context, Object state)
>{
>System.out.println("Restoring state");
>}
>
>public boolean isTransient()
>{
>return false;
>}
>
>public void setTransient(boolean newTransientValue)
>{
>}
>}
>
>




t:saveState and StateHolder

2006-06-29 Thread Matt Hughes
I am experiencing a bit of a problem with using t:saveState.  Up until 
now, I've always just made the bean that I was saving Serializable; but 
today I came across a situation where I wanted more control over what 
parts of the bean were actually saved. 

My code follows.  Basically, I have a backing bean with a field that 
implements StateHolder.  I try to saveState just that field:




When FooBar just implemented Serializable, it got saved and restored 
fine.  When I changed FooBar to implement StateHolder, the 
saveState/restoreState methods never got called.  Am I missing something?


/** BACKING BEAN **/
public class BackingBean {
   private FooBar fooBar;

   public FooBar getFooBar()
   {
   return fooBar;
   }

   public void setFooBar(FooBar fooBar)
   {
   this.fooBar = fooBar;
   }
}

class FooBar implements StateHolder
{

   public Object saveState(FacesContext context)
   {
   System.out.println("Saving state");
   return null;
   }

   public void restoreState(FacesContext context, Object state)
   {
   System.out.println("Restoring state");
   }

   public boolean isTransient()
   {
   return false;
   }

   public void setTransient(boolean newTransientValue)
   {
   }
}



Re: Problem building myfaces

2006-06-29 Thread Cosma Colanicchia

Catalin, I'm checking it out again and now seems to work. Probably I
simply mispelled the svn url last night.. :)

Thank you
Cosma

2006/6/29, Catalin Kormos <[EMAIL PROTECTED]>:

Ok, then follow what Wendy said, you need to run "mvn install" from the top
level folder. It should work.

 Regards,

 Catalin

Cosma Colanicchia <[EMAIL PROTECTED]> wrote:

 Hi Catalin,

I've downloaded the source from scratch with svn co, installed maven
2.0.4 (so I'm starting with an almost clean m2 repo) and tried "mvn
install". mvn clean install gives me the same error..

Cosma


2006/6/29, Catalin Kormos :

> It works fine for me. "mvn clean install" is what I usualy run, is that
what
> you did also?
>
> hth,
> Catalin
>
>
> Cosma Colanicchia wrote:
>
> Probably you're right, I tought it was a dev issue too at first.. I
> just wanted to know if someone else is getting the same problem.
>
> Thank you anyway
> Cosma
>
> 2006/6/29, Wendy Smoak :
>
> > On 6/29/06, Cosma Colanicchia wrote:
> >
> > > sorry with this sort of cross-post.. I've tried the devs list but got
> > > no response.
> > >
> > > I have done a fresh checkout of latest myfaces, and just installed
> > > maven 2.0.4. I cant build myfaces, mvn install gives me this error:
> >
> > This belongs on [EMAIL PROTECTED] Please be patient, it can sometimes take 
a day
> > or two for one of the volunteers to find time to respond.
> >
> > --
> > Wendy
> >
>
>
>
>
> 
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
> countries) for 2¢/min or less.
>
>




 
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.




Re: Problem building myfaces

2006-06-29 Thread Catalin Kormos
Ok, then follow what Wendy said, you need to run "mvn install" from the top level folder. It should work.Regards,  CatalinCosma Colanicchia <[EMAIL PROTECTED]> wrote:  Hi Catalin,I've downloaded the source from scratch with svn co, installed maven2.0.4 (so I'm starting with an almost clean m2 repo) and tried "mvninstall". mvn clean install gives me the same error..Cosma2006/6/29, Catalin Kormos :> It works fine for me. "mvn clean install" is what I usualy run, is that what> you did also?>>  hth,>  Catalin>>> Cosma Colanicchia  wrote:>>  Probably you're right, I tought it was a dev issue too at first.. I> just wanted to know if someone else is getting the same
 problem.>> Thank you anyway> Cosma>> 2006/6/29, Wendy Smoak :>> > On 6/29/06, Cosma Colanicchia wrote:> >> > > sorry with this sort of cross-post.. I've tried the devs list but got> > > no response.> > >> > > I have done a fresh checkout of latest myfaces, and just installed> > > maven 2.0.4. I cant build myfaces, mvn install gives me this error:> >> > This belongs on [EMAIL PROTECTED] Please be patient, it can sometimes take a day> > or two for one of the volunteers to find time to respond.> >> > --> > Wendy> >>  > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+> countries) for 2¢/min or less.>> 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.

Re: Problem building myfaces

2006-06-29 Thread Cosma Colanicchia

Hi Catalin,

I've downloaded the source from scratch with svn co, installed maven
2.0.4 (so I'm starting with an almost clean m2 repo) and tried "mvn
install". mvn clean install gives me the same error..

Cosma


2006/6/29, Catalin Kormos <[EMAIL PROTECTED]>:

It works fine for me. "mvn clean install" is what I usualy run, is that what
you did also?

 hth,
 Catalin


Cosma Colanicchia <[EMAIL PROTECTED]> wrote:

 Probably you're right, I tought it was a dev issue too at first.. I
just wanted to know if someone else is getting the same problem.

Thank you anyway
Cosma

2006/6/29, Wendy Smoak :

> On 6/29/06, Cosma Colanicchia wrote:
>
> > sorry with this sort of cross-post.. I've tried the devs list but got
> > no response.
> >
> > I have done a fresh checkout of latest myfaces, and just installed
> > maven 2.0.4. I cant build myfaces, mvn install gives me this error:
>
> This belongs on [EMAIL PROTECTED] Please be patient, it can sometimes take a 
day
> or two for one of the volunteers to find time to respond.
>
> --
> Wendy
>




 
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.




Re: Problem building myfaces

2006-06-29 Thread Catalin Kormos
It works fine for me. "mvn clean install" is what I usualy run, is that what you did also?hth,  Catalin  Cosma Colanicchia <[EMAIL PROTECTED]> wrote:  Probably you're right, I tought it was a dev issue too at first.. Ijust wanted to know if someone else is getting the same problem.Thank you anywayCosma2006/6/29, Wendy Smoak :> On 6/29/06, Cosma Colanicchia  wrote:>> > sorry with this sort of cross-post.. I've tried the devs list but got> > no response.> >> > I have done a fresh checkout of latest myfaces, and just installed> > maven 2.0.4. I cant build myfaces, mvn install gives me this error:>> This belongs on [EMAIL PROTECTED]  Please be patient, it can sometimes take a day>
 or two for one of the volunteers to find time to respond.>> --> Wendy> 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.

Re: Problem building myfaces

2006-06-29 Thread Cosma Colanicchia

Probably you're right, I tought it was a dev issue too at first.. I
just wanted to know if someone else is getting the same problem.

Thank you anyway
Cosma

2006/6/29, Wendy Smoak <[EMAIL PROTECTED]>:

On 6/29/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:

> sorry with this sort of cross-post.. I've tried the devs list but got
> no response.
>
> I have done a fresh checkout of latest myfaces, and just installed
> maven 2.0.4. I cant build myfaces, mvn install gives me this error:

This belongs on [EMAIL PROTECTED]  Please be patient, it can sometimes take a 
day
or two for one of the volunteers to find time to respond.

--
Wendy



Re: Problem building myfaces

2006-06-29 Thread Wendy Smoak

On 6/29/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:


sorry with this sort of cross-post.. I've tried the devs list but got
no response.

I have done a fresh checkout of latest myfaces, and just installed
maven 2.0.4. I cant build myfaces, mvn install gives me this error:


This belongs on [EMAIL PROTECTED]  Please be patient, it can sometimes take a 
day
or two for one of the volunteers to find time to respond.

--
Wendy


Problem building myfaces

2006-06-29 Thread Cosma Colanicchia

Hi,

sorry with this sort of cross-post.. I've tried the devs list but got
no response.

I have done a fresh checkout of latest myfaces, and just installed
maven 2.0.4. I cant build myfaces, mvn install gives me this error:

D:\Sviluppo\myfaces>mvn install
[INFO] Scanning for projects...
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Failed to resolve artifact.

GroupId: org.apache.myfaces.maven
ArtifactId: myfaces-master
Version: 1.0.5-SNAPSHOT

Reason: Unable to download the artifact from any repository

org.apache.myfaces.maven:myfaces-master:pom:1.0.5-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)


I've tried to browse the maven2 repository, and it seems that only
1.0.0 and 1.0.1 versions are there.. is this possible? BTW I'm not a
maven expert..

Thanks in advance for any help
Cosma


Master detail for selectOneMenu

2006-06-29 Thread Johnny Gonzalez
Hello everybody,

I'd like to know if there's a component or how to
achieve a master - detail behaviour for a
selectOneMenu. The idea is that I'd like to have to
selectOneMenu, and depending on what's selected on the
first component the other selectOneMenu must be filled
of values (the appropiate values for the value of the
first selectOneMenu). Any ideas on this?

thanks a lot,
Johnny



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


RE: instanceof into a c:test to select datatable column value??

2006-06-29 Thread Johnny Gonzalez
Hello Nick,

Thanks a lot for your suggestions, but as we need a
fast solution, because we have to release a version
and as we don't have knowledge of facelets, etc, and
as this is the only case in which we need this
behaviour, we decided to add a class with some kind of
decorator, to be able to have this transparent for the
presentation level, so now he new class receives an
object of the other classes and returns the required
values to the JSP.

But I think I will check in the future a solution with
your suggestions :-)

Thanks a lot for your valuable help,

Johnny
 --- "Hagen, Nicholas" <[EMAIL PROTECTED]> escribió:

> For information on Facelets, see:
>
https://facelets.dev.java.net/nonav/docs/dev/docbook.html
> 
> As for the "my", it is the prefix for the namespace
> of the tag library.
> Similar to when defining a custom tag in JSP, you
> have a namespace and
> prefix assigned to the tag.  In the case of
> Facelets, you would have to
> define a tag library with some particular namespace
> of your choosing, then
> define the prefix (of your choosing...I just chose
> "my" for the sake of an
> example) in the actual page itself that maps to that
> same namespace (done
> using xmlns XML syntax for the case of Facelets). 
> Facelets has its own
> mailing lists that may be beneficial to ask
> questions to directed at
> Facelets if you went down that routehowever, as
> stated prior, I would
> think there is possibly an easier way to handle what
> you are doing w/o using
> custom EL functions...I will leave those solutions
> up to the MyFaces
> developers to answer :)  Just figured I would share
> what I have done in the
> past.
> 
> Nick
> 
> -Original Message-
> From: Johnny Gonzalez
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 8:56 AM
> To: MyFaces Discussion
> Subject: RE: instanceof into a c:test to select
> datatable column value??
> 
> Hello Nick,
> 
> 
> In this case what would be my, where should I define
> it? I haven't used facelets before, could you mind
> explaining it to me?
> 
> Thanks a lot,
> Johnny
> 
>  --- "Hagen, Nicholas" <[EMAIL PROTECTED]> escribió:
> 
> > There may be other better solutions, but if you
> are
> > using Facelets the one
> > thing I have done in those situations is using an
> EL
> > function such as:
> > 
> > 
> > 
> > Then, define the my:datavalue function in the tag
> > library and have a static
> > method such as:
> > 
> > class Utils
> > {
> > public static String getDatavalue(Object o,
> String
> > prop, String def)
> > {
> > // Use Property Utils, Bean Utils, etc to check
> if
> > prop is
> > // is on object 'o' and if so, return
> > it...otherwise,
> > // just return the def value...or just check if
> > 'o' is
> > // instanceof some object and then use
> reflection
> > to get
> > // the prop method and value
> > }
> > }
> > 
> > Nick
> > 
> > -Original Message-
> > From: Johnny Gonzalez
> > [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, June 29, 2006 8:33 AM
> > To: MyFaces Discussion
> > Subject: instanceof into a c:test to select
> > datatable column value??
> > 
> > Hello everybody,
> > 
> > I have a big problem,..
> > 
> > I have a JSF data table which can have several
> types
> > of objects, some have an attribute called name
> > others
> > don't, so I need to have a conditional that
> > depending
> > on the kind of object to show the name (if they
> have
> > it) or to show a specific string for example:
> > ("Doesn't have"), so I tried this:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > But this pulls me a message in console with
> > something
> > like:
> > 
> > 
> > javax.faces.el.PropertyNotFoundException: Bean:
> > co.com.company.bo.document.MasiveDocumentBO,
> > property:
> > name
> > 
> > 
> > 
> > What should I do?
> > 
> > All objects inherits from a class DocumentBO which
> > has
> > all common attributes, inheriting from that class
> I
> > have:
> > MasiveDocumentBO
> > InternDocumentBO
> > ExternDocumentBO
> > 
> > The first class doesn't have that attribute, what
> > should I do?
> > 
> > Thanks a lot
> > 
> > 
> > 
> > __ 
> > LLama Gratis a cualquier PC del Mundo. 
> > Llamadas a fijos y móviles desde 1 céntimo por
> > minuto. 
> > http://es.voice.yahoo.com
> > 
> 
> 
> 
>   
> __ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y móviles desde 1 céntimo por
> minuto. 
> http://es.voice.yahoo.com
> 






__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


RE: How to displayi an images generated by a managed bean?

2006-06-29 Thread John
WE do exactly the same. There is a JSF tag called ChartCreator on
sourceforge and on the JFreeChart forums. It handles this. However we
ran into its incapability to use a variable for the chartype which was
prohibiting. With hardcoding the charttype ("pie" for instance),it works
great. A new release was promised for last night (not there as I write
this), which fixes this bug and adds features.

John 

-Original Message-
From: Julian Ray [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 2:07 AM
To: 'MyFaces Discussion'
Subject: RE: How to displayi an images generated by a managed bean?

Hi Paul,

We use JFreeCharts by creating a servlet which serves up the charts and
then creating a URL in the backingbean which is set as the value for the
graphicImage

Eg 


-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 11:14 PM
To: MyFaces Discussion
Subject: How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently
the generation of the image is in an action of a managed bean and is
displayed in a separate windows via .  How should I
convert this to a  so it can be displayed in an existing
page?

Paul Spencer




Master-detail datatable

2006-06-29 Thread Adrien FOURES

Hi,

I want to know how can I show the detail of some lines at begining with 
master-detail datatable?


Thanks

Adrien



get parameterized text from bundle in backing bean

2006-06-29 Thread Michael Heinen








How can I get parameterized text in my backing bean from
the resource bundle?

 

e.g. my.message = hello {0}

 

I know how to get the bundle but not how to pass
parameters.

Do I have to use MessageFormat after getting the
message value from the bundle or are there any better alternatives (like
OutputFormatTag)?

 

Michael








Exception in PhaseListener RENDER_RESPONSE(6) afterPhase

2006-06-29 Thread Harald Mueller
Hi!I have some problems upgrading from 1.1.3-SNAPSHOT-libraries to the latest stable 1.1.3!Log:17:08:25,804 ERROR [PhaseListenerManager] Exception in PhaseListener RENDER_RESPONSE(6) afterPhasejava.lang.NullPointerException
: null values not allowedat org.apache.commons.collections.map.AbstractReferenceMap.put(AbstractReferenceMap.java:251)at org.apache.myfaces.application.jsp.JspStateManagerImpl$SerializedViewCollection.add
(JspStateManagerImpl.java:717)at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedViewInServletSession(JspStateManagerImpl.java:493)at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView
(JspStateManagerImpl.java:332)at org.apache.myfaces.renderkit.html.util.DummyFormUtils.writeDummyForm(DummyFormUtils.java:153)at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.writeCodeBeforeBodyEnd
(ExtensionsPhaseListener.java:112)at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.getCodeBeforeBodyEnd(ExtensionsPhaseListener.java:96)at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.renderCodeBeforeBodyEnd
(ExtensionsPhaseListener.java:86)at org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener.afterPhase(ExtensionsPhaseListener.java:66)at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter
(PhaseListenerManager.java:89)at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:391)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java
:144)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at net.wimaxxed.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:35)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at net.wimaxxed.jbpm.webapp.filter.CharsetFilter.doFilter
(CharsetFilter.java:25)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
:173)at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:178)at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java
:159)at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)at java.lang.Thread.run(Thread.java:595)17:08:25,806 DEBUG [FacesServlet] service end
Everything was working fine with the old libraries - I've just made some 

Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Julian,

Although my question was about images, I am looking for a generalized 
solution that can be used with many type of files, so your "custom 
component api" sounds very interesting.


Can you expand on the "custom component api"?

If you would rather continue this offline, you may email me directly.


Paul Spencer


Julian Ray wrote:

Hmmm, let see...
as many of our charts require different params, as well as some core params
to be sent, we naturally end up duplicating a lot of code in the backing
beans. Even refactoring this code into base classes did little to help. This
duplicated code has as couple of negatives: [1] its duplicated, therefore,
inefficient for many reasons, maintenance not the least among them, [2] the
URLs and servlets we create need to be on the same lifecycle which is not
necessarily the same as the JSF pages and backing beans -- we reuse the
servlet across several JSF services, and [3] as we extend the charting
functionality there is a lot of unnecessary testing and code changes which
is minimized if the backing beans work against the custom component api.

Lastly, its cleaner and much more JSF-ish :) 




Typically, as in most designs, if your problem is not too complex, a simple
solution will work fine (eg servlet and URL). As the problem complexity
increases, however, more elegant solutions are necessary hence the custom
component. Indeed we started with backing bean URLs then migrated to a
custom component during the course of several code refactoring phases - a
pattern we repeated for JasperReports and other functionality as well.

To address Cagatay's comments: 


[1] A phase listener would probably be preferable to a servlet and I intend
to migrate (or at least benchmark) a phase listener to replace our servlet.
However, often when beginning with a new technology staying within the
bounds of our experience at, least initially, can be beneficial, especially
when using an agile approach to development where speed of development and
delivered functionality are driving forces. Basically, if you know how to
code servlets and are comfortable coding servlets, use a servlet and when it
all works migrate to something better but get it to work first. 


[2] I have not yet tried the JSF-Chart Creator in JSF-COMP although I have
heard good things about it and fully intend to take a look. However, this
goes back to my initial rant and if JSF-COMP does everything you need (at
least for now) why not use it -- it was not available when we started our
current build cycle :). 




-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 9:51 AM

To: MyFaces Discussion
Subject: Re: How to displayi an images generated by a managed bean?

Julian,
Can you expand on this?

One more note, While this approach works well found that it is more 
convienient to create a custom component to provide the JSF interface 
as we use charts on a large number of our pages and it fits the MVC 
model better to let the JSF fuly control the format and display of the

greaphic.


Your responses have been very helpful.

Paul Spencer






rowOnclick execute a faces action

2006-06-29 Thread Alexandre Jaquet
Is it possible to tell rowOnClick to execute a faces action (like a < 
h:commandButton>) ?


Regards :)


RE: How to displayi an images generated by a managed bean?

2006-06-29 Thread Julian Ray
Hmmm, let see...
as many of our charts require different params, as well as some core params
to be sent, we naturally end up duplicating a lot of code in the backing
beans. Even refactoring this code into base classes did little to help. This
duplicated code has as couple of negatives: [1] its duplicated, therefore,
inefficient for many reasons, maintenance not the least among them, [2] the
URLs and servlets we create need to be on the same lifecycle which is not
necessarily the same as the JSF pages and backing beans -- we reuse the
servlet across several JSF services, and [3] as we extend the charting
functionality there is a lot of unnecessary testing and code changes which
is minimized if the backing beans work against the custom component api.

Lastly, its cleaner and much more JSF-ish :) 



Typically, as in most designs, if your problem is not too complex, a simple
solution will work fine (eg servlet and URL). As the problem complexity
increases, however, more elegant solutions are necessary hence the custom
component. Indeed we started with backing bean URLs then migrated to a
custom component during the course of several code refactoring phases - a
pattern we repeated for JasperReports and other functionality as well.

To address Cagatay's comments: 

[1] A phase listener would probably be preferable to a servlet and I intend
to migrate (or at least benchmark) a phase listener to replace our servlet.
However, often when beginning with a new technology staying within the
bounds of our experience at, least initially, can be beneficial, especially
when using an agile approach to development where speed of development and
delivered functionality are driving forces. Basically, if you know how to
code servlets and are comfortable coding servlets, use a servlet and when it
all works migrate to something better but get it to work first. 

[2] I have not yet tried the JSF-Chart Creator in JSF-COMP although I have
heard good things about it and fully intend to take a look. However, this
goes back to my initial rant and if JSF-COMP does everything you need (at
least for now) why not use it -- it was not available when we started our
current build cycle :). 



-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 9:51 AM
To: MyFaces Discussion
Subject: Re: How to displayi an images generated by a managed bean?

Julian,
Can you expand on this?

> One more note, While this approach works well found that it is more 
> convienient to create a custom component to provide the JSF interface 
> as we use charts on a large number of our pages and it fits the MVC 
> model better to let the JSF fuly control the format and display of the
greaphic.
> 


Your responses have been very helpful.

Paul Spencer



Have this too: Error while Using s:inputTextAjax

2006-06-29 Thread KevinS

:-(

I am also experiencing the same ClassCastException:

java.lang.ClassCastException: javax.faces.component.html.HtmlMessages
at
org.apache.myfaces.custom.ajax.util.AjaxRendererUtils.writeAjaxScript(AjaxRendererUtils.java:128)

For the last two days I have been trying to get some 1.1.5 Sandbox examples
to work and am at the end of my rope.

Does anyone know if a fix is necessary or if this jsf-code is incorrect:


-- TOP OF JSP FILE --

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%>



-- IN BODY TAG INSIDE VIEW TAG--

 






*/%>

This component demonstrates ajax updating ability when you
change the
text.  An error message is displayed if the given area code is
invalid.
 
 



Best Regards,
Kevin



Gerald M?llan wrote:
> 
>> I am using t:message for the inputtext component, though the form level
>> global messages component are h:message.
> 
> Hm..you mean h:messages?
> 
> Try t:messages. Maybe thats the problem.
> 
> cheers,
> 
> Gerald
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Error-while-Using-s%3AinputTextAjax-tf1812568.html#a5103528
Sent from the MyFaces - Users forum at Nabble.com.



RE: instanceof into a c:test to select datatable column value??

2006-06-29 Thread Hagen, Nicholas
For information on Facelets, see:
https://facelets.dev.java.net/nonav/docs/dev/docbook.html

As for the "my", it is the prefix for the namespace of the tag library.
Similar to when defining a custom tag in JSP, you have a namespace and
prefix assigned to the tag.  In the case of Facelets, you would have to
define a tag library with some particular namespace of your choosing, then
define the prefix (of your choosing...I just chose "my" for the sake of an
example) in the actual page itself that maps to that same namespace (done
using xmlns XML syntax for the case of Facelets).  Facelets has its own
mailing lists that may be beneficial to ask questions to directed at
Facelets if you went down that routehowever, as stated prior, I would
think there is possibly an easier way to handle what you are doing w/o using
custom EL functions...I will leave those solutions up to the MyFaces
developers to answer :)  Just figured I would share what I have done in the
past.

Nick

-Original Message-
From: Johnny Gonzalez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 8:56 AM
To: MyFaces Discussion
Subject: RE: instanceof into a c:test to select datatable column value??

Hello Nick,


In this case what would be my, where should I define
it? I haven't used facelets before, could you mind
explaining it to me?

Thanks a lot,
Johnny

 --- "Hagen, Nicholas" <[EMAIL PROTECTED]> escribió:

> There may be other better solutions, but if you are
> using Facelets the one
> thing I have done in those situations is using an EL
> function such as:
> 
> 
> 
> Then, define the my:datavalue function in the tag
> library and have a static
> method such as:
> 
> class Utils
> {
>   public static String getDatavalue(Object o, String
> prop, String def)
>   {
>   // Use Property Utils, Bean Utils, etc to check if
> prop is
>   // is on object 'o' and if so, return
> it...otherwise,
>   // just return the def value...or just check if
> 'o' is
>   // instanceof some object and then use reflection
> to get
>   // the prop method and value
>   }
> }
> 
> Nick
> 
> -Original Message-
> From: Johnny Gonzalez
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 8:33 AM
> To: MyFaces Discussion
> Subject: instanceof into a c:test to select
> datatable column value??
> 
> Hello everybody,
> 
> I have a big problem,..
> 
> I have a JSF data table which can have several types
> of objects, some have an attribute called name
> others
> don't, so I need to have a conditional that
> depending
> on the kind of object to show the name (if they have
> it) or to show a specific string for example:
> ("Doesn't have"), so I tried this:
> 
> 
>   
> 
>   
> 
>   
>  
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> But this pulls me a message in console with
> something
> like:
> 
> 
> javax.faces.el.PropertyNotFoundException: Bean:
> co.com.company.bo.document.MasiveDocumentBO,
> property:
> name
> 
> 
> 
> What should I do?
> 
> All objects inherits from a class DocumentBO which
> has
> all common attributes, inheriting from that class I
> have:
> MasiveDocumentBO
> InternDocumentBO
> ExternDocumentBO
> 
> The first class doesn't have that attribute, what
> should I do?
> 
> Thanks a lot
> 
> 
>   
> __ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y móviles desde 1 céntimo por
> minuto. 
> http://es.voice.yahoo.com
> 




__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


RE: instanceof into a c:test to select datatable column value??

2006-06-29 Thread Johnny Gonzalez
Hello Nick,


In this case what would be my, where should I define
it? I haven't used facelets before, could you mind
explaining it to me?

Thanks a lot,
Johnny

 --- "Hagen, Nicholas" <[EMAIL PROTECTED]> escribió:

> There may be other better solutions, but if you are
> using Facelets the one
> thing I have done in those situations is using an EL
> function such as:
> 
> 
> 
> Then, define the my:datavalue function in the tag
> library and have a static
> method such as:
> 
> class Utils
> {
>   public static String getDatavalue(Object o, String
> prop, String def)
>   {
>   // Use Property Utils, Bean Utils, etc to check if
> prop is
>   // is on object 'o' and if so, return
> it...otherwise,
>   // just return the def value...or just check if
> 'o' is
>   // instanceof some object and then use reflection
> to get
>   // the prop method and value
>   }
> }
> 
> Nick
> 
> -Original Message-
> From: Johnny Gonzalez
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 8:33 AM
> To: MyFaces Discussion
> Subject: instanceof into a c:test to select
> datatable column value??
> 
> Hello everybody,
> 
> I have a big problem,..
> 
> I have a JSF data table which can have several types
> of objects, some have an attribute called name
> others
> don't, so I need to have a conditional that
> depending
> on the kind of object to show the name (if they have
> it) or to show a specific string for example:
> ("Doesn't have"), so I tried this:
> 
> 
>   
> 
>   
> 
>   
>  
>   
> 
>   
> 
>   
> 
>   
> 
> 
> 
> 
> But this pulls me a message in console with
> something
> like:
> 
> 
> javax.faces.el.PropertyNotFoundException: Bean:
> co.com.company.bo.document.MasiveDocumentBO,
> property:
> name
> 
> 
> 
> What should I do?
> 
> All objects inherits from a class DocumentBO which
> has
> all common attributes, inheriting from that class I
> have:
> MasiveDocumentBO
> InternDocumentBO
> ExternDocumentBO
> 
> The first class doesn't have that attribute, what
> should I do?
> 
> Thanks a lot
> 
> 
>   
> __ 
> LLama Gratis a cualquier PC del Mundo. 
> Llamadas a fijos y móviles desde 1 céntimo por
> minuto. 
> http://es.voice.yahoo.com
> 




__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Julian,
Can you expand on this?


One more note, While this approach works well found that it is more
convienient to create a custom component to provide the JSF interface as we
use charts on a large number of our pages and it fits the MVC model better
to let the JSF fuly control the format and display of the greaphic.




Your responses have been very helpful.

Paul Spencer


RE: instanceof into a c:test to select datatable column value??

2006-06-29 Thread Hagen, Nicholas
There may be other better solutions, but if you are using Facelets the one
thing I have done in those situations is using an EL function such as:



Then, define the my:datavalue function in the tag library and have a static
method such as:

class Utils
{
public static String getDatavalue(Object o, String prop, String def)
{
// Use Property Utils, Bean Utils, etc to check if prop is
// is on object 'o' and if so, return it...otherwise,
// just return the def value...or just check if 'o' is
// instanceof some object and then use reflection to get
// the prop method and value
}
}

Nick

-Original Message-
From: Johnny Gonzalez [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 8:33 AM
To: MyFaces Discussion
Subject: instanceof into a c:test to select datatable column value??

Hello everybody,

I have a big problem,..

I have a JSF data table which can have several types
of objects, some have an attribute called name others
don't, so I need to have a conditional that depending
on the kind of object to show the name (if they have
it) or to show a specific string for example:
("Doesn't have"), so I tried this:







   





  





But this pulls me a message in console with something
like:


javax.faces.el.PropertyNotFoundException: Bean:
co.com.company.bo.document.MasiveDocumentBO, property:
name



What should I do?

All objects inherits from a class DocumentBO which has
all common attributes, inheriting from that class I
have:
MasiveDocumentBO
InternDocumentBO
ExternDocumentBO

The first class doesn't have that attribute, what
should I do?

Thanks a lot



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Cagatay,
I have not ruled anything out.  I am still looking at the options.  In
general I like what I see in JSF-COMP.

JSF_COMP appears to be a very simple way to embed charts!

Paul Spencer


Cagatay Civici wrote:

Hi,

Why not use the JSF Chart Creator of JSF-COMP?

It does not use a servlet, instead a phaselistener to render the charts so
there is no need to to do any configuration in the application.

Cagatay

On 6/29/06, Julian Ray <[EMAIL PROTECTED]> wrote:


Sure.

First you need to be able to access the faces context from a non-faces
servlet. I posted some info on the WIKI about how to get the faces 
context

(and therefor all session values and access to managed beans) within a
servlet. Take a look at
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet.

Our charting servlet uses simple get params to control the chart -- as
this
is "visible" to the outside world we only pass params which allow us to
get
the appropriate managed bean and session properties from within faces
context. So in the doGet() we call appropriate managed beans and
JFreeChart
methods to creat and return the chart. This is standard servlet stuff
(with
the myfaces context added). Included code below

protected void processRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
FacesContext facesContext = getFacesContext(request, response);
  // Here we get whatever we need from the faces context.
SessionBean sessionBean = (SessionBean)
getSessionBean(facesContext);

if (null == sessionBean) {
log.debug("Session bean is null.");
} else {
log.debug("Got session bean. Userid=" +
sessionBean.getUserId());
}

// Get the chart type to process from the URL
AbstractChart chart = null;
Integer chartType =
NumberUtils.createInteger(request.getParameter("type").trim());

log.debug("Chart Type = '" + chartType + "'");

// Here we do whatever needed to create the chart...
String className = ChartType.getChartClassName(chartType);
log.debug("Creating chart object for class '" + className + "'");

String reportTitle = request.getParameter("til");
log.debug("Chart Title = '" + reportTitle + "'");

String reportSubTitle = request.getParameter("sub");
log.debug("Chart Sub Title = '" + reportSubTitle + "'");

// See if the chart is in the cache. The servlet is
single-threaded
and reuasable which means
/// that a new chart map is created for each instance of a chart.
Charts should be serializable
// and not store state in any way
if (map.containsKey(className)) {
chart = (AbstractChart) map.get(className);
} else {
// Use reflection to get the chart. Note that is must have a
no-args constructor
try {
chart = (AbstractChart)
Class.forName(className).newInstance();
// Push the chart to the map.
map.put(className, chart);
} catch (ClassNotFoundException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (InstantiationException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalAccessException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalArgumentException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
}
}

// Chart setup here
if (null == chart) {
log.error("Chart # " + chartType + " not found on server.");
response.setContentType("text/html");

ServletOutputStream outputStream = 
response.getOutputStream();

outputStream.println("Chart not found on server.");
outputStream.flush();
outputStream.close();
} else {
// Populate the chart so it can access the params
chart.setRequest(request);
chart.setSessionBean(sessionBean);

// Process the chart
JFreeChart jfreeChart = chart.getChart();
// get the image
response.setContentType("image/png");
ChartUtilities.writeChartAsPNG(response.getOutputStream(),
jfreeChart, chart.getChartWidth(), chart.getChartHeight());
}
}

Our JSF backing bean constructs a url based on options selected by the
user.
This url is passed to the  tag. The form of the URL is
/myContextRoot/myChartServlet?param1=value1¶m2=value2 etc.

In the backing bean we have

Public String getChartURL() {
StringBuffer sb = new StringBuffer();
sb.append("/myContextRoot/myChartServlet");
//sb.append(.) etc...
return sb.toString();
}
and in the JSF we have

v

instanceof into a c:test to select datatable column value??

2006-06-29 Thread Johnny Gonzalez
Hello everybody,

I have a big problem,..

I have a JSF data table which can have several types
of objects, some have an attribute called name others
don't, so I need to have a conditional that depending
on the kind of object to show the name (if they have
it) or to show a specific string for example:
("Doesn't have"), so I tried this:







   





  





But this pulls me a message in console with something
like:


javax.faces.el.PropertyNotFoundException: Bean:
co.com.company.bo.document.MasiveDocumentBO, property:
name



What should I do?

All objects inherits from a class DocumentBO which has
all common attributes, inheriting from that class I
have:
MasiveDocumentBO
InternDocumentBO
ExternDocumentBO

The first class doesn't have that attribute, what
should I do?

Thanks a lot



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


Re: dataTable rowOnClick problem

2006-06-29 Thread Alexandre Jaquet

In fact when I click under the second row, I get the third value :|

Alexandre Jaquet wrote:

Hi ,

I use rowOnClick method to retrieve the current id, my problem is when 
I click on the first row, the id is null.

Do I've something wrong in my declaration :

 
   
   
   
   
   


Regards





dataTable rowOnClick problem

2006-06-29 Thread Alexandre Jaquet

Hi ,

I use rowOnClick method to retrieve the current id, my problem is when I 
click on the first row, the id is null.

Do I've something wrong in my declaration :

   id="data">  
   

   
   
   
   
   


Regards


Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Cagatay Civici
Hi,Why not use the JSF Chart Creator of JSF-COMP?It does not use a servlet, instead a phaselistener to render the charts so there is no need to to do any configuration in the application.Cagatay
On 6/29/06, Julian Ray <[EMAIL PROTECTED]> wrote:
Sure.First you need to be able to access the faces context from a non-facesservlet. I posted some info on the WIKI about how to get the faces context(and therefor all session values and access to managed beans) within a
servlet. Take a look athttp://wiki.apache.org/myfaces/AccessFacesContextFromServlet.Our charting servlet uses simple get params to control the chart -- as this
is "visible" to the outside world we only pass params which allow us to getthe appropriate managed bean and session properties from within facescontext. So in the doGet() we call appropriate managed beans and JFreeChart
methods to creat and return the chart. This is standard servlet stuff (withthe myfaces context added). Included code belowprotected void processRequest(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
FacesContext facesContext = getFacesContext(request, response);  // Here we get whatever we need from the faces context.SessionBean sessionBean = (SessionBean)getSessionBean(facesContext);
if (null == sessionBean) {log.debug("Session bean is null.");} else {log.debug("Got session bean. Userid=" +sessionBean.getUserId());
}// Get the chart type to process from the URLAbstractChart chart = null;Integer chartType =NumberUtils.createInteger(request.getParameter("type").trim());
log.debug("Chart Type = '" + chartType + "'");// Here we do whatever needed to create the chart...String className = ChartType.getChartClassName(chartType);
log.debug("Creating chart object for class '" + className + "'");String reportTitle = request.getParameter("til");log.debug("Chart Title = '" + reportTitle + "'");
String reportSubTitle = request.getParameter("sub");log.debug("Chart Sub Title = '" + reportSubTitle + "'");// See if the chart is in the cache. The servlet is single-threaded
and reuasable which means/// that a new chart map is created for each instance of a chart.Charts should be serializable// and not store state in any wayif (map.containsKey(className)) {
chart = (AbstractChart) map.get(className);} else {// Use reflection to get the chart. Note that is must have ano-args constructortry {chart = (AbstractChart)
Class.forName(className).newInstance();// Push the chart to the map.map.put(className, chart);} catch (ClassNotFoundException e) {log.debug(e.getMessage
());throw new IOException(e.getMessage());} catch (InstantiationException e) {log.debug(e.getMessage());throw new IOException(e.getMessage());
} catch (IllegalAccessException e) {log.debug(e.getMessage());throw new IOException(e.getMessage());} catch (IllegalArgumentException e) {
log.debug(e.getMessage());throw new IOException(e.getMessage());}}// Chart setup hereif (null == chart) {log.error("Chart # " + chartType + " not found on server.");
response.setContentType("text/html");ServletOutputStream outputStream = response.getOutputStream();outputStream.println("Chart not found on server.");
outputStream.flush();outputStream.close();} else {// Populate the chart so it can access the paramschart.setRequest(request);chart.setSessionBean
(sessionBean);// Process the chartJFreeChart jfreeChart = chart.getChart();// get the imageresponse.setContentType("image/png");
ChartUtilities.writeChartAsPNG(response.getOutputStream(),jfreeChart, chart.getChartWidth(), chart.getChartHeight());}}Our JSF backing bean constructs a url based on options selected by the user.
This url is passed to the  tag. The form of the URL is/myContextRoot/myChartServlet?param1=value1¶m2=value2 etc.In the backing bean we havePublic String getChartURL() {
StringBuffer sb = new StringBuffer();sb.append("/myContextRoot/myChartServlet");//sb.append(.) etc...return sb.toString();}and in the JSF we have
/>Our servlet implementation loads chart classes as the servlet is initializedwhich speeds up the servlet once it is "warmed up".
One more note, While this approach works well found that it is moreconvienient to create a custom component to provide the JSF interface as weuse charts on a large number of our pages and it fi

RE: How to displayi an images generated by a managed bean?

2006-06-29 Thread Julian Ray
Sure.

First you need to be able to access the faces context from a non-faces
servlet. I posted some info on the WIKI about how to get the faces context
(and therefor all session values and access to managed beans) within a
servlet. Take a look at
http://wiki.apache.org/myfaces/AccessFacesContextFromServlet.

Our charting servlet uses simple get params to control the chart -- as this
is "visible" to the outside world we only pass params which allow us to get
the appropriate managed bean and session properties from within faces
context. So in the doGet() we call appropriate managed beans and JFreeChart
methods to creat and return the chart. This is standard servlet stuff (with
the myfaces context added). Included code below

protected void processRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
FacesContext facesContext = getFacesContext(request, response);
  // Here we get whatever we need from the faces context.
SessionBean sessionBean = (SessionBean)
getSessionBean(facesContext);

if (null == sessionBean) {
log.debug("Session bean is null.");
} else {
log.debug("Got session bean. Userid=" +
sessionBean.getUserId());
}

// Get the chart type to process from the URL
AbstractChart chart = null;
Integer chartType =
NumberUtils.createInteger(request.getParameter("type").trim());

log.debug("Chart Type = '" + chartType + "'");

// Here we do whatever needed to create the chart...
String className = ChartType.getChartClassName(chartType);
log.debug("Creating chart object for class '" + className + "'");

String reportTitle = request.getParameter("til");
log.debug("Chart Title = '" + reportTitle + "'");

String reportSubTitle = request.getParameter("sub");
log.debug("Chart Sub Title = '" + reportSubTitle + "'");

// See if the chart is in the cache. The servlet is single-threaded
and reuasable which means
/// that a new chart map is created for each instance of a chart.
Charts should be serializable
// and not store state in any way
if (map.containsKey(className)) {
chart = (AbstractChart) map.get(className);
} else {
// Use reflection to get the chart. Note that is must have a
no-args constructor
try {
chart = (AbstractChart)
Class.forName(className).newInstance();
// Push the chart to the map.
map.put(className, chart);
} catch (ClassNotFoundException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (InstantiationException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalAccessException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
} catch (IllegalArgumentException e) {
log.debug(e.getMessage());
throw new IOException(e.getMessage());
}
}

// Chart setup here
if (null == chart) {
log.error("Chart # " + chartType + " not found on server.");
response.setContentType("text/html");

ServletOutputStream outputStream = response.getOutputStream();
outputStream.println("Chart not found on server.");
outputStream.flush();
outputStream.close();
} else {
// Populate the chart so it can access the params
chart.setRequest(request);
chart.setSessionBean(sessionBean);

// Process the chart
JFreeChart jfreeChart = chart.getChart();
// get the image
response.setContentType("image/png");
ChartUtilities.writeChartAsPNG(response.getOutputStream(),
jfreeChart, chart.getChartWidth(), chart.getChartHeight());
}
}

Our JSF backing bean constructs a url based on options selected by the user.
This url is passed to the  tag. The form of the URL is
/myContextRoot/myChartServlet?param1=value1¶m2=value2 etc.

In the backing bean we have

Public String getChartURL() {
StringBuffer sb = new StringBuffer();
sb.append("/myContextRoot/myChartServlet");
//sb.append(.) etc...
return sb.toString();
}
and in the JSF we have 



Our servlet implementation loads chart classes as the servlet is initialized
which speeds up the servlet once it is "warmed up". 

One more note, While this approach works well found that it is more
convienient to create a custom component to provide the JSF interface as we
use charts on a large number of our pages and it fits the MVC model better
to let the JSF fuly control the format and display of the greaphic.

I hope this helps.



Example

-Original Me

Re: jscookMenu doesn't appear

2006-06-29 Thread Alexandre Jaquet
It's working fine right now but I can't put it into a page who use 
jsp:include :/


Strittmatter, Stephan wrote:

Sorry, no. I currently fighting with jscookmenu within a portlet :-/
which does also not work. 

  

-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 10:10 AM

To: MyFaces Discussion
Subject: Re: jscookMenu doesn't appear

Have you a working exemple ?
It can really help me !

Regards

Strittmatter, Stephan wrote:


Hi Alexandre,

I think you should place the menu within the view-tag 
  

instead of placing


it
in the head. content in the head is not rendered in the 
  

browsers page.

There are only meta date. Only the title is shown as page title. 


Regards,

Stephan
http://jroller.com/page/stritti

  
  

-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 8:03 AM

To: 'MyFaces Discussion'
Subject: t:jscookMenu doesn't appear

Hi,

I'm trying to use Jscookmenu into a page, I placed it into 
 
but when I load my page nothing appear.
If I look the source code of the page I doesn't see anything 
in relation 
with the  menu.


here my jsf page :
thx for your help

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + 
request.getServerName() 
+ ":" + request.getServerPort() + path + "/";

%>






eBonus










href="style/core.css">

styleLocation="css/jscookmenu">


actionListener="#{navigationMenu.actionListener}"

itemLabel="Home" itemValue="go_home" action="go_home"/>

itemLabel="#{example_messages['nav_Sample_1']}" 
action="go_sample1" />
 


itemLabel="#{example_messages['nav_Sample_2']}" 
action="go_sample2"

icon="images/myfaces.gif" />
itemLabel="#{example_messages['nav_Validate']}" 
action="go_validate"

icon="images/myfaces.gif" />




itemLabel="#{example_messages['nav_sortTable']}"

action="go_sortTable" 


icon="images/myfaces.gif" />





itemLabel="#{example_messages['nav_Selectbox']}"

action="go_selectbox" 


icon="images/myfaces.gif" />





itemLabel="#{example_messages['nav_FileUpload']}"

action="go_fileupload" 
icon="images/myfaces.gif" />




itemLabel="#{example_messages['nav_TabbedPane']}"

action="go_tabbedPane" 
icon="images/myfaces.gif" />

action="go_calendar" icon="images/myfaces.gif" 
split="true" />

itemLabel="#{example_messages['nav_Popup']}" 
action="go_popup"

icon="images/myfaces.gif" split="true" />
itemLabel="#{example_messages['nav_Date']}" 
action="go_date"

icon="images/myfaces.gif" />



itemLabel="#{example_messages['nav_InputHtml']}"

action="go_inputHtml" 


icon="images/myfaces.gif" />


itemLabel="#{example_messages['nav_tree2']}" 
action="go_tree2"

icon="images/myfaces.gif" />



itemLabel="#{example_messages['nav_treeTable']}"

action="go_treeTable" 


icon="images/myfaces.gif" />



itemLabel="#{example_messages['nav_dataScroller']}"
action="go_datascroller" 
icon="images/myfaces.gif" />

itemLabel="#{example_messages['nav_css']}" 
action="go_css"

icon="images/myfaces.gif" />

itemLabel="#{example_messages['nav_newspaperTable']}"
action="go_newspaperTable" 
icon="images/myfaces.gif" />



itemLabel="Apache MyFaces Home" 
action="http://myfaces.apache.org"; />










   









   
actionListener="#{utilGui.changeLocaleToFrench}" rendered="true" />
actionListener="#{utilGui.changeLocaleToEnglish}" 


rendered="true" />

actionListener="#{utilGui.changeLocaleToGerman}" rendered

Re: How to displayi an images generated by a managed bean?

2006-06-29 Thread Paul Spencer

Julian,
Can you explain the code and configuration behind
#{myBackingBean.chartURL} and the servlet you have created?

I need to understand where the graphic is created, i.e. in the managed
bean or servlet, how the servlet gets what is needs, and any
housekeeping that is performed.


Paul Spencer

Julian Ray wrote:

Hi Paul,

We use JFreeCharts by creating a servlet which serves up the charts and then
creating a URL in the backingbean which is set as the value for the
graphicImage

Eg  


-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:14 PM

To: MyFaces Discussion
Subject: How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently the
generation of the image is in an action of a managed bean and is displayed
in a separate windows via .  How should I convert this to a
 so it can be displayed in an existing page?

Paul Spencer







RE: jscookMenu doesn't appear

2006-06-29 Thread Strittmatter, Stephan
Sorry, no. I currently fighting with jscookmenu within a portlet :-/
which does also not work. 

> -Original Message-
> From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 10:10 AM
> To: MyFaces Discussion
> Subject: Re: jscookMenu doesn't appear
> 
> Have you a working exemple ?
> It can really help me !
> 
> Regards
> 
> Strittmatter, Stephan wrote:
> > Hi Alexandre,
> >
> > I think you should place the menu within the view-tag 
> instead of placing
> > it
> > in the head. content in the head is not rendered in the 
> browsers page.
> > There are only meta date. Only the title is shown as page title. 
> >
> > Regards,
> >
> > Stephan
> > http://jroller.com/page/stritti
> >
> >   
> >> -Original Message-
> >> From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
> >> Sent: Thursday, June 29, 2006 8:03 AM
> >> To: 'MyFaces Discussion'
> >> Subject: t:jscookMenu doesn't appear
> >>
> >> Hi,
> >>
> >> I'm trying to use Jscookmenu into a page, I placed it into 
> >>  
> >> but when I load my page nothing appear.
> >> If I look the source code of the page I doesn't see anything 
> >> in relation 
> >> with the  menu.
> >>
> >> here my jsf page :
> >> thx for your help
> >>
> >> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
> >> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
> >> <%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
> >> <%
> >> String path = request.getContextPath();
> >> String basePath = request.getScheme() + "://" + 
> >> request.getServerName() 
> >> + ":" + request.getServerPort() + path + "/";
> >> %>
> >>
> >> 
> >> 
> >> 
> >> 
> >>
> >> eBonus
> >>
> >> 
> >> 
> >> 
> >> 
> >>
> >> 
> >>  href="style/core.css">
> >>
> >>  >> styleLocation="css/jscookmenu">
> >>  >> value="#{navigationMenu.JSCookMenuNavigationItems}" />
> >>  >> actionListener="#{navigationMenu.actionListener}"
> >> itemLabel="Home" itemValue="go_home" action="go_home"/>
> >>  >> itemLabel="#{example_messages['nav_Examples']}">
> >>  >> itemLabel="#{example_messages['nav_Sample_1']}" 
> >> action="go_sample1" />
> >>  
> >> 
> >>  >> itemLabel="#{example_messages['nav_Sample_2']}" 
> >> action="go_sample2"
> >> icon="images/myfaces.gif" />
> >>  >> itemLabel="#{example_messages['nav_Validate']}" 
> >> action="go_validate"
> >> icon="images/myfaces.gif" />
> >>  >> itemLabel="#{example_messages['nav_Components']}"
> >> icon="images/component.gif" split="true">
> >>  >> 
> itemLabel="#{example_messages['nav_sortTable']}"
> >> action="go_sortTable" 
> icon="images/myfaces.gif" />
> >>  >> 
> itemLabel="#{example_messages['nav_Selectbox']}"
> >> action="go_selectbox" 
> icon="images/myfaces.gif" />
> >>  >> 
> itemLabel="#{example_messages['nav_FileUpload']}"
> >> action="go_fileupload" 
> >> icon="images/myfaces.gif" />
> >>  >> 
> itemLabel="#{example_messages['nav_TabbedPane']}"
> >> action="go_tabbedPane" 
> >> icon="images/myfaces.gif" />
> >>  >> itemLabel="#{example_messages['nav_Calendar']}"
> >> action="go_calendar" icon="images/myfaces.gif" 
> >> split="true" />
> >>  >> itemLabel="#{example_messages['nav_Popup']}" 
> >> action="go_popup"
> >> icon="images/myfaces.gif" split="true" />
> >>  >> itemLabel="#{example_messages['nav_Date']}" 
> >> action="go_date"
> >> icon="images/myfaces.gif" />
> >>  >> 
> itemLabel="#{example_messages['nav_InputHtml']}"
> >> action="go_inputHtml" 
> icon="images/myfaces.gif" />
> >>  >> itemLabel="#{example_messages['nav_tree2']}" 
> >> action="go_tree2"
> >> icon="images/myfaces.gif" />
> >>  >> 
> itemLabel="#{example_messages['nav_treeTable']}"
> >> action="go_treeTable" 
> icon="images/myfaces.gif" />
> >>  >> 
> >> itemLabel="#{example_messages['nav_dataScroller']}"
> >> action="go_datascroller" 
> >> icon="images/myfaces.gif" />
> >>  >> itemLabel="#{example_messages['nav_css']}" 
> >> action="go_css"
> >> icon="images/myfaces.gif" />
> >>  >> 
> >> itemLabel="#{example_messages['nav_newspaperTable'

RE: html text TabbedPane?

2006-06-29 Thread ldr

thanks Julian, just found the verbatim tag didn't know about the
outputtext...

/ldr_
-- 
View this message in context: 
http://www.nabble.com/html-text-TabbedPane--tf1866451.html#a5100466
Sent from the MyFaces - Users forum at Nabble.com.



RE: html text TabbedPane?

2006-06-29 Thread Julian Ray
Use  or  or 

-Original Message-
From: ldr [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 5:29 AM
To: users@myfaces.apache.org
Subject: html text TabbedPane?


Is it possible to have plain html text in a panelTab -> like this:











Synkronisering af Sony Ericsson
K700i


...




thx in advance, ldr_
--
View this message in context:
http://www.nabble.com/html-text-TabbedPane--tf1866451.html#a5099629
Sent from the MyFaces - Users forum at Nabble.com.



Re: t:jscookMenu doesn't appear

2006-06-29 Thread Bruno Aranda

Well, you should put all jsf components withing the f:view tags. I
don't understand why you put it within the header tags. If you want it
at the top, just put it the first thing after the f:view tag.

Regards,

Bruno

On 6/29/06, Alexandre Jaquet <[EMAIL PROTECTED]> wrote:

Hi,

I'm trying to use Jscookmenu into a page, I placed it into 
but when I load my page nothing appear.
If I look the source code of the page I doesn't see anything in relation
with the  menu.

here my jsf page :
thx for your help

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName()
+ ":" + request.getServerPort() + path + "/";
%>






eBonus














 


















http://myfaces.apache.org"; />



































RE: Adding star while rendering all required InputText

2006-06-29 Thread Coloma Escribano, Ignacio
You don't have to write a whole Renderer. Just overrite
HtmlInputTestRenderer.encodeBegin and write a  before calling
super.encodeBegin() (two lines of code). Then, register your renderer in
faces-config as javax.faces.Text (IIRC) to override the default MyFaces
renderer.

Total amount of work: 2-3 lines of code in each file. 

-Mensaje original-
De: Michael Ageeb [mailto:[EMAIL PROTECTED] 
Enviado el: martes, 27 de junio de 2006 15:49
Para: MyFaces Discussion
Asunto: Re: Adding star while rendering all required InputText

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Actually I want the star to be concatenated to the InputText before
the user submits and process the validation I want it be concatenated
in the early render phase. something that is not as complex as
creating a custom render
Julian Ray wrote:
> You can add a properties file which overrides the default messages.
Here are
> some that we have used in the past
>
> javax.faces.component.UIInput.REQUIRED=* value required.
> javax.faces.component.UIInput.CONVERSION=* invalid.
> javax.faces.validator.NOT_IN_RANGE=* value must be between {0} and
{1}.
> javax.faces.validator.LongRangeValidator.TYPE=* must be a number.
> javax.faces.convert.IntegerConverter.CONVERSION=* must be a valid
number.
> javax.faces.convert.DoubleConverter.CONVERSION=* must be a valid
number.
>
> -Original Message-
> From: Michael Ageeb [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 27, 2006 5:50 AM
> To: MyFaces Discussion
> Subject: Adding star while rendering all required InputText
>
> Hello,
>Is there a way to render a red star concatenated to any InputText
> with
> the required attribute set to true?
>
> I've an application with a lot of those InputText with their
> required set to
> true and I don't want to change the code for each manually .
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEoTc1s6YiuH6FszARArD8AJ9CPjJHAbfCO73A4LATFs8u8/qbMgCbBCYw
EwE6YtulLtEmrBVwQ9GVKHo=
=900W
-END PGP SIGNATURE-



html text TabbedPane?

2006-06-29 Thread ldr

Is it possible to have plain html text in a panelTab -> like this:











Synkronisering af Sony Ericsson 
K700i


...




thx in advance, ldr_
-- 
View this message in context: 
http://www.nabble.com/html-text-TabbedPane--tf1866451.html#a5099629
Sent from the MyFaces - Users forum at Nabble.com.



RE: How to displayi an images generated by a managed bean?

2006-06-29 Thread Julian Ray
Hi Paul,

We use JFreeCharts by creating a servlet which serves up the charts and then
creating a URL in the backingbean which is set as the value for the
graphicImage

Eg  

-Original Message-
From: Paul Spencer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 11:14 PM
To: MyFaces Discussion
Subject: How to displayi an images generated by a managed bean?

I need to include a graphic image generated by JFreeCharts.  Currently the
generation of the image is in an action of a managed bean and is displayed
in a separate windows via .  How should I convert this to a
 so it can be displayed in an existing page?

Paul Spencer



RE: Using rowIndexVar in datatable for setting rowId fails

2006-06-29 Thread Wiell, Daniel (FONL)
I recognise that problem. I was forced to upgrade to 1.1.4 snapshots.

/Daniel

-Original Message-
From: Anitha Suraj [mailto:[EMAIL PROTECTED] 
Sent: 28 June 2006 21:43
To: users@myfaces.apache.org
Subject: Using rowIndexVar in datatable for setting rowId fails



Hi,

I just upgraded to MyFaces1.1.3 and Tomahawk 1.1.3. I am using the
rowIndexVar to set the rowId in my datatable. This was working fine in 1.1.1.
So my ids were set to row_0, row_1 and so on. But when I upgraded, it is not
able to set the first row. It is setting rowId as row_, row_0, row_1 and so
on. 

Has anybody seen this error before and has a solution for it? Thanks so much.

This code was working before:

http://www.nabble.com/Using-rowIndexVar-in-datatable-for-setting-rowId-fails-
tf1863626.html#a5091346
Sent from the MyFaces - Users forum at Nabble.com.



Re: t:inputDate

2006-06-29 Thread StanislavZ

ooops - i am wrong ...
-- 
View this message in context: 
http://www.nabble.com/t%3AinputDate-tf1865733.html#a5099119
Sent from the MyFaces - Users forum at Nabble.com.



myfaces portlet and overriding doView() and processAction()

2006-06-29 Thread Nicolas Kalkhof
hello folks,

first of all...iŽm pretty new to portlets so please be patient with me ;). iŽd 
like to build a small portal using the latest pluto-trunk and myfaces/jsf 
bridges. so far everything seems to be smooth but now iŽm at a point where i 
want to share data between portlets. example: user presses a logout button in 
one portlet and all other portlets change their content.

to do that, i guess i have to overwrite generic methods like doView() in my own 
class. this method is called, whenever a portlet refreshes, right? to achieve 
that i did the following:

public class LogonAction extends MyFacesGenericPortlet {
 
public void doView(RenderRequest request, RenderResponse response)
 throws PortletException, IOException {
 super.doView(request, response);
}
}

unfortunately neither doView()  nor processAction(), witch is not included in 
my codesample above, is ever called. 
what am i doing wrong?

my portlet.xml for the portlet described above looks like this:

 
 LogonPortlet 
 
 ViewPage
 /WEB-INF/jsp/index_nolog.jsp
  
 
 default-view
 /WEB-INF/jsp/index_nolog.jsp
 
 
 HelpPage
 /WEB-INF/jsp/help.jsp
  
 org.apache.portals.bridges.jsf.FacesPortlet 
 -1 
 
 text/html
 VIEW
 HELP
  
 
 login
 LogonPortlet
 LogonPortlet
  
 

and my web.xml:

 
 javax.faces.STATE_SAVING_METHOD
 server
 
 
 org.apache.myfaces.ALLOW_JAVASCRIPT
 true 
  
 
 org.apache.myfaces.DETECT_JAVASCRIPT
 false
  
 
 org.apache.myfaces.PRETTY_HTML
 true
  
 
 org.apache.myfaces.AUTO_SCROLL
 false
 

 
 extensionsFilter
 org.apache.myfaces.webapp.filter.ExtensionsFilter
 
 uploadMaxFileSize
 100m 
 
 
 uploadThresholdSize
 100k
 
  
 
 extensionsFilter
 /PlutoInvoker/LogonPortlet
  
 
 
 
org.apache.myfaces.webapp.StartupServletContextListener
 
 
 
 LogonPortlet
 org.apache.pluto.core.PortletServlet 
 
 portlet-name
 LogonPortlet
 
 1
 
 
 
 LogonPortlet
 /PlutoInvoker/LogonPortlet
  

any help to get me out of this mess is very much apprechiated. :)

regards,
nicolas
__
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130



include jsp/jsf code in a jsf page at runtime

2006-06-29 Thread Leonardo Calugi

Hello,
 I have a problem. I must get data from a Firebird db. The data is  
posted in jsp/jsf code. I've tried to get them through a servlet. The  
problem is that when I include result in my jsf page, the code doesn't  
get compiled.
If I include code with a  or a jsp action   
or a  the code doesn't get compiled. If I include code  
with directive <%include> it is translated correctly, but include  
directive accepts only physical files.


Any suggestion?

Thanks

--
Leonardo Calugi




Re: jscookMenu doesn't appear

2006-06-29 Thread Alexandre Jaquet

Have you a working exemple ?
It can really help me !

Regards

Strittmatter, Stephan wrote:

Hi Alexandre,

I think you should place the menu within the view-tag instead of placing
it
in the head. content in the head is not rendered in the browsers page.
There are only meta date. Only the title is shown as page title. 


Regards,

Stephan
http://jroller.com/page/stritti

  

-Original Message-
From: Alexandre Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 8:03 AM

To: 'MyFaces Discussion'
Subject: t:jscookMenu doesn't appear

Hi,

I'm trying to use Jscookmenu into a page, I placed it into 
 
but when I load my page nothing appear.
If I look the source code of the page I doesn't see anything 
in relation 
with the  menu.


here my jsf page :
thx for your help

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + 
request.getServerName() 
+ ":" + request.getServerPort() + path + "/";

%>






eBonus










styleLocation="css/jscookmenu">


actionListener="#{navigationMenu.actionListener}"

itemLabel="Home" itemValue="go_home" action="go_home"/>

itemLabel="#{example_messages['nav_Sample_1']}" 
action="go_sample1" />
 


itemLabel="#{example_messages['nav_Sample_2']}" 
action="go_sample2"

icon="images/myfaces.gif" />
itemLabel="#{example_messages['nav_Validate']}" 
action="go_validate"

icon="images/myfaces.gif" />



action="go_fileupload" 
icon="images/myfaces.gif" />

action="go_tabbedPane" 
icon="images/myfaces.gif" />

action="go_calendar" icon="images/myfaces.gif" 
split="true" />

itemLabel="#{example_messages['nav_Popup']}" 
action="go_popup"

icon="images/myfaces.gif" split="true" />
itemLabel="#{example_messages['nav_Date']}" 
action="go_date"

icon="images/myfaces.gif" />

itemLabel="#{example_messages['nav_tree2']}" 
action="go_tree2"

icon="images/myfaces.gif" />


itemLabel="#{example_messages['nav_dataScroller']}"
action="go_datascroller" 
icon="images/myfaces.gif" />

itemLabel="#{example_messages['nav_css']}" 
action="go_css"

icon="images/myfaces.gif" />

itemLabel="#{example_messages['nav_newspaperTable']}"
action="go_newspaperTable" 
icon="images/myfaces.gif" />



itemLabel="Apache MyFaces Home" 
action="http://myfaces.apache.org"; />










   









   
actionListener="#{utilGui.changeLocaleToFrench}" rendered="true" />
actionListener="#{utilGui.changeLocaleToEnglish}" rendered="true" />
actionListener="#{utilGui.changeLocaleToGerman}" rendered="true" />
actionListener="#{utilGui.changeLocaleToItalian}" rendered="true" />















  




Re: t:inputDate

2006-06-29 Thread StanislavZ

I found myself one desicion - not to use commnadButton for submit form -
instead t:commandLink 
-- 
View this message in context: 
http://www.nabble.com/t%3AinputDate-tf1865733.html#a5098693
Sent from the MyFaces - Users forum at Nabble.com.



Re: t:column groupBy="true"

2006-06-29 Thread ::SammyRulez::

I have the same problem... it seems to be ignored

2006/6/1, Geoff Longo <[EMAIL PROTECTED]>:

Is this attribute still supported?  I can't seem to get it to work.

Thanks,
Geoff




--
::SammyRulez::
http://www.kyub.com/blojsom/blog/sam/


UIInput.getValue can return wrong (old) value

2006-06-29 Thread Marios Kerkemezos
  Dear all,
   
  Lately I discovered the following strange behavior in my apps. I 
am using MyFaces Core 1.1.3 and Tomahawk 1.1.3.  Here is a test scenario:
   
  I have a session scoped managed bean, and a form with 3 text fields, one 
bound to some Integer value and two bound to String values the last of which is 
required:
   
  
  
  
  
  
  
  
   
  
 
 
  
  
   
  When I first run this simple example all the fields are empty. I fill them in 
with the values “1”, “aaa”, and “bbb” respectively and hit the submit button 
and the values appear on the table below the form.
   
  I then clear the fields and resubmit the form which will cause a validation 
error message to be displayed, since the last of the 3 fields is required. The 
values on the table will correctly retain their previous values as the model 
has not been updated. However although the 2 string fields will display their 
last submitted value correctly (i.e. they will be blank), the number field will 
have re-acquired the bean value (i.e. the value “1”). This occurs because the 
getValue() method will only return the component’s local value if it is not 
null.
   
  Probably this is no news to you, but could someone please clarify if this is 
the correct behavior according to the spec? I’ve also tested it with Sun’s RI 
and got the same behavior…
   
  Also there was an issue at the JIRA that seemed related 
(http://issues.apache.org/jira/browse/MYFACES-187), but it has been closed. 
   
  In my opinion the getValue() method should check if the local value has been 
set and return it no matter if it is null. I think it looks strange if the user 
to submit a form of string, number, date fields, and have only the string 
fields remember their last submitted value when a validation error occurs…. 
   
  Thanx for reading. Any thoughts welcome.
  Mario