Skip to main content

developerworkslabel >  WebSphere  >  forumlabel  >  IBM WebSphere Portlet Factory - Best Practices  >  developerWorks

Using checkboxes in RDD    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

loginbox.header
 loginbox.welcomelabel loginbox.guestlabel
loginbox.signin
This question is not answered.

Permlink Replies: 3 - Pages: 1 - Last Post: Nov 6, 2009 10:04 AM Last Post By: tfenster Threads: [ Previous | Next ]
Croesus

Posts: 22
Registered: May 27, 2009 01:04:29 PM
Using checkboxes in RDD
Posted: Sep 01, 2009 11:41:46 AM
 
Click to report abuse...   Click to reply to this thread Reply
Hi, I am using WPF 6.1.2.1 and am having a bit of trouble with using a checkbox in the RDD builder.

My problem is that I can't get the value for the checkbox to be anything but true/false. If I use a checkbox builder instead then it works fine.

I define the checkbox in a data definition file with the following code,


<DataDefinition name="myCheckbox">
  <Label>Checkbox</Label>
  <Required>true</Required>
  <DataType>string</DataType>
  <DataEntryControl>com.bowstreet.builders.webapp.CheckBoxBuilder</DataEntryControl>
  <DataEntryInputs>
    <Inputs>
      <Input name="CheckedValue">Yes</Input>
      <Input name="UncheckedValue">No</Input>
    </Inputs>
  </DataEntryInputs>
</DataDefinition>


has anyone run into this problem?
tfenster

Posts: 52
Registered: Nov 17, 2005 08:39:56 AM
Re: Using checkboxes in RDD
Posted: Nov 06, 2009 09:21:41 AM   in response to: Croesus in response to: Croesusthread.responsepost
 
Click to report abuse...   Click to reply to this thread Reply
Hi,

I have the same problem, did you find a solution?

tnfenster
SteveZag

Posts: 1,107
Registered: May 12, 2006 09:46:29 AM
Re: Using checkboxes in RDD
Posted: Nov 06, 2009 09:49:49 AM   in response to: tfenster in response to: tfensterthread.responsepost
 
Click to report abuse...   Click to reply to this thread Reply
Hi. Sorry, this question was overlooked. For reasons that I'll choose not to explain (because it might be embarrassing) for checkbox you need to set those values differently. I believe that this will work:

<DataDefinition name="myCheckbox">
  <Label>Checkbox</Label>
  <Required>true</Required>
  <DataType>string</DataType>
  <DataEntryControl>com.bowstreet.builders.webapp.CheckBoxBuilder</DataEntryControl>
  <Properties>
    <Property  name="CheckBoxCheckedValue">Yes</Property>
    <Property  name="CheckBoxUncheckedValue">No</Property>
  </Properties>
</DataDefinition>
tfenster

Posts: 52
Registered: Nov 17, 2005 08:39:56 AM
Re: Using checkboxes in RDD
Posted: Nov 06, 2009 10:04:35 AM   in response to: SteveZag in response to: SteveZagthread.responsepost
 
Click to report abuse...   Click to reply to this thread Reply
This works. Would be worth mentioning somewhere in the help system...
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums