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”

#22708

Glister
Participant

// UPDATE///

Wuuuh, scary scary scary things happens here:

in my parallel demo test project following happens:

pretty-config.xml

<url-mapping id="printName">
<pattern value="/page1/name/#{ name: pageController.name }" />
<view-id value="/ugly/uglier/page1.xhtml" />
<action>#{pageController.loadName}</action>
</url-mapping>

<url-mapping id="page1">
<pattern value="/page1/" />
<view-id value="/ugly/uglier/page1.xhtml" />
</url-mapping>

<url-mapping id="page2">
<pattern value="/page2/" />
<view-id value="/really/really/ugly/page2.xhtml" />
</url-mapping>

and my RequestScoped Bean:

private String name;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public void loadName(){
// do some db select stuff
if(name != null && !name.isEmpty()){
name = name.concat(" 123 ");
}
}

so if i open the following url:

url/page1/name/freddy

the url gets modified to:

/prettyfaces-codi-test/page1/name/fred 123 ?windowId=642&name=fred

and output in xhtml is:

freddy 123 123

wtf …..

regards, glister

regards, glister