[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1151) Embedded plugin Facelets drop values during postback

Christian Bauer (JIRA) jira-events at lists.jboss.org
Mon Apr 16 03:08:58 EDT 2007

    [ http://jira.jboss.com/jira/browse/JBSEAM-1151?page=comments#action_12359373 ] 
Christian Bauer commented on JBSEAM-1151:

First issue:

In wiki text source: <div style="width:300px;float:left;margin-right:10px;">[<=feedTeasers]</div>


<div style="width:300px;float:left;margin-right:10px;">
<div id="feedTeasers" class="">
    <table class="datatable rightBorder leftBorder topBorder bottomBorder" border="0" cellpadding="0" cellspacing="0">
                <th class="regularHeader alignLeft" scope="col">Site news feed:</th>

            <tr class="rowOdd">
                <td class="teaserColumn">

                    <div class="teaserAuthorDate">
                        <span class="teaserDate">09. Apr 2007, 11:45</span><span id="j_id132:0:j_id138">&nbsp;(<span
                            class="teaserAuthor">Regular Member</span>)</span>

                    <div class="teaserTitle"><a href="http://www.lacewiki.org/wiki/22.lace">This is Blog Entry Seven</a>

                    This is a regular blog entry with some text that we need to fill up the layout. Lets just repeat it
                    a few times: This is a regular blog entry with some text that we need to fill up the layout. This
                    i<a href="http://www.lacewiki.org/wiki/22.lace">
            <tr class="rowEven">
                <td class="teaserColumn">

                    <div class="teaserAuthorDate">
                        <span class="teaserDate">09. Apr 2007, 10:45</span><span id="j_id132:1:j_id138">&nbsp;(<span
                            class="teaserAuthor">Regular Member</span>)</span>


                    <div class="teaserTitle"><a href="http://www.lacewiki.org/wiki/21.lace">Entry Six</a>
                    Blog Entry Nr.6

Note the > at the end.

> Embedded plugin Facelets drop values during postback
> ----------------------------------------------------
>                 Key: JBSEAM-1151
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1151
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Wiki
>            Reporter: Christian Bauer
>         Assigned To: Pete Muir
>            Priority: Blocker
> Pete, as discussed on IM and posted here so we can coordinate what needs to be done:
> The wiki includes Facelets manually into the facelet tree when a plugin is encountered during page rendering. This is done in two phases, through a ComponentHandler when the facelet tree is build and through a custom component that renders the HTML for the tree manually. This seems to work fine visually, and the view tree looks OK.
> However, if such an included facelet contains a form, on postback of this form the tree is rebuild during RENDER RESPONSE and any invalid component from the earlier VALIDATIONS phase is lost. So we never see entered invalid values in the form again. This can be tested with the "user comment" form on the wiki.
> The interesting thing here is that it works perfectly fine for the plugin settings forms, you can see those if you edit a document, and enable the preview and plugin settings checkboxes. These forms are much more complicated than the "user comment" form, so I haven't touched them to find out why it works in that case. The trivial "user comment" form should be easier to debug...

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


More information about the seam-issues mailing list