You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andreas Sachs (Jira)" <ji...@apache.org> on 2021/11/22 21:01:00 UTC

[jira] [Commented] (WW-5149) labelposition and 2.5.27

    [ https://issues.apache.org/jira/browse/WW-5149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17447627#comment-17447627 ] 

Andreas Sachs commented on WW-5149:
-----------------------------------

To find the setter for "labelposition" org.apache.jasper.compiler.Generator is searching in the properties of the bean

 

BeanInfo tagClassInfo = Introspector.getBeanInfo(tagHandlerClass);
PropertyDescriptor[] pd = tagClassInfo.getPropertyDescriptors();

 

But "labelposition" is not a property anymore. setLabelposition and setLabelPosition are both using the proberty labelPosition. 

> labelposition and 2.5.27
> ------------------------
>
>                 Key: WW-5149
>                 URL: https://issues.apache.org/jira/browse/WW-5149
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags, Plugin - Tiles
>    Affects Versions: 2.5.27
>            Reporter: Andreas Sachs
>            Priority: Major
>
> Hello,
> according to WW-5132 labelposition should be deprecated. But i get an error. 
>  
> With 2.5.26:
> checkbox with unknown attribute: ignored
> checkbox with labelposition:  ok
> checkbox with labelPosition: ignored
>  
> With 2.5.27:
> checkbox with unknown attribute: ignored
> checkbox with labelposition:  JasperException
> checkbox with labelPosition: ok
>  
> org.apache.jasper.JasperException: <file> (Zeile: [13], Spalte: [4]) Keine Setter Methode für das Attribut [labelposition] gefunden.
> (Setter not found)
>  
> I'm using tiles.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)