• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Setting value for a key programmatically for arg0 tag

 
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can we set programmatically the value corresponding to a key? I have already set resource false for arg0 tag.



Now in the error message, for {0}, I want the value which I have set programmatically.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried changing the value of arg0 key by variable tag.

Here is the code





My error message is, We don't provide loans for {0}. Here this 0 points to arg0 whose value is the value of variable validateCDField which I am assigning by our validate method.

Still I am not getting the value at place {0}

Can anyone please help me?
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there anyway to map arg key with user entered value of form field?



Just like ${var:varName} dynamically maps the value of var with key, similarly I tried with ${this:value}, but its not working. In place of form field value, I am getting ${this:value} as it is.

Please help
[ March 04, 2007: Message edited by: Naseem Khan ]
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I solved it by ...



here fieldValue is user entered value
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic