Questions tagged [dynamic-attributes]
32 questions
1
vote
1 answer
injecting dynamic-attributes in a spring tag from a custom tag
I have a custom jsp tag that outputs a spring form input field (plus other layout elements). What I need to do is to be able to accept dynamic attributes and use them in the input field as-is.
Eg of use:

Rasael
- 66
- 6
0
votes
2 answers
Ruby Best Practice - Dynamic Attributes vs Hash for RoR application
I'm developing a model which holds configuration settings for server options. The number and type of server options change, and I need some input on the pros/cons of two ways of doing it.
I'm doing this separate from the rails ActiveRecord database.…

Josh Johnson
- 563
- 3
- 11
- 29
0
votes
1 answer
Flexible Search dynamic attribute
I have a problem with Flexible Search, I have a dynamic attribute ("available parts") in the TimeSlotInstance entity, I would like to show the value of this dynamic attribute in the "remaining availability" column of my query (obviously for each…

John
- 15
- 3
0
votes
1 answer
ASP.NET MVC - Dynamic Class Attributes
I'm trying to solve the following problem. I have a base class which stores data, lets say for a Person.
When a new Person is created, only some of those details will be filled in via a form i.e. Firstname, Lastname. When the person is saved to the…

Tom
- 1,051
- 4
- 21
- 36
0
votes
1 answer
C# Dynamically determine class properties based on configuration for comparison
I have a configuration defined for duplicate check on each property in my model below
public class ConfigurationModel
{
public GroupValue Value1 { get; set; }
public GroupValue Value2 { get; set; }
public GroupValue Value3 { get; set; }
…

KeenUser
- 5,305
- 14
- 41
- 62
0
votes
1 answer
How to pass an Event Listener as a Dynamic Attribute in Marko?
I'm trying to create a form in Marko and for the inputs I'm using a component that will create the inputs and will handle the validation.
The hole problem is when I try to pass an event listener as a dynamic attribute.
I have an array of fields as…

user2611485
- 21
- 1
0
votes
1 answer
Microsoft Bot Framework: How can I populate form flow field values based on the user's input for a previous field
I have the following attributes for a form flow case:
public enum Offices{}
[Describe("Country")]
public string Country;
[Prompt("Which office are you working in?{||}")]
public Offices Office;
I want to populate the offices according to the…

Nour Rteil
- 45
- 4
0
votes
0 answers
Dynamic attributes nesting within composite components
I am struggling with nesting dynamic JSF attributes within composite components.
Let us imagine following structure on client side:
class BackingBean{
Animal animal;
}
class Animal {
Type type;
}
class Type{
String name;
}
On the…

krzakov
- 3,871
- 11
- 37
- 52
0
votes
1 answer
Spring Error in dynamic attributes
I work with Eclipse Juno, Spring 3.2.6.RELEASE, Weblogic 10.3.6.
I have the following jsp
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib…

Carlota
- 1,239
- 3
- 29
- 59
0
votes
1 answer
attr_accessible for Rails 4 dynamic attributes
I'm using Rails 4 and want to define dynamic attributes, something like:
(0..6).each do |i|
attr_accessible "attr-#{i}"
right now it's failling saying
NoMethodError: undefined method `attr_accessible' for #
I believe…

WhomWhomWhom
- 47
- 7
0
votes
2 answers
Magento - Dynamic Product Attribute Only Pulling Data from Single CMS Block
I have set up 2 extra tabs on my individual product pages which should be pulling information from a different CMS Block for each product. However, when I view the product pages they are all pulling the exact same information from 1 of the CMS…

Scott
- 3
- 3
0
votes
1 answer
How to make attribute_names list all attribute names in a document with dynamic attributes
I have a Rails 4.2 application with mongoid in which I'm importing csv files with test results. I can't define all fields in the model because they change from test to test and theres always around 700 of them. I use Dynamic Attributes and importing…

Bart C
- 1,509
- 2
- 16
- 17
0
votes
1 answer
Python dynamic attribute value bind to method
after reading several posts here I am still a bit confused on the correct way to implement a Class dynamic attribute with a function as value.
Been some time since I touched python and now I am a bit stuck.
I have the following class:
class…

Jimmy Kane
- 16,223
- 11
- 86
- 117
0
votes
1 answer
Rails / MongoDB: Variable to address object-attribute not translating
In my class AleShot I have some dynamic mongoid-attributes. In order to index them, I collect all attributes in an array called "dynamos". Now when I want to list these (see code below) I get: undefined method 'dyn_f' for…

CinemaCope
- 17
- 2
0
votes
1 answer
Dynamic Attribute is stored first time but not followings in grails application with mongodb
I'm trying to add one dynamic attribute to my Domain Class and I'm experimenting an extrange issue. When the database is empty, the first instance is saved with the property correctly set, but subsequent calls store the instance without that…

Eylen
- 2,617
- 4
- 27
- 42