This content has been marked as final.
Show 8 replies
-
-
2. Re: form has no properties
ilya_shaikovsky Sep 4, 2007 5:22 AM (in response to tjakopec)are you sure you have form element around your control?
-
3. Re: form has no properties
tjakopec Sep 4, 2007 6:38 AM (in response to tjakopec)yes
<r:modalPanel id="traziRadj" height="450" width="320" moveable="false" resizeable="false"> <f:facet name="header"> <t:outputText value="#{messages['zajednicke.traziRadj']}" /> </f:facet> <f:facet name="controls"> <h:graphicImage value="/slike/ikone/close.png" style="cursor:pointer" styleClass="gradualshine" onmouseover="slowhigh(this)" onmouseout="slowlow(this)" onclick="Richfaces.hideModalPanel('traziRadj')" /> </f:facet> <h:form id="formaTraziRadj"> <r:dataTable id="tablicaRadj" width="100%" onRowMouseOver="this.style.backgroundColor='#F1F1F1'" onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'" cellpadding="0" cellspacing="0" var="v" rowKeyVar="rb" value="#{traziRadj.rezultati}"> <r:column> <t:commandLink id="odabirJedne" action="traziRadj" styleClass="traziOdaberiJedan" value="#{v.naziv.naziv}" title="#{messages['zajednicke.odaberi']}" onclick="odaberiJedan(this,#{rb});" /> </r:column> </r:dataTable> </h:form> </r:modalPanel>
-
4. Re: form has no properties
ilya_shaikovsky Sep 4, 2007 6:50 AM (in response to tjakopec)You sure that you doesn't include your modal to some external form? (nested forms arent allowed)
-
5. Re: form has no properties
tjakopec Sep 4, 2007 7:09 AM (in response to tjakopec)
You sure that you doesn't include your modal to some external form? (nested forms arent allowed)
yes I am sure.
Everything is working fine if I use t:commandButton
this is code of page<%@ page contentType="text/html; charset=UTF-8"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="r"%> <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a"%> <f:view> <html> <%@ include file="/core/predlozak/Glava.jsp"%> <body> <%@ include file="/core/predlozak/Navigator.jsp"%> <h:form id="forma"> ... <t:graphicImage value="/slike/ikone/novaGrana.png" title="#{messages['zajednicke.traziRadj']}" style="cursor:pointer"> <a:support event="onclick" reRender="traziRadj" oncomplete="Richfaces.showModalPanel('traziRadj');document.getElementById('formaTraziRadj:naziv').focus();"> <a:actionparam value="true" assignTo="#{traziRadj.traziJedan}" /> </a:support> </t:graphicImage> ... </h:form> <%@ include file="/core/maticni/radne/TraziRadj.jsp"%> <%@ include file="/opci/maticni/sifarnici/mjesto/TraziMjesto.jsp"%> <%@ include file="/core/predlozak/Podnozje.jsp"%> </body> </html> </f:view>
modal panel is in /core/maticni/radne/TraziRadj.jsp -
6. Re: form has no properties
tjakopec Sep 5, 2007 6:17 AM (in response to tjakopec)still a problem!
-
7. Re: form has no properties
ilya_shaikovsky Sep 5, 2007 2:01 PM (in response to tjakopec)sorry for the delay. If your links depends on rendered attribute and updated via ajax - then you should use a4j:form and a4j:htmlCommandLinks instead standard ones to get it working.
-
8. Re: form has no properties
tjakopec Sep 6, 2007 1:43 AM (in response to tjakopec)It's working, tnx!