Re: DynaView Error & Loop

Splash Forums PrettyFaces Users DynaView Error & Loop Re: DynaView Error & Loop

#21705

aschwart
Participant

Hi All –

I took a quick peek at the ADF code corresponding to the exception but had a tough time figuring out exactly what is happening to cause ADF to reach this funky state.

Just to make sure I understand the scope of the problem… It sounds like simple (non-dynamic) mappings are working okay (using the workaround that clemmonsm has documented to preserve ADF’s controller state). However, switching the same mapping to a dynamic view id blows up with the exception reported above.

If that is the case, I am curious whether there are any subtle differences in how PrettyFaces treats:

<url-mapping id="community">

<pattern value="/new-homes/#{bean.state}/#{bean.city}/find/communities/#{bean.community}/" />

<view-id value="/faces/pages/community.jspx" />

</url-mapping>

versus:

<url-mapping id="community">

<pattern value="/new-homes/#{bean.state}/#{bean.city}/find/communities/#{bean.community}/" />

<view-id>#{bean.getPath}</view-id>

</url-mapping>

Where #{bean} resolves to:

@Named("bean")

@RequestScoped

public class BoringBean {

public String getPath() {

return "faces/pages/community.jspx";

}

}

Do these result in the same RequestDispatcher.forward() call?

Andy