Fintan,

This indeed is a very nice feature to create a JSF page, starting from an
XML document.  It's a good start, but I'm also looking for an easy way to
create a web UI for changing an XML document's content.  

If there was a good way of binding element/attribute values in an XML
document to JSF components,  you could have e.g. an <t:inputText /> on a
page to alter the underlying document.  It would also be possible to
leverage JSF functionality for validation etc.  Afterwards, the action
method could simply send off the document to the backend server for
processing, without the need to marshal/unmarshal between objects and XML.


Gert


Conway. Fintan (IT Solutions) wrote:
> 
> Hi Gert,
> 
> See http://example.irian.at/example-sandbox-20070710/template/index.jsf
> 
> For an example of producing a JSF page from an XML document with XSL.
> 
> HTH,
> 
> Fintan
> 
> -----Original Message-----
> From: Gert Vanthienen [mailto:[EMAIL PROTECTED] 
> Sent: 10 July 2007 07:24
> To: [email protected]
> Subject: XML document as data for form
> 
> 
> 
> L.S.,
> 
> 
> I'm building a forms-based web application.  Most of the times, the data
> that was filled in to the form needs to be send into Apache Servicemix
> for further processing, so it is best stored in XML format.  Is there a
> way to use an XML document as the source of data for a JSF form?  I was
> thinking of building a PropertyResolver that understands XPath
> expressions (eg. document['/article/supplier/@id'], but perhaps there is
> an easier way to do this...
> 
> Or should I generate classes based on my XSD, only to make it possible
> to build this kind of web form?
> 
> 
> Regards,
> 
> Gert Vanthienen
> -- 
> View this message in context:
> http://www.nabble.com/XML-document-as-data-for-form-tf4054048.html#a1151
> 5457
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 
> * ** *** ** * ** *** ** * ** *** ** *
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed.
> Any views or opinions presented are solely those of the author, and do not
> necessarily
> represent those of ESB.
> If you have received this email in error please notify the sender.
> 
> Although ESB scans e-mail and attachments for viruses, it does not
> guarantee
> that either are virus-free and accepts no liability for any damage
> sustained
> as a result of viruses.
> 
> Company Registration Information: http://www.esb.ie/companies
> * ** *** ** * ** *** ** * ** *** ** *
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/XML-document-as-data-for-form-tf4054048.html#a11519002
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to