Re: PropertyNotFoundException - Base is null

2006-12-19 Thread Aneesha Govil

Thanks for trying to help. It still doesn't work after making that change.
:-(

Any other ideas?

Aneesha

On 12/19/06, Paul Spencer <[EMAIL PROTECTED]> wrote:


Just a guess, try

instead of :


The value attribute is referencing the property, not the getter.

Paul Spencer


Aneesha Govil wrote:
> Hi,
>
> I am trying to integrate my JSF pages with an existing JSP application.
I
> have edited a JSP and removed most of JSP stuff in it and added JSF. I
> added
> a commandButton as follows:
>
>  styleClass="tdButtonHolder">
> 
> 
>
> However, when I click this button, I do get the alert and then the
> exception
> below.
>
> javax.faces.el.PropertyNotFoundException: Base is null: displaybean
> at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(
> ValueBindingImpl.java:460)
> at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java
> :248)
> at
>
org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction
>
> (UpdateActionListener.java:159)
> at javax.faces.event.ActionEvent.processListener(ActionEvent.java:48)
> at
> javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java
:484)
> at javax.faces.component.UICommand.broadcast(UICommand.java:75)
> at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java
:94)
> at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java
:168)
> at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(
> LifecycleImpl.java:343)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
:86)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
> 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:100)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
> ExtensionsFilter.java:147)
> 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.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:482)
> 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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(
> CachedConnectionValve.java:138)
> 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)
>
> Does anybody have any idea what is wrong?
> I am using JBoss 4.0.3 SP1 with same libs in jsf-libs and WEB-INF/lib of
my
> application's war file.
>
> Thanks,
> Aneesha
>




PropertyNotFoundException - Base is null

2006-12-19 Thread Aneesha Govil

Hi,

I am trying to integrate my JSF pages with an existing JSP application. I
have edited a JSP and removed most of JSP stuff in it and added JSF. I added
a commandButton as follows:





However, when I click this button, I do get the alert and then the exception
below.

javax.faces.el.PropertyNotFoundException: Base is null: displaybean
at org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(
ValueBindingImpl.java:460)
at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java
:248)
at
org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction
(UpdateActionListener.java:159)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:48)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:484)
at javax.faces.component.UICommand.broadcast(UICommand.java:75)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(
LifecycleImpl.java:343)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
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:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
ExtensionsFilter.java:147)
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.apache.catalina.authenticator.AuthenticatorBase.invoke(
AuthenticatorBase.java:482)
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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(
CachedConnectionValve.java:138)
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)

Does anybody have any idea what is wrong?
I am using JBoss 4.0.3 SP1 with same libs in jsf-libs and WEB-INF/lib of my
application's war file.

Thanks,
Aneesha


Re: [Off-topic?] Image title, link title not showing up as tooltip

2006-12-16 Thread Aneesha Govil

I populated both attributes. It just somehow doesn't work on my Firefox on
Linux. It works on Firefox on Windows!

Thanks,
Aneesha

On 12/15/06, Jesse Alexander (KSFD 121) <[EMAIL PROTECTED]>
wrote:


 known problem:

IE shows the alt-attribute as tooltip, while Firefox shows the
title-attribute.

According to www firefox does it correctly...

Solution: render the tooltip in both attributes and you get the tooltip in
both broswers...

hth
Alexander

 --
*From:* Aneesha Govil [mailto:[EMAIL PROTECTED]
*Sent:* Friday, December 15, 2006 12:25 PM
*To:* MyFaces Discussion
*Subject:* Re: [Off-topic?] Image title, link title not showing up as
tooltip

It's working in Firefox on Windows. Duh.

Please ignore the message.

Thanks,
Aneesha

On 12/15/06, Aneesha Govil < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a dynamically-constructed datatable and a static table (in
> f:verbatim tags) that display images, links and a bunch of other components.
>
>
> In the beginning when I was developing, the title attribute that I had
> set for links and images was showing up as a tooltip. However, now after
> completion of several features, they have stopped showing up. Both in
> Mozilla Firefox 2.0 and IE. The HTML does render the title attribute but
> it is not displayed.
>
> Does anybody have any idea why?
> Is it possible because these components are now inside tables? I have no
> idea where to start looking what is going wrong.
>
> Please help.
>
> Thanks,
> Aneesha
>




[Off-topic?] Image title, link title not showing up as tooltip

2006-12-15 Thread Aneesha Govil

Hi,

I have a dynamically-constructed datatable and a static table (in f:verbatim
tags) that display images, links and a bunch of other components.

In the beginning when I was developing, the title attribute that I had set
for links and images was showing up as a tooltip. However, now after
completion of several features, they have stopped showing up. Both in
Mozilla Firefox 2.0 and IE. The HTML does render the title attribute but it
is not displayed.

Does anybody have any idea why?
Is it possible because these components are now inside tables? I have no
idea where to start looking what is going wrong.

Please help.

Thanks,
Aneesha


Re: [Off-topic?] Image title, link title not showing up as tooltip

2006-12-15 Thread Aneesha Govil

It's working in Firefox on Windows. Duh.

Please ignore the message.

Thanks,
Aneesha

On 12/15/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Hi,

I have a dynamically-constructed datatable and a static table (in
f:verbatim tags) that display images, links and a bunch of other components.


In the beginning when I was developing, the title attribute that I had set
for links and images was showing up as a tooltip. However, now after
completion of several features, they have stopped showing up. Both in
Mozilla Firefox 2.0 and IE. The HTML does render the title attribute but
it is not displayed.

Does anybody have any idea why?
Is it possible because these components are now inside tables? I have no
idea where to start looking what is going wrong.

Please help.

Thanks,
Aneesha



Re: Tomahawk and JBoss

2006-12-14 Thread Aneesha Govil

Well I found couple of issues with Seam-Tomahawk combination. Posting here
for future reference, if anyone is interested.

[1] http://www.jboss.com/index.html?module=bb&op=viewtopic&t=85212
[2] http://www.jboss.com/index.html?module=bb&op=viewtopic&t=89231

--Aneesha.


Re: Tomahawk and JBoss

2006-12-14 Thread Aneesha Govil

On 12/14/06, Mario Ivankovits <[EMAIL PROTECTED]> wrote:


Hi!
>> Well I just wanted to know if anyone else had come across issues
>> here. Sorry
>> if it is off-topic.
>
> no, it's fine. I am now also interested in *deep* details.
Yeah, me too.

It would be better to help getting things better instead of ranting
around.
I am not aware that tomahawk do some strange things with the lifecycle,
I am looking forward to learn 

Ciao,
Mario



Exactly! And I don't want to put in a million frameworks, implement and just
to discover that one does not work with the other. It was a pain finalizing
tomahawk in the first place! Besides, in a normal project, we usually don't
have time to build-evaluate-throw-rebuild-reevaluate. I have already missed
a couple of deadlines! :-|

Aneesha


Re: Tomahawk and JBoss

2006-12-14 Thread Aneesha Govil

On 12/14/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:


> Well, I did some research and what I could find was mostly configuration
> problems. People were trying to find out how to configure tomahawk but
> asking for help on the Seam forum instead of here. Gavin says they do
not
> recommend using tomahawk, with or without Seam. So I suppose it is not
an
> issue just with the combination but with tomahawk itself?

perhaps we get an answer on that in the forum.

-M



Well I just wanted to know if anyone else had come across issues here. Sorry
if it is off-topic.

Thanks.
Aneesha


Re: Tomahawk and JBoss

2006-12-14 Thread Aneesha Govil

On 12/14/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:




On 12/14/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I was looking for information on JBoss Seam and posted a thread on the
> JBoss Seam forum. I would like you to see [1]. I do not understand why they
> have such an opinion. What are your thoughts on this?
>
> Does anybody have any experience on using tomahawk on JBoss? Any
> tips/pointers on whether anything might go wrong?


Did you try what Gavin suggested ("search this forum") in the thread you
referenced?

The Tomahawk implementors have made some decisions that I wouldn't choose
myself (example:  why should saving state be something that the *page
author* does with  instead of letting the application
developer, or the framework he/she is using, take careof it?), but the best
source of information on real problems would seem to be people who have
tried the combination and found issues.  It seems like there are more than a
few such threads in the JBoss Seam forum archives.



Craig


Well, I did some research and what I could find was mostly configuration
problems. People were trying to find out how to configure tomahawk but
asking for help on the Seam forum instead of here. Gavin says they do not
recommend using tomahawk, with or without Seam. So I suppose it is not an
issue just with the combination but with tomahawk itself?

Thanks,
Aneesha


Tomahawk and JBoss

2006-12-14 Thread Aneesha Govil

Hi all,

I was looking for information on JBoss Seam and posted a thread on the JBoss
Seam forum. I would like you to see [1]. I do not understand why they have
such an opinion. What are your thoughts on this?

Does anybody have any experience on using tomahawk on JBoss? Any
tips/pointers on whether anything might go wrong?

Thanks,
Aneesha

[1] http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993759#3993759


Re: http://java.sun.com/jsf/html cannot be resolved

2006-12-13 Thread Aneesha Govil

Hi Dave,

I do not think that it would work that way. You might want to look at [1]
and [2].

[1] http://www.nabble.com/Jboss-and-Myfaces-problem-tf2814749.html
[2] http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss

Hope that helps.
Aneesha

On 12/14/06, Dave <[EMAIL PROTECTED]> wrote:


After moving all jars (including myfaces jars) into JBoss container under
server/default/lib,  I got the following error:
 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw
exception
javax.faces.FacesException: The absolute uri: 
http://java.sun.com/jsf/htmlcannot be resolved in either
web.xml or the jar files deployed with this application
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(
ServletExternalContextImpl.java:422)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(
JspViewHandlerImpl.java:234)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(
LifecycleImpl.java:384)

Do I need to put myfaces jars into the web application war file?  I like
to make it lighter by moving all myfaces jars out into JBOSS.

Thanks, Dave



--
Everyone is raving about the all-new Yahoo! Mail 
beta.




Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

Pardon me, "jar" files.

On 12/14/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Hi,

It works after I copy the jat files in WEB-INF/lib of the war file. It's
working now :D
Thanks!

Regards,
Aneesha

On 12/13/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
>
> I put it in the manifest and in tomcat/jsf-libs folder of JBoss...
>
> I will try putting it in the war.
>
> Aneesha
>
> On 12/13/06, Andreas Berger < [EMAIL PROTECTED]> wrote:
> >
> > Where did you put the tomahawk.jar? For some jars JBoss need it in the
> > war file. It's not enough to link it vie manifest.
> >
> > 2006/12/13, Aneesha Govil < [EMAIL PROTECTED]>:
> > >  Well the exact web.xml is really long and has a lot of other
> > existing
> > > application stuff in it. However, I copied all the below elements to
> > that
> > > web.xml. If this doesn't point to anything, I can copy the exact
> > web.xml
> > > when I am at work tomorrow morning.
> > >
> > > Another thing, the web application is deployed as an ear file that
> > contains
> > > the war file with the JSF part. The web.xml is bundled in the war
> > file. Just
> > > thought it might be a factor.
> > >
> > >  
> > > - http://java.sun.com/xml/ns/j2ee "
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee
> > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> > > version=" 2.4">
> > >   
> > >javax.faces.STATE_SAVING_METHOD 
> > >   server
> > >
> > > - 
> > >
> > > org.apache.myfaces.ALLOW_JAVASCRIPT 
> > >true
> > >   
> > >  - 
> > >   org.apache.myfaces.PRETTY_HTML 
> > >   true
> > >
> > > - 
> > >
> > > org.apache.myfaces.DETECT_JAVASCRIPT
> > >false
> > >   
> > >  - 
> > >   org.apache.myfaces.AUTO_SCROLL 
> > >   false
> > >
> > > - 
> > >
> > > 
> > org.apache.myfaces.webapp.StartupServletContextListener
> > 
> > >
> > > - 
> > >Faces Servlet
> > >   javax.faces.webapp.FacesServlet
> > >   1
> > >
> > > - 
> > >Faces Servlet
> > >   *.faces
> > >
> > > - 
> > >index.jsp
> > >   
> > > - 
> > >MyFacesExtensionsFilter
> > >
> > > org.apache.myfaces.webapp.filter.ExtensionsFilter
> > > 
> > > - 
> > >maxFileSize
> > >   20m
> > >
> > >   
> > >  - 
> > >   MyFacesExtensionsFilter
> > >   *.faces
> > >
> > > - 
> > >MyFacesExtensionsFilter
> > >   Faces Servlet
> > >   
> > >  - 
> > >   MyFacesExtensionsFilter
> > >
> > > /faces/myFacesExtensionResource/*
> > >
> > >   
> > >
> > > Thanks,
> > > Aneesha
> > >
> > >
> > > On 12/13/06, Mick Knutson < [EMAIL PROTECTED] > wrote:
> > > > Can you post your web.xml?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 12/13/06, Andreas Berger < [EMAIL PROTECTED] > wrote:
> > > >
> > > > > Do you use facelets? If so, check if you put a
> > tomahawk.taglib.xml
> > > > > (needed by faclets) in your WEB-INF directory.
> > > > >
> > > > > 2006/12/13, Aneesha Govil < [EMAIL PROTECTED]>:
> > > > > > Hi,
> > > > > >
> > > > > > I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3SP1. I
> > > followed
> > > > > > the instructions at [1] however, before that I was just
> > getting an
> > > error for
> > > > > > tomahawk jars as "the absolute uri
> > > > > > http://myfaces.apache.org/tomahawk was not found in
> > > web.xml
> > > > > > or jars ...". After following the instructions, it does not
> > even find
> > > the
> > > > > > core tlds.
> > > > > >
> > > > > > Do I need to do anything else? I read somewhere about adding
> > some
> > > > > > init-params to web.xml but didn't get which web.xml to put
> > them in.
> > > > > >
> > > > > > Also, if I put the jar files in Manifest.MF instead of putting
> > them in
> > > > > > WEB-INF/lib, it should still work, but it doesn't.
> > > > > >
> > > > > > Any idea what needs to be fixed? Please help, my
> > JSF-application
> > > cannot
> > > > > > integrate with the main application if I can't make it work in
> > JBoss.
> > > :(
> > > > > >
> > > > > > Thanks,
> > > > > > Aneesha
> > > > > >
> > > > > > [1]
> > > > > >
> > > http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Thanks
> > > >
> > > > DJ MICK
> > > > http://www.djmick.com
> > > > http://www.myspace.com/mickknutson
> > >
> > >
> >
>
>



Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

Hi,

It works after I copy the jat files in WEB-INF/lib of the war file. It's
working now :D
Thanks!

Regards,
Aneesha

On 12/13/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


I put it in the manifest and in tomcat/jsf-libs folder of JBoss...

I will try putting it in the war.

Aneesha

On 12/13/06, Andreas Berger < [EMAIL PROTECTED]> wrote:
>
> Where did you put the tomahawk.jar? For some jars JBoss need it in the
> war file. It's not enough to link it vie manifest.
>
> 2006/12/13, Aneesha Govil <[EMAIL PROTECTED]>:
> >  Well the exact web.xml is really long and has a lot of other existing
> > application stuff in it. However, I copied all the below elements to
> that
> > web.xml. If this doesn't point to anything, I can copy the exact
> web.xml
> > when I am at work tomorrow morning.
> >
> > Another thing, the web application is deployed as an ear file that
> contains
> > the war file with the JSF part. The web.xml is bundled in the war
> file. Just
> > thought it might be a factor.
> >
> >  
> > - http://java.sun.com/xml/ns/j2ee "
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> > version="2.4">
> >   
> >javax.faces.STATE_SAVING_METHOD 
> >   server
> >
> > - 
> >
> > org.apache.myfaces.ALLOW_JAVASCRIPT 
> >true
> >   
> >  - 
> >   org.apache.myfaces.PRETTY_HTML 
> >   true
> >
> > - 
> >
> > org.apache.myfaces.DETECT_JAVASCRIPT
> >false
> >   
> >  - 
> >   org.apache.myfaces.AUTO_SCROLL 
> >   false
> >
> > - 
> >
> > 
> org.apache.myfaces.webapp.StartupServletContextListener
> >
> > - 
> >Faces Servlet
> >   javax.faces.webapp.FacesServlet
> >   1
> >
> > - 
> >Faces Servlet
> >   *.faces
> >
> > - 
> >index.jsp
> >   
> > - 
> >MyFacesExtensionsFilter
> >
> > org.apache.myfaces.webapp.filter.ExtensionsFilter
> > 
> > - 
> >maxFileSize
> >   20m
> >
> >   
> >  - 
> >   MyFacesExtensionsFilter
> >   *.faces
> >
> > - 
> >MyFacesExtensionsFilter
> >   Faces Servlet
> >   
> >  - 
> >   MyFacesExtensionsFilter
> >
> > /faces/myFacesExtensionResource/*
> >
> >   
> >
> > Thanks,
> > Aneesha
> >
> >
> > On 12/13/06, Mick Knutson <[EMAIL PROTECTED] > wrote:
> > > Can you post your web.xml?
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 12/13/06, Andreas Berger < [EMAIL PROTECTED] > wrote:
> > >
> > > > Do you use facelets? If so, check if you put a tomahawk.taglib.xml
> > > > (needed by faclets) in your WEB-INF directory.
> > > >
> > > > 2006/12/13, Aneesha Govil < [EMAIL PROTECTED]>:
> > > > > Hi,
> > > > >
> > > > > I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1.
> I
> > followed
> > > > > the instructions at [1] however, before that I was just getting
> an
> > error for
> > > > > tomahawk jars as "the absolute uri
> > > > > http://myfaces.apache.org/tomahawk was not found in
> > web.xml
> > > > > or jars ...". After following the instructions, it does not even
> find
> > the
> > > > > core tlds.
> > > > >
> > > > > Do I need to do anything else? I read somewhere about adding
> some
> > > > > init-params to web.xml but didn't get which web.xml to put them
> in.
> > > > >
> > > > > Also, if I put the jar files in Manifest.MF instead of putting
> them in
> > > > > WEB-INF/lib, it should still work, but it doesn't.
> > > > >
> > > > > Any idea what needs to be fixed? Please help, my JSF-application
>
> > cannot
> > > > > integrate with the main application if I can't make it work in
> JBoss.
> > :(
> > > > >
> > > > > Thanks,
> > > > > Aneesha
> > > > >
> > > > > [1]
> > > > >
> > http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
> > > Thanks
> > >
> > > DJ MICK
> > > http://www.djmick.com
> > > http://www.myspace.com/mickknutson
> >
> >
>




Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

I put it in the manifest and in tomcat/jsf-libs folder of JBoss...

I will try putting it in the war.

Aneesha

On 12/13/06, Andreas Berger <[EMAIL PROTECTED]> wrote:


Where did you put the tomahawk.jar? For some jars JBoss need it in the
war file. It's not enough to link it vie manifest.

2006/12/13, Aneesha Govil <[EMAIL PROTECTED]>:
>  Well the exact web.xml is really long and has a lot of other existing
> application stuff in it. However, I copied all the below elements to
that
> web.xml. If this doesn't point to anything, I can copy the exact web.xml
> when I am at work tomorrow morning.
>
> Another thing, the web application is deployed as an ear file that
contains
> the war file with the JSF part. The web.xml is bundled in the war file.
Just
> thought it might be a factor.
>
>  
> - http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> version="2.4">
>   
>   javax.faces.STATE_SAVING_METHOD 
>   server
>
> - 
>
> org.apache.myfaces.ALLOW_JAVASCRIPT
>true
>   
>  - 
>   org.apache.myfaces.PRETTY_HTML 
>   true
>
> - 
>
> org.apache.myfaces.DETECT_JAVASCRIPT
>false
>   
>  - 
>   org.apache.myfaces.AUTO_SCROLL 
>   false
>
> - 
>
> org.apache.myfaces.webapp.StartupServletContextListener

>
> - 
>Faces Servlet
>   javax.faces.webapp.FacesServlet
>   1
>
> - 
>Faces Servlet
>   *.faces
>
> - 
>index.jsp
>   
> - 
>MyFacesExtensionsFilter
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter
> 
> - 
>maxFileSize
>   20m
>
>   
>  - 
>   MyFacesExtensionsFilter
>   *.faces
>
> - 
>MyFacesExtensionsFilter
>   Faces Servlet
>   
>  - 
>   MyFacesExtensionsFilter
>
> /faces/myFacesExtensionResource/*
>
>   
>
> Thanks,
> Aneesha
>
>
> On 12/13/06, Mick Knutson <[EMAIL PROTECTED]> wrote:
> > Can you post your web.xml?
> >
> >
> >
> >
> >
> >
> > On 12/13/06, Andreas Berger < [EMAIL PROTECTED]> wrote:
> >
> > > Do you use facelets? If so, check if you put a tomahawk.taglib.xml
> > > (needed by faclets) in your WEB-INF directory.
> > >
> > > 2006/12/13, Aneesha Govil <[EMAIL PROTECTED]>:
> > > > Hi,
> > > >
> > > > I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I
> followed
> > > > the instructions at [1] however, before that I was just getting an
> error for
> > > > tomahawk jars as "the absolute uri
> > > > http://myfaces.apache.org/tomahawk was not found in
> web.xml
> > > > or jars ...". After following the instructions, it does not even
find
> the
> > > > core tlds.
> > > >
> > > > Do I need to do anything else? I read somewhere about adding some
> > > > init-params to web.xml but didn't get which web.xml to put them
in.
> > > >
> > > > Also, if I put the jar files in Manifest.MF instead of putting
them in
> > > > WEB-INF/lib, it should still work, but it doesn't.
> > > >
> > > > Any idea what needs to be fixed? Please help, my JSF-application
> cannot
> > > > integrate with the main application if I can't make it work in
JBoss.
> :(
> > > >
> > > > Thanks,
> > > > Aneesha
> > > >
> > > > [1]
> > > >
> http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
> > > >
> > >
> >
> >
> >
> > --
> >
> > Thanks
> >
> > DJ MICK
> > http://www.djmick.com
> > http://www.myspace.com/mickknutson
>
>



Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

Well the exact web.xml is really long and has a lot of other existing
application stuff in it. However, I copied all the below elements to that
web.xml. If this doesn't point to anything, I can copy the exact
web.xmlwhen I am at work tomorrow morning.

Another thing, the web application is deployed as an ear file that contains
the war file with the JSF part. The web.xml is bundled in the war file. Just
thought it might be a factor.


- http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">

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

 
- 
 Faces Servlet
 javax.faces.webapp.FacesServlet
 1
 
- 
 Faces Servlet
 *.faces
 
- 
 index.jsp
 
- 
 MyFacesExtensionsFilter
 org.apache.myfaces.webapp.filter.ExtensionsFilter

- 
 maxFileSize
 20m
 
 
- 
 MyFacesExtensionsFilter
 *.faces
 
- 
 MyFacesExtensionsFilter
 Faces Servlet
 
- 
 MyFacesExtensionsFilter
 /faces/myFacesExtensionResource/*
 
 

Thanks,
Aneesha

On 12/13/06, Mick Knutson <[EMAIL PROTECTED]> wrote:


Can you post your web.xml?





On 12/13/06, Andreas Berger <[EMAIL PROTECTED]> wrote:
>
> Do you use facelets? If so, check if you put a tomahawk.taglib.xml
> (needed by faclets) in your WEB-INF directory.
>
> 2006/12/13, Aneesha Govil <[EMAIL PROTECTED]>:
> > Hi,
> >
> > I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I
> followed
> > the instructions at [1] however, before that I was just getting an
> error for
> > tomahawk jars as "the absolute uri
> > http://myfaces.apache.org/tomahawk was not found in web.xml
> > or jars ...". After following the instructions, it does not even find
> the
> > core tlds.
> >
> > Do I need to do anything else? I read somewhere about adding some
> > init-params to web.xml but didn't get which web.xml to put them in.
> >
> > Also, if I put the jar files in Manifest.MF instead of putting them in
> > WEB-INF/lib, it should still work, but it doesn't.
> >
> > Any idea what needs to be fixed? Please help, my JSF-application
> cannot
> > integrate with the main application if I can't make it work in JBoss.
> :(
> >
> > Thanks,
> > Aneesha
> >
> > [1]
> > http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
> >
>



--

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson


Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

That's what I thought too but when it wouldn't work, I thought I'd give it a
try. No luck. :(

Thanks,
Aneesha

On 12/13/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote:


I don't know why that wiki page tells you to add the SourceCodeServlet,
that is only for the example app.

Aneesha Govil wrote:
> Hi,
>
> I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I
followed
> the instructions at [1] however, before that I was just getting an error
> for
> tomahawk jars as "the absolute uri http://myfaces.apache.org/tomahawkwas
> not found in web.xml or jars ...". After following the instructions, it
> does
> not even find the core tlds.
>
> Do I need to do anything else? I read somewhere about adding some
> init-params to web.xml but didn't get which web.xml to put them in.
>
> Also, if I put the jar files in Manifest.MF instead of putting them in
> WEB-INF/lib, it should still work, but it doesn't.
>
> Any idea what needs to be fixed? Please help, my JSF-application cannot
> integrate with the main application if I can't make it work in JBoss. :(
>
> Thanks,
> Aneesha
>
> [1] http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
>





Re: Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

Nope, I am not using facelets.

Thanks,
Aneesha

On 12/13/06, Andreas Berger <[EMAIL PROTECTED]> wrote:


Do you use facelets? If so, check if you put a tomahawk.taglib.xml
(needed by faclets) in your WEB-INF directory.

2006/12/13, Aneesha Govil <[EMAIL PROTECTED]>:
> Hi,
>
> I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I
followed
> the instructions at [1] however, before that I was just getting an error
for
> tomahawk jars as "the absolute uri
> http://myfaces.apache.org/tomahawk was not found in web.xml
> or jars ...". After following the instructions, it does not even find
the
> core tlds.
>
> Do I need to do anything else? I read somewhere about adding some
> init-params to web.xml but didn't get which web.xml to put them in.
>
> Also, if I put the jar files in Manifest.MF instead of putting them in
> WEB-INF/lib, it should still work, but it doesn't.
>
> Any idea what needs to be fixed? Please help, my JSF-application cannot
> integrate with the main application if I can't make it work in JBoss. :(
>
> Thanks,
> Aneesha
>
> [1]
> http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss
>



Jboss and Myfaces problem

2006-12-13 Thread Aneesha Govil

Hi,

I am migrating my JSF app from Tomcat 5.5.17 to JBoss 4.0.3 SP1. I followed
the instructions at [1] however, before that I was just getting an error for
tomahawk jars as "the absolute uri http://myfaces.apache.org/tomahawk was
not found in web.xml or jars ...". After following the instructions, it does
not even find the core tlds.

Do I need to do anything else? I read somewhere about adding some
init-params to web.xml but didn't get which web.xml to put them in.

Also, if I put the jar files in Manifest.MF instead of putting them in
WEB-INF/lib, it should still work, but it doesn't.

Any idea what needs to be fixed? Please help, my JSF-application cannot
integrate with the main application if I can't make it work in JBoss. :(

Thanks,
Aneesha

[1] http://wiki.apache.org/myfaces/From_1.1.1_to_1.1.3_with_Jboss


Re: Slightly off-topic: Page in Firefox is messed in IE

2006-12-11 Thread Aneesha Govil

On 12/11/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:


Your best bet is to ask your questions against google for specific
rendering issues. Do not look at the JSF code, but rather the generated
HTML. IE has tons of bugs that Microsoft will never fix (especially on IE6).
Also, IE 6 doesn't support most CSS2 attributes and IE7 still is far behind
the standards. As a web developer, you simply have to learn how to get your
CSS to work in both IE & W3C browsers. Often a trick is to put an underscore
in front of styles for IE only:

P {
_width: this is IE specific;
width: all browsers see this;
}

Yeah, I used something similar. It doesn't look perfect but seems usable

to me. Let's see what the reviewers think. ;)
Makes me wonder how 80% people on the web can use IE!

Thanks,
Aneesha


Slightly off-topic: Page in Firefox is messed in IE

2006-12-10 Thread Aneesha Govil

Hi,

I am developing a display layout using MyFaces and Tomahawk. It is a complex
layout with lots of nested tables and styling. I am developing on linux so
did not test it on IE. Today I tested it on IE and the page is completely
messed on IE. The table column width and borders are not even close to what
they look like in IE. Can anyone give any idea what kind of
incompatibilities should I be looking for?

Sorry for asking here, but I am totally lost. Is there any difference with
the way MyFaces rendering displays on IE as opposed to Firefox?

Please help.
Thanks,
Aneesha


Re: Sun RI vs MyFaces

2006-12-01 Thread Aneesha Govil

Apart from whatever has already been said..

I did some research when we were deciding this for my project. Though I
don't have references now, I read at a few places that there are lesser
issues with MyFaces and get fixed/support easily as compared to Sun's RI.
Not sure if that is correct though. I have no personal experience with Sun's
RI.

Aneesha

On 12/1/06, Bharath Belagodu <[EMAIL PROTECTED]> wrote:


Appreciate the responses,

There isn't much discussion on using one as suppose to the other on the
net. Only one mail archive informed me of some differences,
http://mail-archives.apache.org/mod_mbox/struts-user/200505.mbox/%3C32FF
[EMAIL PROTECTED]

Since both implementations adhere to the spec, there shouldn't be much
difference except for java docs, community support etc. I'd consider
performance as another criteria but we won't know till we hit it hard
with some regression testing.

MyFaces has javascript rendering which isn't part of Sun (as of Aug
2005),
http://mail-archives.apache.org/mod_mbox/myfaces-users/200508.mbox/%3C00
[EMAIL PROTECTED]

Probably sun has better chance of catching up to the spec than MyFaces?

-Original Message-
From: Holger Prause [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 10:52 AM
To: MyFaces Discussion
Subject: Re: Sun RI vs MyFaces

Bharath Belagodu schrieb:
>
> What would one prefer for the base RI, Sun or MyFaces and why
> would one want to choose over another. We use tomahawk components
> and MyFaces as of now, why should we use MyFaces as suppose to
> Sun? I read thro' many blogs, email postings but didn't find
> strong reasons going with one or the other. Only one article back
> fro 2005 suggested using Sun RI but that might be outdated. Any
> suggestions?
>
well if u want to use the blueprint solution catalog i would use Suns
RI.
But with tomahawk theres no need to i think.




Re: Custom date component attributes

2006-11-30 Thread Aneesha Govil

On 12/1/06, Simon Kitching <[EMAIL PROTECTED]> wrote:


Aneesha Govil wrote:
> Hi,
>
> I am creating a date component with some additional attributes on top of
> t:inputdate. Do I need to add only the new attributes to component tag
> or do I also need to add the attributes already a part of parent
> HtmlInputDate?

You can subclass the original tag class, which means you do not then
need to write java code to handle the original properties.

However in the .tld file there is no way to say that a  element
extends another, so in the .tld file entry you do need to copy-and-paste
all the attribute definitions from the parent tag. Ecch.

Of course if you can use Facelets instead, all this is much nicer; no
tag class or .tld file is required at all.

Note also that it is possible to add new properties to a tag, and use
them in a renderer without writing a new component class at all, as
every component has an attributes map that can store data, effectively
"tunnelling" properties from the tag to the renderer. Sometimes this is
useful, and sometimes it is better to create a new component class.

Regards,

Simon



The custom component is working! :) At least onchange="submit()" is working.
Don't need the rest of the attributes :)

Thanks for your help!

Regards,
Aneesha


Re: Installation FAQ?

2006-11-30 Thread Aneesha Govil

On 11/30/06, Reinout van Schouwen <[EMAIL PROTECTED]>
wrote:


Op do, 30-11-2006 te 17:30 +0530, schreef Aneesha Govil:
> You can download the examples from here -
> http://people.apache.org/builds/myfaces/nightly/

Thanks for your help.

I see only myfaces-tobago and myfaces-tomahawk examples on that URL.
The "getting started" page (
http://myfaces.apache.org/gettingstarted.html ) suggests there should be
a generic myfaces-x.x.x-example package. Is it correct that such a
package doesn't exist?

regards,

--
Reinout van Schouwen <[EMAIL PROTECTED]>
Rotterdam CS B.V.



Well, I don't have it either and don't know where it is located (if at all).
There is an issue in JIRA for this [1], vote for the issue to be fixed! The
myfaces examples are
myfaces-core-1.1.5-SNAPSHOT-bin<http://people.apache.org/builds/myfaces/nightly/myfaces-core-1.1.5-SNAPSHOT-bin.tar.gz>on
the above page.

[1] https://issues.apache.org/jira/browse/MYFACES-1414

Hope that helps,
Aneesha


Re: Installation FAQ?

2006-11-30 Thread Aneesha Govil

You can download the examples from here -
http://people.apache.org/builds/myfaces/nightly/

Regards,
Aneesha

On 11/30/06, Reinout van Schouwen <[EMAIL PROTECTED]>
wrote:




Hello all,

Could someone point me to a FAQ or tutorial that describes the
installation of MyFaces to a (relative) newbie?

I've searched for hours on the web and in mailinglist archives, but
can't find an answer to a seemingly simple question as "where do I copy
the .jar files from the myfaces core archive to?". Also, there are
references to a myfaces-example tgz archive that is nowhere to be found
on the download page.

Thanks in advance.

regards,

--
Reinout van Schouwen <[EMAIL PROTECTED]>
Rotterdam CS B.V.





Custom date component attributes

2006-11-30 Thread Aneesha Govil

Hi,

I am creating a date component with some additional attributes on top of
t:inputdate. Do I need to add only the new attributes to component tag or do
I also need to add the attributes already a part of parent HtmlInputDate?

Thanks!
Aneesha


Re: Patch submission queries

2006-11-29 Thread Aneesha Govil

On 11/30/06, Simon Kitching <[EMAIL PROTECTED]> wrote:


I would recommend writing your own class (in your own package namespace)
that subclasses HtmlInputDate. Add the methods that are needed.

You can then add a  tag to your web.xml to map the component
id used by the InputDateTag to your subclass instead of the "real" one.

The result is that you should then be able to use t:inputDate in your
pages but an instance of your patched component will be created instead.

Once you've proved this works, you canthen attach your patched class to
the JIRA issue; it would be a pretty simple task for a MyFaces committer
to merge the code into the "real" component.

And while you're waiting for the real component to be patched, you've
got a working solution

Regards,

Simon



Any resources on doing this? I am stuck in a couple of places like do I need
to change the DEFAULT_RENDERER_TYPE? I think I would have to patch the
renderer too, how to configure it etc.

Thanks,
Aneesha


Patch submission queries

2006-11-29 Thread Aneesha Govil

Hi,

I want to submit a patch for this issue
https://issues.apache.org/jira/browse/TOMAHAWK-802

I think it would be a minor change. However, I do not have enough time to
set up a project and build. Can I simply change files and build with Maven
and verify there are no build errors? Can I build only tomahawk or do I have
to build all the sub-projects?

Anything else I should know before I submit a patch?

Thanks,
Aneesha


t:datatable sort only current page

2006-11-29 Thread Aneesha Govil

Hi,

I am using a t:datatable with paginator. I need to provide a mechanism to
sort only the rows displayed on the current page of the table onclick of the
header. For this, I used javascript but now all the columns have become
sortable. I need to be able to configure which columns would allow sorting
and disable sorting by some columns (for example there is a column that has
only buttons).

I found a couple of javascript samples for that but they construct html in
javascript so cannot be used with t:datatable.

Any idea how I can accomplish this?

Thanks,
Aneesha


Re: Tomahaqk t:inputDate onblur

2006-11-23 Thread Aneesha Govil

Does anyone have an idea about this? I am not able to save values because of
this problem. :(

Thanks,
Aneesha

On 11/23/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Hi,

I want to submit the value of the component when the focus changes. I am
using the HtmlInputDate class to create the t:inputDate component
dynamically. However, I cannot find a setOnBlur method in this class.
Strangely, the attribute appears on the TLD document of tomahawk [1] but not
on the javadocs of HtmlInputDate [2].

How do I set onblur using HtmlInputDate? Is there any other way I can
submit values?

Regards,
Aneesha

[1] http://myfaces.apache.org/tomahawk/tlddoc/t/inputDate.html
[2]
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/date/HtmlInputDate.html



Tomahaqk t:inputDate onblur

2006-11-22 Thread Aneesha Govil

Hi,

I want to submit the value of the component when the focus changes. I am
using the HtmlInputDate class to create the t:inputDate component
dynamically. However, I cannot find a setOnBlur method in this class.
Strangely, the attribute appears on the TLD document of tomahawk [1] but not
on the javadocs of HtmlInputDate [2].

How do I set onblur using HtmlInputDate? Is there any other way I can submit
values?

Regards,
Aneesha

[1] http://myfaces.apache.org/tomahawk/tlddoc/t/inputDate.html
[2]
http://myfaces.apache.org/tomahawk/apidocs/org/apache/myfaces/custom/date/HtmlInputDate.html


Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

I cannot subsribe to it. Get the following error:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

   [EMAIL PROTECTED]

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 12): 552 spam score (5.5) exceeded threshold


Any idea where I can get support on this?

Thanks,
Aneesha

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Found it on the Wiki - [EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the
website.

Thanks.
Aneesha

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
>
> Well how do I subscribe to the mailing list? The subscribe links aren't
> links here - 
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html
>
>
> Is it the standard [EMAIL PROTECTED]
>
> Thanks,
> Aneesha
>
> On 11/16/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
> >
> > mailing list works, I am on
> >
> > check the trinidad wiki for nbuilds (from continuum)
> >
> > http://wiki.apache.org/myfaces/Trinidad
> >
> > On 11/16/06, Aneesha Govil < [EMAIL PROTECTED]> wrote:
> > > Yes, I am aware of the Oracle connection. When I was evaluating what
> > to use
> > > for my project, I could not find a download location anywhere on the
> >
> > > incubator. Only source was available. The mailing list did not work
> > either.
> > > It looked very useful from documentation et al.
> > >
> > > So how do I go about it if I want to use it? Anything like nightly
> > builds
> > > and where can I find them?
> > >
> > > Thanks a lot.
> > > Regards,
> > > Aneesha
> > >
> > >
> > > On 11/16/06, Gerald Müllan < [EMAIL PROTECTED]> wrote:
> > > > Sure, think about the history before trinidad has come to
> > incubator.
> > > > It was oracle internal, so they have already used it in their
> > webapps.
> > > >
> > > > Apart from this, the usage of trinidad is emerging, also in some
> > > > real-world web-apps.
> > > >
> > > > cheers,
> > > >
> > > > Gerald
> > > >
> > > > On 11/16/06, Aneesha Govil < [EMAIL PROTECTED]> wrote:
> > > > > Is it alright to use Trinidad while it is still in the
> > incubator?
> > > > >
> > > > > Aneesha
> > > > >
> > > > > On 11/16/06, Martin Marinschek < [EMAIL PROTECTED]>
> > wrote:
> > > > > > He should definitely take the Trinidad component set for high
> > > > > > performance requirements, with this, you're in the same region
> > as
> > > > > > Struts for performance (probably better - cause if you do it
> > yourself,
> > > > > > you won't get the same optimized state-saving as is
> > implemented in
> > > > > > Trinidad).
> > > > > >
> > > > > > regards,
> > > > > >
> > > > > > Martin
> > > > > >
> > > > > > On 11/15/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > > > > > Ok, before anyone is falling down the chair because I ask
> > this
> > > question.
> > > > > > > Here we go. A friend of mine is looking for a struts
> > replacement
> > > > > > > framework covering extranet sites.
> > > > > > >
> > > > > > > Well here we go, my experience with jsf in the past is, that
> > it was
> > > not
> > > > > > > too suitable for extranet, but is a perfect choice for
> > intranet
> > > sites.
> > > > > > > The reason, higher overhead than plain lean frameworks only
> > covering
> > > a
> > > > > > > minimalistic approach.
> > > > > > >
> > > > > > > The situation has changed however, facelets give a huge
> > performance
> > > > > > > boost due to good caching.
> > > > > > > But I lack experience, I know several bigger intranet
> > installations,
> > > > > > > but extranet is a fully different beast.
> > > > > > >
> > > > > > > So my question how good does jsf scale nowadays in those
> > cases.
> > > > > > > Does anyone have any experience or samples?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > http://www.irian.at
> > > > > >
> > > > > > Your JSF powerhouse -
> > > > > > JSF Consulting, Development and
> > > > > > Courses in English and German
> > > > > >
> > > > > > Professional Support for Apache MyFaces
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> > http://tinyurl.com/fmywh
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>
>



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Found it on the Wiki - [EMAIL PROTECTED]

Sometimes it's difficult to remember that wiki is more correct than the
website.

Thanks.
Aneesha

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Well how do I subscribe to the mailing list? The subscribe links aren't
links here - http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html


Is it the standard [EMAIL PROTECTED]

Thanks,
Aneesha

On 11/16/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
>
> mailing list works, I am on
>
> check the trinidad wiki for nbuilds (from continuum)
>
> http://wiki.apache.org/myfaces/Trinidad
>
> On 11/16/06, Aneesha Govil < [EMAIL PROTECTED]> wrote:
> > Yes, I am aware of the Oracle connection. When I was evaluating what
> to use
> > for my project, I could not find a download location anywhere on the
> > incubator. Only source was available. The mailing list did not work
> either.
> > It looked very useful from documentation et al.
> >
> > So how do I go about it if I want to use it? Anything like nightly
> builds
> > and where can I find them?
> >
> > Thanks a lot.
> > Regards,
> > Aneesha
> >
> >
> > On 11/16/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > > Sure, think about the history before trinidad has come to incubator.
> > > It was oracle internal, so they have already used it in their
> webapps.
> > >
> > > Apart from this, the usage of trinidad is emerging, also in some
> > > real-world web-apps.
> > >
> > > cheers,
> > >
> > > Gerald
> > >
> > > On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
> > > > Is it alright to use Trinidad while it is still in the incubator?
> > > >
> > > > Aneesha
> > > >
> > > > On 11/16/06, Martin Marinschek < [EMAIL PROTECTED]>
> wrote:
> > > > > He should definitely take the Trinidad component set for high
> > > > > performance requirements, with this, you're in the same region
> as
> > > > > Struts for performance (probably better - cause if you do it
> yourself,
> > > > > you won't get the same optimized state-saving as is implemented
> in
> > > > > Trinidad).
> > > > >
> > > > > regards,
> > > > >
> > > > > Martin
> > > > >
> > > > > On 11/15/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > > > > Ok, before anyone is falling down the chair because I ask this
>
> > question.
> > > > > > Here we go. A friend of mine is looking for a struts
> replacement
> > > > > > framework covering extranet sites.
> > > > > >
> > > > > > Well here we go, my experience with jsf in the past is, that
> it was
> > not
> > > > > > too suitable for extranet, but is a perfect choice for
> intranet
> > sites.
> > > > > > The reason, higher overhead than plain lean frameworks only
> covering
> > a
> > > > > > minimalistic approach.
> > > > > >
> > > > > > The situation has changed however, facelets give a huge
> performance
> > > > > > boost due to good caching.
> > > > > > But I lack experience, I know several bigger intranet
> installations,
> > > > > > but extranet is a fully different beast.
> > > > > >
> > > > > > So my question how good does jsf scale nowadays in those
> cases.
> > > > > > Does anyone have any experience or samples?
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > http://www.irian.at
> > > > >
> > > > > Your JSF powerhouse -
> > > > > JSF Consulting, Development and
> > > > > Courses in English and German
> > > > >
> > > > > Professional Support for Apache MyFaces
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > http://www.irian.at
> > >
> > > Your JSF powerhouse -
> > > JSF Consulting, Development and
> > > Courses in English and German
> > >
> > > Professional Support for Apache MyFaces
> > >
> >
> >
>
>
> --
> Matthias Wessendorf
> http://tinyurl.com/fmywh
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>




Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Well how do I subscribe to the mailing list? The subscribe links aren't
links here -
http://incubator.apache.org/adffaces/trinidad-build/mail-lists.html

Is it the standard [EMAIL PROTECTED]

Thanks,
Aneesha

On 11/16/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:


mailing list works, I am on

check the trinidad wiki for nbuilds (from continuum)

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

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
> Yes, I am aware of the Oracle connection. When I was evaluating what to
use
> for my project, I could not find a download location anywhere on the
> incubator. Only source was available. The mailing list did not work
either.
> It looked very useful from documentation et al.
>
> So how do I go about it if I want to use it? Anything like nightly
builds
> and where can I find them?
>
> Thanks a lot.
> Regards,
> Aneesha
>
>
> On 11/16/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
> > Sure, think about the history before trinidad has come to incubator.
> > It was oracle internal, so they have already used it in their webapps.
> >
> > Apart from this, the usage of trinidad is emerging, also in some
> > real-world web-apps.
> >
> > cheers,
> >
> > Gerald
> >
> > On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
> > > Is it alright to use Trinidad while it is still in the incubator?
> > >
> > > Aneesha
> > >
> > > On 11/16/06, Martin Marinschek < [EMAIL PROTECTED]> wrote:
> > > > He should definitely take the Trinidad component set for high
> > > > performance requirements, with this, you're in the same region as
> > > > Struts for performance (probably better - cause if you do it
yourself,
> > > > you won't get the same optimized state-saving as is implemented in
> > > > Trinidad).
> > > >
> > > > regards,
> > > >
> > > > Martin
> > > >
> > > > On 11/15/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > > > Ok, before anyone is falling down the chair because I ask this
> question.
> > > > > Here we go. A friend of mine is looking for a struts replacement
> > > > > framework covering extranet sites.
> > > > >
> > > > > Well here we go, my experience with jsf in the past is, that it
was
> not
> > > > > too suitable for extranet, but is a perfect choice for intranet
> sites.
> > > > > The reason, higher overhead than plain lean frameworks only
covering
> a
> > > > > minimalistic approach.
> > > > >
> > > > > The situation has changed however, facelets give a huge
performance
> > > > > boost due to good caching.
> > > > > But I lack experience, I know several bigger intranet
installations,
> > > > > but extranet is a fully different beast.
> > > > >
> > > > > So my question how good does jsf scale nowadays in those cases.
> > > > > Does anyone have any experience or samples?
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > http://www.irian.at
> > > >
> > > > Your JSF powerhouse -
> > > > JSF Consulting, Development and
> > > > Courses in English and German
> > > >
> > > > Professional Support for Apache MyFaces
> > > >
> > >
> > >
> >
> >
> > --
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Yes, I am aware of the Oracle connection. When I was evaluating what to use
for my project, I could not find a download location anywhere on the
incubator. Only source was available. The mailing list did not work either.
It looked very useful from documentation et al.

So how do I go about it if I want to use it? Anything like nightly builds
and where can I find them?

Thanks a lot.
Regards,
Aneesha

On 11/16/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:


Sure, think about the history before trinidad has come to incubator.
It was oracle internal, so they have already used it in their webapps.

Apart from this, the usage of trinidad is emerging, also in some
real-world web-apps.

cheers,

Gerald

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
> Is it alright to use Trinidad while it is still in the incubator?
>
> Aneesha
>
> On 11/16/06, Martin Marinschek < [EMAIL PROTECTED]> wrote:
> > He should definitely take the Trinidad component set for high
> > performance requirements, with this, you're in the same region as
> > Struts for performance (probably better - cause if you do it yourself,
> > you won't get the same optimized state-saving as is implemented in
> > Trinidad).
> >
> > regards,
> >
> > Martin
> >
> > On 11/15/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> > > Ok, before anyone is falling down the chair because I ask this
question.
> > > Here we go. A friend of mine is looking for a struts replacement
> > > framework covering extranet sites.
> > >
> > > Well here we go, my experience with jsf in the past is, that it was
not
> > > too suitable for extranet, but is a perfect choice for intranet
sites.
> > > The reason, higher overhead than plain lean frameworks only covering
a
> > > minimalistic approach.
> > >
> > > The situation has changed however, facelets give a huge performance
> > > boost due to good caching.
> > > But I lack experience, I know several bigger intranet installations,
> > > but extranet is a fully different beast.
> > >
> > > So my question how good does jsf scale nowadays in those cases.
> > > Does anyone have any experience or samples?
> > >
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>


--
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: general myfaces performance question

2006-11-16 Thread Aneesha Govil

Is it alright to use Trinidad while it is still in the incubator?

Aneesha

On 11/16/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:


He should definitely take the Trinidad component set for high
performance requirements, with this, you're in the same region as
Struts for performance (probably better - cause if you do it yourself,
you won't get the same optimized state-saving as is implemented in
Trinidad).

regards,

Martin

On 11/15/06, Werner Punz <[EMAIL PROTECTED]> wrote:
> Ok, before anyone is falling down the chair because I ask this question.
> Here we go. A friend of mine is looking for a struts replacement
> framework covering extranet sites.
>
> Well here we go, my experience with jsf in the past is, that it was not
> too suitable for extranet, but is a perfect choice for intranet sites.
> The reason, higher overhead than plain lean frameworks only covering a
> minimalistic approach.
>
> The situation has changed however, facelets give a huge performance
> boost due to good caching.
> But I lack experience, I know several bigger intranet installations,
> but extranet is a fully different beast.
>
> So my question how good does jsf scale nowadays in those cases.
> Does anyone have any experience or samples?
>
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



Re: t:inputDate display seconds

2006-11-16 Thread Aneesha Govil

Figured this, using type="full".

Aneesha

On 11/16/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


Hi,

I would like to display seconds as well in the t:inputDate component.
Right now, it just gives me Date-Month-Year-Hours-Mins. I am using
type="both". Any idea how can I set it to display seconds too?

Thanks,
Aneesha



Re: creating a dynamic code for a group of radio buttons

2006-11-16 Thread Aneesha Govil

Hi Yaron,

Can you post the updated code? I think you had missed this step earlier -


selectOneRadio.getChildren().add(radio);


Aneesha

On 11/15/06, Yaron Spektor <[EMAIL PROTECTED]> wrote:


 Thanks Aneesha,

I did have the IDs unique. I also tried setting the valueBinding to an
HtmlSelectOneRadio that I put on the bean (with getters and setters of
course) nothing seemed to work.

Just to make sure my question is clear I need to create a dynamic view
similar to this:

|*column1|column2**|column3|*

*|radio1|radio 2   |radio3|*

*|radio4|radio5|*  |





The number of columns and number of rows is not fixed and all the radio
buttons need to be in the same group.



Any advice would be appreciated,


 --

*From:* Aneesha Govil [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, November 14, 2006 4:58 AM
*To:* MyFaces Discussion
*Subject:* Re: creating a dynamic code for a group of radio buttons



Hi,

I haven't constructed radio buttons dynamically but in general, to do
something like this..
HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();
selectOneRadio.setId("choicesRadioButtons");//TODO: componentID
selectOneRadio.setLayout("spread");
selectOneRadio.setValue(displayValue);

// If you are setting IDs for radio instances here, make sure each is
unique
HtmlRadio radio = new HtmlRadio();
radio.setFor("choicesRadioButtons");
radio.setIndex("0");

selectOneRadio.getChildren ().add(radio);

panelGroup.getChildren().add(selectOneRadio);

Hope that helps!

Aneesha

On 11/14/06, *Yaron Spektor* <[EMAIL PROTECTED]> wrote:

Hi there,

I would like to convert this code to dynamic components (I can not use
tableData with newspaperColumn because I want multiple columns with the same
button group and I need a header aligned with each such column). I would
like to be able to set the  t:radio in a panelGrid with X number of
 columns:



  



  





  





















  

 



This is the code I started writing but I have a problem making it work
especially setting the "for"

  HtmlPanelGroup panelGroup= new HtmlPanelGroup();

  HtmlPanelGrid htmlPanelGrid = new HtmlPanelGrid();

  List panelGroupChildren = panelGroup.getChildren();

  panelGroupChildren.clear();

  HtmlRadio radio;



  HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();

  selectOneRadio.setId("choicesRadioButtons");//TODO: componentID

  selectOneRadio.setLayout("spread");

  selectOneRadio.setValue(displayValue);



  htmlPanelGrid.setColumns(5);

  htmlPanelGrid.setColumnClasses(Constants.cColumnClasses+
","+Constants.cColumnClassesCurrency);

  htmlPanelGrid.setRendered(true);



for(int i=0;i<9;i++){

  radio = new HtmlRadio();

  radio.setId("selectOneRadio");

  ValueBinding vb =app.createValueBinding("buttons");

  radio.setValueBinding("for", vb);

  radio.setIndex(i);

  htmlPanelGrid.getChildren().add(radio);

}





panelGroupChildren.add(selectOneRadio);

panelGroupChildren.add(htmlPanelGrid);



return panelGroup;



any ideas?











CommandLinks and CommandButton stop working with t:inputDate

2006-11-16 Thread Aneesha Govil

Hi,

I have a complex form to accept input from the user. I just put t:inputDate
into it. It is inside a dynamically created datatable. If the value of the
t:inputDate is null (no date is present), everything is rendered correctly.
The inputDate component is blank, as expected. However, if I click on any
commandLinks, the page simply refreshes, they are not behaving as
configured.

Also, this does not happen if the inputDate component has a pre-defined
value.

I am using tomahawk 1.1.5 snapshot because of this bug -
http://issues.apache.org/jira/browse/TOMAHAWK-378

I am using myfaces-core-1.1.4 but I have set auto_scroll to false so that it
doesn't break.

Anybody have any idea what's going wrong?

Thanks,
Aneesha


t:inputDate display seconds

2006-11-15 Thread Aneesha Govil

Hi,

I would like to display seconds as well in the t:inputDate component. Right
now, it just gives me Date-Month-Year-Hours-Mins. I am using type="both".
Any idea how can I set it to display seconds too?

Thanks,
Aneesha


Re: Question on t:calendar popup value binding

2006-11-15 Thread Aneesha Govil
I used a value binding to a String but the value did not get populated, however it works for a date. Do I have to write a custom converter? Can I find more information about writing custom converters for JSF components somewhere?
Thanks,AneeshaOn 11/15/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
Hi,I am trying to use a calendar popup. What should be the type of the property that binds to the value of the popup? I looked at the examples source, it uses a date. Does it have to be a Date or can I use a String for the same? Which date format does it assume by default, 
e.g. - mm/dd/ or what?Thanks,Aneesha




Question on t:calendar popup value binding

2006-11-15 Thread Aneesha Govil
Hi,I am trying to use a calendar popup. What should be the type of the property that binds to the value of the popup? I looked at the examples source, it uses a date. Does it have to be a Date or can I use a String for the same? Which date format does it assume by default, 
e.g. - mm/dd/ or what?Thanks,Aneesha


Re: JSF Lifecycle question

2006-11-14 Thread Aneesha Govil
Thanks a lot. That was useful. Regards,AneeshaOn 11/14/06, Martin Marinschek <[EMAIL PROTECTED]
> wrote:*correction: only the _s_etter will be called.And as David has mentioned - this is not true for value-binding, only
for component-binding (which I figured you were talking about).regards,MartinOn 11/14/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> Hi Aneesha,>> component-binding never calls its getter as long as you stay on the> same page - only the getter will be called. So if you're doing dynamic> stuff in your application, you'll need to do it in the setter (or in
> an action-method).>> regards,>> Martin>> On 11/14/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> > Hi,> >
> > How is it determined which components need to be reloaded when a component> > is submitted or an action is executed?> >> > I cannot get my JSF page to reload a datatable that uses component binding
> > on page submit. Does using sub-views affect any behaviour, i.e., only the> > subview is refreshed, the other components retain old values?> >> > Please help!> > Thanks,
> > Aneesha> >>>> -->> http://www.irian.at>> Your JSF powerhouse -> JSF Consulting, Development and> Courses in English and German
>> Professional Support for Apache MyFaces>--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development andCourses in English and German
Professional Support for Apache MyFaces


Re: creating a dynamic code for a group of radio buttons

2006-11-14 Thread Aneesha Govil
Hi,I haven't constructed radio buttons dynamically but in general, to do something like this..HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();
 
selectOneRadio.setId("choicesRadioButtons");//TODO: componentID 
selectOneRadio.setLayout("spread");selectOneRadio.setValue(displayValue);// If you are setting IDs for radio instances here, make sure each is unique
HtmlRadio radio = new
HtmlRadio();radio.setFor("choicesRadioButtons");radio.setIndex("0");selectOneRadio.getChildren
().add(radio);panelGroup.getChildren().add(selectOneRadio);Hope that helps!AneeshaOn 11/14/06, Yaron Spektor
 <[EMAIL PROTECTED]> wrote:













Hi there,

I would like to convert this code to dynamic components (I can
not use tableData with newspaperColumn because I want multiple columns with the
same button group and I need a header aligned with each such column). I would
like to be able to set the  t:radio in a panelGrid with X number of  columns:




  

    

 
  

  





   
                      

    

    

    

    

       


    

    

    

    

  


 


 

This is the code I started writing but I have a problem making
it work especially setting the "for"

  HtmlPanelGroup
panelGroup= new HtmlPanelGroup();

 
HtmlPanelGrid htmlPanelGrid = new HtmlPanelGrid();

  List
panelGroupChildren = panelGroup.getChildren();

 
panelGroupChildren.clear();

  HtmlRadio
radio;

 

 
HtmlSelectOneRadio selectOneRadio = new HtmlSelectOneRadio();

 
selectOneRadio.setId("choicesRadioButtons");//TODO: componentID

 
selectOneRadio.setLayout("spread");  

 
selectOneRadio.setValue(displayValue);

  

 
htmlPanelGrid.setColumns(5);  

 
htmlPanelGrid.setColumnClasses(Constants.cColumnClasses+","+Constants.cColumnClassesCurrency);

 
htmlPanelGrid.setRendered(true);  

  

for(int i=0;i<9;i++){

  radio = new
HtmlRadio();

  radio.setId("selectOneRadio");     


 
ValueBinding vb =app.createValueBinding("buttons");

  radio.setValueBinding("for",
vb);  

  radio.setIndex(i);

 
htmlPanelGrid.getChildren().add(radio);

} 

  

  

panelGroupChildren.add(selectOneRadio);


panelGroupChildren.add(htmlPanelGrid);

 

return
panelGroup;

 

any ideas?

 

 










JSF Lifecycle question

2006-11-14 Thread Aneesha Govil
Hi,How is it determined which components need to be reloaded when a component is submitted or an action is executed?I cannot get my JSF page to reload a datatable that uses component binding on page submit. Does using sub-views affect any behaviour, 
i.e., only the subview is refreshed, the other components retain old values?Please help!Thanks,Aneesha


JSF page with two backing beans

2006-11-14 Thread Aneesha Govil
Hi,I have a specific use-case in which I refresh a datatable based on the filter conditions entered by the user. The page consists of:1. Filter jsp included on top (Filter bean)2. Component binding to PanelGroup that holds dynamic Data table (Data bean)
For both parts of the page, there are two backing beans since almost all of the components are dynamic. I am able to access properties of one bean from the other however, even after changing the content of the PanelGroup, it shows the old data. I suppose JSF engine has no clue that the data bean has changed after an action in the filter bean so it does not re-render it. Is this right? Any way I can make this work with two backing beans? Or is it mandatory to have both things in one backing bean only?
Please help.Thanks,Aneesha


Re: Need help in display the page number in the data scroller

2006-11-14 Thread Aneesha Govil
How many total rows do you have in the table? And what is the rows attribute of your datatable?Regards,AneeshaOn 11/14/06, ying lcs <
[EMAIL PROTECTED]> wrote:Hi,I am trying to build a dataScroller with page number like it here:
http://www.irian.at/myfaces/dataScroller.jsfHere is my code, but when I test it, I can only see the buttons notthe page numbers in the above links. I think I have followed what is
done in the example as close as possible. Can you please tel me whatam I missing?Thank you.columnClasses="standardTable_ColumnCentered" >
pageCountVar="pageCount" pageIndexVar="pageIndex" immediate="true"styleClass="scroller" paginator="true" paginatorMaxPages="9"
paginatorActiveColumnStyle="font-weight:bold;"paginatorTableClass="paginator">




Re: Query about SelectOneMenus in t:datalist

2006-11-13 Thread Aneesha Govil
Got this to work. I forgot to add " to the selectone menu.Regards,AneeshaOn 11/13/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:

Hi all,I am trying to solve this problem by using datatable instead of datalist and retrieving the current row using getRow. However, the valuechangelistener of the selectonemenu is not being called inside the datatable. I am using the following code:
HtmlSimpleColumn column = new HtmlSimpleColumn();


    HtmlSelectOneMenu columnsDropdown = new HtmlSelectOneMenu();
vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{
record.columnDropDown.selectedValue}");columnsDropdown.setValueBinding


("value", vb);MethodBinding mb = FacesContext.getCurrentInstance


().getApplication().createMethodBinding("#{filter.columnChangeListener}", new Class[]{ValueChangeEvent.class});


columnsDropdown.setValueChangeListener(mb);    


UISelectItems columnSelectItems = new UISelectItems();


vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{record.columnDropDown.selectItems}");


columnSelectItems.setValueBinding("value", vb);


columnsDropdown.getChildren().add(columnSelectItems);    
column.getChildren().add(columnsDropdown);


datatableChild.getChildren().add(column);The signature of the valuechangelistener is as follows:


public void columnChangeListener(ValueChangeEvent event) {// code here


}Anyone got any idea why this is not working? What am I doing wrong?Please help.Thanks,Aneesha

On 11/13/06, Aneesha Govil <

[EMAIL PROTECTED]> wrote:
Hi,I have two drop-downs in a datalist, i.e., there are several rows, each having two dropdowns and a textbox. On change of the first dropdown, I need to change the select items in the second dropdown and manipulate the textbox (change it to a calendar or dropdown). Now the problem is, since the components are being built dynamically, I have no way of knowing the ID of the first dropdown. Therefore I cannot use something like this in the sandbox:

	   
 ajaxSelectItemsMethod="#{ajaxChildComboBoxBean.getCitiesOfSelectedCountry}">	

I was trying to do this manually, change the components in the valuechangelistener but for this I need more information than just the new value. Any way I could pass more than one values in a value change listener? Or use updateactionlistener with selectonemenu to update several backing bean attributes?
Please ask if any more information is required to be able to help.Please help, this is a show stopper in my application. :(Thanks in advance,Regards,Aneesha








Re: Query about SelectOneMenus in t:datalist

2006-11-13 Thread Aneesha Govil
Hi all,I am trying to solve this problem by using datatable instead of datalist and retrieving the current row using getRow. However, the valuechangelistener of the selectonemenu is not being called inside the datatable. I am using the following code:
HtmlSimpleColumn column = new HtmlSimpleColumn();
    HtmlSelectOneMenu columnsDropdown = new HtmlSelectOneMenu();
vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{
record.columnDropDown.selectedValue}");columnsDropdown.setValueBinding
("value", vb);MethodBinding mb = FacesContext.getCurrentInstance
().getApplication().createMethodBinding("#{filter.columnChangeListener}", new Class[]{ValueChangeEvent.class});
columnsDropdown.setValueChangeListener(mb);    
UISelectItems columnSelectItems = new UISelectItems();
vb = FacesContext.getCurrentInstance().getApplication().createValueBinding("#{record.columnDropDown.selectItems}");
columnSelectItems.setValueBinding("value", vb);
columnsDropdown.getChildren().add(columnSelectItems);    
column.getChildren().add(columnsDropdown);
datatableChild.getChildren().add(column);The signature of the valuechangelistener is as follows:
public void columnChangeListener(ValueChangeEvent event) {// code here
}Anyone got any idea why this is not working? What am I doing wrong?Please help.Thanks,Aneesha
On 11/13/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
Hi,I have two drop-downs in a datalist, i.e., there are several rows, each having two dropdowns and a textbox. On change of the first dropdown, I need to change the select items in the second dropdown and manipulate the textbox (change it to a calendar or dropdown). Now the problem is, since the components are being built dynamically, I have no way of knowing the ID of the first dropdown. Therefore I cannot use something like this in the sandbox:

	   
 ajaxSelectItemsMethod="#{ajaxChildComboBoxBean.getCitiesOfSelectedCountry}">	

I was trying to do this manually, change the components in the valuechangelistener but for this I need more information than just the new value. Any way I could pass more than one values in a value change listener? Or use updateactionlistener with selectonemenu to update several backing bean attributes?
Please ask if any more information is required to be able to help.Please help, this is a show stopper in my application. :(Thanks in advance,Regards,Aneesha





Query about SelectOneMenus in t:datalist

2006-11-13 Thread Aneesha Govil
Hi,I have two drop-downs in a datalist, i.e., there are several rows, each having two dropdowns and a textbox. On change of the first dropdown, I need to change the select items in the second dropdown and manipulate the textbox (change it to a calendar or dropdown). Now the problem is, since the components are being built dynamically, I have no way of knowing the ID of the first dropdown. Therefore I cannot use something like this in the sandbox:

	   
 ajaxSelectItemsMethod="#{ajaxChildComboBoxBean.getCitiesOfSelectedCountry}">	

I was trying to do this manually, change the components in the valuechangelistener but for this I need more information than just the new value. Any way I could pass more than one values in a value change listener? Or use updateactionlistener with selectonemenu to update several backing bean attributes?
Please ask if any more information is required to be able to help.Please help, this is a show stopper in my application. :(Thanks in advance,Regards,Aneesha


Re: Set actionlistener in java code?

2006-11-07 Thread Aneesha Govil
Hi,It works now. Thanks.Regards,AneeshaOn 11/7/06, Volker Weber <[EMAIL PROTECTED]
> wrote:Hi,you need to declare the method arguments on createMethodBinding.
try:createMethodBinding("#{filter.addFilterToSubset}", new Class[]{ActionEvent.class});You can take a look into the tag sources for information how to setany tag attribute value into the UIComponent object.
Regards,  Volker2006/11/7, Aneesha Govil <[EMAIL PROTECTED]>:> Hi,>> I need to associate an actionlistener with an htmlcommandbutton in java
> code. I am using the following code snippet:>> HtmlCommandButton addButton = new HtmlCommandButton();> addButton = new HtmlCommandButton();>  MethodBinding mb => FacesContext.getCurrentInstance
().getApplication().createMethodBinding("#{filter.addFilterToSubset}",> new Class[0]);>  addButton.setActionListener(mb);> addButton.setValue("Add");>> The signature of addFilterToSubset method is as follows:
>> public void addFilterToSubset(ActionEvent event) {>   //some code here> }>> The problem is, on clicking the button, it tries to look for a method> addFilterToSubset() (no arguments). Shouldn't it be looking for one with
> actionevent?>> Please help. I don't know why something so simple isn't working.>> Thanks a lot.> Regards,> Aneesha>>


Set actionlistener in java code?

2006-11-07 Thread Aneesha Govil
Hi,I need to associate an actionlistener with an htmlcommandbutton in java code. I am using the following code snippet:HtmlCommandButton addButton = new HtmlCommandButton();
addButton = new HtmlCommandButton();
MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{filter.addFilterToSubset}", new Class[0]);
addButton.setActionListener(mb);addButton.setValue("Add");The signature of addFilterToSubset method is as follows:
public void addFilterToSubset(ActionEvent event) {
  //some code here    }The problem is, on clicking the button, it tries to look for a method addFilterToSubset() (no arguments). Shouldn't it be looking for one with actionevent?
Please help. I don't know why something so simple isn't working.Thanks a lot.Regards,Aneesha


Re: JSF and ajax using phaselistener approach

2006-11-02 Thread Aneesha Govil
Oh I agree with you Jeff. Sometimes I wish there was something as simple as doing  or writing JSF component tags from _javascript_ in a jsf page instead of html or something. It is really painful. I'd much rather choose ajax without JSF over this, if I could. :-( 
AneeshaOn 11/1/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote:
Sounds painful.I really hope that a future version of the JSF spec integrates AJAX moredirectly into the framework. For now, I am seeing more ajax componentsshowing up in Tomahawk/Sandbox and that at least is something.
Regards,Jeff BischoffKenneth L Kurz & Associates, Inc.Michael Heinen wrote:> I had also the problem, that the datascroller did not work anymore:>> I solved this with by using always the same ids for the links and not
> the pagenr as id suffix.>>>> Here are some tips:>> DataScroller:>> I created my own DataScroller with corresponding Tag and Renderer. All> those classes extend the corresponding HtmlDataScrollers from MyFaces.
>> It is important that encodeChildren does nothing and you have to call> scroller.getChildren().clear() in encodeEnd().>> Otherwise links could be rendered two times.>>
>> I could fix the problem with the not working links by creating dummy> links for all pages in renderPaginator>> Something like this:>> //create dummy links until maxPages is reached. These links should
> not be encoded!>> //Otherwise the links are not executed after AJAX refreshs and data> model updates that result in more pages.>> if  (idCounter>
> {>>   for (;idCounter>>   {>> if (scroller.getAjaxified())>> {>>   // create an AJAX Link
>>   this.getAjaxLink(facesContext, scroller, idCounter,> idCounter);>> }>> else>> {>>   this.getLink(facesContext, scroller, idCounter, idCounter);
>> }>>   }>> }>> Note that these dummy links should not be encoded !>>>> Then I patched the getLink methods:>> It is important that the links keep the same ids after ajax refreshs
> independent of the pagenr!!! Otherwise they are not executed.>> MyFaces used the pagenr as id suffix for the links and this does not> work!>> You have to use something like a linknr which starts always at 1 and
> runs til maxPaginatorPages.>>>> DataTable>> - use a value binding for the first attribute of the datatable and> manage this property in your backing bean. e.g. set it to 0 if you sort
> the table>> - overwrite or extend> org.apache.myfaces.component.html.ext.HtmlDataTable>>   public void setFirst(int first)>> {>>   ValueBinding vb = getValueBinding("first");
>>   if (vb != null)>>   {>> //vb.setValue(getFacesContext(), first);>> return;>>   }>>   else>
> if (_preservedDataModel != null)>> {>> //Also change the currently restored DataModel attribute>> _preservedDataModel.setFirst(first);
>> }>> super.setFirst(first);>> }>>>> The above two points are important to get the right page visible in the> datatable for scrolling or sorting after datamodel updates.
>>>> Hope this helps,>> Michael>>>>>> >> From: Aneesha Govil [mailto:
[EMAIL PROTECTED]]> Sent: Mittwoch, 1. November 2006 09:11> To: MyFaces Discussion> Subject: Re: JSF and ajax using phaselistener approach>>>> Hi Michael,>
> Here is the description of my specific problem:>> I got the datatable, sortheaders and datascroller working with Tomahawk.> Then I was trying to ajaxify the table loading on the basis of a drop
> down. The table loads with ajax perfectly however, the datascroller and> sort headers in it have stopped working. Is this a known issue? Does> tomahawk not work with Ajax4jsf?>> Can anyone help me look into how to make this work?
>> Tell me if you need more details/code to be able to help.>> Thanks a lot.> Regards,> Aneesha>> On 11/1/06, Michael Heinen < 
[EMAIL PROTECTED]> wrote:>> Annesha,>>>> I use the datatable with datascroller and a4j.>> I spent a lot of time to get this running and I had to patch the
> datatable and the datascroller.>> What is your specific problem ?>> (I don't have the beginning of this thread)>>>> Michael>>>> 
>> From: Aneesha Govil [mailto:[EMAIL PROTECTED]]> Sent: Mittwoch, 1. November 2006 06:02> To: MyFaces Discussion> Subject: Re: JSF and ajax using phaselis

Re: How to add tomahawk support to a Sun JSF RI application

2006-11-02 Thread Aneesha Govil
Well I am using tomahawk with MyFaces. I don't know why your configuration is not working even after trying all of the above. Maybe someone else can help you out with it. :-|Regards,Aneesha
On 11/2/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:





Hi Aneesha,
 
  
Your links are really useful.
  
But i think my application has sworn not to work.
   Stealing
a little of your time.
   Have you tried working with Tomahawk1.1.3 with
Sun's JSF RI(jsf-api.jar and jsf-impl.jar) only 
   and not Myfaces impl(myfaces-api.jar and
myfaces-impl.jar).My project wants to stick to sun's impl.
 
Best Regards,
Pallavi


From: Aneesha Govil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2006 5:02 PMTo: MyFaces
DiscussionSubject: Re: How to add tomahawk support to a Sun JSF RI
application
Hi Pallavi,Take a look at this message 
http://mail-archives.apache.org/mod_mbox/myfaces-users/200608.mbox/[EMAIL PROTECTED]
It says this -java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mappingmissing. JSF pages not covered. Please see: 

http://myfaces.apache.org/tomahawk/extensionsFilter.html	 org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing	 	 	Check that the filter-mappings are ok. The problem could have something to do with the
include of .jsp pages in other pages, 	 	for example <[EMAIL PROTECTED] file="header.jsp" %>. So make sure that the mapping for .jsppages exist and is correctI
can't find it in your web.xml. Try it. Regards,Aneesha
On 11/1/06, [EMAIL PROTECTED] <
 [EMAIL PROTECTED]> wrote:

  
  Hi,
   
  Aneesha i
  have changed my web.xml the way you indicated.
  (So
  that the MultipartRequestWrapper is there in this
  package to communicate with
  common-fileupload-1.0.jar).
   
  But in vain i get the same exception again:
  Nested Exception is java.lang.IllegalStateException:
  ExtensionsFilter not correctly configured. JSF mapping missing.  JSF
  pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html

   
  I have included the web.xml that i have used
  :
  
      
  xml version="1.0
" encoding="UTF-8"?>
  DOCTYPE web-app
  PUBLIC "-//Sun
  Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd
  ">
  <web-app id="WebApp_ID" 
>
  <display-name>TomTestdisplay-name
 >
  <context-param>
  <param-name>javax.faces.STATE_SAVING_METHOD
 param-name>
  <param-value>clientparam-value
 >
  context-param> 
  <context-param>
  <param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK
 param-name>
  <param-value>trueparam-value
 >
  <description>Monitors Faces JSP files for modifications and synchronizes a
  running server with
  the changes without restarting the server. If this
  parameter is set to false or
  removed from the deployment descriptor, any changes
  made to Faces JSP files may
  not be seen by the server until it is restarted.
  This parameter is usually set
  to true while the Faces JSP files are being
  developed and debugged in order to
  improve the performance of the development
  environment.description>
  context-param>
  <context-param>
  <param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP
 param-name>
  <param-value>trueparam-value
 >
  <description>description>

  
  context-param>
  <context-param>
  <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT
 param-name>
  <param-value>trueparam-value
 >
  context-param>
  <context-param>
  <param-name>org.apache.myfaces.DETECT_JAVASCRIPT
 param-name>
  <param-value>falseparam-value
 >
  context-param>
  <filter>
  <filter-name>extensionsFilterfilter-name 
>
  <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
  <init-param>
  <param-name>uploadMaxFileSizeparam-name 
>
  <param-value>100mparam-value
 >
  <description>Set the size limit for uploaded files.
 
  Format: 10 - 10 bytes
  10k - 10 KB
  10m - 10 MB
  1g - 1 GBdescription>
  init-param>
  <init-param>
  <param-name>uploadThresholdSizeparam-name 
>
  <param-value>100kparam-value
 >
  <description>Set the threshold size - files
  below this limit are stored in memory, files
  above
  this limit are stored on disk.
  Format: 10 - 10 bytes
  10k - 10 KB
  10m - 10 MB
  1g - 1 GBdescription>
  init-param>
  filter>
  <filter-mapping>
  <filter-name>extensionsFilterfilter-name 
>
  <url-pattern>*.jsfurl-pattern
 >
  filter-mapping>
  <filter-mapping>
  <filter-name>extensionsFilterfilter-name 
>
  <url-pattern>*.facesur

Re: How to add tomahawk support to a Sun JSF RI application

2006-11-01 Thread Aneesha Govil
It seems u are using IBM's JSF implementation as well.. You might want to look at [1] and [2].[1]http://www.nabble.com/WPS5-and-MyFaces-tf2538402.html#a7071939 [2]http://www.nabble.com/RE%3A-Trying-to-work-with-Tomahawk-Tabbed-Panes-tf1764054.html#a4802858
On 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:





Hi,
 
Aneesha i have changed my web.xml the way you
indicated.
(So that the MultipartRequestWrapper is there in this package to
communicate with common-fileupload-1.0.jar).
 
But in vain i get the same exception
again:
Nested Exception is
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF
mapping missing.  JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html

 
I have included the web.xml that i have
used :

    
xml version="1.0" 
encoding="UTF-8"?>
DOCTYPE web-app
PUBLIC "-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd
">
<web-app id="WebApp_ID"
>
<display-name>TomTestdisplay-name
>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD
param-name>
<param-value>clientparam-value
>
context-param> 
<context-param>
<param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK
param-name>
<param-value>trueparam-value
>
<description>Monitors Faces JSP files for modifications and synchronizes a running
server with
the changes without restarting the server. If this
parameter is set to false or
removed from the deployment descriptor, any changes
made to Faces JSP files may
not be seen by the server until it is restarted. This
parameter is usually set
to true while the Faces JSP files are being developed
and debugged in order to
improve the performance of the development
environment.description>
context-param>
<context-param>
<param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP
param-name>
<param-value>trueparam-value
>
<description>description>

context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT
param-name>
<param-value>trueparam-value
>
context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT
param-name>
<param-value>falseparam-value
>
context-param>
<filter>
<filter-name>extensionsFilterfilter-name
>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
<init-param>
<param-name>uploadMaxFileSizeparam-name
>
<param-value>100mparam-value
>
<description>Set the size limit for uploaded files.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GBdescription>
init-param>
<init-param>
<param-name>uploadThresholdSizeparam-name
>
<param-value>100kparam-value
>
<description>Set the threshold size - files
below this limit are stored in memory, files
above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GBdescription>
init-param>
filter>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>*.jsfurl-pattern
>
filter-mapping>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>*.facesurl-pattern
>
filter-mapping>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>/faces/*url-pattern
>
filter-mapping>

<listener>
<listener-class>com.sun.faces.config.ConfigureListener
listener-class>
listener>
<servlet id="Servlet_1153799320859"
>
<servlet-name>JS Resource
Servletservlet-name>
<servlet-class>
com.ibm.faces.webapp.JSResourceServletservlet-class>

<load-on-startup>-1load-on-startup
>
servlet>
<servlet-mapping>
<servlet-name>JS Resource
Servletservlet-name>
<url-pattern>/.ibmjsfres/*url-pattern
>
servlet-mapping>
<welcome-file-list>
<welcome-file>index.htmlwelcome-file
>
<welcome-file>index.htmwelcome-file
>
<welcome-file>index.jspwelcome-file
>
<welcome-file>default.htmlwelcome-file
>
<welcome-file>default.htmwelcome-file
>
<welcome-file>default.jspwelcome-file
>
welcome-file-list>
<taglib id="PortletTLD">

<taglib-uri>
http://java.sun.com/portlettaglib-uri>
<taglib-location>/WEB-INF/tld/std-portlet.tld
taglib-location>
taglib>
web-app>
I would be grateful if you folks could help
me.
Best Regards,
Pallavi 
 
  



From: Aneesha Govil [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2006 2:55 PMTo: MyFaces
DiscussionSubject: Re: How to add tomahawk support to a Sun JSF RI
application
Also, the extensions filter should have the class set to
org.apache.myfaces.webapp.

Re: How to add tomahawk support to a Sun JSF RI application

2006-11-01 Thread Aneesha Govil
Hi Pallavi,Take a look at this message http://mail-archives.apache.org/mod_mbox/myfaces-users/200608.mbox/[EMAIL PROTECTED]
It says this -java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mappingmissing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html	 org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing	 	 	Check that the filter-mappings are ok. The problem could have something to do with the
include of .jsp pages in other pages, 	 	for example <[EMAIL PROTECTED] file="header.jsp" %>. So make sure that the mapping for .jsppages exist and is correctI can't find it in your web.xml. Try it.
Regards,AneeshaOn 11/1/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:




Hi,
 
Aneesha i have changed my web.xml the way you
indicated.
(So that the MultipartRequestWrapper is there in this package to
communicate with common-fileupload-1.0.jar).
 
But in vain i get the same exception
again:
Nested Exception is
java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF
mapping missing.  JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html

 
I have included the web.xml that i have
used :

    
xml version="1.0" 
encoding="UTF-8"?>
DOCTYPE web-app
PUBLIC "-//Sun
Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd
">
<web-app id="WebApp_ID"
>
<display-name>TomTestdisplay-name
>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD
param-name>
<param-value>clientparam-value
>
context-param> 
<context-param>
<param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK
param-name>
<param-value>trueparam-value
>
<description>Monitors Faces JSP files for modifications and synchronizes a running
server with
the changes without restarting the server. If this
parameter is set to false or
removed from the deployment descriptor, any changes
made to Faces JSP files may
not be seen by the server until it is restarted. This
parameter is usually set
to true while the Faces JSP files are being developed
and debugged in order to
improve the performance of the development
environment.description>
context-param>
<context-param>
<param-name>com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP
param-name>
<param-value>trueparam-value
>
<description>description>

context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT
param-name>
<param-value>trueparam-value
>
context-param>
<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT
param-name>
<param-value>falseparam-value
>
context-param>
<filter>
<filter-name>extensionsFilterfilter-name
>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilterfilter-class>
<init-param>
<param-name>uploadMaxFileSizeparam-name
>
<param-value>100mparam-value
>
<description>Set the size limit for uploaded files.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GBdescription>
init-param>
<init-param>
<param-name>uploadThresholdSizeparam-name
>
<param-value>100kparam-value
>
<description>Set the threshold size - files
below this limit are stored in memory, files
above
this limit are stored on disk.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GBdescription>
init-param>
filter>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>*.jsfurl-pattern
>
filter-mapping>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>*.facesurl-pattern
>
filter-mapping>
<filter-mapping>
<filter-name>extensionsFilterfilter-name
>
<url-pattern>/faces/*url-pattern
>
filter-mapping>

<listener>
<listener-class>com.sun.faces.config.ConfigureListener
listener-class>
listener>
<servlet id="Servlet_1153799320859"
>
<servlet-name>JS Resource
Servletservlet-name>
<servlet-class>
com.ibm.faces.webapp.JSResourceServletservlet-class>

<load-on-startup>-1load-on-startup
>
servlet>
<servlet-mapping>
<servlet-name>JS Resource
Servletservlet-name>
<url-pattern>/.ibmjsfres/*url-pattern
>
servlet-mapping>
<welcome-file-list>
<welcome-file>index.htmlwelcome-file
>
<welcome-file>index.htmwelcome-file
>
<welcome-file>index.jspwelcome-file
>
<welcome-file>default.htmlwelcome-file
>
<welcome-file>default.htmwelcome-file
>
<welcome-file>default.jspwelcome-file
>
welcome-file-list>
<taglib id="PortletTLD">

<taglib-uri>
http://java.sun.com/portl

Re: How to add tomahawk support to a Sun JSF RI application

2006-11-01 Thread Aneesha Govil
Also, the extensions filter should have the class set to org.apache.myfaces.webapp.filter.ExtensionsFilterinstead of org.apache.myfaces.component.html.util.ExtensionsFiltermentioned on that webpage.
AneeshaOn 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:




Hi All,
 
Please help me in this regard.
  I am
receiving no inputs from the members.
 

  I
have referred to the link on the net that mentions in order to

 
ensure compatibility between Myfaces and Sun's JSF RI you need to use
myfaces-extension.jar.
  From
where do i download myfaces-extension.jar.
  
http://wiki.apache.org/myfaces/How_to_add_MyFaces_support_to_a_Sun_JSF_RI_application
  

  Please note i
cannot use myfaces-api and impl as the project wants to stick to SUN's JSF
RI.  :-(
 

  Can
anybody provide me support on this.
  I just need
to know that how can i configure my extension filters correctly so that tomahawk1.1.3.jar can communicate with
common-fileupload.jar
and
Tomahawk custom component  can work in my
Portlet.
 
Hoping for a reply.
 
Best 
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2006
12:27 PMTo: users@myfaces.apache.orgSubject: How to add
tomahawk support to a Sun JSF RI application

Hi
All,
 
I
am very new to JSF and Portals.As a part of my new assignment i have been asked
to upgrade to Tomahawk1.1.3.I am using Websphere5.1 and RAD to build my
application.The application uses custom components  and
.The application worked properly with Tomahawk1.1.1 but
once i have upgraded to Tomahawk1.1.3 i am getting the error message "This
portlet is unavailable".
 
The Jars used
(apart from other common api's):
==
1)
tomahawk1.1.3.jar
2)
jsf-api.jar
3)
jsf-impl.jar
4)
common-fileupload.jar
Please note i
have used jsf-api.jar and jsf-impl.jar and not
myfaces-all.jar.
My question is how to support
 with Sun's JSF application.
How should i configure my extension filter and do i need
any other jar to support.B)I have also configured the extension filter in my web.xml
file.extensionsFilterorg.apache.myfaces.component.html.util.ExtensionsFilteruploadMaxFileSize
100mSet
the size limit for uploaded files.Format: 10 - 10 bytes10k - 10
KB10m - 10 MB1g - 1
GBuploadThresholdSize100kSet
the threshold size - files below this limit are stored in memory, files above
this limit are stored on disk.Format: 10 - 10 bytes10k - 10 KB10m -
10 MB1g - 1
GBextensionsFilter/*
C)But
when i run the application i get the exception in the console as:Nested
Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html.
Best
Regards,
Pallavi
 


  
  
The information contained in
  this electronic message and any attachments to this message are intended
  for the exclusive use of the addressee(s) and may contain proprietary,
  confidential or privileged information. If you are not the intended
  recipient, you should not disseminate, distribute or copy this e-mail.
  Please notify the sender immediately and destroy all copies of this
  message and any attachments. WARNING: Computer viruses can be
  transmitted via email. The recipient should check this email and any
  attachments for the presence of viruses. The company accepts no liability
  for any damage caused by any virus transmitted by this
  email.www.wipro.com


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

 
www.wipro.com




Re: How to add tomahawk support to a Sun JSF RI application

2006-11-01 Thread Aneesha Govil
myfaces-extension.jar is now renamed to tomahawk-version.jar.. if that is of some help.Regards,AneeshaOn 11/1/06, 
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:





Hi All,
 
Please help me in this regard.
  I am
receiving no inputs from the members.
 

  I
have referred to the link on the net that mentions in order to

 
ensure compatibility between Myfaces and Sun's JSF RI you need to use
myfaces-extension.jar.
  From
where do i download myfaces-extension.jar.
  
http://wiki.apache.org/myfaces/How_to_add_MyFaces_support_to_a_Sun_JSF_RI_application
  

  Please note i
cannot use myfaces-api and impl as the project wants to stick to SUN's JSF
RI.  :-(
 

  Can
anybody provide me support on this.
  I just need
to know that how can i configure my extension filters correctly so that tomahawk1.1.3.jar can communicate with
common-fileupload.jar
and
Tomahawk custom component  can work in my
Portlet.
 
Hoping for a reply.
 
Best 
 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2006
12:27 PMTo: users@myfaces.apache.orgSubject: How to add
tomahawk support to a Sun JSF RI application

Hi
All,
 
I
am very new to JSF and Portals.As a part of my new assignment i have been asked
to upgrade to Tomahawk1.1.3.I am using Websphere5.1 and RAD to build my
application.The application uses custom components  and
.The application worked properly with Tomahawk1.1.1 but
once i have upgraded to Tomahawk1.1.3 i am getting the error message "This
portlet is unavailable".
 
The Jars used
(apart from other common api's):
==
1)
tomahawk1.1.3.jar
2)
jsf-api.jar
3)
jsf-impl.jar
4)
common-fileupload.jar
Please note i
have used jsf-api.jar and jsf-impl.jar and not
myfaces-all.jar.
My question is how to support
 with Sun's JSF application.
How should i configure my extension filter and do i need
any other jar to support.B)I have also configured the extension filter in my web.xml
file.extensionsFilterorg.apache.myfaces.component.html.util.ExtensionsFilteruploadMaxFileSize
100mSet
the size limit for uploaded files.Format: 10 - 10 bytes10k - 10
KB10m - 10 MB1g - 1
GBuploadThresholdSize100kSet
the threshold size - files below this limit are stored in memory, files above
this limit are stored on disk.Format: 10 - 10 bytes10k - 10 KB10m -
10 MB1g - 1
GBextensionsFilter/*
C)But
when i run the application i get the exception in the console as:Nested
Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see: 
http://myfaces.apache.org/tomahawk/extensionsFilter.html.
Best
Regards,
Pallavi
 


  
  
The information contained in
  this electronic message and any attachments to this message are intended
  for the exclusive use of the addressee(s) and may contain proprietary,
  confidential or privileged information. If you are not the intended
  recipient, you should not disseminate, distribute or copy this e-mail.
  Please notify the sender immediately and destroy all copies of this
  message and any attachments. WARNING: Computer viruses can be
  transmitted via email. The recipient should check this email and any
  attachments for the presence of viruses. The company accepts no liability
  for any damage caused by any virus transmitted by this
  email.www.wipro.com


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

 
www.wipro.com




Re: How can I reset or clear a session

2006-11-01 Thread Aneesha Govil
Well, I clear a bean in my application on press of a button. I use the following method:private void resetFilterBean() {        FacesContext fc = FacesContext.getCurrentInstance();        fc.getApplication().createValueBinding( "#{filter}").setValue(fc, new FilterBean());
}Maybe you can reset all the beans in such a method.Hope that helps!Regards,AneeshaOn 11/1/06, Dave Syer <
[EMAIL PROTECTED]> wrote:I want users to be able to just restart an application from the beginning, as
if they just arrived, cancelling everything they have done (go straight toJail, do not pass Go).  I can't work out how to do it if the current form isinvalid at the time that the user wants to cancel the operation.  This is
actually quite frustrating for users - they make a mistake and the systemwon't let them leave the page until it is corrected, even if all they wantto do is give up and start again.What can I do to clear the session and start again?  Everything I do in an
action is useless because validation fails and the lifecycle never gets thatfar.--View this message in context: http://www.nabble.com/How-can-I-reset-or-clear-a-session-tf2550794.html#a7109552
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: JSF and ajax using phaselistener approach

2006-11-01 Thread Aneesha Govil
Hi Michael, Here is the description of my specific problem:I got the datatable, sortheaders and 
datascroller
working with Tomahawk. Then I was trying to ajaxify the table loading
on the basis of a drop down. The table loads with ajax perfectly
however, the datascroller and sort headers in it have stopped working. Is this a known issue? Does tomahawk not work with 
Ajax4jsf?
Can anyone help me look into how to make this work?
Tell me if you need more details/code to be able to help.Thanks a lot.Regards,AneeshaOn 11/1/06, Michael Heinen <
[EMAIL PROTECTED]> wrote:
















Annesha,

 

I use the datatable with datascroller and
a4j.

I spent a lot of time to get this running
and I had to patch the datatable and the datascroller.

What is your specific problem ?

(I don't have the beginning of this
thread)

 

Michael

 









From: Aneesha Govil
[mailto:[EMAIL PROTECTED]] 
Sent: Mittwoch, 1. November 2006 06:02
To: MyFaces
 Discussion
Subject: Re: JSF and ajax using phaselistener
approach



 

Hi Craig,

I tried using Ajax4JSF but the datascrollers and sortheaders stopped working as
soon as I put the datatable in an ajax-rendered zone. Therefore, I had to
abandon it. I couldn't get any help on that either. 

I will look at the rest of the resources. Thanks a lot for replying.

Regards,
Aneesha



On 10/31/06, Craig
McClanahan <
[EMAIL PROTECTED]> wrote:

 



On 10/31/06, Aneesha
Govil <[EMAIL PROTECTED]>
wrote: 

Hi,

Can anyone give me links to any resources/examples on Ajax with JSF using the PhaseListener
approach. I found it on the J2EE Blueprints but they work only with Java EE 5.
I am using myfaces 1.1.4 (J2EE 1.4). Does this approach work with that too?
Please give me some links/resources. 




In addition to the other references people have given, you might want to look
at the Remoting feature in Shale[1].  It includes a built-in phase
listener that tries to do all the hard stuff so you don't have to, and an
extensible Processor architecture so you can plug in your own processing logic.


One important factor is that Shale Remoting assumes you do *not* need access to
the JSF component tree for the original page (thus eliminating the overhead of
saving and restoring it), or even that the client be a JSF page at all. 
If you need that, you might want to look at Ajax4JSF[2] or Dynamic
Faces[3].  But, if you just need an easy way to hook incoming requests to
back end business logic, and like the ability to use JSF's managed beans and
_expression_ evaluation capabilities, Remoting might be useful to you. 

(Incidentally, Shale Remoting is what many of the Blueprints AJAX components
are using under the covers to acccess static resources, or connect to server
side event handlers.)

Craig

[1] http://shale.apache.org/shale-remoting/
[2] https://ajax4jsf.dev.java.net/
[3] https://jsf-extensions.dev.java.net/







 

Any help is appreciated.

Thanks a lot.
Regards, 
Aneesha





 



 










Re: JSF and ajax using phaselistener approach

2006-11-01 Thread Aneesha Govil
On 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:






Hi
 
Where 
did you get that idea from? Shale does not require you to use html (That is an 
option when using Clay). Shale is a framework around JSF, and as such you can 
use MyFaces or JSF RI with it.
 
If you 
want to use Shale, its just a matter of setting up your web.xml file acording to 
the information found here: http://shale.apache.org/using.html 
and then write your custom jsf component, add it to your page and call the Shale 
remote viewcontroller/backing bean you want. To use Shale remoting look at: http://shale.apache.org/shale-remoting/index.html
Well I could not find any JSF example. The example on [1] uses plain html rendering inside JSF. Are there any resources on writing a custom component that is ajax enabled and uses shale?
I am kinda confused. Sorry if I seem to be asking too many questions.Thanks,Aneesha[1] 
http://shale.apache.org/shale-remoting/index.html


Re: JSF and ajax using phaselistener approach

2006-10-31 Thread Aneesha Govil
On 10/31/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
In addition to the other references people have given, you might want to look at the Remoting feature in Shale[1].  It includes a built-in phase listener that tries to do all the hard stuff so you don't have to, and an extensible Processor architecture so you can plug in your own processing logic.
One important factor is that Shale Remoting assumes you do *not* need access to the JSF component tree for the original page (thus eliminating the overhead of saving and restoring it), or even that the client be a JSF page at all.  
Any idea how to use shale to write a custom ajax-enabled component? It seems that it can work only with plain html, according to the introduction on their page. So to use shale and make it ajax-enabled, I need to make my data table manually with  tags instead of using tomahawk datatable?
Thanks,Aneesha


Re: JSF and ajax using phaselistener approach

2006-10-31 Thread Aneesha Govil
Well silly question but what does PPR stand for?Thanks,AneeshaOn 10/31/06, Gerald Müllan <[EMAIL PROTECTED]
> wrote:Hi,have a look at the sandbox PhaseListeners:PPRPhaseListener, AjaxDecodePhaseListener
regards,GeraldOn 10/31/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> Hi,>> Can anyone give me links to any resources/examples on Ajax with JSF using
> the PhaseListener approach. I found it on the J2EE Blueprints but they work> only with Java EE 5. I am using myfaces 1.1.4 (J2EE 1.4). Does this approach> work with that too? Please give me some links/resources.
>> Any help is appreciated.>> Thanks a lot.> Regards,> Aneesha>--http://www.irian.atYour JSF powerhouse -JSF Consulting, Development and
Courses in English and GermanProfessional Support for Apache MyFaces


Re: JSF and ajax using phaselistener approach

2006-10-31 Thread Aneesha Govil
Hi Craig,I tried using Ajax4JSF but the datascrollers and sortheaders stopped working as soon as I put the datatable in an ajax-rendered zone. Therefore, I had to abandon it. I couldn't get any help on that either. 
I will look at the rest of the resources. Thanks a lot for replying.Regards,AneeshaOn 10/31/06, Craig McClanahan <
[EMAIL PROTECTED]> wrote:
On 10/31/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:

Hi,Can anyone give me links to any resources/examples on Ajax with JSF using the PhaseListener approach. I found it on the J2EE Blueprints but they work only with Java EE 5. I am using myfaces 1.1.4 (J2EE 1.4). Does this approach work with that too? Please give me some links/resources.
In addition to the other references people have given, you might want to look at the Remoting feature in Shale[1].  It includes a built-in phase listener that tries to do all the hard stuff so you don't have to, and an extensible Processor architecture so you can plug in your own processing logic.
One important factor is that Shale Remoting assumes you do *not* need access to the JSF component tree for the original page (thus eliminating the overhead of saving and restoring it), or even that the client be a JSF page at all.  If you need that, you might want to look at Ajax4JSF[2] or Dynamic Faces[3].  But, if you just need an easy way to hook incoming requests to back end business logic, and like the ability to use JSF's managed beans and _expression_ evaluation capabilities, Remoting might be useful to you.
(Incidentally, Shale Remoting is what many of the Blueprints AJAX components are using under the covers to acccess static resources, or connect to server side event handlers.)Craig[1] 

http://shale.apache.org/shale-remoting/[2] https://ajax4jsf.dev.java.net/[3] 
https://jsf-extensions.dev.java.net/
Any help is appreciated.Thanks a lot.Regards,

Aneesha






JSF and ajax using phaselistener approach

2006-10-31 Thread Aneesha Govil
Hi,Can anyone give me links to any resources/examples on Ajax with JSF using the PhaseListener approach. I found it on the J2EE Blueprints but they work only with Java EE 5. I am using myfaces 1.1.4 (J2EE 1.4). Does this approach work with that too? Please give me some links/resources.
Any help is appreciated.Thanks a lot.Regards,Aneesha


Debug logging in MyFaces

2006-10-31 Thread Aneesha Govil
Hi,I am getting the following exception on dynamically creating some drop down listsjava.lang.IllegalArgumentException: Value is no String (class=java.lang.Long, value=5) and component _idJsp1:parent:0:filterPanel_2:0:filterPanel_5with path: {Component-Path : [Class: 
javax.faces.component.UIViewRoot,ViewId: /jsp/filterview.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGroup,Id: filterPanel][Class: org.apache.myfaces.custom.datalist.HtmlDataList
,Id: parent][Class: org.apache.myfaces.custom.datalist.HtmlDataList,Id: filterPanel_2][Class: org.apache.myfaces.component.html.ext.HtmlSelectOneMenu,Id: filterPanel_5]} does not have a Converter    at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedStringValue
(RendererUtils.java:536)It is a long piece of code and I want to trace exactly which select option is giving this exception. I know it is because of using a long value instead of string but cannot find where it is happening. Is there any way to turn on debug logging with MyFaces? How can I trace an error easily?
I have attached source to my jar files but strange enough it doesn't find all the renderer sources for some reason. I checked out the 1.1.4 tag.Please help!Thanks.Aneesha


Re: Get Myfaces 1.1.4 source

2006-10-27 Thread Aneesha Govil
Figured this out. Using command svn checkout https://svn.apache.org/repos/asf/myfaces/core/tags/1_1_4On 10/27/06, 
Aneesha Govil <[EMAIL PROTECTED]> wrote:
Hi,I need to get the source of myfaces 1.1.4 and tomahawk 1.1.3. I cannot figure out how to check it out from the repository, the instructions are only for checking out from the trunk. I tried the following command 
"svn checkout https://svn.apache.org/repos/asf/myfaces/site/tags/1_1_4
 myfaces"But I get the following error:svn: URL '
https://svn.apache.org/repos/asf/myfaces/site/tags/1_1_4' doesn't exist
Please help! How can I do this?Thanks,Aneesha




Get Myfaces 1.1.4 source

2006-10-27 Thread Aneesha Govil
Hi,I need to get the source of myfaces 1.1.4 and tomahawk 1.1.3. I cannot figure out how to check it out from the repository, the instructions are only for checking out from the trunk. I tried the following command 
"svn checkout https://svn.apache.org/repos/asf/myfaces/site/tags/1_1_4 myfaces"But I get the following error:svn: URL '
https://svn.apache.org/repos/asf/myfaces/site/tags/1_1_4' doesn't existPlease help! How can I do this?Thanks,Aneesha


Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-26 Thread Aneesha Govil
Did you change the version of tomahawk or something? I do not have this problem without ajax4jsf, it works perfectly fine.On 10/26/06, K. Johnson <
[EMAIL PROTECTED]> wrote:I am having this same problem but without ajax4jsf.
The dataScroller sortable links used to work, but recently they stopped. Something in myfaces or tomahawk must have changed to  make them stop working?Does anyone have any ideas or work arounds?Thanks,
Kaeri>  ---Original Message--->  From: Aneesha Govil <[EMAIL PROTECTED]>>  Subject: Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work
>  Sent: 26 Oct '06 09:06>>  Hi Yee,>>  I just verified the way I was trying to make it work. This is exactly the>  approach I am using. The table is rendered properly but the datascroller
>  and sortheaders on it stop working. No exception or anything, clicking on>  them does nothing.>>  Any other suggestions?>>  Thanks,>  Aneesha>>>  On 10/25/06, YEE CN <[LINK: mailto:
[EMAIL PROTECTED]] [EMAIL PROTECTED]>>  wrote:>>  ***>  Your mail has been scanned by InterScan MSS.
>  ***>>>  I think you would have better chance of getting an answer by asking in the>  ajax4jsf column.>>>  Maybe you can try the following – enclose the dataTable and the
>  dataScroller under a panelGroup, and have the ajax refresh the panelGroup,>  so that both the dataTable and the dataScroller got refreshed together.>>>  Please let me know how you go with this. I am in the process of evaluating
>  a4j myself.>>>  Best regards,>>  Yee>>>  >>>  FROM: Aneesha Govil [mailto:[LINK: mailto:
[EMAIL PROTECTED]]>  [EMAIL PROTECTED]]>  SENT: Wednesday, October 25, 2006 1:02 PM>  TO: MyFaces  Discussion>  SUBJECT: Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't
>  work>>>  Nope, I have dumped ajax4jsf because I could not resolve this problem and>  couldn't get any help on it. I am going to write my own ajax wherever>  required.>
>  Let me know if you find any resolutions though.>>  Regards,>  Aneesha>>>  On 10/25/06, NDNGUY <[LINK: mailto:[EMAIL PROTECTED]
]>  [EMAIL PROTECTED]> wrote:>>>  Were you able to figure out the issue? I am getting into a similar>  situation>  with Ajax4Jsf and datascrollers.
>>  Thanks,>  Praveen.>  -->  View this message in context: [LINK:>  
http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html]>  
http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html#a6982861>  Sent from the MyFaces - Users mailing list archive at [LINK:>  
http://Nabble.com] Nabble.com.


Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-26 Thread Aneesha Govil
Hi Yee,I just verified the way I was trying to make it work. This is exactly the approach I am using. The table is rendered properly but the datascroller and sortheaders on it stop working. No exception or anything, clicking on them does nothing.
Any other suggestions?Thanks,AneeshaOn 10/25/06, Yee CN <[EMAIL PROTECTED]> wrote:

***
Your mail has been scanned by InterScan MSS.
***



















I think you would have better chance of
getting an answer by asking in the ajax4jsf column. 

 

Maybe you can try the following –
enclose the dataTable and the dataScroller under a panelGroup, and have the ajax refresh the
panelGroup, so that both the dataTable and the dataScroller got refreshed
together.

 

Please let me know how you go with this. I
am in the process of evaluating a4j myself.

 

Best regards,

Yee

 









From: Aneesha Govil
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 25, 2006
1:02 PM
To: MyFaces
 Discussion
Subject: Re: Tomahawk and ajax4jsf
- t:datascroller and sortheaders don't work



 

Nope, I have dumped
ajax4jsf because I could not resolve this problem and couldn't get any help on
it. I am going to write my own ajax
wherever required.

Let me know if you find any resolutions though. 

Regards, 
Aneesha



On 10/25/06, ndnguy
<[EMAIL PROTECTED]>
wrote:


Were you able to figure out the issue? I am getting into a similar situation
with Ajax4Jsf and datascrollers.

Thanks,
Praveen.
--
View this message in context: 
http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html#a6982861
Sent from the MyFaces - Users mailing list archive at Nabble.com.



 










Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-25 Thread Aneesha Govil
Hi Yee,Thanks for trying to help. I asked the question on the ajax4jsf mailing list as well but did not get a response. I am a little short on time right now. I will let you know if/when I am able to try the approach and it works.
Thanks again.Regards,AneeshaOn 10/25/06, Yee CN <[EMAIL PROTECTED]> wrote:

***
Your mail has been scanned by InterScan MSS.
***



















I think you would have better chance of
getting an answer by asking in the ajax4jsf column. 

 

Maybe you can try the following –
enclose the dataTable and the dataScroller under a panelGroup, and have the ajax refresh the
panelGroup, so that both the dataTable and the dataScroller got refreshed
together.

 

Please let me know how you go with this. I
am in the process of evaluating a4j myself.

 

Best regards,

Yee

 









From: Aneesha Govil
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 25, 2006
1:02 PM
To: MyFaces
 Discussion
Subject: Re: Tomahawk and ajax4jsf
- t:datascroller and sortheaders don't work



 

Nope, I have dumped
ajax4jsf because I could not resolve this problem and couldn't get any help on
it. I am going to write my own ajax
wherever required.

Let me know if you find any resolutions though. 

Regards, 
Aneesha



On 10/25/06, ndnguy
<[EMAIL PROTECTED]>
wrote:


Were you able to figure out the issue? I am getting into a similar situation
with Ajax4Jsf and datascrollers.

Thanks,
Praveen.
--
View this message in context: 
http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html#a6982861
Sent from the MyFaces - Users mailing list archive at Nabble.com.



 










Re: Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-24 Thread Aneesha Govil
Nope, I have dumped ajax4jsf because I could not resolve this problem and couldn't get any help on it. I am going to write my own ajax wherever required.Let me know if you find any resolutions though. Regards,
AneeshaOn 10/25/06, ndnguy <[EMAIL PROTECTED]> wrote:
Were you able to figure out the issue? I am getting into a similar situationwith Ajax4Jsf and datascrollers.Thanks,Praveen.--View this message in context: 
http://www.nabble.com/Tomahawk-and-ajax4jsf---t%3Adatascroller-and-sortheaders-don%27t-work-tf2414555.html#a6982861Sent from the MyFaces - Users mailing list archive at Nabble.com.



Tomahawk datascroller problem

2006-10-19 Thread Aneesha Govil
Hi,I have a t:datascroller that is used for a datatable created dynamically. I use component binding to render this datatable. The first time I load this page it works fine. The next time I again land on this page, I get the following exception:
javax.faces.FacesException: could not find UIData referenced by attribute [EMAIL PROTECTED] = 'data'The datascroller is rendered only if there are more than 15 rows of data. I debugged and found that the datatable exists and there are indeed more than 15 rows of data. However, I get this exception.
The datascroller code looks like this: columns="1"  styleClass="scrollerTable"  columnClasses="standardTable_ColumnCentered"  rendered="#{
tableform.renderScroller}">       id="scroll_1"  for=""  fastStep="10"  pageCountVar="pageCount" 
 pageIndexVar="pageIndex"  paginator="true"  paginatorMaxPages="9"  paginatorActiveColumnStyle="font-weight:bold;">
My backing bean with the table component binding is in the session scope.I come to this page from another page that has a field chooser for the kind of data to be displayed (
choose.jsp). If I hit choose.faces the first time, everything works fine. The next time if I hit choose.faces, choose the kind of data to be displayed and go to display.faces, I get the above mentioned exception.To make this work I have to restart tomcat and hit 
choose.faces again.Can anyone please help with this? Thanks for reading.Regards,Aneesha


Re: Context Sensitivity on DataScroller

2006-10-16 Thread Aneesha Govil
Hi,Please tell me if you find a solution to this. I need to do something similar. Thanks,AneeshaOn 10/16/06, 
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:





Hi,
 
I use
the t:dataScroller component to get the First | Previous | Next |
Last.
However, I would like to have the context sensitivity to enable and
disable these links based on the row Count of the table. Is this a configuration
parameter in dataScroller or should I implement it myself?
 
My
code looks like below so far.




f:facet>


f:facet>


f:facet>


f:facet>
t:dataScroller>
 
Thanks
Balaji


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

 
www.wipro.com




Re: myfaces example and blank.war

2006-10-12 Thread Aneesha Govil
That link has been broken for quite a while. If you want it fixed, vote for this bug - http://issues.apache.org/jira/browse/MYFACES-1414Meanwhile you can look at this tutorial - 
http://courses.coreservlets.com/Course-Materials/jsf.html--AneeshaOn 10/13/06, 
ying lcs <[EMAIL PROTECTED]> wrote:From the get started guide, it said I can find the myfaces example and
blank.war here: http://myfaces.apache.org/gettingstarted.htmlBut I can't find it there. Can someone please tell me where I can findmy faces example and the 
blankl.war for the lastest myfaces?Thank you.


Re: file download component for JSF

2006-10-12 Thread Aneesha Govil
Here is what my understanding of the extensions is - Tomahawk is a collection of JSF components that extend the functionality of MyFaces. They can be added with Sun's RI of JSF as well. Tomahawk has a stable release.
Trinidad is the part that Oracle ADF donated to Apache. It has a rich set of components that offer a lot of functionality. This is still in the Apache incubator and is yet to be released by Apache. I am not sure what all Tobago offers, anyone please explain?
Regards,AneeshaOn 10/13/06, ying lcs <[EMAIL PROTECTED]> wrote:
Thanks.Can you please explains what is the relationship between Tobago,Tomahawk, MyFaces and Trinidad.My understanding is  Tobago, Tomahawk, Trinidad are 'extension' of JSFwhereas MyFaces is a open source implementation of JSF.
So why we have 3 extensions of JSF ' Tobago, Tomahawk, Trinidad '?And if JSF spec does not defined a file download component, so itmakes sense that MyFaces itself does not have it. But why the dev list
is discussing to add it?Thank you.On 10/12/06, Scott O'Bryan <[EMAIL PROTECTED]> wrote:> Ying,>> Tobago, Tomahawk, and Trinidad do.  But MyFaces itself does not at the
> moment.  We're currently discussing that right now on the dev list being> that we've basically re-invented the wheel three times.  :)>> Scott>> ying lcs wrote:> > Hi,
> >> > Does MyFaces have a file download component for JSF?> >> > Thank you.> >>>


Tomahawk and ajax4jsf - t:datascroller and sortheaders don't work

2006-10-09 Thread Aneesha Govil
Hi,I got the datatable, sortheaders and datascroller working with Tomahawk. Then I was trying to ajaxify the table loading on the basis of a drop down. The table loads with ajax perfectly however, the datascroller and sort headers in it have stopped working. Is this a known issue? Does tomahawk not work with Ajax4jsf?
Can anyone help me look into how to make this work?Please help.Thanks,Aneesha


Re: Datascroller displays incorrect pageIndex (1)

2006-10-09 Thread Aneesha Govil
Hi Jeff,I am using datatable binding as well. Are there any known issues with using as against the value, rows and first bindings?In my usecase, I cannot use the latter because I add buttons on top of my raw table data for navigating to the detail page etc. 
I will not go ahead with this approach if it is going to be a problem later.Please help,Thanks,AneeshaOn 10/6/06, Jeff Bischoff
 <[EMAIL PROTECTED]> wrote:Jan,
I'm not sure.Instead of binding the entire dataTable component, I bind three of itsproperties: "value", "rows", "first".I use value-binding expressions to bind these to a session bean. I don't
bind anything to the session on the dataScroller.It's a different approach (and not necessarily the right one). MydataScroller seems to work reliably, though.I posted some example code to another thread [1], if you're interested
in this approach.Also, what version of myfaces and tomahawk are you using? Could alwaysbe some new bug. ;)[1] http://www.nabble.com/Drill-Down-help-tf2275433.html
Regards,Jeff BischoffKenneth L Kurz & Associates, Inc.janw wrote:> Jeff,>> I tried it without the binding, but it doesn't help.> table.getFirst() returns the correct result.
> The binding of the dataTable should not be the reason, should it?>> Jan> Jeff Bischoff wrote:>> Jan, Have you tried this without binding the dataScroller? In my experience,
>> maintaining the correct state information for the dataTable itself is>> sufficient. If the "first" property is set correctly on the dataTable>> (and it sounds like yours is), then a regular dataScroller tag should be
>> able to find the right page (without being bound). Regards, Jeff Bischoff>> Kenneth L Kurz & Associates, Inc. janw wrote:
>>> Hello,>> I use the dataScroller bound to a backing Bean in session scope.>>> The table is as well bound to the backing bean.>>   private UIData table;
>>>   private HtmlDataScroller dataScroller;>> Scenario:>>> The user scrolls to page 3, goes to a completely other page, then returns>>> to>>> the page with the datatable (not by back button, but by a menu item /
>>> command button of some kind).>>> The data displayed is the one from page 3, but the datascroller shows>>> page 1>>> active ("1" is bold).>>> How can I correct this?
>>> The pageIndex of the datascroller seems correct (getPageIndex() returns>>> 3).>> Jan>>>


Re: Remembering "first" attribute in t:dataTable

2006-10-08 Thread Aneesha Govil
Well I have the same usecase. I am using the approach on the below-mentioned link. Try it..http://marc2.theaimsgroup.com/?l=myfaces-user&m=113874875226923&w=2
I am not using the datatable's first attribute. I don't know how to make this work with that. Hope that helps!AneeshaOn 10/8/06, 
Titi Wangsa <[EMAIL PROTECTED]> wrote:
i have a session backed listwhich gets displayed in a t:dataTablewhich works great..then i use the scroller to display a few items in each pagewhich works greathowever each item in the table can be clicks to
display the details of the item.on these details page, there is link which points back to the listing pagebut once i get back to the listing page, the first page is displayed.which is not so great.
I've located the problem in the t:dataTable's "first" attribute,but setting that value to first="#{listStudentst.first}", wherelistStudent is a session backed bean, and first is an Integer, results
in the value gets read with the table is rendered.Which is half of what i need.The other half is for the table's first attribute to be saved in thesession backed bean.Which is what is troubling me..
any help?


Re: commandLink

2006-10-04 Thread Aneesha Govil
What happens? It doesn't redirect or what? Does it remain blank or nothing happens?AneeshaOn 10/3/06, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:Hi,
that's not the problem.Facelets arent the problem, too.I tried it with a simple jsp-webapp and a simple commandLink.I dont know why my commandLink will not work!Any ideas?Thanx in advance
UdoMoin Udo,The commandLink syntax looks good to me, but the HtmlCommandLink alwalys uses _javascript_, so be sure that your target browser can handle it.hope that helpsMarco
---http://www.kontaktlinsen-preisvergleich.dehttp://www.lenses-price-comparison.com
[EMAIL PROTECTED] schrieb:Hi,i don't understand why my commandLink will not work!My Configuration:All MyFaces 1.1.3 libraries with facelets.I use this source in my view:

The navigation is in the faces-config.xml:success/home.xhtml
Well, the commandButton works fine, the commandLink will NOT WORK!(I also tried MyFaces 1.1.4 with no success...)WHY???Can somebody help me?!?!
Thanx in advance.Udo


Re: commandLink

2006-10-04 Thread Aneesha Govil
Can you post the whole of the navigation rule that contains the navigation case?AneeshaOn 10/4/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:What happens? It doesn't redirect or what? Does it remain blank or nothing happens?
AneeshaOn 10/3/06, 
[EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:
Hi,
that's not the problem.Facelets arent the problem, too.I tried it with a simple jsp-webapp and a simple commandLink.I dont know why my commandLink will not work!Any ideas?Thanx in advance

UdoMoin Udo,The commandLink syntax looks good to me, but the HtmlCommandLink alwalys uses _javascript_, so be sure that your target browser can handle it.hope that helpsMarco

---http://www.kontaktlinsen-preisvergleich.de
http://www.lenses-price-comparison.com
[EMAIL PROTECTED] schrieb:Hi,i don't understand why my commandLink will not work!My Configuration:All MyFaces 1.1.3 libraries with facelets.I use this source in my view:

The navigation is in the faces-config.xml:success/home.xhtml
Well, the commandButton works fine, the commandLink will NOT WORK!(I also tried MyFaces 1.1.4 with no success...)WHY???Can somebody help me?!?!
Thanx in advance.Udo




Re: How To Workaround dynamic ID for datatable's etc...

2006-10-04 Thread Aneesha Govil
I think you could create data tables in java code and set id using datatable.setId("id"+some_dynamic_number_or_text). It is still static, it's just that you are setting it in the managed bean so you can use whatever u want.
Hope that helps.AneeshaOn 10/4/06, Wesley Hales <[EMAIL PROTECTED]> wrote:
Reference this post from Craig about css attacks:
http://mail-archives.apache.org/mod_mbox/myfaces-users/200410.mbox/[EMAIL PROTECTED]
I have no choice but to use the same ID (I can't generate one dynamically when the datatable is being looped). So therefore, it is a bug when trying to loop over a datatable. Got any ideas on a workaround?

Here is my post with the source:http://mail-archives.apache.org/mod_mbox/myfaces-users/200609.mbox/browser





Re: t:commandLink for navigation but browser url not changed

2006-10-03 Thread Aneesha Govil
On 10/3/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
In summary:URL != View IDThere are many WIKI entries and posts discussing this and differentways of handling this based on your needs.-AndrewCan you give me some links to those resources? I can't find any, I suppose you mean the myfaces wiki.
Thanks,Aneesha


Re: Need Help

2006-09-29 Thread Aneesha Govil
You can use Ajax4jsf, it enables you to ajaxify JSF components. It's a free and open-source framework.AneeshaOn 9/30/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:I am not sure, I am pretty new to JSF but it sounds like you would need Ajax to accomplish this. You would need to have something that keeps checking for whether there is more data and then display it. Ajax is definitely used to implement this kind of functionality. So you can work with Ajax and JSF, how.. you would have to research on that, I am still learning it.
Hope that helps.AneeshaOn 9/29/06, 
[EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:




I am new to JSF.

 
I am un able to
display the JSF page until complete page is processed.
My requirement is displaying the JSF page as an when the data
is available. i.e as an when the data is available
i want to update
that in the JSF page with out page being refreshed.
 
I am trying to use
AJAX, but the page is not being displayed until complete processing is
done.
How do i handle this
situation.
 
Your help will be
appriciated.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

 
www.wipro.com






Re: Need Help

2006-09-29 Thread Aneesha Govil
I am not sure, I am pretty new to JSF but it sounds like you would need Ajax to accomplish this. You would need to have something that keeps checking for whether there is more data and then display it. Ajax is definitely used to implement this kind of functionality. So you can work with Ajax and JSF, how.. you would have to research on that, I am still learning it.
Hope that helps.AneeshaOn 9/29/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:




I am new to JSF.

 
I am un able to
display the JSF page until complete page is processed.
My requirement is displaying the JSF page as an when the data
is available. i.e as an when the data is available
i want to update
that in the JSF page with out page being refreshed.
 
I am trying to use
AJAX, but the page is not being displayed until complete processing is
done.
How do i handle this
situation.
 
Your help will be
appriciated.


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 


WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

 
www.wipro.com




Re: Some bean properties lose values on redirect

2006-09-29 Thread Aneesha Govil
I store the value here in the bean property in the processAction method>detail = (String[]) tmpRowData;detail is a property of the managed bean I am calling redirect from. UIData is what I use to get the value from. It's like getting the row information whose detail is to be displayed on the next page.
Thanks so much for reading.AneeshaOn 9/30/06, Andrew Robinson <[EMAIL PROTECTED]
> wrote:Did you persist the properties in the bean or in a bound component. I
thought from your example you have the properties persisted in theUIData object.On 9/29/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> It is in a bean with session scope. The values that I am not using were
> persisted and the ones that I needed were reinitialized. Weird problem.>> Thanks for trying to help> Aneesha>>>  On 9/29/06, Andrew Robinson <
[EMAIL PROTECTED]> wrote:> > Store the values in a non-request backing bean (session, conversation,> etc)> >> > On 9/28/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:> > > I need to store some values on an action and open a new page displaying> > > something in accordance with the values saved. Is there any workaround> to
> > > accomplish this?> > >> > > Thanks for replying.> > > Aneesha> > >> > >> > >  On 9/28/06, Andrew Robinson < 
[EMAIL PROTECTED]> wrote:> > > > When you redirect to a new page, the bound component should not travel> > > > to the new view with you, so it should make sense that the component
> > > > binding is now null and if you tried to access it, it would be> > > > created. I am not 100% sure of what is going on, but that is my best> > > > guess.> > > >
> > > > On 9/27/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> > > > > Hi,> > > > >> > > > > Here is some more information:
> > > > >> > > > > My backing bean is also the action listener..> > > > > public class Form implements ActionListener> > > > >> > > > > It constructs the datatable in java code and uses component binding.
> > > Each> > > > > row has a detail button that is coded as:> > > > >> > > > > //Add detail column> > > > > column = new UIColumn();
> > > > >  UIOutput header = new UIOutput();> > > > > header.setValue("Detail");> > > > >  column.setHeader(header);> > > > >> > > > > HtmlCommandButton detailButton = new HtmlCommandButton();
> > > > > detailButton.addActionListener(this);> > > > > detailButton.setValue ("Detail");> > > > >> > > > > column.getChildren().add(detailButton);
> > > > >  datatable.getChildren ().add(column);> > > > >> > > > > The processAction(ActionEvent anEvent) sets a String[] and opens the> > > detail
> > > > > page:> > > > >> > > > > public void processAction(ActionEvent anEvent) throws> > > > > AbortProcessingException {> > > > >
> > > > > UIComponent tmpComponent = anEvent.getComponent ();> > > > >> > > > > while (null != tmpComponent && !(tmpComponent instanceof> UIData)) {
> > > > > tmpComponent = tmpComponent.getParent();> > > > >  }> > > > >> > > > > if (tmpComponent != null && (tmpComponent instanceof UIData)) {
> > > > > Object tmpRowData = ((UIData) tmpComponent).getRowData();> > > > >  if (tmpRowData instanceof String[]) {> > > > > detail = (String[]) tmpRowData;
> > > > >  if (detail != null) {> > > > > try {> > > > >> > > > > FacesContext.getCurrentInstance> > > ().getExternalContext().redirect("
detail.faces");> > > > > }> > > > >  catch (IOException ex) {> > > > >> > > > > System.err.println("IOException"+ex.getMessage());
> > > > > System.err.println(ex.getStackTrace());> > > > >  }> > > > > }> > > > > }> > > > >  }
> > > > > }> > > > >> > > > > Now when the detail.jsp opens, it gives a null pointer exception> because> > > > > String[] detail is

Re: Some bean properties lose values on redirect

2006-09-29 Thread Aneesha Govil
It is in a bean with session scope. The values that I am not using were persisted and the ones that I needed were reinitialized. Weird problem. Thanks for trying to helpAneesha
On 9/29/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
Store the values in a non-request backing bean (session, conversation, etc)On 9/28/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> I need to store some values on an action and open a new page displaying
> something in accordance with the values saved. Is there any workaround to> accomplish this?>> Thanks for replying.> Aneesha>>>  On 9/28/06, Andrew Robinson <
[EMAIL PROTECTED]> wrote:> > When you redirect to a new page, the bound component should not travel> > to the new view with you, so it should make sense that the component> > binding is now null and if you tried to access it, it would be
> > created. I am not 100% sure of what is going on, but that is my best> > guess.> >> > On 9/27/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
> > > Hi,> > >> > > Here is some more information:> > >> > > My backing bean is also the action listener..> > > public class Form implements ActionListener
> > >> > > It constructs the datatable in java code and uses component binding.> Each> > > row has a detail button that is coded as:> > >> > > //Add detail column
> > > column = new UIColumn();> > >  UIOutput header = new UIOutput();> > > header.setValue("Detail");> > >  column.setHeader(header);> > >> > > HtmlCommandButton detailButton = new HtmlCommandButton();
> > > detailButton.addActionListener(this);> > > detailButton.setValue ("Detail");> > >> > > column.getChildren().add(detailButton);> > >  datatable.getChildren
().add(column);> > >> > > The processAction(ActionEvent anEvent) sets a String[] and opens the> detail> > > page:> > >> > > public void processAction(ActionEvent anEvent) throws
> > > AbortProcessingException {> > >> > > UIComponent tmpComponent = anEvent.getComponent ();> > >> > > while (null != tmpComponent && !(tmpComponent instanceof UIData)) {
> > > tmpComponent = tmpComponent.getParent();> > >  }> > >> > > if (tmpComponent != null && (tmpComponent instanceof UIData)) {> > > Object tmpRowData = ((UIData) tmpComponent).getRowData();
> > >  if (tmpRowData instanceof String[]) {> > > detail = (String[]) tmpRowData;> > >  if (detail != null) {> > > try {
> > >> > > FacesContext.getCurrentInstance> ().getExternalContext().redirect("detail.faces");> > > }> > >  catch (IOException ex) {
> > >> > > System.err.println("IOException"+ex.getMessage());> > > System.err.println(ex.getStackTrace());> > >  }> > > }
> > > }> > >  }> > > }> > >> > > Now when the detail.jsp opens, it gives a null pointer exception because> > > String[] detail is null again.
> > >> > > Can anyone help me figure out what is being done wrong here?> > > Please help.> > >> > > Thanks> > >> > >> > > On 9/27/06, Aneesha Govil < 
[EMAIL PROTECTED]> wrote:> > > > Hi,> > > >> > > > I have a simple usecase as follows:> > > >> > > > 1. Use a dropdown to select a table
> > > > 2. Display some table data with "detail" button. On clicking the> detail> > > button, store the row information and redirect to detail page.> > > > 3. Display the data that was stored in step 2.
> > > >> > > > I am using an ActionListener for the detail button that stores the row> > > data. I have debugged this, it gets stored. However, after redirect the> data
> > > is wiped out, the property is null again. I am using another propery to> > > create HtmlPanelGroup in java code. This also gets reinitialized.> Strangely,> > > all other properties of the bean remain intact.
> > > >> > > > Can anyone help with this?> > > > I can provide the source code and whatever information is required.> This> > > seems like a really weird problem. Why aren't other values wiped out?
> > > >> > > > Please help!> > > >> > > > Thanks,> > > > Aneesha> > > >> > >> > >> >>
>


Re: Some bean properties lose values on redirect

2006-09-28 Thread Aneesha Govil
I need to store some values on an action and open a new page displaying something in accordance with the values saved. Is there any workaround to accomplish this?Thanks for replying.Aneesha
On 9/28/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
When you redirect to a new page, the bound component should not travelto the new view with you, so it should make sense that the componentbinding is now null and if you tried to access it, it would becreated. I am not 100% sure of what is going on, but that is my best
guess.On 9/27/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> Hi,>> Here is some more information:>> My backing bean is also the action listener..
> public class Form implements ActionListener>> It constructs the datatable in java code and uses component binding. Each> row has a detail button that is coded as:>> //Add detail column
> column = new UIColumn();>  UIOutput header = new UIOutput();> header.setValue("Detail");>  column.setHeader(header);>> HtmlCommandButton detailButton = new HtmlCommandButton();
> detailButton.addActionListener(this);> detailButton.setValue ("Detail");>> column.getChildren().add(detailButton);>  datatable.getChildren().add(column);>> The processAction(ActionEvent anEvent) sets a String[] and opens the detail
> page:>> public void processAction(ActionEvent anEvent) throws> AbortProcessingException {>> UIComponent tmpComponent = anEvent.getComponent ();>> while (null != tmpComponent && !(tmpComponent instanceof UIData)) {
> tmpComponent = tmpComponent.getParent();>  }>> if (tmpComponent != null && (tmpComponent instanceof UIData)) {> Object tmpRowData = ((UIData) tmpComponent).getRowData();
>  if (tmpRowData instanceof String[]) {> detail = (String[]) tmpRowData;>  if (detail != null) {> try {>> FacesContext.getCurrentInstance
().getExternalContext().redirect("detail.faces");> }>  catch (IOException ex) {>> System.err.println("IOException"+ex.getMessage());> 
System.err.println(ex.getStackTrace());>  }> }> }>      }> }>> Now when the detail.jsp opens, it gives a null pointer exception because
> String[] detail is null again.>> Can anyone help me figure out what is being done wrong here?> Please help.>> Thanks>>> On 9/27/06, Aneesha Govil < 
[EMAIL PROTECTED]> wrote:> > Hi,> >> > I have a simple usecase as follows:> >> > 1. Use a dropdown to select a table> > 2. Display some table data with "detail" button. On clicking the detail
> button, store the row information and redirect to detail page.> > 3. Display the data that was stored in step 2.> >> > I am using an ActionListener for the detail button that stores the row
> data. I have debugged this, it gets stored. However, after redirect the data> is wiped out, the property is null again. I am using another propery to> create HtmlPanelGroup in java code. This also gets reinitialized. Strangely,
> all other properties of the bean remain intact.> >> > Can anyone help with this?> > I can provide the source code and whatever information is required. This> seems like a really weird problem. Why aren't other values wiped out?
> >> > Please help!> >> > Thanks,> > Aneesha> >>>


Re: Tomahawk t:datatable detail row

2006-09-27 Thread Aneesha Govil
Show a detailed view of a row on click of a commandButton/commandLink. Is this it -> http://issues.apache.org/jira/browse/TOMAHAWK-346?rc=1page=all
 ?Why isn't it on any feature pages?ThanksOn 9/27/06, Kevin Galligan <[EMAIL PROTECTED]
> wrote:What's a 'detail row feature' supposed to do?
On 9/27/06, Aneesha Govil <[EMAIL PROTECTED]
> wrote:
Hi,I want to know more about the detail row feature in tomahawk. I cannot find appropriate documentation/samples. In fact the feature isn't even listed on the wiki (

http://wiki.apache.org/myfaces/Extended_Data_Table) or the tomahawk page (http://myfaces.apache.org/tomahawk/extDataTable.html
). Does this feature even exist or is it just in my imagination?
If it does exist, please point me to demos/samples/documentation or anything!Thanks,Aneesha






Re: Some bean properties lose values on redirect

2006-09-27 Thread Aneesha Govil
Hi,Here is some more information:My backing bean is also the action listener..public class Form implements ActionListener It constructs the datatable in java code and uses component binding. Each row has a detail button that is coded as:
//Add detail columncolumn = new UIColumn();
UIOutput header = new UIOutput();header.setValue("Detail");
column.setHeader(header);HtmlCommandButton detailButton = new HtmlCommandButton();
detailButton.addActionListener(this);detailButton.setValue
("Detail");column.getChildren().add(detailButton);
datatable.getChildren().add(column);The processAction(ActionEvent anEvent) sets a String[] and opens the detail page:public void processAction(ActionEvent anEvent) throws AbortProcessingException {
            UIComponent tmpComponent = anEvent.getComponent
();        while (null != tmpComponent && !(tmpComponent instanceof UIData)) {
    tmpComponent = tmpComponent.getParent();
    }        if (tmpComponent != null && (tmpComponent instanceof UIData)) {
    Object tmpRowData = ((UIData) tmpComponent).getRowData();
    if (tmpRowData instanceof String[]) {    detail = (String[]) tmpRowData;
    if (detail != null) {    try {
    FacesContext.getCurrentInstance().getExternalContext().redirect("detail.faces");    }
    catch (IOException ex) {    System.err.println("IOException"+ex.getMessage());
    System.err.println(ex.getStackTrace());
    }    }    }
    }}Now when the detail.jsp opens, it gives a null pointer exception because String[] detail is null again. 
Can anyone help me figure out what is being done wrong here?Please help.ThanksOn 9/27/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:Hi,I have a simple usecase as follows:
1. Use a dropdown to select a table2. Display some table data with "detail" button. On clicking the detail button, store the row information and redirect to detail page.
3. Display the data that was stored in step 2.I am using an ActionListener for the detail button that stores the row data. I have debugged this, it gets stored. However, after redirect the data is wiped out, the property is null again. I am using another propery to create HtmlPanelGroup in java code. This also gets reinitialized. Strangely, all other properties of the bean remain intact.
Can anyone help with this?I can provide the source code and whatever information is required. This seems like a really weird problem. Why aren't other values wiped out?Please help!Thanks,
Aneesha





Some bean properties lose values on redirect

2006-09-27 Thread Aneesha Govil
Hi,I have a simple usecase as follows:1. Use a dropdown to select a table2. Display some table data with "detail" button. On clicking the detail button, store the row information and redirect to detail page.
3. Display the data that was stored in step 2.I am using an ActionListener for the detail button that stores the row data. I have debugged this, it gets stored. However, after redirect the data is wiped out, the property is null again. I am using another propery to create HtmlPanelGroup in java code. This also gets reinitialized. Strangely, all other properties of the bean remain intact.
Can anyone help with this?I can provide the source code and whatever information is required. This seems like a really weird problem. Why aren't other values wiped out?Please help!Thanks,Aneesha



Tomahawk t:datatable detail row

2006-09-27 Thread Aneesha Govil
Hi,I want to know more about the detail row feature in tomahawk. I cannot find appropriate documentation/samples. In fact the feature isn't even listed on the wiki (
http://wiki.apache.org/myfaces/Extended_Data_Table) or the tomahawk page (http://myfaces.apache.org/tomahawk/extDataTable.html). Does this feature even exist or is it just in my imagination?
If it does exist, please point me to demos/samples/documentation or anything!Thanks,Aneesha


Re: Custom datatable

2006-09-26 Thread Aneesha Govil
Hi,I have discovered a workaround for adding functionality, working with the existing h:datatable. It needs to support sorting based on columns, detail, pagination and displaying detail. The edit would be a button that displays a popup that allows editing. I think tomahawk's datatable supports scroll and detail, is that right? 
However, there is one thing I need help with, I need the datatable to be built programmatically, for it to pick some
data depending on what table is chosen/what query is executed. The number/type of columns is not known beforehand so it needs to be built in java code. Also, I need to have buttons in edit and detail column and send them to edit and detail pages. Can I have buttons in a datatable? How can that be done in java code? Can someone guide me to a resource that has some examples of manipulating data tables in java code as against writing them in a jsp?
Thanks,AneeshaOn 9/26/06, Gerald Müllan <[EMAIL PROTECTED]> wrote:
Hi,what are the requirements of your usecase?Maybe it also fit your needs if you only add a new attribute tot:dataTable. But it already has a huge amount of attributes :)cheers,Gerald
On 9/26/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:> Hi all,>> I need to develop a custom datatable component. While I can find resources> on developing custom components, there isn't any about how to develop
> something as complex as the datatable. Can anyone help me with how to get> started on this?>> Thanks,> Aneesha>--http://www.irian.at
Your JSF powerhouse -JSF Consulting, Development andCourses in English and GermanProfessional Support for Apache MyFaces


Custom datatable

2006-09-26 Thread Aneesha Govil
Hi all,I need to develop a custom datatable component. While I can find resources on developing custom components, there isn't any about how to develop something as complex as the datatable. Can anyone help me with how to get started on this?
Thanks,Aneesha


ADF faces/Trinidad

2006-09-25 Thread Aneesha Govil
Hi,I am looking for the source of ADF/Trinidad demo's source files. I need to see how it works in Java classes but the packaged war at 
http://people.apache.org/maven-snapshot-repository/org/apache/myfaces/adf/adf-faces-demo/ does not have source. Any idea where can I get it? Do I have to get it from the SVN? Would it be in sync with this snapshot?
Thanks.Aneesha


Dynamic editable tables using JSF and Ajax

2006-09-25 Thread Aneesha Govil

Hi,I need to develop dynamic tables that support sorting,
editing, deletion of rows using JSF and Ajax. Can anyone provide some
pointers on how to accomplish this? Would it need a custom component or
can it be done on top of the existing h:datatable?Please help!


Fwd: selectOneMenu and a4j:support

2006-09-22 Thread Aneesha Govil
Can anyone help with this please? It would be great is someone can guide me on how to make this work. It ties with the selectOneMenu problem I posted earlier.Thanks,Aneesha-- Forwarded message --
From: Aneesha Govil <[EMAIL PROTECTED]>Date: Sep 22, 2006 2:55 PMSubject: selectOneMenu and a4j:support
To: [EMAIL PROTECTED]Hi all,I am using selectOneMenu to create a drop down, on change of the dropdown I need to display a dynamic table. When the page first loads, I do not want to display the table.
In my jsp, I have used the following code:


  
    

        

        id="tabledata"        value="#{ajaxtableform.myList}" 

        var="myItem"        binding="#{ajaxtableform.myDynamicDataTable

}"   />The form bean is as follows:

public class TableForm {    private List tables = null;

    private String selectedTable = null;    

    private GenericTable[] myRecords;    private String[] headers; 
    private HtmlDataTable myDynamicDataTable;

    private List myList;    

    public String getSelectedTable() {        return selectedTable;

    }    public void setSelectedTable(String selectedTable) {
        this.selectedTable = selectedTable;

    }    public List getTables() {

        if (tables == null) {            tables = new ArrayList();
            tables.add(new SelectItem("1", "Table 1"));

            tables.add(new SelectItem("2", "Table 2"));

        }        return tables;

    }        public GenericTable tableToDisplay() {
// Getting a Null pointer exception here

        if (selectedTable.equals("1")) {            return new InventoryItem();
        }        else if (
selectedTable.equals("2")) {            return new SecondInventoryItem();

        }        else return null;

    }    

    public GenericTable[] getMyRecords() {    return myRecords;

    }    public HtmlDataTable getMyDynamicDataTable() {
    if (FacesContext.getCurrentInstance().getRenderResponse()) {

    loadMyList(); // Reload to get most recent data.    populateMyDataTable();
    }    return myDynamicDataTable;
    }

    private void loadMyList() {    

    headers = tableToDisplay().getHeaders();    

    myRecords = (selectedTable.equals("1")) ? AjaxTableDataBean.getCarInventory() : AjaxTableDataBean.getSecondInventory();

    myList = new ArrayList();    for (int i = 0; i < myRecords.length; i++) {

        myList.add(Arrays.asList(myRecords[i].getRow()));    }
    }

    private void populateMyDataTable() {        myDynamicDataTable = new HtmlDataTable();

    // Any rows?    if (myList != null && myList.size

() > 0) {    // Set columns.

    for (int i = 0; i < headers.length; i++) {    

    // Set header (optional).    UIOutput header = new UIOutput();
    header.setValue(headers[i]);

    // Set output.    UIOutput output = new UIOutput();
    ValueBinding myItem = 

    FacesContext    .getCurrentInstance()

    .getApplication()    .createValueBinding("#{myItem[" + i + "]}");
    output.setValueBinding("value", myItem);

    // Set column.

    UIColumn column = new UIColumn();    column.setHeader(header);

    column.getChildren().add(output);    

    // Add column.

    myDynamicDataTable.getChildren().add(column);    }

    }    }

    public List getMyList() {

        return myList;    }

    public void setMyList(List myList) {        this.myList = myList;
    }}

Note that the default selectedTable is null and it still tries to load the table. Due to this I get the following error:Caused by: javax.faces.el.EvaluationException

: Exception getting value of property myDynamicDataTable of base of type : demo.ajaxutils.TableFormCaused by: java.lang.NullPointerException

    at demo.ajaxutils.TableForm.tableToDisplay(TableForm.java:42)

    at demo.ajaxutils.TableForm.loadMyList(TableForm.java:66)    at 
demo.ajaxutils.TableForm.getMyDynamicDataTable(TableForm.java:58)    ... 56 moreI want the page to be displayed without trying to render the table the first time. On change of the drop down it should be rendered. Please help me how can I do this. I am using MyFaces.
Thanks.



selectOneMenu queries

2006-09-22 Thread Aneesha Govil
Hi,I have some questions about the selectOneMenu. In my work on this so far, if I set the value attribute as:
and if my selectedTable property of the form bean is set to a present value in the tableform class, the change on the UI is not reflected in the class. It always works with the same value. If I set the default value to null, it works. Why is this so? 
I am facing a problem with this behaviour. If I don't set a default value, I get a null pointer exception in some functions that are called when the page first loads. If I set it to a default value, the component is not refreshed. (I am doing this using ajax4jsf). Is there supposed to be any other way to make this work?
Thanks,Aneesha


Re: selectOneMenu and selectItem sample

2006-09-21 Thread Aneesha Govil
It works! Thanks. :)Lessons learnt:Use String instead of SelectItemDon't set a default value, use it null.Thanks for your patience.Regards,Aneesha


Re: selectOneMenu and selectItem sample

2006-09-21 Thread Aneesha Govil
On 9/21/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
On 9/21/06, Aneesha Govil <
[EMAIL PROTECTED]> wrote:
On 9/21/06, Gerald Müllan <

[EMAIL PROTECTED]> wrote:Justdeclare the value attribute of the selectOneMenu in the bean and give
it the type corresponding to the "value"type of the SelectItem. In your case is this a String.private String selectedTable = null;I have declared this as a SelectItem, any reason why that should not work?  
This works using plain string. Why did the SelectItem not work?Now navigation is not working. For some reason it always selects the same view to go to. 
Thanks a lot.I know why. The value that I select from the selectOneMenu is not getting submitted to the TableForm. So each time, it shows the same page using the default value "1". How does the value of the selected Item get populated into the bean? Why is this not working in this simple sample?
Please help.Thanks,Aneesha


Re: selectOneMenu and selectItem sample

2006-09-21 Thread Aneesha Govil
On 9/21/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:
On 9/21/06, Gerald Müllan <
[EMAIL PROTECTED]> wrote:Justdeclare the value attribute of the selectOneMenu in the bean and give
it the type corresponding to the "value"type of the SelectItem. In your case is this a String.private String selectedTable = null;I have declared this as a SelectItem, any reason why that should not work?  
This works using plain string. Why did the SelectItem not work?Now navigation is not working. For some reason it always selects the same view to go to. 
Thanks a lot.Aneesha


  1   2   >