Hi
 
I am seeing a weird problem:
I have a page that has a toplevel panelGrid with 2 columns.
  In the left column, I have a panelGroup containing a bunch of textfields for 
text entry and 
then a commandButton with an associated action
  In the right column, I have a dataTable and a bunch of inputTexts below the 
dataTable.
 
The action for the commandButton in the left panel is called "backer.search" and
invokes the search method in the backer bean. I'm logging a message in that
search() method, plus this method does a search and sets up the entries to be 
displayed
in the dataTable in the right column.
 
Now, the inputTexts in the right column have values that go like 
"backer.selection.firstName"
and so on ... where backer.getSelection() returns a Customer object that has a 
getFirstName()
method.
 
The weird behaviour is that: if the above inputTexts have values like above : 
i.e., "backer.selection.firstName"
etc. the commandButton doesn't seem to fire the search() method - the log 
message doesn't get
printed and the dataTable is not filled up. However, if the inputTexts have 
values like
"backer.firstName" (where backer.getFirstName() is a method that returns a 
simple string), the
commandButton does fire the search() method.
 
I'm at a loss - as these two seem completely independent.
 
Sorry for the long and rambling mail, but any clues?
 
-john
 

________________________________

From: [EMAIL PROTECTED] on behalf of Matthias Wessendorf
Sent: Wed 6/7/2006 11:30 AM
To: MyFaces Discussion
Subject: Re: How to update a dataTable without refresh the page?



there is an updateDataTable component in sandbox.

it uses ajax (scriptatolus) for that

On 6/7/06, Hailong Zhang <[EMAIL PROTECTED]> wrote:
> I want to update the dataTable without refresh the page when user click a
> button on the same page.
> Can I achieve this using sandbox?
>
> Thank you!
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com


<<winmail.dat>>

Reply via email to