Re: Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Gary VanMatre
>From: "Darran White" <[EMAIL PROTECTED]> 
>
> Hi, 
> 
> Not sure if this is a bug in clay but the clay documentation states 
> 
> "If the result of the substitution is a zero length string, a null value 
> is returned and the value is not apply to a property" 
> 
> 
> 
> I have a clay config file using acegijsf it is configured as follows 
> 
>
>componentType="net.sf.jsfcomp.acegijsf.Authorize" 
> allowBody="true">
>
>  
>  
>  
>
>  
> 
> 
> If in my html I use 
> 
> 
>
>ADMIN ONLY STUFF
>
>
>  

The problem is that your symbol names have the same names as your attributes.
When you use the "Tapestry" like html views, clay first tries to match the 
markup 
attributes with the component properties.  Markup attributes that don't have a
corresponding component property, are treated as symbols.

Try something like this:

  
   
 
 
 
   
 


ADMIN ONLY STUFF



In this snippet, the component attribute name is "ifNotGranted" but the symbol 
name is "acegijsf:ifNotGranted".


> 
> When the page is rendered the Authorize class is having its methd 
> 
> public void setIfAllGranted(String ifAllGranted) 
> 



> 
> 
> 
> Darran White 
> Senior Developer 
> 

Gary

RE: Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Darran White
Thanks Hermod,
I see what you mean now that could be useful.

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.white    Email:[EMAIL PROTECTED]
www.opsera.com

Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

This e-mail is confidential, intended only for the named recipient(s) above and 
may contain information that is privileged and confidential. If you receive 
this message in error, or are not the named recipient(s), please notify the 
sender at the phone number above, do not copy this message, do not disclose its 
contents to anyone, and delete this e-mail message from your computer. Although 
Opsera routinely screens for viruses, addressees should scan this e-mail and 
any attachments for viruses. Opsera makes no representation or warranty as to 
the absence of viruses in this e-mail or any attachments.


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] 
Sent: 18 May 2007 18:39
To: user@shale.apache.org
Subject: SV: Clay @ symbol not setting taglib mutator to null

Hi

I have a Clay-config file for it, that the define the library as Clay
components. The content is:



http://struts.apache.org/dtds/shale-clay-config_1_0.dtd";>
















This way, you can use like this as an example:




















Or like this:




































Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED] 
Sendt: 18. mai 2007 18:46
Til: user@shale.apache.org; [EMAIL PROTECTED]
Emne: RE: Clay @ symbol not setting taglib mutator to null

Hi Hermod,

Unless I`m mistaken we are using Cagatay Civici
http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the
jsf component

Note the componentType="net.sf.jsfcomp.acegijsf.Authorize"

We`re just using it from within clay?

I`ll raise a bug.

Thanks

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076
Skype:   darran.white    Email:[EMAIL PROTECTED] www.opsera.com

Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ
| UK

This e-mail is confidential, intended only for the named recipient(s) above
and may contain information that is privileged and confidential. If you
receive this message in error, or are not the named recipient(s), please
notify the sender at the phone number above, do not copy this message, do
not disclose its contents to anyone, and delete this e-mail message from
your computer. Although Opsera routinely screens for viruses, addressees
should scan this e-mail and any attachments for viruses. Opsera makes no
representation or warranty as to the absence of viruses in this e-mail or
any attachments.


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sent: 18 May 2007 17:40
To: user@shale.apache.org
Subject: SV: Clay @ symbol not setting taglib mutator to null

Hi

First of all why do you not use the Acegi integration library that Cagatay
Civici? It works like a charm.

I have not checked if what happens when you use symbols in connection with
declared components like you do, but I suspect it might be a bug. Please
file a Jira issue for it.

Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED]
Sendt: 18. mai 2007 18:00
Til: user@shale.apache.org
Emne: Clay @ symbol not setting taglib mutator to null

Hi,

Not sure if this is a bug in clay but the clay documentation states

"If the result of the substitution is a zero length string, a null value is
returned and the value is not apply to a property"

 

I have a clay config file using acegijsf it is configured as

SV: Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Hermod Opstvedt
Hi

I have a Clay-config file for it, that the define the library as Clay
components. The content is:



http://struts.apache.org/dtds/shale-clay-config_1_0.dtd";>
















This way, you can use like this as an example:




















Or like this:




































Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED] 
Sendt: 18. mai 2007 18:46
Til: user@shale.apache.org; [EMAIL PROTECTED]
Emne: RE: Clay @ symbol not setting taglib mutator to null

Hi Hermod,

Unless I`m mistaken we are using Cagatay Civici
http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the
jsf component

Note the componentType="net.sf.jsfcomp.acegijsf.Authorize"

We`re just using it from within clay?

I`ll raise a bug.

Thanks

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076
Skype:   darran.white    Email:[EMAIL PROTECTED] www.opsera.com

Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ
| UK

This e-mail is confidential, intended only for the named recipient(s) above
and may contain information that is privileged and confidential. If you
receive this message in error, or are not the named recipient(s), please
notify the sender at the phone number above, do not copy this message, do
not disclose its contents to anyone, and delete this e-mail message from
your computer. Although Opsera routinely screens for viruses, addressees
should scan this e-mail and any attachments for viruses. Opsera makes no
representation or warranty as to the absence of viruses in this e-mail or
any attachments.


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sent: 18 May 2007 17:40
To: user@shale.apache.org
Subject: SV: Clay @ symbol not setting taglib mutator to null

Hi

First of all why do you not use the Acegi integration library that Cagatay
Civici? It works like a charm.

I have not checked if what happens when you use symbols in connection with
declared components like you do, but I suspect it might be a bug. Please
file a Jira issue for it.

Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED]
Sendt: 18. mai 2007 18:00
Til: user@shale.apache.org
Emne: Clay @ symbol not setting taglib mutator to null

Hi,

Not sure if this is a bug in clay but the clay documentation states

"If the result of the substitution is a zero length string, a null value is
returned and the value is not apply to a property"

 

I have a clay config file using acegijsf it is configured as follows

 

  



  

  

  



  

 

If in my html I use



ADMIN ONLY STUFF



 

When the page is rendered the Authorize class is having its methd

 

public void setIfAllGranted(String ifAllGranted)

 

set to "@ifAllGranted"

 

and 

 

public void setIfNotGranted(String ifNotGranted)

 

set to "@ifNotGranted"

 

Now I believe these should be set to null and its causing the acegijsf to
work incorrectly as it expects null values for these attributes if they`re
not set.

 

If I replace the symbols with el the same problem occurs.

 

I have a temporary work around which is to create separate widgets for each
of the attribute options but wondered if any body else had experienced this?

 

So work around is 

  



  



  

 

Regards

 

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.whiteEmail:  [EMAIL PROTECTED]

www.opsera.com 

RE: Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Darran White
Hi Hermod,

Unless I`m mistaken we are using Cagatay Civici 
http://www.jroller.com/page/cagataycivici?entry=acegi_jsf_components_hit_the 
jsf component

Note the componentType="net.sf.jsfcomp.acegijsf.Authorize"

We`re just using it from within clay?

I`ll raise a bug.

Thanks

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.white    Email:[EMAIL PROTECTED]
www.opsera.com

Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

This e-mail is confidential, intended only for the named recipient(s) above and 
may contain information that is privileged and confidential. If you receive 
this message in error, or are not the named recipient(s), please notify the 
sender at the phone number above, do not copy this message, do not disclose its 
contents to anyone, and delete this e-mail message from your computer. Although 
Opsera routinely screens for viruses, addressees should scan this e-mail and 
any attachments for viruses. Opsera makes no representation or warranty as to 
the absence of viruses in this e-mail or any attachments.


-Original Message-
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED] 
Sent: 18 May 2007 17:40
To: user@shale.apache.org
Subject: SV: Clay @ symbol not setting taglib mutator to null

Hi

First of all why do you not use the Acegi integration library that Cagatay
Civici? It works like a charm.

I have not checked if what happens when you use symbols in connection with
declared components like you do, but I suspect it might be a bug. Please
file a Jira issue for it.

Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED] 
Sendt: 18. mai 2007 18:00
Til: user@shale.apache.org
Emne: Clay @ symbol not setting taglib mutator to null

Hi,

Not sure if this is a bug in clay but the clay documentation states

"If the result of the substitution is a zero length string, a null value is
returned and the value is not apply to a property"

 

I have a clay config file using acegijsf it is configured as follows

 

  



  

  

  



  

 

If in my html I use



ADMIN ONLY STUFF



 

When the page is rendered the Authorize class is having its methd

 

public void setIfAllGranted(String ifAllGranted)

 

set to "@ifAllGranted"

 

and 

 

public void setIfNotGranted(String ifNotGranted)

 

set to "@ifNotGranted"

 

Now I believe these should be set to null and its causing the acegijsf to
work incorrectly as it expects null values for these attributes if they`re
not set.

 

If I replace the symbols with el the same problem occurs.

 

I have a temporary work around which is to create separate widgets for each
of the attribute options but wondered if any body else had experienced this?

 

So work around is 

  



  



  

 

Regards

 

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.whiteEmail:  [EMAIL PROTECTED]

www.opsera.com  

Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ
| UK

This e-mail is confidential, intended only for the named recipient(s) above
and may contain information that is privileged and confidential.
If you receive this message in error, or are not the named recipient(s),
please notify the sender at the phone number above, do not copy this
message, do not disclose its contents to anyone, and delete this e-mail
message from your computer. Although Opsera routinely screens for viruses,
addressees should scan this e-mail and any attachments for viruses. Opsera
makes no representation or warranty as to the absence of viruses in this
e-mail or any attachments.

 






SV: Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Hermod Opstvedt
Hi

First of all why do you not use the Acegi integration library that Cagatay
Civici? It works like a charm.

I have not checked if what happens when you use symbols in connection with
declared components like you do, but I suspect it might be a bug. Please
file a Jira issue for it.

Hermod

-Opprinnelig melding-
Fra: Darran White [mailto:[EMAIL PROTECTED] 
Sendt: 18. mai 2007 18:00
Til: user@shale.apache.org
Emne: Clay @ symbol not setting taglib mutator to null

Hi,

Not sure if this is a bug in clay but the clay documentation states

"If the result of the substitution is a zero length string, a null value is
returned and the value is not apply to a property"

 

I have a clay config file using acegijsf it is configured as follows

 

  



  

  

  



  

 

If in my html I use



ADMIN ONLY STUFF



 

When the page is rendered the Authorize class is having its methd

 

public void setIfAllGranted(String ifAllGranted)

 

set to "@ifAllGranted"

 

and 

 

public void setIfNotGranted(String ifNotGranted)

 

set to "@ifNotGranted"

 

Now I believe these should be set to null and its causing the acegijsf to
work incorrectly as it expects null values for these attributes if they`re
not set.

 

If I replace the symbols with el the same problem occurs.

 

I have a temporary work around which is to create separate widgets for each
of the attribute options but wondered if any body else had experienced this?

 

So work around is 

  



  



  

 

Regards

 

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.whiteEmail:  [EMAIL PROTECTED]

www.opsera.com  

Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ
| UK

This e-mail is confidential, intended only for the named recipient(s) above
and may contain information that is privileged and confidential.
If you receive this message in error, or are not the named recipient(s),
please notify the sender at the phone number above, do not copy this
message, do not disclose its contents to anyone, and delete this e-mail
message from your computer. Although Opsera routinely screens for viruses,
addressees should scan this e-mail and any attachments for viruses. Opsera
makes no representation or warranty as to the absence of viruses in this
e-mail or any attachments.

 




Clay @ symbol not setting taglib mutator to null

2007-05-18 Thread Darran White
Hi,

Not sure if this is a bug in clay but the clay documentation states

"If the result of the substitution is a zero length string, a null value
is returned and the value is not apply to a property"

 

I have a clay config file using acegijsf it is configured as follows

 

  



  

  

  



  

 

If in my html I use



ADMIN ONLY STUFF



 

When the page is rendered the Authorize class is having its methd

 

public void setIfAllGranted(String ifAllGranted)

 

set to "@ifAllGranted"

 

and 

 

public void setIfNotGranted(String ifNotGranted)

 

set to "@ifNotGranted"

 

Now I believe these should be set to null and its causing the acegijsf
to work incorrectly as it expects null values for these attributes if
they`re not set.

 

If I replace the symbols with el the same problem occurs.

 

I have a temporary work around which is to create separate widgets for
each of the attribute options but wondered if any body else had
experienced this?

 

So work around is 

  



  



  

 

Regards

 

Darran White
Senior Developer

Mobile:  +44 (0) 7795577076 
Skype:   darran.whiteEmail:  [EMAIL PROTECTED]
 
www.opsera.com  

Opsera Limited | Unit 69 Suttons Business Park
Reading | Berkshire | RG6 1AZ | UK

This e-mail is confidential, intended only for the named recipient(s)
above and may contain information that is privileged and confidential.
If you receive this message in error, or are not the named recipient(s),
please notify the sender at the phone number above, do not copy this
message, do not disclose its contents to anyone, and delete this e-mail
message from your computer. Although Opsera routinely screens for
viruses, addressees should scan this e-mail and any attachments for
viruses. Opsera makes no representation or warranty as to the absence of
viruses in this e-mail or any attachments.

 



SV: Need to wrap image in a div tag but it is failing

2007-05-18 Thread Hermod Opstvedt
Hi

This must be 

By the way, you can also use the t:div component from tomahawk.

Hermod

-Opprinnelig melding-
Fra: AM101 [mailto:[EMAIL PROTECTED] 
Sendt: 18. mai 2007 15:27
Til: user@shale.apache.org
Emne: Re: Need to wrap image in a div tag but it is failing


I am sorry I am not sure what do you mean, can you please explain?


Antonio Petrelli-3 wrote:
> 
> 2007/5/18, AM101 <[EMAIL PROTECTED]>:
>>
>>
>> > />
> 
> 
> 
> 
> SEVERE: Parse Fatal Error at line 1259 column 31: The value of 
> attribute
>> "value" associated with an element type "set" must not contain the '<'
>> character.
> 
> 
> 
> Use < and > entities.
> 
> HTH
> Antonio
> 
> 

--
View this message in context:
http://www.nabble.com/Need-to-wrap-image-in-a-div-tag-but-it-is-failing-tf37
77199.html#a10682138
Sent from the Shale - User mailing list archive at Nabble.com.




Re: Need to wrap image in a div tag but it is failing

2007-05-18 Thread Antonio Petrelli

2007/5/18, AM101 <[EMAIL PROTECTED]>:



I am sorry I am not sure what do you mean, can you please explain?




you wrote :

value=""

This is not XML compliant, since the "<" and ">" characters are used to
delimit tags.
Instead you have to use the corresponding XML entities. In other words
change your code to:

value="