1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Visualforceのエラー「Attribute "rendered" was already specified for element "apex:variable".」

Posted at

Visualforceの実装で以下エラーが出ました。

Attribute "rendered" was already specified for element "apex:variable".

結果的には

<apex:variable 
	var="productName" 
	value="商品名" 
	rendered="{!Product.Name == null" 
/>

このrenderedの箇所

"{!Product.Name == null" 

ここに閉じ括弧が漏れていたのが原因でした。
Visualforceのエラーは行数が出ないから些細なところほど突き止めるのが一苦労ですね。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?