|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Encrypted annotation problem with options-collectionI am using encrypted annotation on a property that is a list of objects. I applied it on the getter method as shown in the indexed properties documentation:
@ValidateNestedProperties({
@Validate(field="id", encrypted=true) }) public List<ModelTypesEntity> getModelTypes() { return this.modelTypes; }
Then on a JSP I am using stripes tags to render a select dropdown: <stripes:select name="model.modelTypeId" id="model.modelTypeId" > <stripes:options-collection collection="${actionBean.modelTypes}" value="id" label="name" />
</stripes:select> But the values come out unencrypted. Any ideas is I am doing something wrong, or is this a bug? ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list Stripes-users@... https://lists.sourceforge.net/lists/listinfo/stripes-users |
|
|
Re: Encrypted annotation problem with options-collectionYou have marked the nested ActionBean property modelTypes.id as
encrypted, but your input is named modelTypeId. If you instead mark
your modelTypeId property with encrypted=true, then the value will be
encrypted. I just tested this here so I'm confident it will work for
you as well.
This seems a little bit tricky, but the easy way to remember where to set encrypted=true is that the property you flag as encrypted must match the input name of the tag whose value you want to encrypt. -Ben On Fri, Jun 13, 2008 at 5:04 PM, bagzee@... <bagzee@...> wrote: I am using encrypted annotation on a property that is a list of objects. I applied it on the getter method as shown in the indexed properties documentation: -- Ben Gunter ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list Stripes-users@... https://lists.sourceforge.net/lists/listinfo/stripes-users |
|
|
Re: Encrypted annotation problem with options-collectionok got it now. thank you.
On Wed, Jun 18, 2008 at 8:33 PM, Ben Gunter <bgunter@...> wrote: You have marked the nested ActionBean property modelTypes.id as encrypted, but your input is named modelTypeId. If you instead mark your modelTypeId property with encrypted=true, then the value will be encrypted. I just tested this here so I'm confident it will work for you as well. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Stripes-users mailing list Stripes-users@... https://lists.sourceforge.net/lists/listinfo/stripes-users |
| Free Forum Powered by Nabble | Forum Help |