0

ZK tag raw text appended with object value

asked 2013-03-28 13:21:23 +0800

AMOLANANPARA gravatar image AMOLANANPARA
1

updated 2013-03-28 13:35:50 +0800

Code:

<z:div style="padding: 10px 0px 0px;margin-left:auto; margin-right:auto; position:relative;" width="905px"> <c:if test="${controller.pmf.dataBean.waferDimension}">

</c:if> <z:div width="895px" height="650px"> <z:vlayout hflex="1" vflex="1"> <z:hlayout hflex="1" vflex="1"> <z:div hflex="1" vflex="1" align="center"> <z:pivottable id="pivot" autowrap="true" vflex="1" grandtotalforcolumns="false" grandtotalforrows="false" pagesize="999999"/> <z:div id="descDiv"/> </z:div> </z:hlayout> </z:vlayout> </z:div> </z:div>

On running htis code, you would observe some raw text like “<id”fr0qc” a="">” is appended to the first tab. Can you please provide the solution on this? Sooner resolution of a problem will be greatly appreciated.

I did ensure that the actual value of variable “controller.pmf.dataBean.selectedWafer.dimLabel” behind the screen in java class code is only as “Wales”. I have highlighted ZK tags in the code snippet in color red where this raw text is generated. One raw text like “<id=”f….” is="" generated="" for="" one="" tag="" inside="" html="" tag="" <li="">. We are using JSP and ZK tags in the JSP file. All ZK tags start with “z:” in the below code snippet. Let me know if you need more details.

Thanks. Amol.

delete flag offensive retag edit

Comments

Hi Amol, what version of ZK are you using?

jimmyshiau ( 2013-04-29 11:36:35 +0800 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2013-04-30 02:48:00 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

Hi I have tested the following sample with ZK 6.5.2

    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://www.zkoss.org/jsp/zul" prefix="z"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<title>Insert title here</title>
<z:zkhead />
</head>
<body>
    <z:page>
        <z:div
            style="padding: 10px 0px 0px;margin-left:auto; margin-right:auto; position:relative;"
            width="905px">

            <z:label class="bold" id="areaNameLbl" value="Wales"></z:label>
            <z:a id="subThresholdLink"
                style="font-style:italic;font-size:12px;font-weight:bolder;color:red;">I </z:a>
    Other areas

        <z:div width="895px" height="650px">
                <z:vlayout hflex="1" vflex="1">
                    <z:hlayout hflex="1" vflex="1">
                        <z:div hflex="1" vflex="1" align="center">
                            <z:div id="descDiv" />
                        </z:div>
                    </z:hlayout>
                </z:vlayout>
            </z:div>
        </z:div>
    </z:page>
</body>
</html>

and I cannot reproduc the issue, where is the "tab" you mentioned?

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-03-28 13:21:23 +0800

Seen: 18 times

Last updated: Apr 30 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More