raffovi wrote:
> Hi,
>
> the code:
>
> Jerome Velociter-2 wrote:
>> $entry.set("allow",$right.get("allow"))
>>
>
> throws this Exception:
>
> java.lang.NumberFormatException: For input string:
> "Deny"---java.lang.NumberFormatException.forInputString(Unknown Source)
>
> java.lang.NumberFormatException: For input string:
> "Deny"---java.lang.Integer.parseInt(Unknown Source)
>
> java.lang.NumberFormatException: For input string:
> "Deny"---java.lang.Integer.<init>(Unknown Source)
>
> java.lang.NumberFormatException: For input string:
> "Deny"---com.xpn.xwiki.objects.classes.BooleanClass.fromString(BooleanClass.java:98)
> java.lang.NumberFormatException: For input string:
> "Deny"---com.xpn.xwiki.objects.BaseObject.set(BaseObject.java:204)
>
> java.lang.NumberFormatException: For input string:
> "Deny"---com.xpn.xwiki.api.Object.set(Object.java:82)
>
>
>
> $right.get("allow") returns "Deny" and not a number as requested from the
> method fromString(String value) BooleanClass.java row 98
>
> Can someone help me
> Raffo
Try:
$right.getProperty("allow").value
Sergiu
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users