Re: beginner question regarding “com.ocpsoft.vP_0”

Splash Forums PrettyFaces Users beginner question regarding "com.ocpsoft.vP_0" Re: beginner question regarding “com.ocpsoft.vP_0”

#22700

Glister
Participant

Hey guys,

okay after several tests, i removed CODI at least. And, voilá no , “com.ocpsoft.vP_0” -> pretty url. Before this, i removed the EL-Bean variable from pretty-config.

Before:

<pattern value=”/tool/technique/show/#{ bean.id }” />

To:

<pattern value=”/tool/technique/show/#{ id }” />

which results into an URL like: http://server.de/tool/technique/show/27?windowId=32c&id=27

Finally, removing CODI isn’t a option for me but anywhat from CODI causes to produce this url like above.

In the copy() method at PathParameter you set the PathParameter Name with this lines:

PathParameter result = new PathParameter();
if (isNamed())
{
result.setName(getName());
}
result.setName(getName());

@Override
public String getName()
{
if (!isNamed())
{
return PATH_PARAM_NAME_PREFIX + getPosition();
}
return super.getName();
}

didn’t understand this condition. could you explain it to me.

Are there any known issues with PrettyFaces and CODI ??

Regards, glister.