-
1. Re: a4j:include and focus
justinmbirch Oct 30, 2008 9:12 AM (in response to dblue)Have a look at these two posts, they may help:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=144784
http://www.jguru.com/faq/view.jsp?EID=20435 -
2. Re: a4j:include and focus
dblue Oct 30, 2008 10:32 AM (in response to dblue)I was trying to put focus attribute in few places but it doesn't work propertly.
1) When I put focus="myInput" in <a4j:form> tag - doesn't help.
2) When I put focus="myInput" in <a4j:support> tag - it's almost working, and I think I could fix it to work with <h:inputText> tag.
But what with components where I can't use <a4j:support> to catch event ? -
3. Re: a4j:include and focus
ilya_shaikovsky Oct 31, 2008 7:33 AM (in response to dblue)Please use ajaxRendered="false" on your include and reRender its parent if you need navigation only from corresponding controls. include designed to be refreshed every ajax request as it designed for wizards creation.
-
4. Re: a4j:include and focus
dblue Oct 31, 2008 9:19 AM (in response to dblue)Now I see, I'm not very smart ;).
Thanks for your help.
Now, everything is working as I wanted. -
5. Re: a4j:include and focus
hwoarang Nov 26, 2008 3:35 PM (in response to dblue)I have a similar problem: if my page has a4j:include tag, I can't set focus on modalPanel's elements when shown...
I'm pretty sure that is related with a4j:include, because when I remove the tag, the focus works...
Note: The page included is not the one that my modalPanel belongs. I put my modalPanel in my template (I'm using facelets).
Someone has another hint about?
my code:
modalPanel<r:modalPanel id="panel" onshow="#{r:element('botaoOk')}.focus()" showWhenRendered="#{facesContext.maximumSeverity != null}"> ... <h:commandButton id="botaoOk" action="#{ControleApp.cancelarModal}" value="#{msg.botaoOk}" />
page with a4j:include... <a4j:include viewId="mpLocalizacao.jspx" id="mpLocalizacao" ajaxRendered="false"> <ui:param name="paramId" value="#{ManterPessoa.localizacaoId}" /> ...
-
6. Re: a4j:include and focus
hwoarang Nov 27, 2008 10:00 AM (in response to dblue)hmmm...
using ui:include works...
maybe some problem with a4j:include