You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Andy Pahne (JIRA)" <de...@tapestry.apache.org> on 2008/09/01 14:52:44 UTC

[jira] Created: (TAPESTRY-2634) Form component does not work when a mixin is applied

Form component does not work when a mixin is applied
----------------------------------------------------

                 Key: TAPESTRY-2634
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
             Project: Tapestry
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.0.14
         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
            Reporter: Andy Pahne



As you can see in the attached example application, a very simple for component does
not work when a mixin is applied.

I have no clue what's going on here, but it's definetly not expected behaviour.



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


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


[jira] Closed: (TAPESTRY-2634) Form component does not work when a mixin is applied

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-2634.
------------------------------------------

    Resolution: Invalid

So let me get this straight ... I'm supposed to do detective work just to figure out what you expect to happen?

Please read this and try again:

http://www.catb.org/~esr/faqs/smart-questions.html

> Form component does not work when a mixin is applied
> ----------------------------------------------------
>
>                 Key: TAPESTRY-2634
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
>            Reporter: Andy Pahne
>         Attachments: t5-simple.zip
>
>
> As you can see in the attached example application, a very simple for component does
> not work when a mixin is applied.
> I have no clue what's going on here, but it's definetly not expected behaviour.

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


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


[jira] Commented: (TAPESTRY-2634) Form component does not work when a mixin is applied

Posted by "Andy Pahne (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12629109#action_12629109 ] 

Andy Pahne commented on TAPESTRY-2634:
--------------------------------------

I apologize for being too unspecific.

"Does not work" should mean: the page property 

   @Property @Persist
    private String simpleProperty;

is not updated by the form, when the mixin is used.

It should be, as you can see by looking at the form's definition:

    <form t:type="Form" t:zone="resultZone" t:mixins="SimpleMixin">
        
        <t:label for="searchTerm"/>
        <input t:type="TextField" 
               t:value="simpleProperty"
               t:id="searchTerm"/>
        
        <input t:type="submit" 
               t:clientId="Submit"
               t:id="submitButton"
               value="Submit"/>
               
    </form>


No exceptions were thrown. There were no error messages. But when the zone is updated after form submission, only the page without mixin does update the page property. 

Because both pages only differ in the mixin that is applied to the form component, I suspect that the mixin is the reason that the TextField does not update the page property. But that's just a guess, and my knowledge about T5 is still limited.






> Form component does not work when a mixin is applied
> ----------------------------------------------------
>
>                 Key: TAPESTRY-2634
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
>            Reporter: Andy Pahne
>         Attachments: t5-simple.zip
>
>
> As you can see in the attached example application, a very simple for component does
> not work when a mixin is applied.
> I have no clue what's going on here, but it's definetly not expected behaviour.

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


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


[jira] Commented: (TAPESTRY-2634) Form component does not work when a mixin is applied

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628636#action_12628636 ] 

Howard M. Lewis Ship commented on TAPESTRY-2634:
------------------------------------------------

Yes, but "does not work" can mean just about anything.  Does it misbehave?  Throw an exception?  Crash your computer?

> Form component does not work when a mixin is applied
> ----------------------------------------------------
>
>                 Key: TAPESTRY-2634
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
>            Reporter: Andy Pahne
>         Attachments: t5-simple.zip
>
>
> As you can see in the attached example application, a very simple for component does
> not work when a mixin is applied.
> I have no clue what's going on here, but it's definetly not expected behaviour.

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


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


[jira] Commented: (TAPESTRY-2634) Form component does not work when a mixin is applied

Posted by "Andy Pahne (JIRA)" <de...@tapestry.apache.org>.
    [ https://issues.apache.org/jira/browse/TAPESTRY-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628605#action_12628605 ] 

Andy Pahne commented on TAPESTRY-2634:
--------------------------------------


No, of course you are not supposed to do anything.

I just wanted to let you know that a form does not work if a mixn wraps a simple tag around it. Just that. 

> Form component does not work when a mixin is applied
> ----------------------------------------------------
>
>                 Key: TAPESTRY-2634
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
>            Reporter: Andy Pahne
>         Attachments: t5-simple.zip
>
>
> As you can see in the attached example application, a very simple for component does
> not work when a mixin is applied.
> I have no clue what's going on here, but it's definetly not expected behaviour.

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


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


[jira] Updated: (TAPESTRY-2634) Form component does not work when a mixin is applied

Posted by "Andy Pahne (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Pahne updated TAPESTRY-2634:
---------------------------------

    Attachment: t5-simple.zip

Attached a demo project, so that the behaviour can be examined.

First have a look at the SimpleMixin class. As you can see, it's one of the simplest mixins that you may think of.

Then have a look at the "ExampleWithoutMixin" page. It has the desired behaviour.

At last, try out the ExampleWithMixin page. It's the same as the page that works. The only difference is the mixin used. 

> Form component does not work when a mixin is applied
> ----------------------------------------------------
>
>                 Key: TAPESTRY-2634
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2634
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.14
>         Environment: Jetty 6, Tapestry 5.0.14, Windows XP, Sun Java 1.6
>            Reporter: Andy Pahne
>         Attachments: t5-simple.zip
>
>
> As you can see in the attached example application, a very simple for component does
> not work when a mixin is applied.
> I have no clue what's going on here, but it's definetly not expected behaviour.

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


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