logo       

Re: DWR and uri patterns?: msg#00224

java.dwr.user

Subject: Re: DWR and uri patterns?


I am starting to think this is a bug as I have tested it to death...


oblongman wrote:
>
> Hi all,
>
> I have come across a bizarre (they always seem bizarre when you cant solve
> them!) issue.
>
> I have the following object model
>
> class Campaign(){
> List<Page> landingPages;
> ....
> }
>
> class Page(){
> ...
> String path;
> ...
> }
>
> I return a 'Campaign' object after each of my ajax calls and rewrite the
> page using callback methods.
>
> I access the 'landingPages' list as below,
>
> function updateLandingPages(campaign) {
> var lps = new Array();
> lps = campaign.landingPages;
> .....
> }
>
> This code has been working fine for a while until i realised that if any
> of my 'Page' path members are set to 'xxxx.htm' DWR returns an undefined
> 'Page' object.
>
> I.e. I can return any 'Page' where the value of path contains a '/' symbol
>
> To sum up,
> Works: 'blah/blah.htm'
> Fails: 'blah.htm'
>
> I am completely stumped, have checked my server code and I have the
> correct objects for DWR to return.
>
> Is DWR getting confused somehow with the string i use in the 'path'
> variable? does it maybe think they are uris and try and do something
> clever with them?
>
> Do i need a signature? if so how do i go about writing one of these?
>
> Thanks in advance for your help everyone.
>
> Ta
>
> Matt
>

--
View this message in context:
http://www.nabble.com/DWR-and-uri-patterns--tf3307889.html#a9204775
Sent from the DWR - Users mailing list archive at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise