Hi all! I've been a RoR developer semi-actively in the past and
learning Castle MonoRail now because a client wants 'only
microsoft'... I encountered this:

On a form, I have a $FormHelper.TextField():

$FormHelper.TextField("ExampleSearch.ShipmentDocumentType", "%
{class='cookiebind'}")

the 'class='cookiebind'' part makes the field automatically store and
read it's value with a cookie named
'ExampleSearch.ShipmentDocumentType' using the jQuery cookie plugin:

jQuery('.cookiebind').cookieBind();

This works perfectly, for storing it's value in the cookie, each time
the value is changed on the page.

Except...  there seems to be a clash between the FormHelper trying to
retrieve the default value from the context, and jQuery's cookie
plugin trying to retrieve the value from the cookie.

What I would like, is for the FormHelper.TextField to try to retrieve
the default value not only form the PropertyBag, Request, Post etc.,
but also from the present cookies, just like the DataBinder does by
default.

Is there an option I have to supply? Or some kind of dictionary entry
added to the textfield's options?

Note: When I do NOT use the FormHelper's methods, but just plain HTML
(<input type="text" etc.), the jQuery cookie plugin retrieves the
value perfectly from the cookie...

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to