Re: Setting a form field value as an empty string?

2008-02-29 Thread Derek Hohls
No, I mean that when it comes back from the form it is NULL.

 On 2008/02/29 at 03:09, in message [EMAIL PROTECTED], Joerg Heinicke 
 [EMAIL PROTECTED] wrote:
Derek Hohls DHohls at csir.co.za writes:

 I'd like to be able to set the initial, default value of a form to be an 
 empty 
 string; at the moment, if the user does not fill in a value, then it gets
 treated as a NULL value when passed to the database.
  
 I have tried:
 fd:initial-value/fd:initial-value
 and
 fd:initial-value /fd:initial-value
  
 but am still getting a NULL result.

You mean it's correct in the form, you don't see null on the screen, but in the
database it is NULL? Then I guess you have to fix your binding.

Joerg



-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail 
legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at 
http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Convert escaped xml back to xml or SAX events

2008-02-29 Thread Antonio Gallardo

Hi,

Hope this helps:

http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/xml/StringXMLizable.html

Best Regards,

Antonio Gallardo.

dkropotova escribió:
Dear all, 


I am using SOLR to store my xml files, that have been xml-escaped beforehand
(so that now they are simply treated as text). 


When a search is performed and results are back, I now would like to restore
my “escaped” xml. I created a simple transformer, but now I'm stuck on how
to solve my problem. I got all escaped xml in a field, but now I need to
convert it to xml or SAX events. I've searched, but couldn't find any method
that would accept string and try to do something useful with it – like
converting in SAX events or DOM objects.

Does anyone have any tips how to solve this problem??

Many thanks in advance,
Dasha
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]