You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Matt Goodwin <mg...@metalexis.com> on 2004/11/29 19:05:33 UTC

[betwixt] ObjectStringConverter .betwixt file

I have successfully been able to set a custom object string converter 
for a date format I have in java code using the 
BeanReader.getBindingConfiguration method (thank you for the 
documentation).  However, I would like to be able to set this in the 
.betwixt file.  I have the following snippet for .betwixt file
<?xml version='1.0' ?>
<info>
  <element name='ActivitySummary'>
      <element name='CommissionsYTD' property='commissionsYTD'/>
      <element name='LastCommissionAmt' property='lastCommissionAmt'/>
      <element name='LastCommissionDate' property='lastCommissionDate'>
          <option>
              
<name>org.apache.commons.betwixt.strategy.ObjectStringConverter</name>
              <value>com.equitrust.dao.util.SEGDateConverter</value>
          </option>
      </element>
      <element name='PremiumYTD' property='premiumYTD'/>
  </element>
</info>

What am I missing.  I still get a 
org.apache.commons.beanutils.ConversionException. What is the proper way 
to specify my custom
converter in the .betwixt file.

Thanks,

Matt

-- 
Matt Goodwin
mgoodwin@metalexis.com
(515)708-0114
Metalexis
"Transcending the Ordinary"


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] ObjectStringConverter .betwixt file

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
hi Matt

let me know if you've got anywhere on this. if not, i'll probably take  
a look into this in the next day or two.

- robert

On 29 Nov 2004, at 20:53, Matt Goodwin wrote:

> Thanks for the response.  I'll check it out and see what's going on.
> Matt
>
> robert burrell donkin wrote:
>
>>
>> On 29 Nov 2004, at 18:05, Matt Goodwin wrote:
>>
>>> I have successfully been able to set a custom object string  
>>> converter for a date format I have in java code using the  
>>> BeanReader.getBindingConfiguration method (thank you for the  
>>> documentation).  However, I would like to be able to set this in the  
>>> .betwixt file.  I have the following snippet for .betwixt file
>>> <?xml version='1.0' ?>
>>> <info>
>>>  <element name='ActivitySummary'>
>>>      <element name='CommissionsYTD' property='commissionsYTD'/>
>>>      <element name='LastCommissionAmt' property='lastCommissionAmt'/>
>>>      <element name='LastCommissionDate'  
>>> property='lastCommissionDate'>
>>>          <option>
>>>               
>>> <name>org.apache.commons.betwixt.strategy.ObjectStringConverter</ 
>>> name>
>>>              <value>com.equitrust.dao.util.SEGDateConverter</value>
>>>          </option>
>>>      </element>
>>>      <element name='PremiumYTD' property='premiumYTD'/>
>>>  </element>
>>> </info>
>>>
>>> What am I missing.  I still get a  
>>> org.apache.commons.beanutils.ConversionException. What is the proper  
>>> way to specify my custom
>>> converter in the .betwixt file.
>>
>>
>> unfortunately, i have a feeling that you are missing some code in  
>> betwixt to do just that (but i could be wrong, i don't have time  
>> right now to check...)
>>
>> i'm already late for the start of a night out so sadly i doubt i'll  
>> be able to create some code that does what you want tonight. i do  
>> think that this should be reasonable easy to add so the quickest way  
>> to get what you want would be to install maven  
>> (http://maven.apache.org), download the latest code from CVS and  
>> start hacking!
>>
>> if you're feeling generous then please contribute it back (i think  
>> that this list bounces attachments so you might need to open a  
>> bugzilla). otherwise, i'll try to find some time but realistically it  
>> will be a few days...
>>
>> - robert
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>
> -- 
> Matt Goodwin
> mgoodwin@metalexis.com
> (515)708-0114
> Metalexis
> "Transcending the Ordinary"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] ObjectStringConverter .betwixt file

Posted by Matt Goodwin <mg...@metalexis.com>.
Thanks for the response.  I'll check it out and see what's going on. 

Matt

robert burrell donkin wrote:

>
> On 29 Nov 2004, at 18:05, Matt Goodwin wrote:
>
>> I have successfully been able to set a custom object string converter 
>> for a date format I have in java code using the 
>> BeanReader.getBindingConfiguration method (thank you for the 
>> documentation).  However, I would like to be able to set this in the 
>> .betwixt file.  I have the following snippet for .betwixt file
>> <?xml version='1.0' ?>
>> <info>
>>  <element name='ActivitySummary'>
>>      <element name='CommissionsYTD' property='commissionsYTD'/>
>>      <element name='LastCommissionAmt' property='lastCommissionAmt'/>
>>      <element name='LastCommissionDate' property='lastCommissionDate'>
>>          <option>
>>              
>> <name>org.apache.commons.betwixt.strategy.ObjectStringConverter</name>
>>              <value>com.equitrust.dao.util.SEGDateConverter</value>
>>          </option>
>>      </element>
>>      <element name='PremiumYTD' property='premiumYTD'/>
>>  </element>
>> </info>
>>
>> What am I missing.  I still get a 
>> org.apache.commons.beanutils.ConversionException. What is the proper 
>> way to specify my custom
>> converter in the .betwixt file.
>
>
> unfortunately, i have a feeling that you are missing some code in 
> betwixt to do just that (but i could be wrong, i don't have time right 
> now to check...)
>
> i'm already late for the start of a night out so sadly i doubt i'll be 
> able to create some code that does what you want tonight. i do think 
> that this should be reasonable easy to add so the quickest way to get 
> what you want would be to install maven (http://maven.apache.org), 
> download the latest code from CVS and start hacking!
>
> if you're feeling generous then please contribute it back (i think 
> that this list bounces attachments so you might need to open a 
> bugzilla). otherwise, i'll try to find some time but realistically it 
> will be a few days...
>
> - robert
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>

-- 
Matt Goodwin
mgoodwin@metalexis.com
(515)708-0114
Metalexis
"Transcending the Ordinary"


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Re: [betwixt] ObjectStringConverter .betwixt file

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On 29 Nov 2004, at 18:05, Matt Goodwin wrote:

> I have successfully been able to set a custom object string converter 
> for a date format I have in java code using the 
> BeanReader.getBindingConfiguration method (thank you for the 
> documentation).  However, I would like to be able to set this in the 
> .betwixt file.  I have the following snippet for .betwixt file
> <?xml version='1.0' ?>
> <info>
>  <element name='ActivitySummary'>
>      <element name='CommissionsYTD' property='commissionsYTD'/>
>      <element name='LastCommissionAmt' property='lastCommissionAmt'/>
>      <element name='LastCommissionDate' property='lastCommissionDate'>
>          <option>
>              
> <name>org.apache.commons.betwixt.strategy.ObjectStringConverter</name>
>              <value>com.equitrust.dao.util.SEGDateConverter</value>
>          </option>
>      </element>
>      <element name='PremiumYTD' property='premiumYTD'/>
>  </element>
> </info>
>
> What am I missing.  I still get a 
> org.apache.commons.beanutils.ConversionException. What is the proper 
> way to specify my custom
> converter in the .betwixt file.

unfortunately, i have a feeling that you are missing some code in 
betwixt to do just that (but i could be wrong, i don't have time right 
now to check...)

i'm already late for the start of a night out so sadly i doubt i'll be 
able to create some code that does what you want tonight. i do think 
that this should be reasonable easy to add so the quickest way to get 
what you want would be to install maven (http://maven.apache.org), 
download the latest code from CVS and start hacking!

if you're feeling generous then please contribute it back (i think that 
this list bounces attachments so you might need to open a bugzilla). 
otherwise, i'll try to find some time but realistically it will be a 
few days...

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org