On Sat, Nov 8, 2008 at 6:45 PM, mmaia <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I had to put a weird if code in javascript for my gotMessages function so
> it
> won't show "undefined"
> entries. This looks really messy thought:
>
> function gotMessages(messages)
>        {
>            var chatlog = "";
>            for (var data in messages)
>        {
>                if(messages[data].text != undefined)
>                {
>                        chatlog = "<div>" + messages[data].text +
>                "</div>" + chatlog;
>            }
>        }
>        dwr.util.setValue("chatlog", chatlog, { escapeHtml:false });
>        }
>
> I´d also like to know the consequences of taking out the static filter from
> appfuse pls.


If you can take it out and all integration tests still pass, you should be
OK. The major reason we added it is to allow using Dojo, but I'm pretty sure
that doesn't work either.

Matt


>
>
> Marcos Maia.
>
>
>
> mmaia wrote:
> >
> > Hi,
> >
> > I´m new to ajax so I had a hard time making things work.
> > First problema I faced is about StaticFilter, I was only able to execute
> > the Chat tutorial at:
> >
> > http://today.java.net/pub/a/today/2005/08/25/dwr.html
> >
> > if I comment the Static filter on web.xml
> >
> > [code]
> > <!--filter-mapping>
> >         <filter-name>staticFilter</filter-name>
> >         <url-pattern>/*</url-pattern>
> >         <dispatcher>REQUEST</dispatcher>
> >         <dispatcher>FORWARD</dispatcher>
> >  </filter-mapping-->
> > [/code]
> >
> > also the sample is only running correctly if I exclude chat.jsp from
> > sitemesh(img1DWR.jpg attached) including in decorator.xml the line:
> > [code]
> > <pattern>/chat.*</pattern>
> > [/code]
> >
> > If I try to use this example using the sitemesh decorator taking out the
> > pattern from excludes pattern entry in decorator.xml the javascript array
> > brings poluted code with undefined(img2DWR.jpg atached) elements in it.
> > Does anyone have some tips on using DWR with appfuse. I'd like some
> > guidance here if possible.
> >
> > Tx in advance, best regards,
> > Marcos Maia. http://www.nabble.com/file/p20402031/img1DWR.JPGimg1DWR.JPG
> >  http://www.nabble.com/file/p20402031/img2DWR.JPG img2DWR.JPG
> >
>
> --
> View this message in context:
> http://www.nabble.com/DWR-using-struts-2-and-appfuse-tp20402031s2369p20402573.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to