I'm not sure about that, there is a ton of examples using targets in showcase, I'm not saying there isn't a bug, just that if there is one is not as generic as "not working with targets at all". Keep going, I got the feeling you will find it soon :)
musachy On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote:
Ok. I found out one more thing. I think we are getting close to the real bug. Button (or even anchor) doesn't works when I use targets. If I remove target, then all the thing works fine. But I need to refresh my screen after submit this form. I tried use notifyTopics, but how can I say to some div only listen the after topic without use javascript? Or even using javaScript? Thanks once again, Felipe Felipe Rodrigues wrote: > > I've tried it. > An interesting thing is: With anchor it works fine. using <s:a>. I can do > my system using anchor, but I would suggest someone else try do that in > order to figure out if it is a real bug or not. If so, could create a JIRA > Issue. > > What do you think? Did you tried to reproduce the same issue there? > > Thanks, > > Felipe > > > Musachy Barroso wrote: >> >> Try setting formId="formVariaveis" in the submit button. >> >> musachy >> >> On 4/23/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >>> >>> >>> Hi, >>> >>> After a weekend, we are back to reality... >>> >>> Some other clue to help me fix this issue? >>> >>> Thanks, >>> >>> Felipe >>> >>> >>> Felipe Rodrigues wrote: >>> > >>> > yes. But this is not the div I'm trying to update. >>> > >>> > >>> > Musachy Barroso wrote: >>> >> >>> >> Is the submit button inside the div? something like: >>> >> >>> >> <div id="div1"> >>> >> <s:submit targets="div1" .../> >>> >> </div> >>> >> >>> >> >>> >> musachy >>> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>> >>> >>> DEBUG: widget ID collision on ID: btGravar. I've changed this ID >>> and >>> I >>> >>> don't >>> >>> get this error anymore. >>> >>> But the problem persist. IE doesn't send any parameter. >>> >>> >>> >>> That was the message! >>> >>> >>> >>> >>> >>> Musachy Barroso wrote: >>> >>> > >>> >>> > Well we are getting closer then, it is not related to the >>> >>> ActionContext >>> >>> > (which I doubted anyway) but to ajax. Set debug="true" on the head >>> tag >>> >>> and >>> >>> > see if there are any errors. The other thing, is the submit >>> button, >>> or >>> >>> the >>> >>> > anchor inside the div that you are trying to update (if it is then >>> you >>> >>> > need >>> >>> > to set showLoadingText="false" in the submit button or the the >>> >>> anchor)? >>> >>> > >>> >>> > regards >>> >>> > musachy >>> >>> > >>> >>> > On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: >>> >>> >> >>> >>> >> >>> >>> >> Hi again, >>> >>> >> >>> >>> >> I tried without the theme="ajax" in the submit button. It worked >>> even >>> >>> at >>> >>> >> IE, >>> >>> >> but then, I lost the ajax behavior. I need update a div. So I >>> think >>> >>> it >>> >>> is >>> >>> >> a >>> >>> >> bug of ajax theme vs IE. >>> >>> >> >>> >>> >> What do you think? >>> >>> >> >>> >>> >> Thanks, >>> >>> >> >>> >>> >> Felipe >>> >>> >> >>> >>> >> >>> >>> >> Felipe Rodrigues wrote: >>> >>> >> > >>> >>> >> > Thanks for the help, >>> >>> >> > Now I'm trying with this simple form, simpler than the first. >>> For >>> >>> my >>> >>> >> > surprise I got the same problem. >>> >>> >> > In Firefox works, in IE doesn't. >>> >>> >> > Here goes my code, first the part I getting the ActionContext >>> and >>> >>> >> getting >>> >>> >> > the parameters: >>> >>> >> > >>> >>> >> > ActionContext ac = ActionContext.getContext(); >>> >>> >> > Map session = ac.getSession(); >>> >>> >> > Map<String, Object> parameters = ac.getParameters(); >>> >>> >> > >>> >>> >> > and my form: >>> >>> >> > >>> >>> >> > --------------------- BEGIN OF CODE >>> >>> >> > --------------------------------------------- >>> >>> >> > <[EMAIL PROTECTED] prefix="c" uri="http://java.sun.com/jsp/jstl/core "%> >>> >>> >> > <[EMAIL PROTECTED] prefix="s" uri="/struts-tags"%> >>> >>> >> > <s:form id="formVariaveis" action="Variaveis!updateMovs" >>> >>> method="post"> >>> >>> >> > <table cellspacing="2"> >>> >>> >> > <tr> >>> >>> >> > <th>Variável</th> >>> >>> >> > <th>Unid</th> >>> >>> >> > <th>Valor</th> >>> >>> >> > <th>Valor anterior</th> >>> >>> >> > <th>OUT</th> >>> >>> >> > <th>INV</th> >>> >>> >> > </tr> >>> >>> >> > <tr class="itemLista"> >>> >>> >> > <td>DSC</td> >>> >>> >> > <td align="center">UNID</td> >>> >>> >> > <td><s:textfield name="valor583" size="20" value="15.00 " >>> >>> >> > cssClass="inputField" theme="simple" /></td> >>> >>> >> > <td style="color: #000CCC; text-align: right">Valor >>> Ant</td> >>> >>> >> > <td align="center"><s:checkbox name="foraMedia583" >>> >>> theme="simple" >>> >>> >> > value="true" /></td> >>> >>> >> > <td align="center"><s:checkbox name="desprezaValor583" >>> >>> >> > theme="simple" value="false" /></td> >>> >>> >> > </tr> >>> >>> >> > </table> >>> >>> >> > <s:submit key="Gravar" targets="divVariaveis" theme="ajax" >>> >>> >> > showLoadingText="Loading..." /> >>> >>> >> > </s:form> >>> >>> >> > --------------------- END OF CODE >>> >>> >> > --------------------------------------------- >>> >>> >> > >>> >>> >> > Thanks, >>> >>> >> > >>> >>> >> > Felipe >>> >>> >> > >>> >>> >> > >>> >>> >> > Musachy Barroso wrote: >>> >>> >> >> >>> >>> >> >> You could compare what is getting submitted to the server by >>> both >>> >>> FF >>> >>> >> and >>> >>> >> >> IE. >>> >>> >> >> But it does sound weird. Try to narrow it down to a simple >>> form, >>> >>> with >>> >>> >> a >>> >>> >> >> simple action, with no extra-interceptors, etc. >>> >>> >> >> >>> >>> >> >> musachy >>> >>> >> >> >>> >>> >> >> >>> >>> >> >> On 4/20/07, Felipe Rodrigues <[EMAIL PROTECTED]> >>> wrote: >>> >>> >> >>> >>> >>> >> >>> >>> >>> >> >>> I don't want to screw up, but doesn't it sound like a bug? >>> >>> >> >>> I have nowhere more to look for a solution. >>> >>> >> >>> >>> >>> >> >>> {} >>> >>> >> >>> >>> >>> >> >>> Felipe >>> >>> >> >>> >>> >>> >> >>> >>> >>> >> >>> Felipe Rodrigues wrote: >>> >>> >> >>> > >>> >>> >> >>> > Sure, >>> >>> >> >>> > >>> >>> >> >>> > Pls, excuse the names in portuguese. It is not a simple >>> form, >>> >>> and >>> >>> >> it >>> >>> >> >>> is >>> >>> >> >>> in >>> >>> >> >>> > this way because it is dinamicaly generated. >>> >>> >> >>> > >>> >>> >> >>> > --------------------- BEGIN OF CODE >>> >>> >> >>> > >>> >>> >> >>> >>> >>> >> >>> >>> >>> --------------------------------------------------------------------------- >>> >>> >> >>> > <s:form id="formVariaveis" action="Variaveis!updateMovs" >>> >>> >> >>> theme="simple" >>> >>> >> >>> > method="post"> >>> >>> >> >>> > <table cellspacing="2"> >>> >>> >> >>> > <tr> >>> >>> >> >>> > <th>Variável</th> >>> >>> >> >>> > <th>Unid</th> >>> >>> >> >>> > <th>Valor</th> >>> >>> >> >>> > <th>Valor anterior</th> >>> >>> >> >>> > <th>OUT</th> >>> >>> >> >>> > <th>INV</th> >>> >>> >> >>> > </tr> >>> >>> >> >>> > <s:iterator value="vars"> >>> >>> >> >>> > <s:if test="%{errors[id].errorMsg != null}"> >>> >>> >> >>> > <tr> >>> >>> >> >>> > <td colspan="6" class="customErrorMessage" >>> >>> >> align="left">* >>> >>> >> >>> > <s:property value="%{errors[id].errorMsg}" /></td> >>> >>> >> >>> > </tr> >>> >>> >> >>> > </s:if> >>> >>> >> >>> > <tr class="itemLista"> >>> >>> >> >>> > <td><s:property value="dsc" /></td> >>> >>> >> >>> > <td align="center"><s:property value="unidade" >>> >>> /></td> >>> >>> >> >>> > <td><s:textfield name="valor%{id}" size="20" >>> >>> >> >>> > value="%{movimentoMap['${mesSel}'].valor}" >>> >>> cssClass="inputField" >>> >>> >> >>> > theme="simple" /></td> >>> >>> >> >>> > <td style="color: #000CCC; text-align: >>> >>> right"><s:property >>> >>> >> >>> > value="%{movimentoMap['${mesSel}'].valor}" /></td> >>> >>> >> >>> > <td align="center"><s:checkbox >>> name="foraMedia%{id}" >>> >>> >> >>> > theme="simple" >>> value="%{movimentoMap['${mesSel}'].foraMedia}" >>> >>> >> /></td> >>> >>> >> >>> > <td align="center"><s:checkbox >>> >>> name="desprezaValor%{id}" >>> >>> >> >>> > theme="simple" >>> >>> value="%{movimentoMap['${mesSel}'].desprezaValor}" >>> >>> >> >>> /></td> >>> >>> >> >>> > </tr> >>> >>> >> >>> > </s:iterator> >>> >>> >> >>> > </table> >>> >>> >> >>> > </s:form> >>> >>> >> >>> > <div align="right"><input type="submit" >>> dojoType="struts:Bind" >>> >>> >> >>> > formid="formVariaveis" event="onclick" value="Gravar" >>> >>> >> >>> > targets="divVariaveis" showloading="Loading..." >>> id="btGravar" >>> >>> >> >>> > label="Gravar" /> <input dojotype="struts:Bind" >>> event="onclick" >>> >>> >> >>> > value="Cancelar" >>> >>> >> >>> > notifytopics="updateFormVariaveis" type="submit"></div> >>> >>> >> >>> > >>> >>> >> >>> > --------------------- END OF CODE >>> >>> >> >>> > --------------------------------------------- >>> >>> >> >>> > >>> >>> >> >>> > Thanks, >>> >>> >> >>> > >>> >>> >> >>> > Felipe >>> >>> >> >>> > >>> >>> >> >>> >>> >>> >> >>> -- >>> >>> >> >>> View this message in context: >>> >>> >> >>> >>> >>> >> >>> >>> >>> http://www.nabble.com/ActionContext-not-working-properly-with-IE-tf3617796.html#a10107434 >>> >>> >> >>> Sent from the Struts - User mailing list archive at >>> Nabble.com. >>> >>> >> >>> >>> >>> >> >>> >>> >>> >> >>> >>> >>> >>> --------------------------------------------------------------------- >>> >>> >> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >>> >> >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >>> >>> >>> >> >>> >>> >>> >> >> >>> >>> >> >> >>> >>> >> >> -- >>> >>> >> >> "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >>> >> >> >>> >>> >> >> >>> >>> >> > >>> >>> >> > >>> >>> >> >>> >>> >> -- >>> >>> >> View this message in context: >>> >>> >> >>> >>> >>> http://www.nabble.com/ActionContext-not-working-properly-with-IE-tf3617796.html#a10108453 >>> >>> >> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >> >>> >>> >> >>> >>> >> >>> --------------------------------------------------------------------- >>> >>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >>> >>> >> >>> >>> > >>> >>> > >>> >>> > -- >>> >>> > "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >>> > >>> >>> > >>> >>> >>> >>> -- >>> >>> View this message in context: >>> >>> >>> http://www.nabble.com/ActionContext-not-working-properly-with-IE-tf3617796.html#a10108696 >>> >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >>> >> >>> >> >>> >> -- >>> >> "Hey you! Would you help me to carry the stone?" Pink Floyd >>> >> >>> >> >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/ActionContext-not-working-properly-with-IE-tf3617796.html#a10138326 >>> Sent from the Struts - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> > > -- View this message in context: http://www.nabble.com/ActionContext-not-working-properly-with-IE-tf3617796.html#a10139864 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- "Hey you! Would you help me to carry the stone?" Pink Floyd