You can try

//If it is a component
@Parameter(value="myzone")
private String clientZoneId;

public String getOutputZoneId(){
   return clientZoneId + msg.getId();
}

othewise

public String getOutputZoneId(){
   return "myzone" + msg.getId();
}



What you are generating is a number and AFAIK dom id cant start with a
numeric

regards
taha


On Thu, Jan 13, 2011 at 4:34 PM, Angelo C. <angelochen...@gmail.com> wrote:

>
> Hi,
> Thanks for the fast reply,  how to generate the unique id? i use this:
>
> public String getOutputZoneId() {
>        return msg.getId().toString();
>    }
>
> but got error:
>
> Exception invoking function Tapestry.Initializer.zone with parameters
> [{"element": "1086"}]: [Exception... "An invalid or illegal string was
> specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)"
> location: "http://localhost:8080/assets/a6d4555bb3e4e6a0/stack/en/core.js
> Line: 3301"]
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/T5-zone-in-a-grid-tp3339462p3339595.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to