Hello Volker, hello Bernd,
I changed my application now, using the new popup features. It
works fine, when I use tc:button to show the popups. But I've got
a tc:link also. This worked with the old version, but not with the
new. The popup is not displayed, when I click the link.
This was the old code:
<tc:link label="abbrechen" action="#{mainController.showPopup4}">
<f:facet name="popup">
<tc:popup rendered="#{mainController.showPopup4}" width="400"
height="100">
<tc:box label="Abbrechen">
<f:facet name="layout">
<tc:gridLayout rows="*;fixed;fixed" columns="*;*;*"/>
</f:facet>
<tc:cell spanX="3">
<tc:out escape="false" value="Möchten Sie den ausgewählten
Vorgang wirklich abbrechen?"/>
</tc:cell>
<tc:cell/>
<tc:button label="ja" action="#{mainController.hidePopup4}"/>
<tc:button label="nein"
action="#{mainController.hidePopup4}"/>
</tc:box>
</tc:popup>
</f:facet>
</tc:link>
And this is the new code:
<tc:link label="abbrechen">
<tc:attribute name="renderedPartially" value="popup4"/>
<f:facet name="popup">
<tc:popup width="400" height="100" id="popup4">
<tc:box label="Abbrechen">
<f:facet name="layout">
<tc:gridLayout rows="*;fixed;fixed" columns="*;*;*"/>
</f:facet>
<tc:cell spanX="3">
<tc:out escape="false" value="Möchten Sie den ausgewählten
Vorgang wirklich abbrechen?"/>
</tc:cell>
<tc:cell/>
<tc:button label="ja">
<tc:attribute name="popupClose" value="afterSubmit"/>
</tc:button>
<tc:button label="nein">
<tc:attribute name="popupClose" value="immediate"/>
<tc:attribute name="renderedPartially"
value="gena:workflowPanel"/>
</tc:button>
</tc:box>
</tc:popup>
</f:facet>
</tc:link>
What's the exact meaning of the renderedPartially attribute for the
close button? Is this the component to reload, when the popup was closed?
Regards
Helmut
>Hello Helmut,
>
>yes there are changes affecting popup, Bernd made the use of the
>rendered attribute in normal popup situation obsolete. This may result
>in misfunction on closing popups this way.
>I also obsered this here, but currently working on another part of the
>application, i may change this part later.
>take a look into the demo application, the sheetControll.jsp, the
>buttons for closing the popup need a f:attribute subtag now.
>
>2006/12/6, H. Swaczinna <[EMAIL PROTECTED]>:
>> Hello Bernd,
>>
>> thank you for the quick fix. The id problem is resolved in the
>> build from last night. But other things that worked yesterday
>> don't work today anymore. I can't describe exactly what's going on.
>> My popups don't work anymore. It seems to me, that the value bindings
>> for the rendered attribute of the popups are not read or not correctly
>> read. Some popups are not displayed, others are displayd, but can't be
>> closed. Are there any changes affecting popups?
>>
>> Regards
>> Helmut
>>
>>
>> >Hello Helmut,
>> >
>> >this is not a bug, but you can submit a feature request for this.
>> >
>> >http://myfaces.apache.org/tobago/issue-tracking.html
>> >
>> >Regards
>> >
>> >Bernd
>> >
>> >H. Swaczinna wrote:
>> >> Hi,
>> >>
>> >> the id attribute of the tc:out tag is not rendered into the html code.
>> >>
>> >> Example:
>> >>
>> >> JSP <tc:out value="Hello" id="welcome"/>
>> >>
>> >> HTML <span style="height: 40px;" class="tobago-out-default">Hello</span>
>> >>
>> >> This is a must, because without an id, you can't run webtests.
>> >>
>> >> I'm using Tobago 1.0.9 from two weeks ago.
>> >>
>> >> Regards
>> >> Helmut
>> >>
>>