Looks like at that point the values are all null.  Below is a partial stack 
trace if that helps.  Could it be an editing context mix up?  I tried using 
both a page specific editing context and the default context in Session to 
fetch my entity into.  The D2W page comes up pre-populated with the correct 
values, but hitting the save button causes the error.

ERMODInspectPage(ERD2WPage).validationFailedWithException(Throwable, Object, 
String) line: 429  
ERMDInspectPageRepetition(ERDCustomComponent).validationFailedWithException(Throwable,
 Object, String) line: 110        
ERD2WEditNumber.validationFailedWithException(Throwable, Object, String) line: 
80       
WOHelperFunctionKeyValueAssociation(WOKeyValueAssociation).setValue(Object, 
WOComponent) line: 91       
WOHelperFunctionKeyValueAssociation.setValue(Object, WOComponent) line: 21      
ERXWOTextField.takeValuesFromRequest(WORequest, WOContext) line: 166    
ERD2WEditNumber(WOComponent).takeValuesFromRequest(WORequest, WOContext) line: 
1051     
WOComponentReference.takeValuesFromRequest(WORequest, WOContext) line: 119      
ERXSwitchComponent.takeValuesFromRequest(WORequest, WOContext) line: 104        
WOComponentContent.takeValuesFromRequest(WORequest, WOContext) line: 26 
D2WEmptyWrapper(WOComponent).takeValuesFromRequest(WORequest, WOContext) line: 
1051     

On Jan 25, 2012, at 10:24 AM, Ramsey Gurley wrote:

> Not sure what to tell you, because I don't remember ever encountering such an 
> issue. Is it throwing the validation errors on saveChanges or on takeValues?  
> You can find out if you stick a breakpoint into validationFailedWithException 
> on ERD2WPage.
> 
> Ramsey
> 
> On Jan 24, 2012, at 5:47 AM, Jeff Schmitz wrote:
> 
>> Hope this isn't a double post, but my original posting seems to be in limbo 
>> somewhere...
>> 
>> Hello board,
>>    After watching several of the excellent D2W webcasts, including Dave L's 
>> two part intro, as well as reading much of the wiki D2W docs, I thought it 
>> time to get my hands dirty with D2W.  I am trying to add an ERModernLook D2W 
>> Edit page for an ApplicationState entity object, to an already created 
>> Wonder project.  By using the below process I've gotten pretty close, but 
>> whenever I try to save edits from the page, it returns with errors telling  
>> me I need to enter values for most of the fields, even though values are 
>> entered in the fields.  I'm sure there's some step I overlooked, but can't 
>> seem to figure it out.  Any ideas?
>> 
>> 
>> Steps to add an ERModernLook page in and already existing non-D2W Wonder App:
>> 
>> 1. Make sure you have the following libraries imported into your project:
>> Ajax Framework
>> ERCoolComponents
>> ERDirectToWeb
>> ERModernDefaultSkin
>> ERModernDirectToWeb
>> ERModernLook
>> JavaDirectToWeb
>> JavaDTWGeneration
>> WOLips
>> 
>> If you don't do all the above, when you try to bring up your D2W page you'll 
>> get "unable to find component" errors for components such as the WOToolBar, 
>> CCAjax..., etc.
>> 
>> 2.   Add code something like this to the page from which you will access the 
>> D2W page, using your own entity instead of ApplicationState of course:
>> 
>>   public WOActionResults goToAppState() {
>>     EOQualifier appStateFetch = ApplicationState.POOL_TYPE.eq(0);
>>     appState = ApplicationState.fetchRequiredApplicationState(this.compEC, 
>> appStateFetch);
>>     EditPageInterface epi = 
>> (EditPageInterface)D2W.factory().editPageForEntityNamed(ApplicationState.ENTITY_NAME,
>>  Session());
>>     epi.setObject(appState);
>>     epi.setNextPage(this.context().page());
>>     return (WOActionResults)epi;
>>   }
>> 
>> 
>>   and add a corresponding link to the same page to invoke the above code:
>> 
>>      <wo:WOHyperlink action="goToAppState">Set Application 
>> State</wo:WOHyperlink>
>> 
>> 3. Create a new Wonder D2W Application and from it copy the PageWrapper and 
>> MenuHeader components into your application. 
>> 
>> 4. Add the following properties to your project's Properties file
>> 
>> er.component.clickToOpen=true
>> wolips.password=wo
>> 
>> 
>> <AppState Edit.jpeg>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
>> 
>> This email sent to [email protected]
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeff%40netbrackets.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to