Reply To: Error using outcome="pretty:clientView"

Splash Forums Rewrite Users Error using outcome="pretty:clientView" Reply To: Error using outcome="pretty:clientView"

#27489

esteveavi
Participant

Hi Cristian,

Thank you very much for your support.

First I had:
<h:link outcome=”pretty:clientView”>
<f:param name=”entityId”
value=”#{empresaBean.entity.client.id}” />
<h:outputText id=”empresaBeanClient” value=”#{empresaBean.entity.client.codi} – #{empresaBean.entity.client.nom}” />
</h:link>

In pretty-config.xml:
<url-mapping id=”clientView”>
<pattern value=”/mestres/client/client/view/#{entityId: clientBean.entityId}”/>
<view-id value=”/view/mestres/client/client/view.xhtml”/>
</url-mapping>

Then I get the null pointer.

If I change:

<h:link outcome=”clientView”>
<f:param name=”entityId”
value=”#{empresaBean.entity.client.id}” />
<h:outputText id=”empresaBeanClient” value=”#{empresaBean.entity.client.codi} – #{empresaBean.entity.client.nom}” />
</h:link>

Then I get:
09:52:16,135 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-3) JSF1064: no se encuentra o sirve el recurso, /view/mestres/mestres/empresa/clientView.xhtml.
09:52:16,135 WARNING [javax.enterprise.resource.webcontainer.jsf.renderkit] (default task-3) JSF1090: no se ha resuelto el tipo de navegación para el componente j_idt323.

Salutacions,