<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Static rendering (without DWR) for mobile UI]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I have the task to write a simple UI layer which could be used with mobile phones.</p>
<p dir="auto">For this, I tried to edit (=dumb down) the <em>WEB-INF/tags/pointComponent.tag</em>, because I thought that the <em>pointComponent.tag</em> is responsible for rendering the actual PointValues. As it seems, only partly: it renders some images, which then will get "overwritten" (or updated) by <em>view.js, ViewDwr.</em> and MiscDwr.**.</p>
<p dir="auto">As I understand, the DWR library makes remoting possible. But I'd like to skip that: I don't want any AJAX calls to the server. Rather, I'd like to render a static page with the PointValues already in it. (Yes, continuous updating is not so necessary right now: I'd only like to see the PointValues.)</p>
<p dir="auto">For me, the best would be if I could get hold of that DataPoint from the <em>pointComponent.tag</em> with some simple EL expressions, e.g. <em>${vc.dataPoint.lastValue}</em>.</p>
<p dir="auto">Not being able to solve the question above, I tried to write a simple JSP, based on ViewDwr.java. It was something like this:</p>
<pre><code>
    ViewDao viewDao = new ViewDao(); 

    View view = viewDao.getView(4);

    List&amp;lt;ViewComponent&amp;gt; viewComponents = view.getViewComponents();

    for (ViewComponent vc : viewComponents) {

        DataPointVO dp = ((PointComponent)vc).tgetDataPoint();

            String extName = dp.getExtendedName();

</code></pre>
<p dir="auto">It kinda works, but it isn't a nice solution. I tried to extract this to a JavaBean, but I wasn't able to import/set up the project in Eclipse. (That might be an other post.) (So no compiling or debugging for me, yet.)</p>
<p dir="auto">Actually, I don't even want to write my own beans and JSPs: I'd like to reuse code already written (e.g. <em>pointComponent.tag</em>), but I just can't. Any suggestions?</p>
<p dir="auto">Thanks in advance,<br />
Beci</p>
]]></description><link>https://forum.mango-os.com/topic/205/static-rendering-without-dwr-for-mobile-ui</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 22:29:04 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/205.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Oct 2009 11:18:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Static rendering (without DWR) for mobile UI on Wed, 07 Oct 2009 18:46:14 GMT]]></title><description><![CDATA[<p dir="auto">Please see <a href="http://mango.serotoninsoftware.com/forum/posts/list/0/207.page#947" rel="nofollow ugc">http://mango.serotoninsoftware.com/forum/posts/list/0/207.page#947</a></p>
]]></description><link>https://forum.mango-os.com/post/2759</link><guid isPermaLink="true">https://forum.mango-os.com/post/2759</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Wed, 07 Oct 2009 18:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to Static rendering (without DWR) for mobile UI on Wed, 07 Oct 2009 13:29:19 GMT]]></title><description><![CDATA[<p dir="auto">jupepe has the right idea. There may be some possible reuse of existing code, but don't count on it: Mango was developed with AJAX foremost in mind. I suggest that, to build "static" pages for mobile devices, you create a new set of JSPs and MVC components.</p>
<p dir="auto">Editing to note that the "snippet" subdirectory may provide some reusable functionality. But, unlike tags, this code relies upon context attributes, so you'll need to be careful of namespace collisions.</p>
]]></description><link>https://forum.mango-os.com/post/2754</link><guid isPermaLink="true">https://forum.mango-os.com/post/2754</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Wed, 07 Oct 2009 13:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to Static rendering (without DWR) for mobile UI on Wed, 07 Oct 2009 12:39:54 GMT]]></title><description><![CDATA[<p dir="auto">I think that you should not directly change Mango's existing view components but instead of that to create new mobileView components.<br />
So you should create your own tag and view files to somehow add on the existing codebase. And in the mobile view you just select use this lightweight non-Ajax view layer after you login to system (or even before that?).<br />
But technically I don't exactly know how to do it?</p>
]]></description><link>https://forum.mango-os.com/post/2751</link><guid isPermaLink="true">https://forum.mango-os.com/post/2751</guid><dc:creator><![CDATA[jupepe]]></dc:creator><pubDate>Wed, 07 Oct 2009 12:39:54 GMT</pubDate></item></channel></rss>