cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kirchhoff, Lars" <Lars.Kirchh...@wincor-nixdorf.com>
Subject AW: XMLForm and DOM node initialization
Date Mon, 09 Dec 2002 02:37:26 GMT
Hello Sylvian,

try the following:

<xf:selectOne ref="/workstationType">
  <xf:caption>Workstation Type</xf:caption>    
  <xf:itemset nodeset="listValues/document/typeOfWorkstation/item">
    <xf:caption ref="description"/>
    <xf:value ref="@id"/>
  </xf:itemset>
  <xf:violations class="error"/>
</xf:selectOne>

if your dom is still:

> -----Urspr√ľngliche Nachricht-----
> Von: Sylvain.Thevoz@swisscom.com [mailto:Sylvain.Thevoz@swisscom.com]
> Gesendet: Samstag, 7. Dezember 2002 00:53
> An: cocoon-users@xml.apache.org
> Betreff: XMLForm and DOM node initialization
> 
> 
> Hello everybody,
> 
> I'm using XMLForm and its possibility to access to DOM nodes.
> 
> Here is the code in the view (form.xml):
> 
> <xf:selectOne ref="/workstationType">
>   <xf:caption>Workstation Type</xf:caption>    
>   <xf:itemset nodeset="listValues/document/typeOfWorkstation/item">
>     <xf:caption ref="description"/>
>     <xf:value ref="@id"/>
>   </xf:itemset>
>   <xf:violations class="error"/>
> </xf:selectOne>
> 
> The problem is when I load the web app page (containing the 
> node field) for the first time (after a Tomcat or Browser 
> restart), the "value" and "caption" fields are empty although 
> the number of <option> are right.
> 
> Here is the HTML source when the fields are empty (first load):
> <td align="left"><select name="/workstationType"><option 
> value=""></option><option value=""></option><option 
> value=""></option></select></td>
> 
> Here is the HTML source when the fields are OK (not first load):
> <td align="left"><select name="/workstationType"><option 
> value="desktop">Desktop</option><option 
> value="laptop">Laptop</option><option value="other">Other 
> configuration</option></select></td>
> 
> The node is initialized in the Bean (model) conctructor.
> 
> 
> Is anybody could help me to understand what's happen?!?
> I'm really desparate because I really don't know what could 
> be the problem!
> 
> When a web page is loaded, which methods or actions are called?
> 
> 
> Any suggestions will be greatly appreciated.
> Thank you
> Sylvain
> 
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message