You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Florian Pfann <Fl...@methodpark.de> on 2006/12/18 15:50:07 UTC
[Tobago] 1.0.9 popups
Hello
i'am using myfaces-tobago-1.0.9-SNAPSHOT. I have some problems with
popus.
The following side works with 1.0.8:
<%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx"%>
<f:view>
<tc:page width="750px" height="600px">
<f:facet name="dpopup">
<tc:popup width="300" height="100"
rendered="true" id="dpopup">
<f:facet name="layout">
<tc:gridLayout rows="*" columns="*" margin="10px" />
</f:facet>
<tc:cell>
<tc:out value="Hello - i am a popup"
id="idDPopupText" />
</tc:cell>
</tc:popup>
</f:facet>
</tc:page>
</f:view>
When i try it with 1.0.9, i get an empty page without the popup.
I couldn't determine the error.
Are there any sulutions for this problem or will it be resolved in the
final version?
(mayby the problem is sitting in front of the monitor ;-))
Regards,
Florian
Re: [Tobago] 1.0.9 popups
Posted by Florian Pfann <Fl...@methodpark.de>.
Hello and thx for your help
now the popup is working. But i couldn't invoke the
actionListener of the button inside the popup. (id="delbutton")
The side contains a tc:sheet and i need the popup before
i perform the "delete Action" to delete a sheet Entry.
<tc:button disabled="#{Controller.periodNotEditable}"
id="delaction"
label="KST-Eintrag löschen" action="change/kst">
<tc:attribute name="renderedPartially"
value="popup" />
<f:facet name="popup">
<tc:popup width="300" height="100"
rendered="#{Controller.deletePopup}"
id="popup">
<f:facet name="layout">
<tc:gridLayout rows="*;fixed"
columns="*;*" margin="10px" />
</f:facet>
<tc:cell spanX="2">
<tc:out value="Möchten sie wirkich
löschen?" id="idDPopupText" />
</tc:cell>
<tc:button id="delbutton"
actionListener="#{Controller.deleteKst}" label="Loeschen" />
<tc:button id="canbutton"
actionListener="#{Controller.closeOpenDeletePopup}"
label="Abbrechen" />
</tc:popup>
</f:facet>
</tc:button>
Is is also possible to prevent closing the popup window. I need it
sometimes to show <tc:messages>.
Regards
Florian
> Hi Florian,
>
> the popup handling has changed in the last weeks.
>
> the rendered attribute of the popup-tag did not longer cause tho popup
> to open (it just can suppress the popup).
> You need a command with a tc:attribute inside to open or close a popup.
> see the sourcecode of the sheetControll.jsp in the tobago-example-demo
> there is a popup for the sheet config.
>
> Regards,
> Volker
>
> 2006/12/18, Florian Pfann <Fl...@methodpark.de>:
>> Hello
>> i'am using myfaces-tobago-1.0.9-SNAPSHOT. I have some problems with
>> popus.
>>
>> The following side works with 1.0.8:
>>
>> <%@ taglib uri="http://myfaces.apache.org/tobago/component"
>> prefix="tc"%>
>> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
>> <%@ taglib uri="http://myfaces.apache.org/tobago/extension"
>> prefix="tx"%>
>>
>> <f:view>
>> <tc:page width="750px" height="600px">
>> <f:facet name="dpopup">
>> <tc:popup width="300" height="100"
>> rendered="true" id="dpopup">
>> <f:facet name="layout">
>> <tc:gridLayout rows="*" columns="*" margin="10px" />
>> </f:facet>
>> <tc:cell>
>> <tc:out value="Hello - i am a popup"
>> id="idDPopupText" />
>> </tc:cell>
>> </tc:popup>
>> </f:facet>
>> </tc:page>
>> </f:view>
>>
>> When i try it with 1.0.9, i get an empty page without the popup.
>> I couldn't determine the error.
>>
>> Are there any sulutions for this problem or will it be resolved in the
>> final version?
>>
>> (mayby the problem is sitting in front of the monitor ;-))
>>
>> Regards,
>> Florian
>>
>>
>>
>>
>>
>>
>
Re: [Tobago] 1.0.9 popups
Posted by Volker Weber <we...@googlemail.com>.
Hi Florian,
the popup handling has changed in the last weeks.
the rendered attribute of the popup-tag did not longer cause tho popup
to open (it just can suppress the popup).
You need a command with a tc:attribute inside to open or close a popup.
see the sourcecode of the sheetControll.jsp in the tobago-example-demo
there is a popup for the sheet config.
Regards,
Volker
2006/12/18, Florian Pfann <Fl...@methodpark.de>:
> Hello
> i'am using myfaces-tobago-1.0.9-SNAPSHOT. I have some problems with
> popus.
>
> The following side works with 1.0.8:
>
> <%@ taglib uri="http://myfaces.apache.org/tobago/component" prefix="tc"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/tobago/extension" prefix="tx"%>
>
> <f:view>
> <tc:page width="750px" height="600px">
> <f:facet name="dpopup">
> <tc:popup width="300" height="100"
> rendered="true" id="dpopup">
> <f:facet name="layout">
> <tc:gridLayout rows="*" columns="*" margin="10px" />
> </f:facet>
> <tc:cell>
> <tc:out value="Hello - i am a popup"
> id="idDPopupText" />
> </tc:cell>
> </tc:popup>
> </f:facet>
> </tc:page>
> </f:view>
>
> When i try it with 1.0.9, i get an empty page without the popup.
> I couldn't determine the error.
>
> Are there any sulutions for this problem or will it be resolved in the
> final version?
>
> (mayby the problem is sitting in front of the monitor ;-))
>
> Regards,
> Florian
>
>
>
>
>
>