myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ernst Fastl" <ernst.fa...@gmail.com>
Subject Re: Anyone used <s:pprPanelGroup> and <s:tableSuggestAjax> ?
Date Sat, 10 Feb 2007 13:52:45 GMT
It is not about stability, it is about the lack of support for embedded
javascript. Other frameworks as e.g. AjaxAnywhere solve this
by parsing the generated output for script-tags, which IMHO not the
cleanest solution, but a working one.

The problem with this solution is, that it would not cover additional
js-includes (which happen to be at the top of the page and therefore
not within the partially refreshed area). If you let a previousely not
rendered component "appear" in a partially updated area this include
will be missing.

I'm not shure if that would work with Ajax4JSF or Trinidad. A possible
solution for myfaces could be, to include all javascript-includes seperately
in a ppr reply (using DefaultAddRessource for instance) and handle
them seperately on the client-side.

thoughts?

regards

Ernst

On 2/10/07, Martin Marinschek <martin.marinschek@gmail.com> wrote:
> as far as I know, the pprPanelGroup is pretty stable currently!
>
> regards,
>
> Martin
>
> On 2/9/07, Werner Punz <werner.punz@gmail.com> wrote:
> > One word, dont, the pprPanelGroup is not really finished,
> > I dont know its state, but the last time I had a look
> > at it, it had severe problems with everything which had javascript
> > embedded.
> > There are other options for partial page rendering at the moment
> > which work better.
> > (Trinidad has one, Ajax4JSF etc...)
> >
> >
> >
> >
> > Laurentiu Trica schrieb:
> > > Hi
> > >
> > > I have to use <s:pprPanelGroup> and <s:tableSuggestAjax> together.
> > > But I receive an error like this:
> > >
> > > 2007-02-08 19:21:21,906 WARN  org.apache.myfaces.renderkit
> > > .html.util.DefaultAddResource - Response has no <head> or <body>
tag:
> > > <?xml version="1.0"?>
> > > <response>
> > > <component id="ofamMainForm:ppr1"><![CDATA[<select
> > > id="ofamMainForm:label_Output_Nachweis"
> > > name="ofamMainForm:label_Output_Nachweis" size="1"
> > > class="largeinputColumn"></select>]]></component><component
> > > id="ofamMainForm:ppr2"><![CDATA[<script type="text/javascript">
> > > dojo.require('extensions.FacesIO');</script><script
> > > type="text/javascript">dojo.require('dojo.event.*');</script><script
> > > type="text/javascript">dojo.require(' dojo.string');</script><script
> > > type="text/javascript">dojo.require('dojo.lfx.html');</script><script
> > > type="text/javascript">dojo.require('dojo.lang');</script><script
> > > type="text/javascript"> dojo.require('dojo.html');</script><script
> > > type="text/javascript">dojo.require('dojo.style');</script><script
> > > type="text/javascript">dojo.require('dojo.collections.ArrayList
> > > ');</script><script type="text/javascript"
> > > src="/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11709551/suggestajax.tablesuggestajax.TableSuggestAjaxRenderer/tableSuggest.js"></script><table
> > > style="border-collapse:collapse;" cellpadding="0"><tr><td><input
> > > id="ofamMainForm:ewcs" name="ofamMainForm:ewcs" type="text"
> > > value="150103" autocomplete="off" class="largeinputColumn"
> > > /></tr></td><tr><td><div class="ajaxTablePopup"
> > > id="ofamMainForm:ewcs_auto_complete"
> > > style="display:inline;"></div></tr></td></table><script
> > > type="text/javascript">var tableSuggestofamMainForm_ewcs_fieldNames =
> > > ["ofamMainForm:ewcs",,"ofamMainForm:ewcsId"];
> > >
> > > Can anybody help me with this?
> > > Thanks in advance.
> > >
> > >
> > > --
> > > Best regards,
> > > Laurentiu
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Mime
View raw message