Skip to main content

JSF 2.0 condtional rendering problem - malformedURL

Please note these forums are being decommissioned and use the new and improved forums at
2 replies [Last post]
Joined: 2011-02-02

Hi all,
A very simple JSF: using a commandLink and ajax I am trying trying to re-render an output text "msg1". However I get browser error "MalformedURL During update ...msg1 not found"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns=""

<title>My Title</title>
<h:form name="f1">
<h:commandLink action="#{loginBacking.setIt}">Menu1
<f:ajax render="msg1"/>

<h:outputText id="msg1" value="AAAAAAAAAA" rendered="#{loginBacking.forums}" />

loginBacking class:
private boolean forums; //PLUS isForums() and setForums() methods
public void setIt() {
this.forums = !this.forums;
NOTE: if I change rendered="#{loginBacking.forums}" to rendered="true" it doesn't give me that error, but that's not what I want.

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2010-12-29

try something like this:
<h:panelGroup id="msg1">
<h:outputText value="AAAAAAAAAA" rendered="#{loginBacking.forums}" />

I think As your outputText is not rendered, it cannot be found on client side and cannot be updated.

Joined: 2011-02-02

Thank you alexoulew, you are right.