You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/06/14 20:44:53 UTC

[jira] Created: (TAPESTRY-343) Required parameters with default values report exception with wrong location

Required parameters with default values report exception with wrong location
----------------------------------------------------------------------------

         Key: TAPESTRY-343
         URL: http://issues.apache.org/jira/browse/TAPESTRY-343
     Project: Tapestry
        Type: Bug
  Components: Framework  
    Reporter: Howard M. Lewis Ship


org.apache.hivemind.ApplicationRuntimeException
Parameter pageNames of component regwiz/RegistrationWizard/wizardForm is required and must not have a default value.
component: 	$WizardForm_5@1e708b2[regwiz/RegistrationWizard/wizardForm]
location: 	context:/regwiz/RegistrationWizard.html, line 3
1	<html jwcid="@Border">
2	
3	<div jwcid="wizardForm@WizardForm"
4	pageNames="regwiz/Credentials,regwiz/Contact"/>
5	
6	</html>
Stack Trace:

    * org.apache.tapestry.pageload.EstablishDefaultParameterValuesVisitor.visitComponent(EstablishDefaultParameterValuesVisitor.java:64)
    * $IComponentVisitor_1047c245c8d.visitComponent($IComponentVisitor_1047c245c8d.java)
    * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:45)
    * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:57)
    * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:645)
    * $IPageLoader_1047c245c83.loadPage($IPageLoader_1047c245c83.java)
    * $IPageLoader_1047c245c84.loadPage($IPageLoader_1047c245c84.java)

In this situation, the problem isn't where the component is referenced; the line for the error should be the <parameter> line within the WizardForm component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Commented: (TAPESTRY-343) Required parameters with default values report exception with wrong location

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
    [ http://issues.apache.org/jira/browse/TAPESTRY-343?page=comments#action_12330790 ] 

Andreas Andreou commented on TAPESTRY-343:
------------------------------------------

This seems to have been fixed (at least in 4.0-beta-8).

For instance, the error i get (when invoking a page containing the component in error) is:

context:/WEB-INF/components/Menu.jwc, line 9, column 69
4	"-//Apache Software Foundation//Tapestry Specification 4.0//EN"
5	"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
6	
7	<component-specification class="ebyz.web.components.Menu" >
8	
9	<parameter name="current" required="yes" default-value="'hi'" />
10	
11	</component-specification>

> Required parameters with default values report exception with wrong location
> ----------------------------------------------------------------------------
>
>          Key: TAPESTRY-343
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-343
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Reporter: Howard M. Lewis Ship

>
> org.apache.hivemind.ApplicationRuntimeException
> Parameter pageNames of component regwiz/RegistrationWizard/wizardForm is required and must not have a default value.
> component: 	$WizardForm_5@1e708b2[regwiz/RegistrationWizard/wizardForm]
> location: 	context:/regwiz/RegistrationWizard.html, line 3
> 1	<html jwcid="@Border">
> 2	
> 3	<div jwcid="wizardForm@WizardForm"
> 4	pageNames="regwiz/Credentials,regwiz/Contact"/>
> 5	
> 6	</html>
> Stack Trace:
>     * org.apache.tapestry.pageload.EstablishDefaultParameterValuesVisitor.visitComponent(EstablishDefaultParameterValuesVisitor.java:64)
>     * $IComponentVisitor_1047c245c8d.visitComponent($IComponentVisitor_1047c245c8d.java)
>     * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:45)
>     * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:57)
>     * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:645)
>     * $IPageLoader_1047c245c83.loadPage($IPageLoader_1047c245c83.java)
>     * $IPageLoader_1047c245c84.loadPage($IPageLoader_1047c245c84.java)
> In this situation, the problem isn't where the component is referenced; the line for the error should be the <parameter> line within the WizardForm component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org


[jira] Resolved: (TAPESTRY-343) Required parameters with default values report exception with wrong location

Posted by "Andreas Andreou (JIRA)" <ta...@jakarta.apache.org>.
     [ http://issues.apache.org/jira/browse/TAPESTRY-343?page=all ]

Andreas Andreou resolved TAPESTRY-343.
--------------------------------------

    Fix Version/s: 4.0
       Resolution: Fixed

> Required parameters with default values report exception with wrong location
> ----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-343
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-343
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework
>            Reporter: Howard M. Lewis Ship
>             Fix For: 4.0
>
>
> org.apache.hivemind.ApplicationRuntimeException
> Parameter pageNames of component regwiz/RegistrationWizard/wizardForm is required and must not have a default value.
> component: 	$WizardForm_5@1e708b2[regwiz/RegistrationWizard/wizardForm]
> location: 	context:/regwiz/RegistrationWizard.html, line 3
> 1	<html jwcid="@Border">
> 2	
> 3	<div jwcid="wizardForm@WizardForm"
> 4	pageNames="regwiz/Credentials,regwiz/Contact"/>
> 5	
> 6	</html>
> Stack Trace:
>     * org.apache.tapestry.pageload.EstablishDefaultParameterValuesVisitor.visitComponent(EstablishDefaultParameterValuesVisitor.java:64)
>     * $IComponentVisitor_1047c245c8d.visitComponent($IComponentVisitor_1047c245c8d.java)
>     * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:45)
>     * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree(ComponentTreeWalker.java:57)
>     * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:645)
>     * $IPageLoader_1047c245c83.loadPage($IPageLoader_1047c245c83.java)
>     * $IPageLoader_1047c245c84.loadPage($IPageLoader_1047c245c84.java)
> In this situation, the problem isn't where the component is referenced; the line for the error should be the <parameter> line within the WizardForm component.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org