[Laszlo-user] Laszlo Newbie Question: updateDate() to dataset (.xml)

Benjamin Shine ben at laszlosystems.com
Sun Dec 16 19:34:03 PST 2007


The OpenLaszlo server will not write data back to the xml file on  
disk; that's outside the scope of the problem OL is trying to solve.  
OpenLaszlo is primarily a *presentation* layer; you have to go  
elsewhere for the middle-and-inner-ware of your application stack:  
php, rails, a j2ee servlet, etc.

Check out Laszlo on Rails; rails gives you delicious persistent  
server-side databases and operations, and Laszlo gives you the sweet  
application UI framework.

-ben

On Dec 16, 2007, at 6:06 PM, Rob Justice wrote:

> Fellow Laszloans,
>
> I'm new to the platform and having difficulty getting updateData()  
> to update the xml file (dataset) that the datapath references.   
> Using the debugger, I see that the in-memory datapath is updated,  
> but not the file itself.  Here's the code snippet:
> _________________________________________________________________
> <view id="v2" layout="x" />
>    <dataset name="resumedata" src="resumedata.xml"/>
>    <hbox spacing="20" />
>    <class name="resume" layout="x" datapath="resumedata:/resume/ 
> employerinfo"
>       <statictext name="t1" label="Employer Name"/>
>       <edittext name="it1" width="150" datapath="@name"/>
>       <!-- several other text controls -->
>       <button name="b">Update
>          <handler name="onclick">
>             updateData();
>          </handler>
>       </button>
>    </class>
> <resume name="r" visible="false" />
>
> <!-- r is visible later when another control is selected -->
> __________________________________________________________________
>
> Thanks in advance.
>
> Rob
>
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  
> Try it now.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20071216/78209eee/attachment.html


More information about the Laszlo-user mailing list