You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Otto, Frank" <ot...@delta-barth.de> on 2004/12/08 13:46:21 UTC

example

Hi,
 
I have installed myfaces-examples on tomcat 5.5.

If I start the webapp, I will get a blank page. Can someone help me. 
 

kind regards,

Frank

Re: example

Posted by Christophe Roux <ch...@club-internet.fr>.
The jsp is compiled in work directory.
On Thursday 09 December 2004 12:24, Stefan Langer wrote:
> Hi
>
> Do you have anyway of varifying that the
> request you are sending to tomcat is actually processed by tomcat?
> Might be that your request is not processed by the servlet engine.
>
> Just a guess
>
> Matthias Wessendorf wrote:
> >mmm strange,
> >
> >I have no idea on that now,
> >have you asked the tomcat-guys, what
> >might be a reason for that?
> >
> >perhaps they know a solution to
> >that ?!?
> >
> >-Matthias
> >
> >>-----Original Message-----
> >>From: Christophe Roux [mailto:ch_roux@club-internet.fr]
> >>Sent: Friday, December 17, 2004 10:44 AM
> >>To: MyFaces Discussion
> >>Subject: Re: example
> >>
> >>
> >>There is no stck trace as there is no error.
> >>The jsp compiles well but as result there is a blank page.
> >>Here is my configuration :
> >>Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2
> >>mod_jk2/2.0.4
> >>
> >>tc5.5.4 works with java1.4.2 on my machine.
> >>I know there was such problems with proxies but I dont see the link.
> >>
> >>On Wednesday 08 December 2004 17:08, Matthias Wessendorf wrote:
> >>>could you provide stacktrace of tomcat5.5 ?
> >>>
> >>>tc5.5 is designed to work with java5, isn't it?
> >>>
> >>>Regards,
> >>>matthias
> >>>
> >>>>-----Original Message-----
> >>>>From: Christophe Roux [mailto:ch_roux@club-internet.fr]
> >>>>Sent: Thursday, December 16, 2004 4:42 PM
> >>>>To: MyFaces Discussion
> >>>>Subject: Re: example
> >>>>
> >>>>
> >>>>I have the same problem with myfaces-examples-1.0.6 and
> >>>>myfaces-examples-1.0.7.
> >>>>
> >>>>On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
> >>>>>Hi,
> >>>>>
> >>>>>I have installed myfaces-examples on tomcat 5.5.
> >>>>>
> >>>>>If I start the webapp, I will get a blank page. Can
> >>
> >>someone help
> >>
> >>>>>me.
> >>>>>
> >>>>>
> >>>>>kind regards,
> >>>>>
> >>>>>Frank

Re: example

Posted by Stefan Langer <la...@bettsockentraeger.de>.
Hi

Do you have anyway of varifying that the
request you are sending to tomcat is actually processed by tomcat?
Might be that your request is not processed by the servlet engine.

Just a guess

Matthias Wessendorf wrote:

>mmm strange,
>
>I have no idea on that now,
>have you asked the tomcat-guys, what
>might be a reason for that?
>
>perhaps they know a solution to
>that ?!?
>
>-Matthias
>
>  
>
>>-----Original Message-----
>>From: Christophe Roux [mailto:ch_roux@club-internet.fr] 
>>Sent: Friday, December 17, 2004 10:44 AM
>>To: MyFaces Discussion
>>Subject: Re: example
>>
>>
>>There is no stck trace as there is no error.
>>The jsp compiles well but as result there is a blank page.
>>Here is my configuration :
>>Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 
>>mod_jk2/2.0.4
>>
>>tc5.5.4 works with java1.4.2 on my machine.
>>I know there was such problems with proxies but I dont see the link.
>>
>>On Wednesday 08 December 2004 17:08, Matthias Wessendorf wrote:
>>    
>>
>>>could you provide stacktrace of tomcat5.5 ?
>>>
>>>tc5.5 is designed to work with java5, isn't it?
>>>
>>>Regards,
>>>matthias
>>>
>>>      
>>>
>>>>-----Original Message-----
>>>>From: Christophe Roux [mailto:ch_roux@club-internet.fr]
>>>>Sent: Thursday, December 16, 2004 4:42 PM
>>>>To: MyFaces Discussion
>>>>Subject: Re: example
>>>>
>>>>
>>>>I have the same problem with myfaces-examples-1.0.6 and 
>>>>myfaces-examples-1.0.7.
>>>>
>>>>On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
>>>>        
>>>>
>>>>>Hi,
>>>>>
>>>>>I have installed myfaces-examples on tomcat 5.5.
>>>>>
>>>>>If I start the webapp, I will get a blank page. Can 
>>>>>          
>>>>>
>>someone help 
>>    
>>
>>>>>me.
>>>>>
>>>>>
>>>>>kind regards,
>>>>>
>>>>>Frank
>>>>>          
>>>>>


RE: example

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
mmm strange,

I have no idea on that now,
have you asked the tomcat-guys, what
might be a reason for that?

perhaps they know a solution to
that ?!?

-Matthias

> -----Original Message-----
> From: Christophe Roux [mailto:ch_roux@club-internet.fr] 
> Sent: Friday, December 17, 2004 10:44 AM
> To: MyFaces Discussion
> Subject: Re: example
> 
> 
> There is no stck trace as there is no error.
> The jsp compiles well but as result there is a blank page.
> Here is my configuration :
> Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 
> mod_jk2/2.0.4
> 
> tc5.5.4 works with java1.4.2 on my machine.
> I know there was such problems with proxies but I dont see the link.
> 
> On Wednesday 08 December 2004 17:08, Matthias Wessendorf wrote:
> > could you provide stacktrace of tomcat5.5 ?
> >
> > tc5.5 is designed to work with java5, isn't it?
> >
> > Regards,
> > matthias
> >
> > > -----Original Message-----
> > > From: Christophe Roux [mailto:ch_roux@club-internet.fr]
> > > Sent: Thursday, December 16, 2004 4:42 PM
> > > To: MyFaces Discussion
> > > Subject: Re: example
> > >
> > >
> > > I have the same problem with myfaces-examples-1.0.6 and 
> > > myfaces-examples-1.0.7.
> > >
> > > On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
> > > > Hi,
> > > >
> > > > I have installed myfaces-examples on tomcat 5.5.
> > > >
> > > > If I start the webapp, I will get a blank page. Can 
> someone help 
> > > > me.
> > > >
> > > >
> > > > kind regards,
> > > >
> > > > Frank
> 


x:saveState doesn't save the right state?

Posted by Catalin Kormos <ca...@yahoo.com>.
Hi,

I'm using x:saveState very much in my application, and
i can tell, that it's quite good at what it does. Just
quite...because in one situation, at least, it doesn't
save the right state. 

I have a bean in request scope that contains a list of
data, that is displayed in a table where each row can
be selected using a check box found on the first
column. After selecting one or more rows, a "delete"
button can be used to remove those rows from the 
table; i was using x:saveState to save the list of
data between requests, but after the first row
selection and removal, immediatly after that,
selecting rows and deleting them won't work; the check
box selections are not taken and saved as state....so
hiting the "delete" buttons ends up doing nothing....i
had to get rid of the x:saveState usage in this case,
and place the list of data in session scope...any
ideeas? is this right?

Thanks


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

Re: dataTable rows deletion problem, urgent! :(

Posted by Catalin Kormos <ca...@yahoo.com>.
 
I don't know how the second bean which returns the selected items list, know which rows exacly to return. You're saying that the first bean should keep the entire list of items, and some info about which items that are selected so the second bean knows what to extract from it? after, let's say, a delete action, the first bean needs to propagate the changes to the first bean, correct? i would like to use x:saveState, then x:saveState should save the entire list of items and the info about the selected items (let's say indices list), getted from the first bean?

Manfred Geiler <ma...@apache.org> wrote:
Catalin,
Just an idea:
What about doing a two-level caching?
Cache the data in a model bean and put it in session scope or use 
x:saveState. Then bind your dataTable to another bean that provides the 
data via the getter (internally gets data from the first bean) and 
processes the changed data in the setter and propagates the modified row 
beans back to the first bean.

Manfred


Catalin Kormos schrieb:
> Maybe there is no need to avoid such thing, even if i think it's better 
> to keep and reuse the data when updates from other users its not 
> relevant; in my scenario, the user can choose from an existing list of 
> items the ones he needs, when he chooses them, these are place in 
> another data table (add rows action) and then he can also remove some 
> choosed items (the delete action). So, until he doesn't hit the "finish" 
> button, there is nothing saved into the database yet, and in the 
> meantime a series of actions can be performed on the data. How can i 
> keep the choosed items list between requests? should i save the 
> temporary list into the database and every action made, should execute 
> actions on the database?
> 
> Thanks again, for your interest, i realy appreciate it.
> 
> */Manfred Geiler /* wrote:
> 
> Catalin Kormos schrieb:
> > Yes, that's possible when using preserveDataMode=true; but then
> how can
> > i avoid loading the entire table data from the database after each
> > action?
> 
> Do you really want to avoid loading the table data (i.e. refresh) from
> the database after each action?
> What if another user removed or added a row in the meantime?
> If you only want to avoid loading the *whole* table again when using
> the
> dataScroller, you should rather try to use jdbc features that allow you
> to only load the number of rows you really need.
> 
> 
> > preserveDataModel won't pass the entire table data between
> > requests, so every time i make some changes (delete some rows), the
> > backing bean which holds the table data is reinstantiated and then
> > getTableData is invoked...so if i don't initialize (get it out
> from the
> > database) the table data in the contructor or in the getTableData
> method
> > then nothing gets displayed after the user hits the delete button...
> >
> > I think, an example of a data table in which are showned these basic
> > actions that need to be made on a data table, add or remove some
> rows,
> > and the entire table data is passed between requests not kept in the
> > user session, would be very usefull. In don't know if this is
> possible
> > right now.
> 
> Thomas Spiegl has some really nice table example he will add to the
> MyFaces examples for the next release, as he told me.
> 
> Manfred
> 
> 
> >
> > */Manfred Geiler /* wrote:
> >
> > Catalin,
> > Do not use x:saveState for the dataTable list.
> > Use preserveDataModel attribute in x:dataTable instead and let your
> > model bean get updated by implementing a setter method
> ("setList") for
> > the value property that is responsible for providing the list for the
> > dataTable. This way you will get back the updated dataList with the
> > right checkbox boolean properties.
> >
> > Manfred
> >
> >
> > Catalin Kormos schrieb:
> > > Hi Manfred, thanks for you interest,
> > >
> > > The dataTable is nested inside of a form, and the delete
> > button(link)
> > > doesn't have the "immediate" attribute set to "true" unless this
> > is the
> > > default value, because i have't specified it at all.
> > >
> > > I've resolved the problem by keeping the list of data the table
> > displays
> > > in the user session, because i've realized that x:saveState won't
> > get
> > > the right state, it does't get the data with the selections
> made; it
> > > seems that x:saveState gets the table data before any changes are
> > made
> > > on the items of that list (the selection value is not submited
> > yet). Is
> > > this possible?
> > >
> > > Thanks
> > >
> > > */Manfred Geiler /* wrote:
> > >
> > > Catalin,
> > > Please make sure:
> > > - that your dataTable is nested within a form
> > > - that your delete button does *not* have the immediate
> attribute set
> > > (necessary to get the checkboxes updated)
> > >
> > > Manfred
> > >
> > >
> > > Catalin Kormos schrieb:
> > > > Hi,
> > > >
> > > > I have a x:dataTable that displays rows over multiple
> > > > pages...the scenario is pretty simple, i think, a
> > > > table with many rows, the user can select one or more
> > > > rows by selecting a coresponding checkbox on the firs
> > > > column, and hit a "delete" button, or link to remove
> > > > those rows from the table. The value, selection, of
> > > > the check box is bound to a boolean property of the
> > > > row's bean, that has getter and setter.
> > > >
> > > > The first time the user selects some checkboxes (rows)
> > > > and hits "delete", everything works fine, the rows are
> > > > removed, page reloaded...; then, the user does nothing
> > > > else, just selects some rows again, then hits
> > > > "delete"... nothing happens!, because the backing bean
> > > > is not informed about the new selections.
> > > >
> > > > The problem disapears if after the first delete
> > > > action, the user uses the dataScroller to navigate to
> > > > a another page, or does a page reload by hand...
> > > >
> > > > Maybe has do to with the following things : i use
> > > > client side state saving, the x:dataScroller,
> > > > preserveModel is false for me, i use the x:saveState
> > > > to save the table data list displayed between
> > > > requests....
> > > >
> > > > Any ideeas would be appreciated, i realy think this is
> > > > a bug in myfaces, i saw some other threads about
> > > > dataTable updating children components, could be the
> > > > same problem?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail - Find what you need with new enhanced search.
> > > > http://info.mail.yahoo.com/mail_250
> > > >
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> >
> ------------------------------------------------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail
> >
> > - Helps protect you from nasty viruses.
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! 
> 
> Get it on your mobile phone.


		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: dataTable rows deletion problem, urgent! :(

Posted by Manfred Geiler <ma...@apache.org>.
Catalin,
Just an idea:
What about doing a two-level caching?
Cache the data in a model bean and put it in session scope or use 
x:saveState. Then bind your dataTable to another bean that provides the 
data via the getter (internally gets data from the first bean) and 
processes the changed data in the setter and propagates the modified row 
beans back to the first bean.

Manfred


Catalin Kormos schrieb:
> Maybe there is no need to avoid such thing, even if i think it's better 
> to keep and reuse the data when updates from other users its not 
> relevant; in my scenario, the user can choose from an existing list of 
> items the ones he needs, when he chooses them, these are place in 
> another data table (add rows action) and then he can also remove some 
> choosed items (the delete action). So, until he doesn't hit the "finish" 
> button, there is nothing saved into the database yet, and in the 
> meantime a series of actions can be performed on the data. How can i 
> keep the choosed items list between requests? should i save the 
> temporary list into the database and every action made, should execute 
> actions on the database?
>  
> Thanks again, for your interest, i realy appreciate it.
> 
> */Manfred Geiler <ma...@apache.org>/* wrote:
> 
>     Catalin Kormos schrieb:
>      > Yes, that's possible when using preserveDataMode=true; but then
>     how can
>      > i avoid loading the entire table data from the database after each
>      > action?
> 
>     Do you really want to avoid loading the table data (i.e. refresh) from
>     the database after each action?
>     What if another user removed or added a row in the meantime?
>     If you only want to avoid loading the *whole* table again when using
>     the
>     dataScroller, you should rather try to use jdbc features that allow you
>     to only load the number of rows you really need.
> 
> 
>      > preserveDataModel won't pass the entire table data between
>      > requests, so every time i make some changes (delete some rows), the
>      > backing bean which holds the table data is reinstantiated and then
>      > getTableData is invoked...so if i don't initialize (get it out
>     from the
>      > database) the table data in the contructor or in the getTableData
>     method
>      > then nothing gets displayed after the user hits the delete button...
>      >
>      > I think, an example of a data table in which are showned these basic
>      > actions that need to be made on a data table, add or remove some
>     rows,
>      > and the entire table data is passed between requests not kept in the
>      > user session, would be very usefull. In don't know if this is
>     possible
>      > right now.
> 
>     Thomas Spiegl has some really nice table example he will add to the
>     MyFaces examples for the next release, as he told me.
> 
>     Manfred
> 
> 
>      >
>      > */Manfred Geiler /* wrote:
>      >
>      > Catalin,
>      > Do not use x:saveState for the dataTable list.
>      > Use preserveDataModel attribute in x:dataTable instead and let your
>      > model bean get updated by implementing a setter method
>     ("setList") for
>      > the value property that is responsible for providing the list for the
>      > dataTable. This way you will get back the updated dataList with the
>      > right checkbox boolean properties.
>      >
>      > Manfred
>      >
>      >
>      > Catalin Kormos schrieb:
>      > > Hi Manfred, thanks for you interest,
>      > >
>      > > The dataTable is nested inside of a form, and the delete
>      > button(link)
>      > > doesn't have the "immediate" attribute set to "true" unless this
>      > is the
>      > > default value, because i have't specified it at all.
>      > >
>      > > I've resolved the problem by keeping the list of data the table
>      > displays
>      > > in the user session, because i've realized that x:saveState won't
>      > get
>      > > the right state, it does't get the data with the selections
>     made; it
>      > > seems that x:saveState gets the table data before any changes are
>      > made
>      > > on the items of that list (the selection value is not submited
>      > yet). Is
>      > > this possible?
>      > >
>      > > Thanks
>      > >
>      > > */Manfred Geiler /* wrote:
>      > >
>      > > Catalin,
>      > > Please make sure:
>      > > - that your dataTable is nested within a form
>      > > - that your delete button does *not* have the immediate
>     attribute set
>      > > (necessary to get the checkboxes updated)
>      > >
>      > > Manfred
>      > >
>      > >
>      > > Catalin Kormos schrieb:
>      > > > Hi,
>      > > >
>      > > > I have a x:dataTable that displays rows over multiple
>      > > > pages...the scenario is pretty simple, i think, a
>      > > > table with many rows, the user can select one or more
>      > > > rows by selecting a coresponding checkbox on the firs
>      > > > column, and hit a "delete" button, or link to remove
>      > > > those rows from the table. The value, selection, of
>      > > > the check box is bound to a boolean property of the
>      > > > row's bean, that has getter and setter.
>      > > >
>      > > > The first time the user selects some checkboxes (rows)
>      > > > and hits "delete", everything works fine, the rows are
>      > > > removed, page reloaded...; then, the user does nothing
>      > > > else, just selects some rows again, then hits
>      > > > "delete"... nothing happens!, because the backing bean
>      > > > is not informed about the new selections.
>      > > >
>      > > > The problem disapears if after the first delete
>      > > > action, the user uses the dataScroller to navigate to
>      > > > a another page, or does a page reload by hand...
>      > > >
>      > > > Maybe has do to with the following things : i use
>      > > > client side state saving, the x:dataScroller,
>      > > > preserveModel is false for me, i use the x:saveState
>      > > > to save the table data list displayed between
>      > > > requests....
>      > > >
>      > > > Any ideeas would be appreciated, i realy think this is
>      > > > a bug in myfaces, i saw some other threads about
>      > > > dataTable updating children components, could be the
>      > > > same problem?
>      > > >
>      > > > Thanks
>      > > >
>      > > >
>      > > >
>      > > > __________________________________
>      > > > Do you Yahoo!?
>      > > > Yahoo! Mail - Find what you need with new enhanced search.
>      > > > http://info.mail.yahoo.com/mail_250
>      > > >
>      > > >
>      > >
>      > > __________________________________________________
>      > > Do You Yahoo!?
>      > > Tired of spam? Yahoo! Mail has the best spam protection around
>      > > http://mail.yahoo.com
>      > >
>      >
>      >
>     ------------------------------------------------------------------------
>      > Do you Yahoo!?
>      > Yahoo! Mail
>      >
>      > - Helps protect you from nasty viruses.
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! 
> <http://us.rd.yahoo.com/mail_us/taglines/mobile/*http://mobile.yahoo.com/maildemo> 
> Get it on your mobile phone.

Re: dataTable rows deletion problem, urgent! :(

Posted by Catalin Kormos <ca...@yahoo.com>.
Maybe there is no need to avoid such thing, even if i think it's better to keep and reuse the data when updates from other users its not relevant; in my scenario, the user can choose from an existing list of items the ones he needs, when he chooses them, these are place in another data table (add rows action) and then he can also remove some choosed items (the delete action). So, until he doesn't hit the "finish" button, there is nothing saved into the database yet, and in the meantime a series of actions can be performed on the data. How can i keep the choosed items list between requests? should i save the temporary list into the database and every action made, should execute actions on the database?
 
Thanks again, for your interest, i realy appreciate it.

Manfred Geiler <ma...@apache.org> wrote:
Catalin Kormos schrieb:
> Yes, that's possible when using preserveDataMode=true; but then how can 
> i avoid loading the entire table data from the database after each 
> action?

Do you really want to avoid loading the table data (i.e. refresh) from 
the database after each action?
What if another user removed or added a row in the meantime?
If you only want to avoid loading the *whole* table again when using the 
dataScroller, you should rather try to use jdbc features that allow you 
to only load the number of rows you really need.


> preserveDataModel won't pass the entire table data between 
> requests, so every time i make some changes (delete some rows), the 
> backing bean which holds the table data is reinstantiated and then 
> getTableData is invoked...so if i don't initialize (get it out from the 
> database) the table data in the contructor or in the getTableData method 
> then nothing gets displayed after the user hits the delete button...
> 
> I think, an example of a data table in which are showned these basic 
> actions that need to be made on a data table, add or remove some rows, 
> and the entire table data is passed between requests not kept in the 
> user session, would be very usefull. In don't know if this is possible 
> right now.

Thomas Spiegl has some really nice table example he will add to the 
MyFaces examples for the next release, as he told me.

Manfred


> 
> */Manfred Geiler /* wrote:
> 
> Catalin,
> Do not use x:saveState for the dataTable list.
> Use preserveDataModel attribute in x:dataTable instead and let your
> model bean get updated by implementing a setter method ("setList") for
> the value property that is responsible for providing the list for the
> dataTable. This way you will get back the updated dataList with the
> right checkbox boolean properties.
> 
> Manfred
> 
> 
> Catalin Kormos schrieb:
> > Hi Manfred, thanks for you interest,
> >
> > The dataTable is nested inside of a form, and the delete
> button(link)
> > doesn't have the "immediate" attribute set to "true" unless this
> is the
> > default value, because i have't specified it at all.
> >
> > I've resolved the problem by keeping the list of data the table
> displays
> > in the user session, because i've realized that x:saveState won't
> get
> > the right state, it does't get the data with the selections made; it
> > seems that x:saveState gets the table data before any changes are
> made
> > on the items of that list (the selection value is not submited
> yet). Is
> > this possible?
> >
> > Thanks
> >
> > */Manfred Geiler /* wrote:
> >
> > Catalin,
> > Please make sure:
> > - that your dataTable is nested within a form
> > - that your delete button does *not* have the immediate attribute set
> > (necessary to get the checkboxes updated)
> >
> > Manfred
> >
> >
> > Catalin Kormos schrieb:
> > > Hi,
> > >
> > > I have a x:dataTable that displays rows over multiple
> > > pages...the scenario is pretty simple, i think, a
> > > table with many rows, the user can select one or more
> > > rows by selecting a coresponding checkbox on the firs
> > > column, and hit a "delete" button, or link to remove
> > > those rows from the table. The value, selection, of
> > > the check box is bound to a boolean property of the
> > > row's bean, that has getter and setter.
> > >
> > > The first time the user selects some checkboxes (rows)
> > > and hits "delete", everything works fine, the rows are
> > > removed, page reloaded...; then, the user does nothing
> > > else, just selects some rows again, then hits
> > > "delete"... nothing happens!, because the backing bean
> > > is not informed about the new selections.
> > >
> > > The problem disapears if after the first delete
> > > action, the user uses the dataScroller to navigate to
> > > a another page, or does a page reload by hand...
> > >
> > > Maybe has do to with the following things : i use
> > > client side state saving, the x:dataScroller,
> > > preserveModel is false for me, i use the x:saveState
> > > to save the table data list displayed between
> > > requests....
> > >
> > > Any ideeas would be appreciated, i realy think this is
> > > a bug in myfaces, i saw some other threads about
> > > dataTable updating children components, could be the
> > > same problem?
> > >
> > > Thanks
> > >
> > >
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - Find what you need with new enhanced search.
> > > http://info.mail.yahoo.com/mail_250
> > >
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail 
> 
> - Helps protect you from nasty viruses.

		
---------------------------------
Do you Yahoo!?
 Take Yahoo! Mail with you! Get it on your mobile phone.

Re: dataTable rows deletion problem, urgent! :(

Posted by Manfred Geiler <ma...@apache.org>.
Catalin Kormos schrieb:
> Yes, that's possible when using preserveDataMode=true; but then how can 
> i avoid loading the entire table data from the database after each 
> action?

Do you really want to avoid loading the table data (i.e. refresh) from 
the database after each action?
What if another user removed or added a row in the meantime?
If you only want to avoid loading the *whole* table again when using the 
dataScroller, you should rather try to use jdbc features that allow you 
to only load the number of rows you really need.


> preserveDataModel won't pass the entire table data between 
> requests, so every time i make some changes (delete some rows), the 
> backing bean which holds the table data is reinstantiated and then 
> getTableData is invoked...so if i don't initialize (get it out from the 
> database) the table data in the contructor or in the getTableData method 
> then nothing gets displayed after the user hits the delete button...
>  
> I think, an example of a data table in which are showned these basic 
> actions that need to be made on a data table, add or remove some rows, 
> and the entire table data is passed between requests not kept in the 
> user session, would be very usefull. In don't know if this is possible 
> right now.

Thomas Spiegl has some really nice table example he will add to the 
MyFaces examples for the next release, as he told me.

Manfred


> 
> */Manfred Geiler <ma...@apache.org>/* wrote:
> 
>     Catalin,
>     Do not use x:saveState for the dataTable list.
>     Use preserveDataModel attribute in x:dataTable instead and let your
>     model bean get updated by implementing a setter method ("setList") for
>     the value property that is responsible for providing the list for the
>     dataTable. This way you will get back the updated dataList with the
>     right checkbox boolean properties.
> 
>     Manfred
> 
> 
>     Catalin Kormos schrieb:
>      > Hi Manfred, thanks for you interest,
>      >
>      > The dataTable is nested inside of a form, and the delete
>     button(link)
>      > doesn't have the "immediate" attribute set to "true" unless this
>     is the
>      > default value, because i have't specified it at all.
>      >
>      > I've resolved the problem by keeping the list of data the table
>     displays
>      > in the user session, because i've realized that x:saveState won't
>     get
>      > the right state, it does't get the data with the selections made; it
>      > seems that x:saveState gets the table data before any changes are
>     made
>      > on the items of that list (the selection value is not submited
>     yet). Is
>      > this possible?
>      >
>      > Thanks
>      >
>      > */Manfred Geiler /* wrote:
>      >
>      > Catalin,
>      > Please make sure:
>      > - that your dataTable is nested within a form
>      > - that your delete button does *not* have the immediate attribute set
>      > (necessary to get the checkboxes updated)
>      >
>      > Manfred
>      >
>      >
>      > Catalin Kormos schrieb:
>      > > Hi,
>      > >
>      > > I have a x:dataTable that displays rows over multiple
>      > > pages...the scenario is pretty simple, i think, a
>      > > table with many rows, the user can select one or more
>      > > rows by selecting a coresponding checkbox on the firs
>      > > column, and hit a "delete" button, or link to remove
>      > > those rows from the table. The value, selection, of
>      > > the check box is bound to a boolean property of the
>      > > row's bean, that has getter and setter.
>      > >
>      > > The first time the user selects some checkboxes (rows)
>      > > and hits "delete", everything works fine, the rows are
>      > > removed, page reloaded...; then, the user does nothing
>      > > else, just selects some rows again, then hits
>      > > "delete"... nothing happens!, because the backing bean
>      > > is not informed about the new selections.
>      > >
>      > > The problem disapears if after the first delete
>      > > action, the user uses the dataScroller to navigate to
>      > > a another page, or does a page reload by hand...
>      > >
>      > > Maybe has do to with the following things : i use
>      > > client side state saving, the x:dataScroller,
>      > > preserveModel is false for me, i use the x:saveState
>      > > to save the table data list displayed between
>      > > requests....
>      > >
>      > > Any ideeas would be appreciated, i realy think this is
>      > > a bug in myfaces, i saw some other threads about
>      > > dataTable updating children components, could be the
>      > > same problem?
>      > >
>      > > Thanks
>      > >
>      > >
>      > >
>      > > __________________________________
>      > > Do you Yahoo!?
>      > > Yahoo! Mail - Find what you need with new enhanced search.
>      > > http://info.mail.yahoo.com/mail_250
>      > >
>      > >
>      >
>      > __________________________________________________
>      > Do You Yahoo!?
>      > Tired of spam? Yahoo! Mail has the best spam protection around
>      > http://mail.yahoo.com
>      >
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Mail 
> <http://us.rd.yahoo.com/mail_us/taglines/virus/*http://promotions.yahoo.com/new_mail/static/protection.html> 
> - Helps protect you from nasty viruses.

Re: dataTable rows deletion problem, urgent! :(

Posted by Catalin Kormos <ca...@yahoo.com>.
Yes, that's possible when using preserveDataMode=true; but then how can i avoid loading the entire table data from the database after each action? preserveDataModel won't pass the entire table data between requests, so every time i make some changes (delete some rows), the backing bean which holds the table data is reinstantiated and then getTableData is invoked...so if i don't initialize (get it out from the database) the table data in the contructor or in the getTableData method then nothing gets displayed after the user hits the delete button...
 
I think, an example of a data table in which are showned these basic actions that need to be made on a data table, add or remove some rows, and the entire table data is passed between requests not kept in the user session, would be very usefull. In don't know if this is possible right now.

Manfred Geiler <ma...@apache.org> wrote:
Catalin,
Do not use x:saveState for the dataTable list.
Use preserveDataModel attribute in x:dataTable instead and let your 
model bean get updated by implementing a setter method ("setList") for 
the value property that is responsible for providing the list for the 
dataTable. This way you will get back the updated dataList with the 
right checkbox boolean properties.

Manfred


Catalin Kormos schrieb:
> Hi Manfred, thanks for you interest,
> 
> The dataTable is nested inside of a form, and the delete button(link) 
> doesn't have the "immediate" attribute set to "true" unless this is the 
> default value, because i have't specified it at all.
> 
> I've resolved the problem by keeping the list of data the table displays 
> in the user session, because i've realized that x:saveState won't get 
> the right state, it does't get the data with the selections made; it 
> seems that x:saveState gets the table data before any changes are made 
> on the items of that list (the selection value is not submited yet). Is 
> this possible?
> 
> Thanks
> 
> */Manfred Geiler /* wrote:
> 
> Catalin,
> Please make sure:
> - that your dataTable is nested within a form
> - that your delete button does *not* have the immediate attribute set
> (necessary to get the checkboxes updated)
> 
> Manfred
> 
> 
> Catalin Kormos schrieb:
> > Hi,
> >
> > I have a x:dataTable that displays rows over multiple
> > pages...the scenario is pretty simple, i think, a
> > table with many rows, the user can select one or more
> > rows by selecting a coresponding checkbox on the firs
> > column, and hit a "delete" button, or link to remove
> > those rows from the table. The value, selection, of
> > the check box is bound to a boolean property of the
> > row's bean, that has getter and setter.
> >
> > The first time the user selects some checkboxes (rows)
> > and hits "delete", everything works fine, the rows are
> > removed, page reloaded...; then, the user does nothing
> > else, just selects some rows again, then hits
> > "delete"... nothing happens!, because the backing bean
> > is not informed about the new selections.
> >
> > The problem disapears if after the first delete
> > action, the user uses the dataScroller to navigate to
> > a another page, or does a page reload by hand...
> >
> > Maybe has do to with the following things : i use
> > client side state saving, the x:dataScroller,
> > preserveModel is false for me, i use the x:saveState
> > to save the table data list displayed between
> > requests....
> >
> > Any ideeas would be appreciated, i realy think this is
> > a bug in myfaces, i saw some other threads about
> > dataTable updating children components, could be the
> > same problem?
> >
> > Thanks
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail - Find what you need with new enhanced search.
> > http://info.mail.yahoo.com/mail_250
> >
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 

		
---------------------------------
Do you Yahoo!?
 Yahoo! Mail - Helps protect you from nasty viruses.

Re: dataTable rows deletion problem, urgent! :(

Posted by Manfred Geiler <ma...@apache.org>.
Catalin,
Do not use x:saveState for the dataTable list.
Use preserveDataModel attribute in x:dataTable instead and let your 
model bean get updated by implementing a setter method ("setList") for 
the value property that is responsible for providing the list for the 
dataTable. This way you will get back the updated dataList with the 
right checkbox boolean properties.

Manfred


Catalin Kormos schrieb:
> Hi Manfred, thanks for you interest,
>  
> The dataTable is nested inside of a form, and the delete button(link) 
> doesn't have the "immediate" attribute set to "true" unless this is the 
> default value, because i have't specified it at all.
>  
> I've resolved the problem by keeping the list of data the table displays 
> in the user session, because i've realized that x:saveState won't get 
> the right state, it does't get the data with the selections made;  it 
> seems that x:saveState gets the table data before any changes are made 
> on the items of that list (the selection value is not submited yet). Is 
> this possible?
>  
> Thanks
> 
> */Manfred Geiler <ma...@apache.org>/* wrote:
> 
>     Catalin,
>     Please make sure:
>     - that your dataTable is nested within a form
>     - that your delete button does *not* have the immediate attribute set
>     (necessary to get the checkboxes updated)
> 
>     Manfred
> 
> 
>     Catalin Kormos schrieb:
>      > Hi,
>      >
>      > I have a x:dataTable that displays rows over multiple
>      > pages...the scenario is pretty simple, i think, a
>      > table with many rows, the user can select one or more
>      > rows by selecting a coresponding checkbox on the firs
>      > column, and hit a "delete" button, or link to remove
>      > those rows from the table. The value, selection, of
>      > the check box is bound to a boolean property of the
>      > row's bean, that has getter and setter.
>      >
>      > The first time the user selects some checkboxes (rows)
>      > and hits "delete", everything works fine, the rows are
>      > removed, page reloaded...; then, the user does nothing
>      > else, just selects some rows again, then hits
>      > "delete"... nothing happens!, because the backing bean
>      > is not informed about the new selections.
>      >
>      > The problem disapears if after the first delete
>      > action, the user uses the dataScroller to navigate to
>      > a another page, or does a page reload by hand...
>      >
>      > Maybe has do to with the following things : i use
>      > client side state saving, the x:dataScroller,
>      > preserveModel is false for me, i use the x:saveState
>      > to save the table data list displayed between
>      > requests....
>      >
>      > Any ideeas would be appreciated, i realy think this is
>      > a bug in myfaces, i saw some other threads about
>      > dataTable updating children components, could be the
>      > same problem?
>      >
>      > Thanks
>      >
>      >
>      >
>      > __________________________________
>      > Do you Yahoo!?
>      > Yahoo! Mail - Find what you need with new enhanced search.
>      > http://info.mail.yahoo.com/mail_250
>      >
>      >
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 

Re: dataTable rows deletion problem, urgent! :(

Posted by Catalin Kormos <ca...@yahoo.com>.
Hi Manfred, thanks for you interest,
 
The dataTable is nested inside of a form, and the delete button(link) doesn't have the "immediate" attribute set to "true" unless this is the default value, because i have't specified it at all.
 
I've resolved the problem by keeping the list of data the table displays in the user session, because i've realized that x:saveState won't get the right state, it does't get the data with the selections made;  it seems that x:saveState gets the table data before any changes are made on the items of that list (the selection value is not submited yet). Is this possible?
 
Thanks

Manfred Geiler <ma...@apache.org> wrote:
Catalin,
Please make sure:
- that your dataTable is nested within a form
- that your delete button does *not* have the immediate attribute set 
(necessary to get the checkboxes updated)

Manfred


Catalin Kormos schrieb:
> Hi,
> 
> I have a x:dataTable that displays rows over multiple
> pages...the scenario is pretty simple, i think, a
> table with many rows, the user can select one or more
> rows by selecting a coresponding checkbox on the firs
> column, and hit a "delete" button, or link to remove
> those rows from the table. The value, selection, of
> the check box is bound to a boolean property of the
> row's bean, that has getter and setter.
> 
> The first time the user selects some checkboxes (rows)
> and hits "delete", everything works fine, the rows are
> removed, page reloaded...; then, the user does nothing
> else, just selects some rows again, then hits
> "delete"... nothing happens!, because the backing bean
> is not informed about the new selections. 
> 
> The problem disapears if after the first delete
> action, the user uses the dataScroller to navigate to
> a another page, or does a page reload by hand...
> 
> Maybe has do to with the following things : i use
> client side state saving, the x:dataScroller,
> preserveModel is false for me, i use the x:saveState
> to save the table data list displayed between
> requests....
> 
> Any ideeas would be appreciated, i realy think this is
> a bug in myfaces, i saw some other threads about
> dataTable updating children components, could be the
> same problem? 
> 
> Thanks
> 
> 
> 
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Find what you need with new enhanced search.
> http://info.mail.yahoo.com/mail_250
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: dataTable rows deletion problem, urgent! :(

Posted by Manfred Geiler <ma...@apache.org>.
Catalin,
Please make sure:
- that your dataTable is nested within a form
- that your delete button does *not* have the immediate attribute set 
(necessary to get the checkboxes updated)

Manfred


Catalin Kormos schrieb:
> Hi,
> 
> I have a x:dataTable that displays rows over multiple
> pages...the scenario is pretty simple, i think, a
> table with many rows, the user can select one or more
> rows by selecting a coresponding checkbox on the firs
> column, and hit a "delete" button, or link to remove
> those rows from the table. The value, selection, of
> the check box is bound to a boolean property of the
> row's bean, that has getter and setter.
> 
> The first time the user selects some checkboxes (rows)
> and hits "delete", everything works fine, the rows are
> removed, page reloaded...; then, the user does nothing
> else, just selects some rows again, then hits
> "delete"... nothing happens!, because the backing bean
> is not informed about the new selections. 
> 
> The problem disapears if after the first delete
> action, the user uses the dataScroller to navigate to
> a another page, or does a page reload by hand...
> 
> Maybe has do to with the following things : i use
> client side state saving, the x:dataScroller,
> preserveModel is false for me, i use the x:saveState
> to save the table data list displayed between
> requests....
> 
> Any ideeas would be appreciated, i realy think this is
> a bug in myfaces, i saw some other threads about
> dataTable updating children components, could be the
> same problem? 
> 
> Thanks
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Find what you need with new enhanced search.
> http://info.mail.yahoo.com/mail_250
> 
> 

dataTable rows deletion problem, urgent! :(

Posted by Catalin Kormos <ca...@yahoo.com>.
Hi,

I have a x:dataTable that displays rows over multiple
pages...the scenario is pretty simple, i think, a
table with many rows, the user can select one or more
rows by selecting a coresponding checkbox on the firs
column, and hit a "delete" button, or link to remove
those rows from the table. The value, selection, of
the check box is bound to a boolean property of the
row's bean, that has getter and setter.

The first time the user selects some checkboxes (rows)
and hits "delete", everything works fine, the rows are
removed, page reloaded...; then, the user does nothing
else, just selects some rows again, then hits
"delete"... nothing happens!, because the backing bean
is not informed about the new selections. 

The problem disapears if after the first delete
action, the user uses the dataScroller to navigate to
a another page, or does a page reload by hand...

Maybe has do to with the following things : i use
client side state saving, the x:dataScroller,
preserveModel is false for me, i use the x:saveState
to save the table data list displayed between
requests....

Any ideeas would be appreciated, i realy think this is
a bug in myfaces, i saw some other threads about
dataTable updating children components, could be the
same problem? 

Thanks


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

Re: example

Posted by Christophe Roux <ch...@club-internet.fr>.
There is no stck trace as there is no error.
The jsp compiles well but as result there is a blank page.
Here is my configuration :
Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 mod_jk2/2.0.4

tc5.5.4 works with java1.4.2 on my machine.
I know there was such problems with proxies but I dont see the link.

On Wednesday 08 December 2004 17:08, Matthias Wessendorf wrote:
> could you provide stacktrace of tomcat5.5 ?
>
> tc5.5 is designed to work with java5, isn't it?
>
> Regards,
> matthias
>
> > -----Original Message-----
> > From: Christophe Roux [mailto:ch_roux@club-internet.fr]
> > Sent: Thursday, December 16, 2004 4:42 PM
> > To: MyFaces Discussion
> > Subject: Re: example
> >
> >
> > I have the same problem with myfaces-examples-1.0.6 and
> > myfaces-examples-1.0.7.
> >
> > On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
> > > Hi,
> > >
> > > I have installed myfaces-examples on tomcat 5.5.
> > >
> > > If I start the webapp, I will get a blank page. Can someone help me.
> > >
> > >
> > > kind regards,
> > >
> > > Frank

RE: example

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
could you provide stacktrace of tomcat5.5 ?

tc5.5 is designed to work with java5, isn't it?

Regards,
matthias

> -----Original Message-----
> From: Christophe Roux [mailto:ch_roux@club-internet.fr] 
> Sent: Thursday, December 16, 2004 4:42 PM
> To: MyFaces Discussion
> Subject: Re: example
> 
> 
> I have the same problem with myfaces-examples-1.0.6 and 
> myfaces-examples-1.0.7.
> 
> On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
> > Hi,
> >
> > I have installed myfaces-examples on tomcat 5.5.
> >
> > If I start the webapp, I will get a blank page. Can someone help me.
> >
> >
> > kind regards,
> >
> > Frank
> 


Re: example

Posted by Christophe Roux <ch...@club-internet.fr>.
I have the same problem with myfaces-examples-1.0.6 and 
myfaces-examples-1.0.7.

On Wednesday 08 December 2004 13:46, Otto, Frank wrote:
> Hi,
>
> I have installed myfaces-examples on tomcat 5.5.
>
> If I start the webapp, I will get a blank page. Can someone help me.
>
>
> kind regards,
>
> Frank

Re: JSF Layout tool for eclipse. Master detail Docs, Oracle ADF controls working

Posted by Heath Borders <he...@gmail.com>.
That would be of great use to my team.  Once the ADF faces controls
reach a mature release, we were considering using them.


On Wed, 8 Dec 2004 06:48:01 -0800 (PST), Glenn Davidson
<gb...@yahoo.com> wrote:
> Hello all,
> 
> I was wondering if there are any good JSF layout tools
> for the eclipse platform in the pipeline? Has anyone
> heard anything?
> 
> I have successfully reproduced the master/detail
> functionality from the MyFaces example and I am
> producing documentation. I would like to know where I
> should submit it when it is complete.
> 
> I have successfully integrated the Oracle ADF controls
> (without using JDeveloper) into my application to
> great success. I was thinking of documenting that if
> there was a need. Would the documentation to include
> ADF controls be of use?
> 
> Thanks
> 
> Glenn
> 
> PS Matthias, I still owe you a few beers......
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 


-- 
If you don't have a GMail account, I probably have 5 invites.  Just ask!
-Heath Borders-Wing
hborders@mail.win.org

RE: JSF Layout tool for eclipse. Master detail Docs, Oracle ADF controls working

Posted by Matthias Wessendorf <ma...@matthias-wessendorf.de>.
Hi Glenn,


> I was wondering if there are any good JSF layout tools
> for the eclipse platform in the pipeline? Has anyone
> heard anything?

perhaps that is usful:
http://www.exadel.com/products_eclipse4web.htm?e4w

> I have successfully reproduced the master/detail
> functionality from the MyFaces example and I am
> producing documentation. I would like to know where I
> should submit it when it is complete.

well, you could send it to this list.
or directly to me. I will port your result
into forrest and publish it on our apache-website.

> I have successfully integrated the Oracle ADF controls
> (without using JDeveloper) into my application to
> great success. I was thinking of documenting that if
> there was a need. Would the documentation to include
> ADF controls be of use?

well, why not.
btw. you use JSF RI and ADF?
perhaps an OT-corner? or perhaps
Kito for his JSFCentral.com ?!?


> Thanks
> 
> Glenn
> 
> PS Matthias, I still owe you a few beers......

Nice! :-) NYC is far away... :-)

Prost!

> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


JSF Layout tool for eclipse. Master detail Docs, Oracle ADF controls working

Posted by Glenn Davidson <gb...@yahoo.com>.
Hello all,

I was wondering if there are any good JSF layout tools
for the eclipse platform in the pipeline? Has anyone
heard anything?

I have successfully reproduced the master/detail
functionality from the MyFaces example and I am
producing documentation. I would like to know where I
should submit it when it is complete.

I have successfully integrated the Oracle ADF controls
(without using JDeveloper) into my application to
great success. I was thinking of documenting that if
there was a need. Would the documentation to include
ADF controls be of use?

Thanks

Glenn

PS Matthias, I still owe you a few beers......

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com