[JBoss JIRA] Created: (RF-1946) show modalPanel in oncomplete doesn't work
by Tomasz Jedzierowski (JIRA)
show modalPanel in oncomplete doesn't work
------------------------------------------
Key: RF-1946
URL: http://jira.jboss.com/jira/browse/RF-1946
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.3
Environment: Firefox 2.0, IE 7.0
Reporter: Tomasz Jedzierowski
I'm trying to show a modalPanel after initialization by user input. The following code does not work.
<a4j:commandButton image="/images/icons/edit.gif" action="#{SoftwareLicenceTypeBean.chooseRow}" reRender="edytuj_typ" oncomplete="cos();"/>
<rich:modalPanel id="edytuj_typ" minHeight="100" minWidth="250" height="100" width="250" zindex="2000" resizeable="false">
<f:facet name="header">
<h:outputText value="Edytowanie licencji - #{SelectedLicenceTypeBean.licence.name}" />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/images/modal/close.png" style="cursor:pointer" onclick="javascript:Richfaces.hideModalPanel('edytuj_typ')" />
</f:facet>
<div>
<table cellspacing="1" cellpadding="0" class="tableEvidence">
<tr>
<td class="tName">Nazwa</td>
<td class="tValue">
<h:inputText value="#{SelectedLicenceTypeBean.licence.name}"/>
</td>
</tr>
</table>
<a4j:commandButton value="Dodaj" action="#{SoftwareLicenceTypeBean.editLicence}" onclick="javascript:Richfaces.hideModalPanel('edytuj_typ')" reRender="formularz_typy"/>
</div>
</rich:modalPanel>
<script>
function cos() {
Richfaces.showModalPanel('edytuj_typ',{width:450, top:200});
}
</script>
When I change the cos() function to:
<script>
function cos() {
alert();
Richfaces.showModalPanel('edytuj_typ',{width:450, top:200});
}
</script>
Suddenly the modalPanel start appearing. It looks like without, the alert(); function the cos() function doesn't get called.
--
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
18 years, 2 months
[JBoss JIRA] Created: (RF-929) Minor remarks
by Svetlana mukhina (JIRA)
Minor remarks
-------------
Key: RF-929
URL: http://jira.jboss.com/jira/browse/RF-929
Project: RichFaces
Issue Type: Task
Components: doc
Affects Versions: 3.1.0
Reporter: Svetlana mukhina
Assigned To: Svetlana mukhina
Fix For: 3.2.0
tomahawk - the uppercase letter
Links to outsource resources should be created.
Links on style class redefinition methods
rapper -> wrapper
some tables cells contain similar info should be merged
Uppercase letters should be lowered in some cases (components names, etc.)
Links to the table of attributes in the details of usage section.
--
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
18 years, 2 months
[JBoss JIRA] Created: (RF-1938) tab ontabenter problem
by Tomislav Jakopec (JIRA)
tab ontabenter problem
----------------------
Key: RF-1938
URL: http://jira.jboss.com/jira/browse/RF-1938
Project: RichFaces
Issue Type: Bug
Reporter: Tomislav Jakopec
This is my example
<f:view>
<html>
<body>
<h:form id="forma">
<r:tabPanel switchType="client">
<r:tab label="first"
ontabenter="document.getElementById('forma:input1').focus();">
<t:inputText id="input1" />
</r:tab>
<r:tab label="second"
ontabenter="document.getElementById('forma:input2').focus();">
<t:inputText id="input2" />
</r:tab>
</r:tabPanel>
</h:form>
</body>
</html>
</f:view>
When I click on second tab it doesn't set focus on input2. It set focus on input2 when I press tab second time. Same thing is with firstTab.
So, I have to press tab name twice to get desirable behavior - setting focus on element. I will like to press tab name once, tabPanel show me pressed tab content and focus element form ontabenter directiv
--
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
18 years, 2 months