[jira] Created: (TAP5-663) Error with passing false in property expressions

2009-04-24 Thread Andy Blower (JIRA)
Error with passing false in property expressions


 Key: TAP5-663
 URL: https://issues.apache.org/jira/browse/TAP5-663
 Project: Tapestry 5
  Issue Type: Bug
  Components: tapestry-core
Affects Versions: 5.1.0.3
Reporter: Andy Blower
Priority: Minor


I just tried out the new T5.1 property expressions for the first time and got 
an error. I'm trying to replace this:

${linkTitle}

public String getLinkTitle() {
return getTitle(false);
}   

With this:

${getTitle(false)}


Which I should be able to do according to the Grammar as far as I can see, 
since but I get this error when I try it:


Caused by: org.apache.tapestry5.internal.services.PropertyExpressionException: 
Node false (within expression 'getTitle(false)') was type FALSE, but was 
expected to be (one of) DECIMAL, DEREF, IDENTIFIER, INTEGER, INVOKE, LIST, 
SAFEDEREF, STRING.
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.unexpectedNodeType(PropertyConduitSourceImpl.java:925)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.subexpression(PropertyConduitSourceImpl.java:637)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createMethodInvocation(PropertyConduitSourceImpl.java:756)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createMethodInvocation(PropertyConduitSourceImpl.java:730)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createGetter(PropertyConduitSourceImpl.java:711)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createGetterAndSetter(PropertyConduitSourceImpl.java:436)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createAccessors(PropertyConduitSourceImpl.java:419)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl$PropertyConduitBuilder.createInstance(PropertyConduitSourceImpl.java:272)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1206)
at 
org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1081)
at 
$PropertyConduitSource_120d3f0182d.create($PropertyConduitSource_120d3f0182d.java)
at 
org.apache.tapestry5.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:49)
at 
$BindingFactory_120d3f0182e.newBinding($BindingFactory_120d3f0182e.java)
at 
$BindingFactory_120d3f01826.newBinding($BindingFactory_120d3f01826.java)
at 
org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:81)
... 107 more


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (TAP5-389) Linksubmit doesn't work inside a form with Zone parameter set

2009-04-24 Thread Anton Litvinenko (JIRA)

[ 
https://issues.apache.org/jira/browse/TAP5-389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12702430#action_12702430
 ] 

Anton Litvinenko commented on TAP5-389:
---

I stumbled upon this issue while using 5.0.18. So, tried to upgrade to 5.1.0.3 
and can confirm that the issue is still there!

I will attach files needed for reproduction.

 Linksubmit doesn't work inside a form with Zone parameter set
 -

 Key: TAP5-389
 URL: https://issues.apache.org/jira/browse/TAP5-389
 Project: Tapestry 5
  Issue Type: Bug
  Components: tapestry-core
Affects Versions: 5.0.17
Reporter: Henry Chen
Assignee: Howard M. Lewis Ship

 When LinkSubmit is placed inside a form with Zone parameter, the following 
 part of linksubmit.js will not do the right thing.
  if (onsubmit == undefined || onsubmit.call(window.document, event)) 
  {  
  this.createHidden();  
  this.form.submit();  
 }
  createHidden() is not called so no hidden field is thus inserted. 
  Removing 'zone' parameter from Form component fixed this immediately. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (TAP5-389) Linksubmit doesn't work inside a form with Zone parameter set

2009-04-24 Thread Anton Litvinenko (JIRA)

 [ 
https://issues.apache.org/jira/browse/TAP5-389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anton Litvinenko updated TAP5-389:
--

Attachment: Test.java
Test.tml

Template and java files used to reproduce the issue in 5.1.0.3

 Linksubmit doesn't work inside a form with Zone parameter set
 -

 Key: TAP5-389
 URL: https://issues.apache.org/jira/browse/TAP5-389
 Project: Tapestry 5
  Issue Type: Bug
  Components: tapestry-core
Affects Versions: 5.0.17
Reporter: Henry Chen
Assignee: Howard M. Lewis Ship
 Attachments: Test.java, Test.tml


 When LinkSubmit is placed inside a form with Zone parameter, the following 
 part of linksubmit.js will not do the right thing.
  if (onsubmit == undefined || onsubmit.call(window.document, event)) 
  {  
  this.createHidden();  
  this.form.submit();  
 }
  createHidden() is not called so no hidden field is thus inserted. 
  Removing 'zone' parameter from Form component fixed this immediately. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.