|
From: Steven D. <ste...@gm...> - 2005-07-10 22:08:39
|
Hi, I am faced with the same problem as described in this thread on the forum: http://forum.springframework.org/viewtopic.php?t=3D6791&highlight=3Deventid I go to a detail screen from a table through a link. On the details screen is a form that has a _eventId field. When I submit my browser sends two _eventId request parameters: one from the URI of the previous request and one from the form. The only solution I can think of to solve this problem is to introduce a _formEventId parameter that precedes over _eventId. It's a bit broken since users can use _formEventId in URI as well. Steven --=20 "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart |
|
From: Steven D. <ste...@gm...> - 2005-07-10 22:11:10
|
And a better exception would be nice as well :-) On 7/11/05, Steven Devijver <ste...@gm...> wrote: > Hi, >=20 > I am faced with the same problem as described in this thread on the forum= : >=20 > http://forum.springframework.org/viewtopic.php?t=3D6791&highlight=3Devent= id >=20 > I go to a detail screen from a table through a link. On the details > screen is a form that has a _eventId field. When I submit my browser > sends two _eventId request parameters: one from the URI of the > previous request and one from the form. >=20 > The only solution I can think of to solve this problem is to introduce > a _formEventId parameter that precedes over _eventId. It's a bit > broken since users can use _formEventId in URI as well. >=20 > Steven >=20 > -- > "If you want to be a different fish, you gotta jump out of the school." > -- Captain Beefheart >=20 --=20 "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart |
|
From: Keith D. <ke...@in...> - 2005-07-11 13:15:26
|
Steven, What I always do for forms is this format: <input type="text" name="_eventId_submit" value="Submit"/> <input type="text" name="_eventId_cancel" value="Cancel"/> That way the eventId is only submitted if the button is pressed. We should arguably update the samples to use this format. This situation will be detected on the server-side for PR4 with an appropriate error message. Keith -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Steven Devijver Sent: Sunday, July 10, 2005 6:11 PM To: spr...@li... Subject: [Springframework-developer] Re: SWF: double _eventId syndrome And a better exception would be nice as well :-) On 7/11/05, Steven Devijver <ste...@gm...> wrote: > Hi, > > I am faced with the same problem as described in this thread on the forum: > > http://forum.springframework.org/viewtopic.php?t=6791&highlight=eventid > > I go to a detail screen from a table through a link. On the details > screen is a form that has a _eventId field. When I submit my browser > sends two _eventId request parameters: one from the URI of the > previous request and one from the form. > > The only solution I can think of to solve this problem is to introduce > a _formEventId parameter that precedes over _eventId. It's a bit > broken since users can use _formEventId in URI as well. > > Steven > > -- > "If you want to be a different fish, you gotta jump out of the school." > -- Captain Beefheart > -- "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Steven D. <ste...@gm...> - 2005-07-11 13:25:36
|
Keith, Great, thanks for the feedback. Steven On 7/11/05, Keith Donald <ke...@in...> wrote: > Steven, >=20 > What I always do for forms is this format: > <input type=3D"text" name=3D"_eventId_submit" value=3D"Submit"/> > <input type=3D"text" name=3D"_eventId_cancel" value=3D"Cancel"/> >=20 > That way the eventId is only submitted if the button is pressed. We shou= ld > arguably update the samples to use this format. >=20 > This situation will be detected on the server-side for PR4 with an > appropriate error message. >=20 > Keith >=20 > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On Behalf = Of > Steven Devijver > Sent: Sunday, July 10, 2005 6:11 PM > To: spr...@li... > Subject: [Springframework-developer] Re: SWF: double _eventId syndrome >=20 > And a better exception would be nice as well :-) >=20 > On 7/11/05, Steven Devijver <ste...@gm...> wrote: > > Hi, > > > > I am faced with the same problem as described in this thread on the for= um: > > > > http://forum.springframework.org/viewtopic.php?t=3D6791&highlight=3Deve= ntid > > > > I go to a detail screen from a table through a link. On the details > > screen is a form that has a _eventId field. When I submit my browser > > sends two _eventId request parameters: one from the URI of the > > previous request and one from the form. > > > > The only solution I can think of to solve this problem is to introduce > > a _formEventId parameter that precedes over _eventId. It's a bit > > broken since users can use _formEventId in URI as well. > > > > Steven > > > > -- > > "If you want to be a different fish, you gotta jump out of the school." > > -- Captain Beefheart > > >=20 >=20 > -- > "If you want to be a different fish, you gotta jump out of the school." > -- Captain Beefheart >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen= ing > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by H= P, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happen= ing > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by H= P, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 --=20 "If you want to be a different fish, you gotta jump out of the school." -- Captain Beefheart |