You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Glen Stampoultzis <gs...@iinet.net.au> on 2004/02/23 06:25:06 UTC
ListEdit
I've got a ListEdit/ListEditMap combo that's giving me a bit of trouble.
I have the following type of setup:
* Some regular text fields which I apply some server side validation to
* A ListEdit of text fields that have some DatePickers.
If for whatever reason my form fails to validate I any data entered into
the text fields seems to be retained but changes to the ListEdit controls
are lost. Is there any way to get tapestry to remember these values?
Regards,
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ListEdit
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Harish,
Your suggestion of populating only if not null was correct. I was mistaken
about the value of the form field. Thanks for your help.
Regards,
Glen
At 04:28 PM 25/02/2004, you wrote:
>Glen Stampoultzis wrote:
>
>>At 01:48 PM 25/02/2004, you wrote:
>>
>>>Yes, there is, and that is the cycle.isRewinding(). But a better way IMO
>>>is to check the list that you are trying to populate and populate only
>>>if it is not already populated.
>>>
>>>-Harish
>>
>>
>>But at step 6 it's not actually rewinding is it? That happens on step 3.
>
>That's right and hence the isRewinding would return false.
>
>>
>>I thought about your suggestion but it seemed to me that it was
>>remembering stuff from a previous render. I could be wrong about that as
>>it doesn't seem right but I'll double check.
>
>Is the list stored in a persistent property? If not then it is simply
>holding the value from the rewind.
>
>-Harish
>
>>
>>
>>>Glen Stampoultzis wrote:
>>>
>>>>
>>>>To further expand on this here's the current way the ListEdit gets
>>>>populated:
>>>>
>>>>1. Page is displayed. pageBeginRender() is called and ListEdit gets
>>>>populated.
>>>>2. User modifies some details and submits.
>>>>3. pageBeginRender() is called again in rewind mode. ListEdit gets
>>>>populated.
>>>>4. As part of the rewind the modify values are applied to the ListEdit.
>>>>5. The form submit listener is called. Validation checks are done and
>>>>we decide that there are some things that need to be corrected so we
>>>>don't bother saving the changes off to the database yet.
>>>>6. pageBeginRender() is called again (not in rewind mode this time).
>>>>The ListEdit get's repopulated (wiping out the values the user submitted).
>>>>
>>>>Now if I could leave out stage 6 I _think_ I'd be okay but I'm not sure
>>>>if tapestry provides a way to detect the fact that I'm at this stage.
>>>>
>>>>Regards,
>>>>
>>>>Glen
>>>>
>>>>At 10:35 AM 24/02/2004, you wrote:
>>>>
>>>>>Wow... that made no sense at all! Note to self : check email before
>>>>>hitting send.
>>>>>
>>>>>I'm saying that I have a DatePicker inside a ListEdit and that the
>>>>>DatePicker values are lost. Also it seems that the deleted indicators
>>>>>get lost as well.
>>>>>
>>>>>I believe this is because of the initialization I'm doing in the
>>>>>pageBeginRender() method. Is that the right place to initialize my
>>>>>ListEdit? This seems to be where it's done in the VLib example application.
>>>>>
>>>>>Regards,
>>>>>
>>>>>Glen
>>>>>
>>>>>
>>>>>At 12:07 AM 24/02/2004, you wrote:
>>>>>
>>>>>>Could you check over what you wrote there ... I think you mean that
>>>>>>the DatePicker data is lost?
>>>>>>
>>>>>>--
>>>>>>Howard M. Lewis Ship
>>>>>>Independent J2EE / Open-Source Java Consultant
>>>>>>Creator, Tapestry: Java Web Components
>>>>>>http://howardlewisship.com
>>>>>>
>>>>>>
>>>>>> > -----Original Message-----
>>>>>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>>>>>> > Sent: Monday, February 23, 2004 12:25 AM
>>>>>> > To: tapestry-user@jakarta.apache.org
>>>>>> > Subject: ListEdit
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>>>>>> > of trouble.
>>>>>> >
>>>>>> > I have the following type of setup:
>>>>>> >
>>>>>> > * Some regular text fields which I apply some server side
>>>>>> > validation to
>>>>>> > * A ListEdit of text fields that have some DatePickers.
>>>>>> >
>>>>>> > If for whatever reason my form fails to validate I any data
>>>>>> > entered into
>>>>>> > the text fields seems to be retained but changes to the
>>>>>> > ListEdit controls
>>>>>> > are lost. Is there any way to get tapestry to remember these values?
>>>>>> >
>>>>>> >
>>>>>> > Regards,
>>>>>> >
>>>>>> >
>>>>>> > Glen Stampoultzis
>>>>>> > gstamp@iinet.net.au
>>>>>> > http://members.iinet.net.au/~gstamp/glen/
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>> >
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Glen Stampoultzis
>>>>>gstamp@iinet.net.au
>>>>>http://members.iinet.net.au/~gstamp/glen/
>>>>
>>>>
>>>>
>>>>
>>>>Glen Stampoultzis
>>>>gstamp@iinet.net.au
>>>>http://members.iinet.net.au/~gstamp/glen/
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>Glen Stampoultzis
>>gstamp@iinet.net.au
>>http://members.iinet.net.au/~gstamp/glen/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: ListEdit
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
At 04:28 PM 25/02/2004, you wrote:
>Glen Stampoultzis wrote:
>
>>At 01:48 PM 25/02/2004, you wrote:
>>
>>>Yes, there is, and that is the cycle.isRewinding(). But a better way IMO
>>>is to check the list that you are trying to populate and populate only
>>>if it is not already populated.
>>>
>>>-Harish
>>
>>
>>But at step 6 it's not actually rewinding is it? That happens on step 3.
>
>That's right and hence the isRewinding would return false.
It would also return false at step 1 which is one place you _do_ want to
populate it.
>>I thought about your suggestion but it seemed to me that it was
>>remembering stuff from a previous render. I could be wrong about that as
>>it doesn't seem right but I'll double check.
>
>Is the list stored in a persistent property? If not then it is simply
>holding the value from the rewind.
It's not persistent. It was actually at step 1 that it seemed to be
populated. According to my knowledge of tapestry it shouldn't have been so
as I said I'll double check this.
>-Harish
>
>>
>>
>>>Glen Stampoultzis wrote:
>>>
>>>>
>>>>To further expand on this here's the current way the ListEdit gets
>>>>populated:
>>>>
>>>>1. Page is displayed. pageBeginRender() is called and ListEdit gets
>>>>populated.
>>>>2. User modifies some details and submits.
>>>>3. pageBeginRender() is called again in rewind mode. ListEdit gets
>>>>populated.
>>>>4. As part of the rewind the modify values are applied to the ListEdit.
>>>>5. The form submit listener is called. Validation checks are done and
>>>>we decide that there are some things that need to be corrected so we
>>>>don't bother saving the changes off to the database yet.
>>>>6. pageBeginRender() is called again (not in rewind mode this time).
>>>>The ListEdit get's repopulated (wiping out the values the user submitted).
>>>>
>>>>Now if I could leave out stage 6 I _think_ I'd be okay but I'm not sure
>>>>if tapestry provides a way to detect the fact that I'm at this stage.
>>>>
>>>>Regards,
>>>>
>>>>Glen
>>>>
>>>>At 10:35 AM 24/02/2004, you wrote:
>>>>
>>>>>Wow... that made no sense at all! Note to self : check email before
>>>>>hitting send.
>>>>>
>>>>>I'm saying that I have a DatePicker inside a ListEdit and that the
>>>>>DatePicker values are lost. Also it seems that the deleted indicators
>>>>>get lost as well.
>>>>>
>>>>>I believe this is because of the initialization I'm doing in the
>>>>>pageBeginRender() method. Is that the right place to initialize my
>>>>>ListEdit? This seems to be where it's done in the VLib example application.
>>>>>
>>>>>Regards,
>>>>>
>>>>>Glen
>>>>>
>>>>>
>>>>>At 12:07 AM 24/02/2004, you wrote:
>>>>>
>>>>>>Could you check over what you wrote there ... I think you mean that
>>>>>>the DatePicker data is lost?
>>>>>>
>>>>>>--
>>>>>>Howard M. Lewis Ship
>>>>>>Independent J2EE / Open-Source Java Consultant
>>>>>>Creator, Tapestry: Java Web Components
>>>>>>http://howardlewisship.com
>>>>>>
>>>>>>
>>>>>> > -----Original Message-----
>>>>>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>>>>>> > Sent: Monday, February 23, 2004 12:25 AM
>>>>>> > To: tapestry-user@jakarta.apache.org
>>>>>> > Subject: ListEdit
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>>>>>> > of trouble.
>>>>>> >
>>>>>> > I have the following type of setup:
>>>>>> >
>>>>>> > * Some regular text fields which I apply some server side
>>>>>> > validation to
>>>>>> > * A ListEdit of text fields that have some DatePickers.
>>>>>> >
>>>>>> > If for whatever reason my form fails to validate I any data
>>>>>> > entered into
>>>>>> > the text fields seems to be retained but changes to the
>>>>>> > ListEdit controls
>>>>>> > are lost. Is there any way to get tapestry to remember these values?
>>>>>> >
>>>>>> >
>>>>>> > Regards,
>>>>>> >
>>>>>> >
>>>>>> > Glen Stampoultzis
>>>>>> > gstamp@iinet.net.au
>>>>>> > http://members.iinet.net.au/~gstamp/glen/
>>>>>> >
>>>>>> >
>>>>>> > ---------------------------------------------------------------------
>>>>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>> >
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>Glen Stampoultzis
>>>>>gstamp@iinet.net.au
>>>>>http://members.iinet.net.au/~gstamp/glen/
>>>>
>>>>
>>>>
>>>>
>>>>Glen Stampoultzis
>>>>gstamp@iinet.net.au
>>>>http://members.iinet.net.au/~gstamp/glen/
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>Glen Stampoultzis
>>gstamp@iinet.net.au
>>http://members.iinet.net.au/~gstamp/glen/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
Re: ListEdit
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Glen Stampoultzis wrote:
> At 01:48 PM 25/02/2004, you wrote:
>
>> Yes, there is, and that is the cycle.isRewinding(). But a better way
>> IMO is to check the list that you are trying to populate and populate
>> only if it is not already populated.
>>
>> -Harish
>
>
> But at step 6 it's not actually rewinding is it? That happens on step 3.
That's right and hence the isRewinding would return false.
>
> I thought about your suggestion but it seemed to me that it was
> remembering stuff from a previous render. I could be wrong about that
> as it doesn't seem right but I'll double check.
Is the list stored in a persistent property? If not then it is simply
holding the value from the rewind.
-Harish
>
>
>> Glen Stampoultzis wrote:
>>
>>>
>>> To further expand on this here's the current way the ListEdit gets
>>> populated:
>>>
>>> 1. Page is displayed. pageBeginRender() is called and ListEdit gets
>>> populated.
>>> 2. User modifies some details and submits.
>>> 3. pageBeginRender() is called again in rewind mode. ListEdit gets
>>> populated.
>>> 4. As part of the rewind the modify values are applied to the ListEdit.
>>> 5. The form submit listener is called. Validation checks are done
>>> and we decide that there are some things that need to be corrected
>>> so we don't bother saving the changes off to the database yet.
>>> 6. pageBeginRender() is called again (not in rewind mode this time).
>>> The ListEdit get's repopulated (wiping out the values the user
>>> submitted).
>>>
>>> Now if I could leave out stage 6 I _think_ I'd be okay but I'm not
>>> sure if tapestry provides a way to detect the fact that I'm at this
>>> stage.
>>>
>>> Regards,
>>>
>>> Glen
>>>
>>> At 10:35 AM 24/02/2004, you wrote:
>>>
>>>> Wow... that made no sense at all! Note to self : check email
>>>> before hitting send.
>>>>
>>>> I'm saying that I have a DatePicker inside a ListEdit and that the
>>>> DatePicker values are lost. Also it seems that the deleted
>>>> indicators get lost as well.
>>>>
>>>> I believe this is because of the initialization I'm doing in the
>>>> pageBeginRender() method. Is that the right place to initialize my
>>>> ListEdit? This seems to be where it's done in the VLib example
>>>> application.
>>>>
>>>> Regards,
>>>>
>>>> Glen
>>>>
>>>>
>>>> At 12:07 AM 24/02/2004, you wrote:
>>>>
>>>>> Could you check over what you wrote there ... I think you mean
>>>>> that the DatePicker data is lost?
>>>>>
>>>>> --
>>>>> Howard M. Lewis Ship
>>>>> Independent J2EE / Open-Source Java Consultant
>>>>> Creator, Tapestry: Java Web Components
>>>>> http://howardlewisship.com
>>>>>
>>>>>
>>>>> > -----Original Message-----
>>>>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>>>>> > Sent: Monday, February 23, 2004 12:25 AM
>>>>> > To: tapestry-user@jakarta.apache.org
>>>>> > Subject: ListEdit
>>>>> >
>>>>> >
>>>>> >
>>>>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>>>>> > of trouble.
>>>>> >
>>>>> > I have the following type of setup:
>>>>> >
>>>>> > * Some regular text fields which I apply some server side
>>>>> > validation to
>>>>> > * A ListEdit of text fields that have some DatePickers.
>>>>> >
>>>>> > If for whatever reason my form fails to validate I any data
>>>>> > entered into
>>>>> > the text fields seems to be retained but changes to the
>>>>> > ListEdit controls
>>>>> > are lost. Is there any way to get tapestry to remember these
>>>>> values?
>>>>> >
>>>>> >
>>>>> > Regards,
>>>>> >
>>>>> >
>>>>> > Glen Stampoultzis
>>>>> > gstamp@iinet.net.au
>>>>> > http://members.iinet.net.au/~gstamp/glen/
>>>>> >
>>>>> >
>>>>> >
>>>>> ---------------------------------------------------------------------
>>>>> > To unsubscribe, e-mail:
>>>>> tapestry-user-unsubscribe@jakarta.apache.org
>>>>> > For additional commands, e-mail:
>>>>> tapestry-user-help@jakarta.apache.org
>>>>> >
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail:
>>>>> tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>>
>>>> Glen Stampoultzis
>>>> gstamp@iinet.net.au
>>>> http://members.iinet.net.au/~gstamp/glen/
>>>
>>>
>>>
>>>
>>> Glen Stampoultzis
>>> gstamp@iinet.net.au
>>> http://members.iinet.net.au/~gstamp/glen/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ListEdit
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
At 01:48 PM 25/02/2004, you wrote:
>Yes, there is, and that is the cycle.isRewinding(). But a better way IMO
>is to check the list that you are trying to populate and populate only if
>it is not already populated.
>
>-Harish
But at step 6 it's not actually rewinding is it? That happens on step 3.
I thought about your suggestion but it seemed to me that it was remembering
stuff from a previous render. I could be wrong about that as it doesn't
seem right but I'll double check.
>Glen Stampoultzis wrote:
>
>>
>>To further expand on this here's the current way the ListEdit gets populated:
>>
>>1. Page is displayed. pageBeginRender() is called and ListEdit gets
>>populated.
>>2. User modifies some details and submits.
>>3. pageBeginRender() is called again in rewind mode. ListEdit gets
>>populated.
>>4. As part of the rewind the modify values are applied to the ListEdit.
>>5. The form submit listener is called. Validation checks are done and we
>>decide that there are some things that need to be corrected so we don't
>>bother saving the changes off to the database yet.
>>6. pageBeginRender() is called again (not in rewind mode this time).
>>The ListEdit get's repopulated (wiping out the values the user submitted).
>>
>>Now if I could leave out stage 6 I _think_ I'd be okay but I'm not sure
>>if tapestry provides a way to detect the fact that I'm at this stage.
>>
>>Regards,
>>
>>Glen
>>
>>At 10:35 AM 24/02/2004, you wrote:
>>
>>>Wow... that made no sense at all! Note to self : check email before
>>>hitting send.
>>>
>>>I'm saying that I have a DatePicker inside a ListEdit and that the
>>>DatePicker values are lost. Also it seems that the deleted indicators
>>>get lost as well.
>>>
>>>I believe this is because of the initialization I'm doing in the
>>>pageBeginRender() method. Is that the right place to initialize my
>>>ListEdit? This seems to be where it's done in the VLib example application.
>>>
>>>Regards,
>>>
>>>Glen
>>>
>>>
>>>At 12:07 AM 24/02/2004, you wrote:
>>>
>>>>Could you check over what you wrote there ... I think you mean that the
>>>>DatePicker data is lost?
>>>>
>>>>--
>>>>Howard M. Lewis Ship
>>>>Independent J2EE / Open-Source Java Consultant
>>>>Creator, Tapestry: Java Web Components
>>>>http://howardlewisship.com
>>>>
>>>>
>>>> > -----Original Message-----
>>>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>>>> > Sent: Monday, February 23, 2004 12:25 AM
>>>> > To: tapestry-user@jakarta.apache.org
>>>> > Subject: ListEdit
>>>> >
>>>> >
>>>> >
>>>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>>>> > of trouble.
>>>> >
>>>> > I have the following type of setup:
>>>> >
>>>> > * Some regular text fields which I apply some server side
>>>> > validation to
>>>> > * A ListEdit of text fields that have some DatePickers.
>>>> >
>>>> > If for whatever reason my form fails to validate I any data
>>>> > entered into
>>>> > the text fields seems to be retained but changes to the
>>>> > ListEdit controls
>>>> > are lost. Is there any way to get tapestry to remember these values?
>>>> >
>>>> >
>>>> > Regards,
>>>> >
>>>> >
>>>> > Glen Stampoultzis
>>>> > gstamp@iinet.net.au
>>>> > http://members.iinet.net.au/~gstamp/glen/
>>>> >
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>> >
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>Glen Stampoultzis
>>>gstamp@iinet.net.au
>>>http://members.iinet.net.au/~gstamp/glen/
>>
>>
>>
>>Glen Stampoultzis
>>gstamp@iinet.net.au
>>http://members.iinet.net.au/~gstamp/glen/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: ListEdit
Posted by Harish Krishnaswamy <hk...@comcast.net>.
Yes, there is, and that is the cycle.isRewinding(). But a better way IMO
is to check the list that you are trying to populate and populate only
if it is not already populated.
-Harish
Glen Stampoultzis wrote:
>
> To further expand on this here's the current way the ListEdit gets
> populated:
>
> 1. Page is displayed. pageBeginRender() is called and ListEdit gets
> populated.
> 2. User modifies some details and submits.
> 3. pageBeginRender() is called again in rewind mode. ListEdit gets
> populated.
> 4. As part of the rewind the modify values are applied to the ListEdit.
> 5. The form submit listener is called. Validation checks are done and
> we decide that there are some things that need to be corrected so we
> don't bother saving the changes off to the database yet.
> 6. pageBeginRender() is called again (not in rewind mode this time).
> The ListEdit get's repopulated (wiping out the values the user
> submitted).
>
> Now if I could leave out stage 6 I _think_ I'd be okay but I'm not
> sure if tapestry provides a way to detect the fact that I'm at this
> stage.
>
> Regards,
>
> Glen
>
> At 10:35 AM 24/02/2004, you wrote:
>
>> Wow... that made no sense at all! Note to self : check email before
>> hitting send.
>>
>> I'm saying that I have a DatePicker inside a ListEdit and that the
>> DatePicker values are lost. Also it seems that the deleted
>> indicators get lost as well.
>>
>> I believe this is because of the initialization I'm doing in the
>> pageBeginRender() method. Is that the right place to initialize my
>> ListEdit? This seems to be where it's done in the VLib example
>> application.
>>
>> Regards,
>>
>> Glen
>>
>>
>> At 12:07 AM 24/02/2004, you wrote:
>>
>>> Could you check over what you wrote there ... I think you mean that
>>> the DatePicker data is lost?
>>>
>>> --
>>> Howard M. Lewis Ship
>>> Independent J2EE / Open-Source Java Consultant
>>> Creator, Tapestry: Java Web Components
>>> http://howardlewisship.com
>>>
>>>
>>> > -----Original Message-----
>>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>>> > Sent: Monday, February 23, 2004 12:25 AM
>>> > To: tapestry-user@jakarta.apache.org
>>> > Subject: ListEdit
>>> >
>>> >
>>> >
>>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>>> > of trouble.
>>> >
>>> > I have the following type of setup:
>>> >
>>> > * Some regular text fields which I apply some server side
>>> > validation to
>>> > * A ListEdit of text fields that have some DatePickers.
>>> >
>>> > If for whatever reason my form fails to validate I any data
>>> > entered into
>>> > the text fields seems to be retained but changes to the
>>> > ListEdit controls
>>> > are lost. Is there any way to get tapestry to remember these values?
>>> >
>>> >
>>> > Regards,
>>> >
>>> >
>>> > Glen Stampoultzis
>>> > gstamp@iinet.net.au
>>> > http://members.iinet.net.au/~gstamp/glen/
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> > For additional commands, e-mail:
>>> tapestry-user-help@jakarta.apache.org
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>
>> Glen Stampoultzis
>> gstamp@iinet.net.au
>> http://members.iinet.net.au/~gstamp/glen/
>
>
>
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: ListEdit
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
To further expand on this here's the current way the ListEdit gets populated:
1. Page is displayed. pageBeginRender() is called and ListEdit gets populated.
2. User modifies some details and submits.
3. pageBeginRender() is called again in rewind mode. ListEdit gets populated.
4. As part of the rewind the modify values are applied to the ListEdit.
5. The form submit listener is called. Validation checks are done and we
decide that there are some things that need to be corrected so we don't
bother saving the changes off to the database yet.
6. pageBeginRender() is called again (not in rewind mode this time). The
ListEdit get's repopulated (wiping out the values the user submitted).
Now if I could leave out stage 6 I _think_ I'd be okay but I'm not sure if
tapestry provides a way to detect the fact that I'm at this stage.
Regards,
Glen
At 10:35 AM 24/02/2004, you wrote:
>Wow... that made no sense at all! Note to self : check email before
>hitting send.
>
>I'm saying that I have a DatePicker inside a ListEdit and that the
>DatePicker values are lost. Also it seems that the deleted indicators get
>lost as well.
>
>I believe this is because of the initialization I'm doing in the
>pageBeginRender() method. Is that the right place to initialize my
>ListEdit? This seems to be where it's done in the VLib example application.
>
>Regards,
>
>Glen
>
>
>At 12:07 AM 24/02/2004, you wrote:
>>Could you check over what you wrote there ... I think you mean that the
>>DatePicker data is lost?
>>
>>--
>>Howard M. Lewis Ship
>>Independent J2EE / Open-Source Java Consultant
>>Creator, Tapestry: Java Web Components
>>http://howardlewisship.com
>>
>>
>> > -----Original Message-----
>> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
>> > Sent: Monday, February 23, 2004 12:25 AM
>> > To: tapestry-user@jakarta.apache.org
>> > Subject: ListEdit
>> >
>> >
>> >
>> > I've got a ListEdit/ListEditMap combo that's giving me a bit
>> > of trouble.
>> >
>> > I have the following type of setup:
>> >
>> > * Some regular text fields which I apply some server side
>> > validation to
>> > * A ListEdit of text fields that have some DatePickers.
>> >
>> > If for whatever reason my form fails to validate I any data
>> > entered into
>> > the text fields seems to be retained but changes to the
>> > ListEdit controls
>> > are lost. Is there any way to get tapestry to remember these values?
>> >
>> >
>> > Regards,
>> >
>> >
>> > Glen Stampoultzis
>> > gstamp@iinet.net.au
>> > http://members.iinet.net.au/~gstamp/glen/
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>> >
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>Glen Stampoultzis
>gstamp@iinet.net.au
>http://members.iinet.net.au/~gstamp/glen/
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
RE: ListEdit
Posted by Glen Stampoultzis <gs...@iinet.net.au>.
Wow... that made no sense at all! Note to self : check email before
hitting send.
I'm saying that I have a DatePicker inside a ListEdit and that the
DatePicker values are lost. Also it seems that the deleted indicators get
lost as well.
I believe this is because of the initialization I'm doing in the
pageBeginRender() method. Is that the right place to initialize my
ListEdit? This seems to be where it's done in the VLib example application.
Regards,
Glen
At 12:07 AM 24/02/2004, you wrote:
>Could you check over what you wrote there ... I think you mean that the
>DatePicker data is lost?
>
>--
>Howard M. Lewis Ship
>Independent J2EE / Open-Source Java Consultant
>Creator, Tapestry: Java Web Components
>http://howardlewisship.com
>
>
> > -----Original Message-----
> > From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
> > Sent: Monday, February 23, 2004 12:25 AM
> > To: tapestry-user@jakarta.apache.org
> > Subject: ListEdit
> >
> >
> >
> > I've got a ListEdit/ListEditMap combo that's giving me a bit
> > of trouble.
> >
> > I have the following type of setup:
> >
> > * Some regular text fields which I apply some server side
> > validation to
> > * A ListEdit of text fields that have some DatePickers.
> >
> > If for whatever reason my form fails to validate I any data
> > entered into
> > the text fields seems to be retained but changes to the
> > ListEdit controls
> > are lost. Is there any way to get tapestry to remember these values?
> >
> >
> > Regards,
> >
> >
> > Glen Stampoultzis
> > gstamp@iinet.net.au
> > http://members.iinet.net.au/~gstamp/glen/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Glen Stampoultzis
gstamp@iinet.net.au
http://members.iinet.net.au/~gstamp/glen/
RE: ListEdit
Posted by "Howard M. Lewis Ship" <hl...@comcast.net>.
Could you check over what you wrote there ... I think you mean that the DatePicker data is lost?
--
Howard M. Lewis Ship
Independent J2EE / Open-Source Java Consultant
Creator, Tapestry: Java Web Components
http://howardlewisship.com
> -----Original Message-----
> From: Glen Stampoultzis [mailto:gstamp@iinet.net.au]
> Sent: Monday, February 23, 2004 12:25 AM
> To: tapestry-user@jakarta.apache.org
> Subject: ListEdit
>
>
>
> I've got a ListEdit/ListEditMap combo that's giving me a bit
> of trouble.
>
> I have the following type of setup:
>
> * Some regular text fields which I apply some server side
> validation to
> * A ListEdit of text fields that have some DatePickers.
>
> If for whatever reason my form fails to validate I any data
> entered into
> the text fields seems to be retained but changes to the
> ListEdit controls
> are lost. Is there any way to get tapestry to remember these values?
>
>
> Regards,
>
>
> Glen Stampoultzis
> gstamp@iinet.net.au
> http://members.iinet.net.au/~gstamp/glen/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org