Re: getDataModel is not called on dataTable

2006-08-21 Thread Igor Laberov

Yes, it is in request scope.
I think that the problem is not only in dataTable - all actions in
commandLinks aren't invoked in this page.

Should I put t:saveState on table or on inputFields?

2006/8/21, Mike Kienenberger <[EMAIL PROTECTED]>:

In that case, it sounds like you have your table data in a request-scoped bean.
You need to use t:saveState to preserve that data to the next request.
Or you can make your backing bean session scoped.

On 8/21/06, Igor Laberov <[EMAIL PROTECTED]> wrote:
> I had this property. I think that problem is wider, since  'actions'
> from commandLink are not invoked on this page at all.
>
>
> 2006/8/20, Mike Kienenberger <[EMAIL PROTECTED]>:
> > Have you tried marking the dataScroller as immediate="true"?   I'm not
> > sure if this gets processed correctly, but that would be the way I'd
> > expect it to work.
> >
> >
> > On 8/20/06, Igor Laberov <[EMAIL PROTECTED]> wrote:
> > > I've created page with inputText and dataTable with scroller.
> > > When inputText has no value and it declares as required="true", the
> > > scroller on the table doesn't work. On the first load the table is
> > > shown OK, but when I try to show next page, no of DataModle methods
> > > are called (no getDataModel, no getDataPage, constructor only). As a
> > > result, the table stays on the same first page.
> > >
> > > The problem is disappeared if inputText is declared as
> > > required="false", but this of course is workaround only.
> > > If I put selectOneMenu combo list, the situation is worse -
> > > required="false" doesn't help here!
> > >
> > > I must admit that no error was printed in console.
> > >  Thank you,
> > > Igor
> > >
> >
>



RE: dataTable> problem.

2006-08-21 Thread balaji.saranathan

This is one of the issues I'm trying to handle internally.

We had two browser sessions opened and update the tables and perform
delete actions.
What we found was that the selection of objects to delete by one user
actually deletes the elements added by another user. And this was
because we work on the row Index and as well, the dataTable makes calls
to the getter of the model before doing any further operation which
updates the new model with the latest value.

I'm worried concurrent user support might have to be handled by the
application developer (and I thought life would be simpler ;-) ). I have
put this issue on the back burner for a while now, will update you once
I test it.

Thanks
Balaji

-Original Message-
From: Mr Arvind Pandey [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 2:49 PM
To: users@myfaces.apache.org
Subject:  problem.

Hi,

 I am using  to display customer info. Each row
contains delete button also to delete the info a particular customer.
preserveDataModel attribute of the datatable is set to false. Everything
working properly when i am going straight.
 
  Now suppose I have 10 rows in the table and I delete the first row
, the first row gets deleted from table and database also. But when I go
back to previous page using back button of Browser and try to delete the
first row again which has been deleted already, then it deletes the next
immediate row , I mean second row.

  If anyone can help me, I will be highly obliged.
Any suggestion will be appreciated.

Thanks and regards...
Arvind Pandey



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.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


What is the best Ajax JSf framework to use?

2006-08-21 Thread Shekhar Yadav








Hi,

 

We are trying to revamp our web application with JSF based
UI. At the same time we want to incorporate cool Ajax features in the revised version. We have
following AJAX
requirements:

 


 The UI is made with three divs
 . Left div is menu, rigthtop is list of
 items and rightbottom is details of the items chosen from the righttop
 table.  We want to be able to update each div individually without having
 to refresh entire page for any selection events on any other div. 
 Ability to scroll with
 pagination controls across pages using ajax based refresh.
 Some of the screen elements are
 runtime variables which have to be refreshed every some seconds e.g.
 memory utilization of the server. We want to be only refresh specific text
 elements.


 

We are debating between Ajax4JSF or Trinidad
(adf faces).  We feel that ADF faces should be the right choice as introducing
any other layer for rendering logic would not be good idea. But we are not sure
of the stability of ADF components.  Also, if adf faces is undergoing major
change then we might have to rewrite our application.

 

Any help in deciding what framework to choose would be very
good.

 

Note: We use spring as our middle tier if that helps.

 

Thanks,

Shekhar








Re: Regarding jscook memu

2006-08-21 Thread Mr Arvind Pandey
Hi Sandip !

 I have used  in my application and
it is working fine.

   I think you have to write your navigation rule as
below: 


   *
   
   admin
   /admin.jsp
   
 

 OR


   /fromPage.jsp
   
   admin
   /admin.jsp
   
 

 Hope it will help you.
Regards ..
Arvind Pandey



--- Sandip <[EMAIL PROTECTED]> wrote:

> 
> Hi All,
> 
> I'm trying to use th JSCookMenu 
> 
> my jsp is:
> 
> 
>   
>  action="admin" /> 
>  
> 
> 
> 
> my navigation rule:
> 
> 
>  
>   admin
>   /admin.jsp
>   
>  
> 
> I want to open another page when I hit Admin
> menu.But nothing action is
> happening when I click on Admin menu.
> 
> Any suggession ?
> 
> Thnaks in advance
>  Sandip Patil
> 
> 
> 
>  
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Regarding-jscook-memu-tf2140496.html#a5907663
> Sent from the MyFaces - Users forum at Nabble.com.
> 
> 




__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: [SPAM] compatibility of jsf-spring provided by de.mindmatters with jars provided by jenia

2006-08-21 Thread Matthias Wessendorf

Right,

that is the use case for the most apps. JSF-SPRING is only interesting,
when you *really* need spring beans to have jsf scope (spring 2.0 has
that build-in too).

-Matthias

On 8/21/06, Frank Russo <[EMAIL PROTECTED]> wrote:



That's what I use. It works perfectly...


Frank Russo
Senior Developer
FX Alliance, LLC


 
 From: Cagatay Civici [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 10:44 AM
To: MyFaces Discussion
Subject: Re: [SPAM] compatibility of jsf-spring provided by de.mindmatters
with jars provided by jenia


Why not try the DelegatingVariableResolver which is already shipped built-in
with Spring. It's simple and no third party "re-inventing the wheel" library
is needed.

Cagatay


On 8/21/06, nimisha sharma <[EMAIL PROTECTED]> wrote:
>
> no takers for this one?? :(
>
>
>
> On 8/18/06, nimisha sharma <[EMAIL PROTECTED] > wrote:
> >
> >
> > I actually have no clue about using shale. Will check that out too.. cud
u give me some pointers regd that?
> > I have jsf-spring 3.0.0RC2 from sourceforge( that is whr the
spingframework site directs you to). Do you have any facility in your
application that has checkboxes in a datatable? I mean i expected jsf to
provide that kind of component.. if not, i thought myfaces wud be having
something like that... sad that i cudnt find it..
> > So i went to Jenia where i got these 2 jar files: jenia-dataTools and
jenia-commons. What they do here is assign a value to the checkboxes so that
we can have the selected data in our bean. If you want to check out these
jars, you can get them at:
> >  http://www.jenia.org/jsp/home.jsf  >> family>> data
tools..  and a working example from :
> >
http://www.javaworld.com/javaworld/jw-07-2006/jw-0731-myfaces.html
> > I did get my code working with these jars just fine. but as soon as i
put these jars with the jsf-spring code, it shoots the error given in my
previous mail which does mention something like:
> >
> >
> >
> >
> >
> >
2006-08-17T16:59:50.039-0400|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/JSF_Spring]Exception
sending context initialized event to listener instance of class
de.mindmatters.faces.spring.context.ContextLoaderListener
> >
> >
org.springframework.beans.factory.BeanDefinitionStoreException
> >
> >
> >  Do i need to modify the ContextLoaderListener somehow? Need to get this
done!!
> > Thanks a lot for showing interest in this..
> >
> > Regards,
> >
> > Nimisha.
> >
> >
> >
> >
> >
> > On 8/18/06, Yee CN <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > >
> > > Shale also provides a jsf-spring bridge. It is relatively easy to
setup. Maybe you should give it a try?
> > >
> > > Which version of jsf-spring are you using? I have been using
jsf-spring from de.mindmatters for about a year without problems. Please
report your findings as I would like to know whether there is any gotcha
hidden under the surface.
> > >
> > >
> > >
> > > Regards,
> > >
> > > Yee
> > >
> > >
> > >
> > > 

> > >
> > > From: nimisha sharma [mailto: [EMAIL PROTECTED]
> > > Sent: Friday, August 18, 2006 9:18 PM
> > > To: MyFaces Discussion
> > > Subject: [SPAM] compatibility of jsf-spring provided by de.mindmatters
with jars provided by jenia
> > > Importance: Low
> > >
> > >
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > >
> > >
> > > I just cannot figure out what is it that is conflicting between these
two jars. coz if i use the jenia files without jsf-spring jar, it works fine
and vice versa.. but i have to use both of them..
> > >
> > >
> > > has anyone worked wih jsf-spring and also displaying checkboxes that
the end user can save the values..
> > >
> > >
> > >
> > >
> > >
> > > wud really appreciate any comments and help on this.
> > >
> > >
> > >
> > >
> > >
> > > Thanks,
> > >
> > >
> > > Nimisha.
> > >
> > >
> > >
> > >
> > > On 8/17/06, nimisha sharma < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Hi,
> > >
> > >
> > >
> > >
> > >
> > > I am using jsf with spring. and in my screen, i need a datatable with
checkboxes where the user can update some data.
> > >
> > >
> > > For this, i got to know that i can use the jars provided by jenia.
Somehow, when i try to deploy my app, it gives me the following exception:
> > >
> > >
> > >
> > >
> > >
> > >
[#|2006-08-17T16:59:50.029-0400|SEVERE|sun-appserver-pe8.2|de.mindmatters.faces.spring.context.ContextLoader|_ThreadID=10;|Context
initialization failed
> > >
> > >
org.springframework.beans.factory.BeanDefinitionStoreException
> > >
> > > : IOException parsing XML document from URL
[jar:file:/C:/Sun/AppServer/domains/domain1/lib/ext/jenia4faces-dataTools_1.2.jar!/META-INF/faces-config.xml];
nested exception is java.io.FileNotFoundException :
C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system cannot find the
file specified)
> > >
> > > java.io.FileNotFoundException
> > >
> > > : C:\Sun\AppServer\bin\jenia-dataTools-config.xml (The system canno

Problem with building Tomahawk

2006-08-21 Thread Danimal

What branch/tag should I be grabbing if I want to grab the tomahawk source to
build? I checked out the source from this location:
http://svn.apache.org/repos/asf/myfaces/tomahawk/trunk. However, I am
getting a maven problem and I suspect that I didn't check out the correct
code to do a build. 

Here is the error message when I run maven on the pom.xml from the top level
directory of the code I checked out:
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/apache/myfaces/maven/myfaces-mast
er/1.0.3/myfaces-master-1.0.3.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org
/maven2)
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.myfaces.maven
ArtifactId: myfaces-master
Version: 1.0.3

Reason: Unable to download the artifact from any repository

  org.apache.myfaces.maven:myfaces-master:pom:1.0.3

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


[INFO]

[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache
.myfaces.maven:myfaces-master for project:
org.apache.myfaces.tomahawk:tomahawk-
project:pom:1.1.3

Regards,
Danimal
-- 
View this message in context: 
http://www.nabble.com/Problem-with-building-Tomahawk-tf2144173.html#a5919137
Sent from the MyFaces - Users forum at Nabble.com.



dataList with Suckerfish menus, IE problem

2006-08-21 Thread mattdeclaire

With suckerfish drop down menus,
(actually, Son of Suckerfish:
http://www.htmldog.com/ptg/archives/50.php)
dropdown menus are made using nested ul/li tags and css (plus some IE fixes
using javascript).  The problem is that IE renders an additional blank line
for every  item.  The fix is to write markup without any whitespace
between the  and it's previous  tag:


Dude
Sweet
Dude!
Sweet!

Well, dataList doesn't output like that.  It puts every iterative line on
it's own.  So I had to hack in some s and s on my own:













This is obviously a huge bandaid.  Is there a way to grab and modify the way
the dataList is rendered to the page?
-- 
View this message in context: 
http://www.nabble.com/dataList-with-Suckerfish-menus%2C-IE-problem-tf2143372.html#a5916690
Sent from the MyFaces - Users forum at Nabble.com.



Reduced MyFaces generated names in source

2006-08-21 Thread mattdeclaire

Is there a way to have JSF produce shorter generated strings for ids, classes
and such?  I shrank my homepage source size by 25% just by making a couple
quick search/replaces.
-- 
View this message in context: 
http://www.nabble.com/Reduced-MyFaces-generated-names-in-source-tf2143231.html#a5916375
Sent from the MyFaces - Users forum at Nabble.com.



TabbedPane generated script placement

2006-08-21 Thread mattdeclaire

Is there a way to control where tabbedPane's automatically generated css and
javascript links are placed in the html output?  I want to keep my 
tag at the top of the page, but tabbedPane's injection is happening before
it.
-- 
View this message in context: 
http://www.nabble.com/TabbedPane-generated-script-placement-tf2143151.html#a5916097
Sent from the MyFaces - Users forum at Nabble.com.



Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-21 Thread Rogerio Pereira
Updated, if somebody is interested.


Re: Newbie Question

2006-08-21 Thread Kevin Galligan
Nice catch.  There's no "new ArrayList()".Mark, try finding the log with a NullPointerException in it related to this.  In the future, look in that log to find the root exception.
On 8/21/06, Appachi, Kannan <[EMAIL PROTECTED]> wrote:





Is it because countryList 
is missing object initialization.I did not find a place where its 
initialized..
 
 


From: Kevin Galligan 
[mailto:[EMAIL PROTECTED]] Sent: Monday, August 21, 2006 3:27 
PMTo: MyFaces DiscussionSubject: Re: Newbie 
Question
If you dig around in the logs, there's generally the root exception 
that caused the issue.  Try looking around for that.  Otherwise we're 
flying blind.I'd also suggest posting what '#{country.selectedCountry}' 
points to.  Its not in the class.  If this doesn't exist, its possible 
that JSF is getting upset because it wants to convert the type of the 
SelectItem, but doesn't really have a target type, so it fails or whatever. 
Regardless you need that value available.
On 8/21/06, tukutela 
<[EMAIL PROTECTED]> 
wrote: 
Sorry 
  all, the bean.list was mean to be an example, typing too 
  quickly.Here's the error from console. 21-Aug-2006 3:16:04 PM 
  org.apache.catalina.core.StandardWrapperValve invokeSEVERE: 
  Servlet.service() for servlet Faces Servlet threw 
  exceptionjavax.faces.FacesException: Cannot get value for 
  _expression_'#{country.countryList 
  }'atorg.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)atorg.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java
 
  :234)atorg.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)at 
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
  (ApplicationFilterChain.java:252)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
 
  :213)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)atorg.apache.catalina.core.StandardEngineValve.invoke
 
  (StandardEngineValve.java:107)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
  org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)atorg.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
atorg.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at 
  java.lang.Thread.run(Thread.java:595)Kevin Galligan-2 
  wrote:>> Where's the accessor for 
  'country.selectedCountry'?>> Also, please post the actual 
  error.  After running the thing, look in > tomcat's 'logs' 
  directory, probably the localhost.[date].log file.>> On 8/21/06, 
  tukutela <[EMAIL PROTECTED]> 
  wrote:>> Hi all,  
  I'm just starting out with Java/JSF having come from a .net c#>> 
  background.>> I'm having some trouble in starting out with JSF and I 
  was hoping that>> someone can point me in the right direction, this 
  error is driving me >> nuts!!! I'm using 
  MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces>> 
  1.1.1.>> I'm trying to fill a selectOneMenu list using a backend 
  bean and are>> getting >> an error that says that the 
  server cannot get value from _expression_>> 
  #{bean.list} Here's the JSP code>> 
  >> 
  value="#{country.selectedCountry}">>> 
  >>  Here's the 
  Bean package com.blah.mgr; 
  public class Country 
  { 
  private ArrayList countryList; //variable array list 
  >> to display>> set to 
  countries. 
  // Constructor, initializes class variables, sets up connection>> 
  with>> 
  database.>> public 
  Country() >> 
  {>> 
  buildList();>> 
  } // 
  Returns the arrayList, ensure that the constructor reads the>> 
  database>> first. 
  >> public ArrayList 
  getCountryList()>> 
  {>> 
  return 
  this.countryList;>> 
  } // 
  Sets the country List (not really required but in here anyway. 
  >> public void 
  setCountryList(ArrayList 
  CountryList)>> 
  {>> 
  this.countryList = 
  CountryList;>> 
  } 
  private void buildList() 
  >>  

RE: Newbie Question

2006-08-21 Thread Appachi, Kannan



Is it because countryList 
is missing object initialization.I did not find a place where its 
initialized..
 
 


From: Kevin Galligan 
[mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 3:27 
PMTo: MyFaces DiscussionSubject: Re: Newbie 
Question
If you dig around in the logs, there's generally the root exception 
that caused the issue.  Try looking around for that.  Otherwise we're 
flying blind.I'd also suggest posting what '#{country.selectedCountry}' 
points to.  Its not in the class.  If this doesn't exist, its possible 
that JSF is getting upset because it wants to convert the type of the 
SelectItem, but doesn't really have a target type, so it fails or whatever. 
Regardless you need that value available.
On 8/21/06, tukutela 
<[EMAIL PROTECTED]> 
wrote: 
Sorry 
  all, the bean.list was mean to be an example, typing too 
  quickly.Here's the error from console. 21-Aug-2006 3:16:04 PM 
  org.apache.catalina.core.StandardWrapperValve invokeSEVERE: 
  Servlet.service() for servlet Faces Servlet threw 
  exceptionjavax.faces.FacesException: Cannot get value for 
  _expression_'#{country.countryList 
  }'atorg.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)atorg.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java 
  :234)atorg.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)at 
  javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter 
  (ApplicationFilterChain.java:252)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java 
  :213)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)at 
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)atorg.apache.catalina.core.StandardEngineValve.invoke 
  (StandardEngineValve.java:107)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)at 
  org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)atorg.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)atorg.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at 
  java.lang.Thread.run(Thread.java:595)Kevin Galligan-2 
  wrote:>> Where's the accessor for 
  'country.selectedCountry'?>> Also, please post the actual 
  error.  After running the thing, look in > tomcat's 'logs' 
  directory, probably the localhost.[date].log file.>> On 8/21/06, 
  tukutela <[EMAIL PROTECTED]> 
  wrote:>> Hi all,  
  I'm just starting out with Java/JSF having come from a .net c#>> 
  background.>> I'm having some trouble in starting out with JSF and I 
  was hoping that>> someone can point me in the right direction, this 
  error is driving me >> nuts!!! I'm using 
  MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces>> 
  1.1.1.>> I'm trying to fill a selectOneMenu list using a backend 
  bean and are>> getting >> an error that says that the 
  server cannot get value from _expression_>> 
  #{bean.list} Here's the JSP code>> 
  >> 
  value="#{country.selectedCountry}">>> 
  >>  Here's the 
  Bean package com.blah.mgr; 
  public class Country 
  { 
  private ArrayList countryList; //variable array list 
  >> to display>> set to 
  countries. 
  // Constructor, initializes class variables, sets up connection>> 
  with>> 
  database.>> public 
  Country() >> 
  {>> 
  buildList();>> 
  } // 
  Returns the arrayList, ensure that the constructor reads the>> 
  database>> first. 
  >> public ArrayList 
  getCountryList()>> 
  {>> 
  return 
  this.countryList;>> 
  } // 
  Sets the country List (not really required but in here anyway. 
  >> public void 
  setCountryList(ArrayList 
  CountryList)>> 
  {>> 
  this.countryList = 
  CountryList;>> 
  } 
  private void buildList() 
  >> 
  {>> 
  countryList.add(new SelectItem("Canada", 
  "Canada"));>> 
  countryList.add(new SelectItem("US", 
  "US"));>> } 
  >> } Here's the link in 
  faces-config.xml:>>   
  >> 
  

Re: Newbie Question

2006-08-21 Thread Kevin Galligan
If you dig around in the logs, there's generally the root exception that caused the issue.  Try looking around for that.  Otherwise we're flying blind.I'd also suggest posting what '#{country.selectedCountry}' points to.  Its not in the class.  If this doesn't exist, its possible that JSF is getting upset because it wants to convert the type of the SelectItem, but doesn't really have a target type, so it fails or whatever.
Regardless you need that value available.On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:
Sorry all, the bean.list was mean to be an example, typing too quickly.Here's the error from console.
21-Aug-2006 3:16:04 PM org.apache.catalina.core.StandardWrapperValve invokeSEVERE: Servlet.service() for servlet Faces Servlet threw exceptionjavax.faces.FacesException: Cannot get value for _expression_'#{country.countryList
}'atorg.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)atorg.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java
:234)atorg.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)atorg.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)atorg.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)atorg.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java
:213)atorg.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)atorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)atorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)atorg.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:107)atorg.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)atorg.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)atorg.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
atorg.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)atorg.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)at 
java.lang.Thread.run(Thread.java:595)Kevin Galligan-2 wrote:>> Where's the accessor for 'country.selectedCountry'?>> Also, please post the actual error.  After running the thing, look in
> tomcat's 'logs' directory, probably the localhost.[date].log file.>> On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:>> Hi all,
 I'm just starting out with Java/JSF having come from a .net c#>> background.>> I'm having some trouble in starting out with JSF and I was hoping that>> someone can point me in the right direction, this error is driving me
>> nuts!!! I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces>> 1.1.1.>> I'm trying to fill a selectOneMenu list using a backend bean and are>> getting
>> an error that says that the server cannot get value from _expression_>> #{bean.list} Here's the JSP code>> >> value="#{country.selectedCountry}">>> >> 
 Here's the Bean package com.blah.mgr; public class Country { private ArrayList countryList; //variable array list
>> to display>> set to countries. // Constructor, initializes class variables, sets up connection>> with>> database.>> public Country()
>> {>> buildList();>> } // Returns the arrayList, ensure that the constructor reads the>> database>> first.
>> public ArrayList getCountryList()>> {>> return this.countryList;>> } // Sets the country List (not really required but in here anyway.
>> public void setCountryList(ArrayList CountryList)>> {>> this.countryList = CountryList;>> } private void buildList()
>> {>> countryList.add(new SelectItem("Canada", "Canada"));>> countryList.add(new SelectItem("US", "US"));>> }
>> } Here's the link in faces-config.xml:>>   >> country>> 
com.blah.mgr.Country>> session>>    I'm sure the solution is simple but I've found it difficult to get good
>> documentation, might be where I'm looking (or not looking) but I'm still>> getting lost. Any help is greatly appreciated, thanks in advance.>> -->> View this message in context:
>> http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338>> Sent from the MyFaces - Users forum at 
Nabble.com.>>--View this message in context: http://www.na

Re: Newbie Question

2006-08-21 Thread tukutela

Sorry about that, here is the error listing.

21-Aug-2006 3:16:04 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Cannot get value for expression
'#{country.countryList}'
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)



Andrew Robinson-5 wrote:
> 
> I don't see in your JSP "#{bean.list}", according to the error, that
> expression should be somewhere in the page.
> 
> On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>>
>> I'm just starting out with Java/JSF having come from a .net c#
>> background.
>> I'm having some trouble in starting out with JSF and I was hoping that
>> someone can point me in the right direction, this error is driving me
>> nuts!!!
>>
>> I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces
>> 1.1.1.
>> I'm trying to fill a selectOneMenu list using a backend bean and are
>> getting
>> an error that says that the server cannot get value from expression
>> #{bean.list}
>>
>> Here's the JSP code
>> > value="#{country.selectedCountry}">
>> > value="#{country.countryList}" />
>> 
>>
>> Here's the Bean
>>
>> package com.blah.mgr;
>>
>> public class Country {
>>
>> private ArrayList countryList; //variable array list
>> to display
>> set to countries.
>>
>> // Constructor, initializes class variables, sets up connection
>> with
>> database.
>> public Country()
>> {
>> buildList();
>> }
>>
>> // Returns the arrayList, ensure that the constructor reads the
>> database
>> first.
>> public ArrayList getCountryList()
>> {
>> return this.countryList;
>> }
>>
>> // Sets the country List (not really required but in here anyway.
>> public void setCountryList(ArrayList CountryList)
>> {
>> this.countryList = CountryList;
>> }
>>
>> private void buildList()
>> {
>> countryList.add(new SelectItem("Canada", "Canada"));
>> countryList.add(new SelectItem("US", "US"));
>> }
>> }
>>
>> Here's the link in faces-config.xml:
>>   
>> country
>> com.blah.mgr.Country
>> session
>>   
>>
>> I'm sure the solution is simple but I've found it difficult to get good
>> documentation, might be where I'm looking (or not looking) but I'm still
>> getting lost. Any help is greatly appreciated, thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question-tf2141924.html#a5913161
Sent from the MyFaces - Users forum at Nabble.com.



Re: Newbie Question

2006-08-21 Thread tukutela

Sorry all, the bean.list was mean to be an example, typing too quickly. 

Here's the error from console. 
21-Aug-2006 3:16:04 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Cannot get value for expression
'#{country.countryList}'
at
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)


Kevin Galligan-2 wrote:
> 
> Where's the accessor for 'country.selectedCountry'?
> 
> Also, please post the actual error.  After running the thing, look in
> tomcat's 'logs' directory, probably the localhost.[date].log file.
> 
> On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all,
>>
>> I'm just starting out with Java/JSF having come from a .net c#
>> background.
>> I'm having some trouble in starting out with JSF and I was hoping that
>> someone can point me in the right direction, this error is driving me
>> nuts!!!
>>
>> I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces
>> 1.1.1.
>> I'm trying to fill a selectOneMenu list using a backend bean and are
>> getting
>> an error that says that the server cannot get value from expression
>> #{bean.list}
>>
>> Here's the JSP code
>> > value="#{country.selectedCountry}">
>> 
>> 
>>
>> Here's the Bean
>>
>> package com.blah.mgr;
>>
>> public class Country {
>>
>> private ArrayList countryList; //variable array list
>> to display
>> set to countries.
>>
>> // Constructor, initializes class variables, sets up connection
>> with
>> database.
>> public Country()
>> {
>> buildList();
>> }
>>
>> // Returns the arrayList, ensure that the constructor reads the
>> database
>> first.
>> public ArrayList getCountryList()
>> {
>> return this.countryList;
>> }
>>
>> // Sets the country List (not really required but in here anyway.
>> public void setCountryList(ArrayList CountryList)
>> {
>> this.countryList = CountryList;
>> }
>>
>> private void buildList()
>> {
>> countryList.add(new SelectItem("Canada", "Canada"));
>> countryList.add(new SelectItem("US", "US"));
>> }
>> }
>>
>> Here's the link in faces-config.xml:
>>   
>> country
>> com.blah.mgr.Country
>> session
>>   
>>
>> I'm sure the solution is simple but I've found it difficult to get good
>> documentation, might be where I'm looking (or not looking) but I'm still
>> getting lost. Any help is greatly appreciated, thanks in advance.
>> --
>> View this message in context:
>> http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Newbie-Question-tf2141924.html#a5913047
Sent from the MyFaces - Users forum at Nabble.com.



Re: Newbie Question

2006-08-21 Thread Kevin Galligan
Where's the accessor for 'country.selectedCountry'?Also, please post the actual error.  After running the thing, look in tomcat's 'logs' directory, probably the localhost.[date].log file.
On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:
Hi all,I'm just starting out with Java/JSF having come from a .net c# background.I'm having some trouble in starting out with JSF and I was hoping thatsomeone can point me in the right direction, this error is driving me
nuts!!!I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces 1.1.1.I'm trying to fill a selectOneMenu list using a backend bean and are gettingan error that says that the server cannot get value from _expression_
#{bean.list}Here's the JSP codevalue="#{country.selectedCountry}">Here's the Beanpackage com.blah.mgr;public class Country {private ArrayList countryList; //variable array list to display
set to countries.// Constructor, initializes class variables, sets up connection withdatabase.public Country(){buildList();}// Returns the arrayList, ensure that the constructor reads the database
first.public ArrayList getCountryList(){return this.countryList;}// Sets the country List (not really required but in here anyway.public void setCountryList(ArrayList CountryList)
{this.countryList = CountryList;}private void buildList(){countryList.add(new SelectItem("Canada", "Canada"));
countryList.add(new SelectItem("US", "US"));}}Here's the link in faces-config.xml:  country
com.blah.mgr.Countrysession  I'm sure the solution is simple but I've found it difficult to get good
documentation, might be where I'm looking (or not looking) but I'm stillgetting lost. Any help is greatly appreciated, thanks in advance.--View this message in context: 
http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338Sent from the MyFaces - Users forum at Nabble.com.


Re: Newbie Question

2006-08-21 Thread Andrew Robinson

I don't see in your JSP "#{bean.list}", according to the error, that
expression should be somewhere in the page.

On 8/21/06, tukutela <[EMAIL PROTECTED]> wrote:


Hi all,

I'm just starting out with Java/JSF having come from a .net c# background.
I'm having some trouble in starting out with JSF and I was hoping that
someone can point me in the right direction, this error is driving me
nuts!!!

I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces 1.1.1.
I'm trying to fill a selectOneMenu list using a backend bean and are getting
an error that says that the server cannot get value from expression
#{bean.list}

Here's the JSP code




Here's the Bean

package com.blah.mgr;

public class Country {

private ArrayList countryList; //variable array list to 
display
set to countries.

// Constructor, initializes class variables, sets up connection with
database.
public Country()
{
buildList();
}

// Returns the arrayList, ensure that the constructor reads the database
first.
public ArrayList getCountryList()
{
return this.countryList;
}

// Sets the country List (not really required but in here anyway.
public void setCountryList(ArrayList CountryList)
{
this.countryList = CountryList;
}

private void buildList()
{
countryList.add(new SelectItem("Canada", "Canada"));
countryList.add(new SelectItem("US", "US"));
}
}

Here's the link in faces-config.xml:
  
country
com.blah.mgr.Country
session
  

I'm sure the solution is simple but I've found it difficult to get good
documentation, might be where I'm looking (or not looking) but I'm still
getting lost. Any help is greatly appreciated, thanks in advance.
--
View this message in context: 
http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338
Sent from the MyFaces - Users forum at Nabble.com.




Newbie Question

2006-08-21 Thread tukutela

Hi all,

I'm just starting out with Java/JSF having come from a .net c# background.
I'm having some trouble in starting out with JSF and I was hoping that
someone can point me in the right direction, this error is driving me
nuts!!!

I'm using MyEclipse and the server is Apache2, Tomcat5.5, and MyFaces 1.1.1.
I'm trying to fill a selectOneMenu list using a backend bean and are getting
an error that says that the server cannot get value from expression
#{bean.list}

Here's the JSP code




Here's the Bean

package com.blah.mgr;

public class Country {

private ArrayList countryList; //variable array list to 
display
set to countries.

// Constructor, initializes class variables, sets up connection with
database.
public Country()
{
buildList();
}

// Returns the arrayList, ensure that the constructor reads the database
first.
public ArrayList getCountryList()
{
return this.countryList;
}

// Sets the country List (not really required but in here anyway.
public void setCountryList(ArrayList CountryList)
{
this.countryList = CountryList;
}

private void buildList()
{
countryList.add(new SelectItem("Canada", "Canada"));
countryList.add(new SelectItem("US", "US"));
}
}

Here's the link in faces-config.xml:
  
country
com.blah.mgr.Country
session
  

I'm sure the solution is simple but I've found it difficult to get good
documentation, might be where I'm looking (or not looking) but I'm still
getting lost. Any help is greatly appreciated, thanks in advance. 
-- 
View this message in context: 
http://www.nabble.com/Newbie-Question-tf2141924.html#a5912338
Sent from the MyFaces - Users forum at Nabble.com.



Re: a way to pass parameters in el expressions

2006-08-21 Thread James Ratcliff
Title: Re: a way to pass parameters in el expressions






Mike,
  I am trying to call a function like below (to a java bean class)
and need to be able to pass a paramater into the function somehow.

[code]
 
  
    
    
THIS NEXT LINE
     
  
  
[/code]


>Hey Lance,

>This would be a great wiki topic so it doesn't get lost.

>It's probably worth noting that if you're using facelets, you can
>simply create a real changeToUpperCase() user-defined el function.







Re: Tomahawk DataList

2006-08-21 Thread Mike Kienenberger

As far as I know, t:DataList doesn't generate a span unless you
provide an id or style.
I don't see one in my own program, but It's possible I've missed it
due to the huge amount of output being generated.   Unfortunately, the
examples at http://www.irian.at/myfaces/home.jsf are down right now,
so I can't double-check there.

Try creating a page containing only a dataList and one element inside
it and see what html is generated.   Maybe this is a jsp caching
problem and you're picking up the value because the previous code on
your page had an id specified.

If dataList does generate a span on simple mode when there's no
requirement to do so, I'd consider it a bug.  It should be easy to
track down if that's the case.


On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:


Darnit! Before you mentioned not having ids or styles in the datalist as
attributes, I had id="test1". After your post, I removed that code as I have
it below. This is what it really rendered:



Tooth Fairy
Boogie Man
Big Foot
...
...
...


Here was the code I left out: style="border:thin black solid;width:140px;".
Plain ole CSS in there that shouldn't screw up and render a . Besides,
this is in the  tag and is rendered before the datalist.

Regards,
Danimal


Mike Kienenberger wrote:
>
> You don't show any page code with an id of "test1".   I'd look in your
> "irrelevent stuff" and see what's being assigned an id of test1.
>
>
> On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:
>> Here is the code I am using and the resulting markup. I am using JSF 1.2
>> impl
>> in glassfish and this might be the problem, but I think it is the render
>> class for the datalist. I have placed elipses(...) for irrelevent stuff.
>>
>> 
>> > style="...">
>> > value="#{profile.leaguePlayers}"
>> layout="simple">
>> 
>> 
>> 
>> 
>>
>> The markup is this:
>> 
>> 
>> 
>> Tooth Fairy
>> Boogie Man
>> Big Foot
>> ...
>> ...
>> ...
>> 
>
>

--
View this message in context: 
http://www.nabble.com/Tomahawk-DataList-tf2138090.html#a5911247
Sent from the MyFaces - Users forum at Nabble.com.




Re: Tomahawk DataList

2006-08-21 Thread Danimal

Darnit! Before you mentioned not having ids or styles in the datalist as
attributes, I had id="test1". After your post, I removed that code as I have
it below. This is what it really rendered:



Tooth Fairy
Boogie Man
Big Foot
...
...
...


Here was the code I left out: style="border:thin black solid;width:140px;".
Plain ole CSS in there that shouldn't screw up and render a . Besides,
this is in the  tag and is rendered before the datalist.

Regards,
Danimal


Mike Kienenberger wrote:
> 
> You don't show any page code with an id of "test1".   I'd look in your
> "irrelevent stuff" and see what's being assigned an id of test1.
> 
> 
> On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:
>> Here is the code I am using and the resulting markup. I am using JSF 1.2
>> impl
>> in glassfish and this might be the problem, but I think it is the render
>> class for the datalist. I have placed elipses(...) for irrelevent stuff.
>>
>> 
>> > style="...">
>> > value="#{profile.leaguePlayers}"
>> layout="simple">
>> 
>> 
>> 
>> 
>>
>> The markup is this:
>> 
>> 
>> 
>> Tooth Fairy
>> Boogie Man
>> Big Foot
>> ...
>> ...
>> ...
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomahawk-DataList-tf2138090.html#a5911247
Sent from the MyFaces - Users forum at Nabble.com.



Re: Tomahawk DataList

2006-08-21 Thread Mike Kienenberger

You don't show any page code with an id of "test1".   I'd look in your
"irrelevent stuff" and see what's being assigned an id of test1.


On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:

Here is the code I am using and the resulting markup. I am using JSF 1.2 impl
in glassfish and this might be the problem, but I think it is the render
class for the datalist. I have placed elipses(...) for irrelevent stuff.









The markup is this:



Tooth Fairy
Boogie Man
Big Foot
...
...
...



Re: Tomahawk DataList

2006-08-21 Thread Mike Kienenberger

I would ask this question in a separate thread.   The folks who might
know the answer may not be reading a post about how to use t:dataList
:-)


On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:

I have a question about html rendering kits and W3C specifications. The html
rendering kits I have looked at don't mention the specification of the W3C
they are rendering to and this may be problematic in the future. I imagine
the implementations we see today render 4.01, but what keeps the components
synchronized with the spec when the spec hypothethically evolves. This seems
like it will create lots of maintenance work, but it would be helpful in the
JSF rendering kits to keep track of what level of spec the kit is rendering
for. For instance, if I am doing in house development, I may archive a
browser at the 4.01 spec and then I can keep using an older html rendering
kit as I can control the environment. But when the 5.0 spec comes out, there
will probably be fundamental changes and browsers will accommodate this.
Browsers may not remain interpretting 4.01 and instead only render 5.0. I
can see this as problematic, especially if a developer is using a 4.01
rendering kit with browsers that support 5.0 specification. Of course, this
argument is completely hypothetical as I have no knowledge of a W3C 5.0 HTML
specification.

Related to the above paragraph, if I was to make modifications to the
rendering portion of the datalist, I imagine it should be to 4.01
specifications. Is this a correct presumption on my part? This will be my
first time working on a component, so hopefully this doesn't turn into a
case of biting off more than I can chew.

Thank you for all your help and attentiveness,
Danimal


Mike Kienenberger wrote:
>
> On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:
>> Well, I tried the simple datalist and the problem is that it renders a
>> span
>> tag around the output.
>
> Does it?   What's your page code look like?   Most "non-rendering"
> components won't render anything unless they're forced to by you
> putting in a style class or an explicit id value.
>
>
>> This is unnecessary and it breaks what I am trying to
>> do. Is there a way to do away with the span tag? I am thinking about just
>> downloading the source and making the slight modification to make the
>> datalist more robust. However, I am leary of taking this route as it is
>> going to require extra effort on my part.
>
> If you fix a bug or improve something, contribute a patch of the
> change and we'll add it to MyFaces.
>
>
>> PS: I apologize to the list for responding to this thread earlier with
>> just
>> a thank you. I just read the etiquette tips above in red.
>
> Not sure what tips those are, but I'd disagree with them -- it's
> certainly helpful to response to a thread stating that a solution
> worked so the next person reading the thread knows there's a solution.
>
>

--
View this message in context: 
http://www.nabble.com/Tomahawk-DataList-tf2138090.html#a5910568
Sent from the MyFaces - Users forum at Nabble.com.




Re: Tomahawk DataList

2006-08-21 Thread Danimal

Here is the code I am using and the resulting markup. I am using JSF 1.2 impl
in glassfish and this might be the problem, but I think it is the render
class for the datalist. I have placed elipses(...) for irrelevent stuff.









The markup is this:



Tooth Fairy
Boogie Man
Big Foot
...
...
...


By the way, I want to apologize for making an tasteless remark about having
to spend extra effort on fixing the implementation. I understand that some,
if not most, of the work is done by volunteers and I shouldn't exclude
myself from this pool of people. I appreciate all open source that I can
leverage to get my work done and it probably is about time I contribute a
little.

I have a question about html rendering kits and W3C specifications. The html
rendering kits I have looked at don't mention the specification of the W3C
they are rendering to and this may be problematic in the future. I imagine
the implementations we see today render 4.01, but what keeps the components
synchronized with the spec when the spec hypothethically evolves. This seems
like it will create lots of maintenance work, but it would be helpful in the
JSF rendering kits to keep track of what level of spec the kit is rendering
for. For instance, if I am doing in house development, I may archive a
browser at the 4.01 spec and then I can keep using an older html rendering
kit as I can control the environment. But when the 5.0 spec comes out, there
will probably be fundamental changes and browsers will accommodate this.
Browsers may not remain interpretting 4.01 and instead only render 5.0. I
can see this as problematic, especially if a developer is using a 4.01
rendering kit with browsers that support 5.0 specification. Of course, this
argument is completely hypothetical as I have no knowledge of a W3C 5.0 HTML
specification.

Related to the above paragraph, if I was to make modifications to the
rendering portion of the datalist, I imagine it should be to 4.01
specifications. Is this a correct presumption on my part? This will be my
first time working on a component, so hopefully this doesn't turn into a
case of biting off more than I can chew. 

Thank you for all your help and attentiveness,
Danimal


Mike Kienenberger wrote:
> 
> On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:
>> Well, I tried the simple datalist and the problem is that it renders a
>> span
>> tag around the output.
> 
> Does it?   What's your page code look like?   Most "non-rendering"
> components won't render anything unless they're forced to by you
> putting in a style class or an explicit id value.
> 
> 
>> This is unnecessary and it breaks what I am trying to
>> do. Is there a way to do away with the span tag? I am thinking about just
>> downloading the source and making the slight modification to make the
>> datalist more robust. However, I am leary of taking this route as it is
>> going to require extra effort on my part.
> 
> If you fix a bug or improve something, contribute a patch of the
> change and we'll add it to MyFaces.
> 
> 
>> PS: I apologize to the list for responding to this thread earlier with
>> just
>> a thank you. I just read the etiquette tips above in red.
> 
> Not sure what tips those are, but I'd disagree with them -- it's
> certainly helpful to response to a thread stating that a solution
> worked so the next person reading the thread knows there's a solution.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomahawk-DataList-tf2138090.html#a5910568
Sent from the MyFaces - Users forum at Nabble.com.



Re: FCKfaces: FCKEditor component for JSF

2006-08-21 Thread Dave Brondsema
Lking wrote:
>> I have put together a component for better html/richtext editing see
>> http://www.kyub.com/blojsom/blog/default/Java/2006/03/10/FCKfaces-FCKEditor-component-for-JSF.html
> 
> The link is not working anymore. Is there any other online?
> thanks
> 
> 

I have a local copy that I downloaded to try to get it to work with
facelets.  I'm not using it, but could post it somewhere or email it if
anyone is interested.

-- 
Dave Brondsema
Software Developer
Cornerstone University



signature.asc
Description: OpenPGP digital signature


RE: tree 2 -- lazy loading.

2006-08-21 Thread Jiang, Jane \(NIH/NCI\) [C]



Hi 
David,
 
I am 
trying to follow the example on the wiki page for lazy loading.  I got a 
compile error with the code snippets included in the second example.  

 
The 
problem is in TreeBacker-> selectedNode()
 
   public void selectedNode() 
{  this.selectedNode = 
this.getTreeModel().getNode().getDescription();   
}
The 
error is method getNode() not find in class TreeModelBase.  Will you 
please share how you got over this issue?
 
Many 
thanks for your help,
 
Jane
 

  -Original Message-From: David Chandler 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, July 18, 2006 9:43 
  AMTo: MyFaces DiscussionSubject: Re: tree 2 -- lazy 
  loading.
  Also see the wiki. The technique I'm currently using from there is to 
  override the getChildren() method of your TreeNode implementation. Works 
  perfectly!
   
  http://wiki.apache.org/myfaces/Tree2
   
  /dmc 
  On 7/17/06, Andrew 
  Robinson <[EMAIL PROTECTED]> 
  wrote: 
  Check 
the archives. You will see my post about a lazy-loading AJAXtree for 
jsf-compOn 7/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:> Quick question:>> Is the MyFaces Tree2 lazy 
loadable?  Any examples anywhere? >> Thanks in 
advance,>> 
--Brad.>


Re: problem.

2006-08-21 Thread Kevin Galligan
I struggled with this issue when I first started with JSF.  I think its one of those things that doesn't get anywhere near enough discussion considering its importance.Essentially, just using the datatable indexes its entries by location in the list.  So, as you've said, it'll just delete the "first row".  There are actually worse situations.  If you get the page, and while you're there, somebody ELSE deletes that first row, and then you click it, it'll just delete whatever row comes back first.  No back button involved.
Solutions.  1 - JSF expects the rows of data to remain the same while you're looking at the page, so you could keep the table in the session.  This is sort of the suggested standard.  Its a bad plan.  Back button still has the same problem.
2 - Use 'preserveDataModel'.  I like this for some things.  It keeps the data for the table in the view state, so when you click the entry it should pick up the correct one when you get back.  I plan on doing some investigation today with the view storage on the server.  I know that storing the view on the client always results in that data being stored correctly, but storing on the client has bad performance.  I'm concerned that if the view is stored on the server that each time you go to the page the stored view gets wiped out.  So for example, lets say you have a page that lists a folder structure.  It shows the current folders, then you can drill down to sub-folders.
a - Go to FolderPage.jsfb - Get list of root entries.  Click on 'home'.c - This takes you to the sub-folder page of 'home'.d - Click back and select 'usr'Not sure what would happen here if the state was stored on the server.  Perhaps those better versed in the state storage can help?  If one view is kept per-page per-session, then when we get to the 'home' directory, the table that is put into the view state with 'preserveDataModel' will be the table for the 'home' directory.  When back is clicked, and 'usr' is selected, if there is only one view state stored, we would actually get the table for the 'home' directory when we're expecting the root dir.  Again, I'm going to try this out today.
However...3 - There's also 'forceIdIndexFormula'.  This lets you specify what data element is the 'id' value for that row.  This should work.I plan on using a combination of 2 and 3 in my apps.  The problem I have with 2 is that I use some hibernate objects directly, and I'm concerned about serialization. This is another topic that I need to research more myself.
Hope that helps.-KevinOn 8/21/06, Mr Arvind Pandey <[EMAIL PROTECTED]> wrote:
Hi, I am using  to display customerinfo. Each row contains delete button also to delete
the info a particular customer. preserveDataModelattribute of the datatable is set to false. Everythingworking properly when i am going straight.  Now suppose I have 10 rows in the table and Idelete the first row , the first row gets deleted from
table and database also. But when I go back toprevious page using back button of Browser and try todelete the first row again which has been deletedalready, then it deletes the next immediate row , Imean second row.
  If anyone can help me, I will be highly obliged.Any suggestion will be appreciated.Thanks and regards...Arvind Pandey__
Yahoo! India Answers: Share what you know. Learn something newhttp://in.answers.yahoo.com/


Re: getDataModel is not called on dataTable

2006-08-21 Thread Mike Kienenberger

In that case, it sounds like you have your table data in a request-scoped bean.
You need to use t:saveState to preserve that data to the next request.
Or you can make your backing bean session scoped.

On 8/21/06, Igor Laberov <[EMAIL PROTECTED]> wrote:

I had this property. I think that problem is wider, since  'actions'
from commandLink are not invoked on this page at all.


2006/8/20, Mike Kienenberger <[EMAIL PROTECTED]>:
> Have you tried marking the dataScroller as immediate="true"?   I'm not
> sure if this gets processed correctly, but that would be the way I'd
> expect it to work.
>
>
> On 8/20/06, Igor Laberov <[EMAIL PROTECTED]> wrote:
> > I've created page with inputText and dataTable with scroller.
> > When inputText has no value and it declares as required="true", the
> > scroller on the table doesn't work. On the first load the table is
> > shown OK, but when I try to show next page, no of DataModle methods
> > are called (no getDataModel, no getDataPage, constructor only). As a
> > result, the table stays on the same first page.
> >
> > The problem is disappeared if inputText is declared as
> > required="false", but this of course is workaround only.
> > If I put selectOneMenu combo list, the situation is worse -
> > required="false" doesn't help here!
> >
> > I must admit that no error was printed in console.
> >  Thank you,
> > Igor
> >
>



Re: Tomahawk DataList

2006-08-21 Thread Mike Kienenberger

On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:

Well, I tried the simple datalist and the problem is that it renders a span
tag around the output.


Does it?   What's your page code look like?   Most "non-rendering"
components won't render anything unless they're forced to by you
putting in a style class or an explicit id value.



This is unnecessary and it breaks what I am trying to
do. Is there a way to do away with the span tag? I am thinking about just
downloading the source and making the slight modification to make the
datalist more robust. However, I am leary of taking this route as it is
going to require extra effort on my part.


If you fix a bug or improve something, contribute a patch of the
change and we'll add it to MyFaces.



PS: I apologize to the list for responding to this thread earlier with just
a thank you. I just read the etiquette tips above in red.


Not sure what tips those are, but I'd disagree with them -- it's
certainly helpful to response to a thread stating that a solution
worked so the next person reading the thread knows there's a solution.


Regarding jscook memu

2006-08-21 Thread Sandip

Hi All,

I'm trying to use th JSCookMenu 

my jsp is:


  
 
 



my navigation rule:


 
  admin
  /admin.jsp
  
 

I want to open another page when I hit Admin menu.But nothing action is
happening when I click on Admin menu.

Any suggession ?

Thnaks in advance
 Sandip Patil



 

-- 
View this message in context: 
http://www.nabble.com/Regarding-jscook-memu-tf2140496.html#a5907663
Sent from the MyFaces - Users forum at Nabble.com.



Re: svn build error

2006-08-21 Thread Mike Kienenberger

You need to delete the org/apache/shale/ shale 1.0.3-snapshot and refetch it.
There's also an /org/apache/struts/shale/  shale 1.0.2 version which
you should leave alone.


On 8/21/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:

Hi guys! Somebody got this error while building from svn?

C:\Rogerio\projetos\java\myfaces\tomahawk\core\src\test\java\org\apache\myfaces\
custom\tree2\AbstractTreeTestCase.java:[79,19] setUp() in
org.apache.myfaces.cus
tom.tree2.AbstractTreeTestCase cannot override setUp() in
org.apache.shale.test.
base.AbstractJsfTestCase; attempting to assign weaker access privileges; was
pub
lic

--
Yours truly (Atenciosamente),

Rogério (_rogerio_)
http://faces.eti.br


svn build error

2006-08-21 Thread Rogerio Pereira
Hi guys! Somebody got this error while building from svn?C:\Rogerio\projetos\java\myfaces\tomahawk\core\src\test\java\org\apache\myfaces\custom\tree2\AbstractTreeTestCase.java:[79,19] setUp() in org.apache.myfaces.cus
tom.tree2.AbstractTreeTestCase cannot override setUp() in org.apache.shale.test.base.AbstractJsfTestCase; attempting to assign weaker access privileges; was public-- Yours truly (Atenciosamente),
Rogério (_rogerio_)http://faces.eti.br


Re: [tobago] and in a portlet

2006-08-21 Thread Nicolas Kalkhof
hi bernd,

here is the complete tomcat log:

Aug 21, 2006 2:26:37 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/opt/lib/java/jdk1.5.0_08/jre/lib/i386/client:/opt/lib/java/jdk1.5.0_08/jre/lib/i386:/opt/lib/java/jdk1.5.0_08/jre/../lib/i386:/lib:/usr/lib:/usr:/usr/local/lib:/opt/lib/qt/lib:/opt/kde/lib:/opt/kdeapps/lib:/usr/X11/lib:/opt/lib/libgphoto/lib:/opt/web/appserver/tomcat/lib
Aug 21, 2006 2:26:37 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-0
Aug 21, 2006 2:26:37 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 21, 2006 2:26:37 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 701 ms
Aug 21, 2006 2:26:37 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 21, 2006 2:26:37 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
Aug 21, 2006 2:26:37 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.application.ViewHandlerImpl 

INFO: Hiding ri base implemation: [EMAIL PROTECTED]
Aug 21, 2006 2:26:40 PM 
org.apache.myfaces.tobago.webapp.TobagoServletContextListener contextInitialized
INFO: *** contextInitialized ***
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.config.TobagoConfig 
addResourceDir
INFO: adding resourceDir = 'tobago-resource'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
locateResourcesFromClasspath
INFO: Loading tobago-theme.xml
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ThemeParser parse
INFO: Found theme: 'richmond'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: themeUrl = 
'jar:file:/root/source/web/community.nicolas-kalkhof.net/portlets/target/portlets/WEB-INF/lib/tobago-theme-richmond-1.0.8-SNAPSHOT.jar!/META-INF/tobago-theme.xml'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/richmond/standard/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ThemeParser parse
INFO: Found theme: 'scarborough'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: themeUrl = 
'jar:file:/root/source/web/community.nicolas-kalkhof.net/portlets/target/portlets/WEB-INF/lib/tobago-theme-scarborough-1.0.8-SNAPSHOT.jar!/META-INF/tobago-theme.xml'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/msie/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/opera/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla_4_7/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago_de.properties.xml
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: [EMAIL PROTECTED]
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/scarborough/standard/property/tobago.properties.xml
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: [EMAIL PROTECTED]
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ThemeParser parse
INFO: Found theme: 'speyside'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: themeUrl = 
'jar:file:/root/source/web/community.nicolas-kalkhof.net/portlets/target/portlets/WEB-INF/lib/tobago-theme-speyside-1.0.8-SNAPSHOT.jar!/META-INF/tobago-theme.xml'
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago/renderkit/html/speyside/msie/property/tobago-theme-config.properties
Aug 21, 2006 2:26:40 PM org.apache.myfaces.tobago.context.ResourceLocator 
addResources
INFO: ** 
org/apache/myfaces/tobago

Re: [tobago] and in a portlet

2006-08-21 Thread Bernd Bohmann

Hello Nicolas,

I have never tested Tobago within a portlet container, it should work.
Can you send your webapp with a setup description, please. We will add 
your example to the tobago examples.


Then we can play with your example to find the issue and other ones :-).

Tobago contains some code to ensure the UTF-8 encoding. Maybe this is 
not allowed in a portlet container or must be handled different.


I think the root cause is missing can you look in the log file again?

Regards

Bernd



Nicolas Kalkhof wrote:

hello folks,

iŽm trying to integrate tobago 1.08-snapshot in jsr168 portlets. rendering of 
the following fragment works, but after klicking a submit-button the container 
throws a servletexception.

any thoughts?

best regards,
nicolas

http://java.sun.com/JSP/Page"; version = "2.0"
  xmlns:f = "http://java.sun.com/jsf/core";
  xmlns:tc = "http://myfaces.apache.org/tobago/component";>
  



  

  



  






javax.servlet.ServletException: Cannot set character encoding after HTTP body 
is accessed.

org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:107)

org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.portlet.PortletException: Cannot set character encoding after HTTP body 
is accessed.

org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
net.portlets.logon.LogonPortlet.processAction(LogonPortlet.java:127)
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:214)
org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
org.apache.pluto.core.PortletInvoker.action(PortletInvoker.java:92)

org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:192)

org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:103)

org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131




Re: For all Java developers, Dojo Drag and Drop made easy with JavaServer Faces

2006-08-21 Thread Werner Punz
Cagatay Civici schrieb:
> Hi Rogerio,
> 
> Just tried it,
> 
> Amazing stuff.
> 
> Nice to see my name in the demo too:)
>

Tried it, amazing stuff...



[tobago] and in a portlet

2006-08-21 Thread Nicolas Kalkhof
hello folks,

iŽm trying to integrate tobago 1.08-snapshot in jsr168 portlets. rendering of 
the following fragment works, but after klicking a submit-button the container 
throws a servletexception.

any thoughts?

best regards,
nicolas

http://java.sun.com/JSP/Page"; version = "2.0"
  xmlns:f = "http://java.sun.com/jsf/core";
  xmlns:tc = "http://myfaces.apache.org/tobago/component";>
  


  

  



  





javax.servlet.ServletException: Cannot set character encoding after HTTP body 
is accessed.

org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:107)

org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.portlet.PortletException: Cannot set character encoding after HTTP body 
is accessed.

org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:253)
net.portlets.logon.LogonPortlet.processAction(LogonPortlet.java:127)
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:214)
org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
org.apache.pluto.core.PortletInvoker.action(PortletInvoker.java:92)

org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:192)

org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:103)

org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

__
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!

Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131



problem.

2006-08-21 Thread Mr Arvind Pandey
Hi,

 I am using  to display customer
info. Each row contains delete button also to delete
the info a particular customer. preserveDataModel
attribute of the datatable is set to false. Everything
working properly when i am going straight. 
  
  Now suppose I have 10 rows in the table and I
delete the first row , the first row gets deleted from
table and database also. But when I go back to
previous page using back button of Browser and try to
delete the first row again which has been deleted
already, then it deletes the next immediate row , I
mean second row. 

  If anyone can help me, I will be highly obliged.
Any suggestion will be appreciated.

Thanks and regards...
Arvind Pandey



__
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/


Re: the biggest myfaces webapp

2006-08-21 Thread Frederic Auge

nope, I didn't, I think this feature wasn't available at that time.
Also, I didn't use StreamingAddResource context-param as it required
modifying our jsp.

On 8/20/06, Rogerio Pereira <[EMAIL PROTECTED]> wrote:

Have u done tests with client side state saving using compression?

2006/8/20, Frederic Auge <[EMAIL PROTECTED]>:
> Hi guys,
>
> We had big performance problems with client state saving.
> Changing to server helped a lot ! x4-5 improvement for serving pages !
>
> We don't have any problems anymore. Our average load is 30
> requests/min 24/24 7/7
> And we could take a lot more (hopefully)
>
> We use a profiler when we have a specific performance problem
> (understand a page that is slow). It's more likely to be in the
> business tier than the web tier.
>
> Regards,
> Fred
>
> On 8/20/06, Yee CN <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > I am in the same boat – a distributed application that I was building
has to
> > be converted to become centralized, so the number of users suddenly
becomes
> > at least an order of magnitude larger.
> >
> >
> >
> > I am thinking memory might not be such a big issue as a multi-CPU Intel
> > boxes with 8GB of memory is getting rather common place nowadays. But I
am a
> > bit concerned about view rendering time. A while back somebody posted a
> > benchmark which I recalled was showing that JSF pages took about 4 times
> > longer to render, and there were some non-linear issues as well. In
> > principle faster CPU plus cheaper boxes for clustering should handle the
> > problem, but I am dying for someone to share his/her experience on large
> > scale deployment of JSF.
> >
> >
> >
> > I have no regret so far – after the initial learning curve the faster
> > development/prototype time has been a great advantage to our team.
> >
> >
> >
> > Regards
> >
> > Yee
> >
> >  
> >
> >
> > From: Rogerio Pereira [mailto:[EMAIL PROTECTED] ]
> >  Sent: Sunday, August 20, 2006 7:31 AM
> >  To: MyFaces Discussion
> >  Subject: Re: the biggest myfaces webapp
> >
> >
> >
> >
> > Thanks guys, this kind of discussion is very useful.
> >
> >
> > 2006/8/19, Kevin Galligan <[EMAIL PROTECTED]>:
> >
> >
> > If memory is the major concern, I think the real unknown is the view
state
> > storage.  To be honest, this is an unknown for me also.  Currently I'm
> > keeping that stuff on the client.  If the page download size isn't too
big,
> > I think this is the direction I'd stick with even in production, as I
don't
> > have to worry about old views getting dumped from the session in case
the
> > user really digs the back button.
> >
> >  But, in general, I'm not sure what the memory issue would be beyond the
> > view storage.  I'm anti-session for most things anyway, besides carrying
> > around some standard user info.  I'm planning to rely on smart coding,
> > tuning hibernate settings (which, obvisouly, requires the use of
hibernate)
> > and, possibly, turning on the hibernate cache for certain parts of the
data.
> >
> >  However, I do understand your concern.  I'm sort of in the same boat.
I'm
> > implementing an app and I'm not sure how many people will be logging
into
> > it.  I don't know what the performance will really be like.  I still
think
> > there is some technical understanding of the JSF view that I've ignored
> > until now that would probably help.  If anybody happens to have a good
page
> > to point to that discusses the view, please forward that along.
> >
> >  What kind of box will this be running on?  I assume if this is a
production
> > app that you might have a few hundred megs of memory available for the
> > application to play in?  Making that assumption, you've got about a meg
per
> > user.  Right?  While compared to some other technologies, a meg per user
is
> > a lot, but at the same time, hardware is cheap compared to developer
time.
> > Again, the big question mark in my mind is the view storage.  If it were
> > stored on the client, in theory you wouldn't need much session space
besides
> > authentication, if any.  Right?
> >
> >
> >
> >
> >
> > On 8/19/06, Eurig Jones < [EMAIL PROTECTED]> wrote:
> >
> > As far as I'm aware after the research I've done I haven't seen any
> >  large websites done in JSF.
> >
> >  I'm in the same boat as you. I'm developing an application which
> >  potentially could have 200/300 users concurrently logged on and this is
> >  a worry for me too. I'm trying to code the application as carefully as
I
> >  possibly can with the fact that "LOTS of users will be logged on at the
> >  same time", always in the back of my mind. Like with any web framework,
> >  you need to code the application in best possible practices and as
> >  efficiently as possible (avoid using session beans as much as you
> >  possibly can. etc.)
> >
> >  My concerns are memory usage more than anything. But this is a concern
> >  not with JSF but with developing my site with Tomcat and J2EE in
> >  general. As for performance, to be 

Re: Compare two password fields with a validator

2006-08-21 Thread Tom Serru

Just back from holiday...

Thx a lot guys... I will try these solutions.

Regards,

Tom



Mike Kienenberger wrote:
> 
> You will also get the better results by putting the validator on the
> second field on the page rather than on the first field on the page.
> This is especially true for validateEqual, but less important for
> validateCompareTo.
> 
> On 8/10/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
>> validateCompareTo is a better choice than validateEqual.
>>
>> http://myfaces.apache.org/sandbox/validateCompareTo.html
>>
>> On 8/10/06, Robert Locklear <[EMAIL PROTECTED]> wrote:
>> > http://myfaces.apache.org/tomahawk/validateEqual.html
>> >
>> > Thanks,
>> > Robert
>> > -Original Message-
>> > From: Tom Serru [mailto:[EMAIL PROTECTED]
>> > Sent: Thursday, August 10, 2006 10:32 AM
>> > To: users@myfaces.apache.org
>> > Subject: Compare two password fields with a validator
>> >
>> >
>> > Hi,
>> >
>> > Is there a way to create a validator to compare two fields (like a
>> > password
>> > and a password check field) ? I would like to have something like this
>> > as
>> > result:
>> >
>> > ...
>> > 
>> > > > otherField="passwordCheck"/>
>> > 
>> > ...
>> > 
>> > ...
>> >
>> > Thx...
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/Compare-two-password-fields-with-a-validator-tf208
>> > 3442.html#a5740422
>> > Sent from the MyFaces - Users forum at Nabble.com.
>> >
>> >
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Compare-two-password-fields-with-a-validator-tf2083442.html#a5902552
Sent from the MyFaces - Users forum at Nabble.com.



Re: dojo 0.3.1 is flying into the codebase

2006-08-21 Thread Werner Punz
Rogerio Pereira schrieb:
> I'm interested in work on SplitContainer for JSF, the work on a version
> of TitlePane is under progress...
> 
Ok status update...
Dojo is in, the effects tag and the timed notifier are fixed they work
again and better than before, the ajax autocomplete still is pending it
should be fixed hopefulyl soon.