Hi,

the correct answer was the last one. After set showLoadingText="false" it works 
properly in IE and Firefox. I hadn't tested it on Firefox and it worked before 
making the change.

Thanks a lot...

> Date: Sat, 2 Aug 2008 20:59:18 +1000
> From: [EMAIL PROTECTED]
> To: user@struts.apache.org
> Subject: Re: Can't obtain object in POJO using AJAX and problem with 
> validation
> 
> Hi Francisco,
> 
> Issue number 2 takes precedence over Issue number 1 as if there's no 
> user info available, then validation fails, errors appear on every field 
> and the fields are empty.
> 
> Which implies the properties are not being set on your action (you can 
> verify that).
> Which implies Dojo is not submitting the form values
> Which implies either:
>   - the submit isn't contained in the form and needs a FormId; or
>   - you're only testing in IE and you've encountered a Dojo bug that 
> occurs if the target (divConenedor) contains the form that's being 
> posted.  The problem in this case, is that the Loading... text 
> overwrites the form prior to it's values being read.  If so, set the 
> showLoadingText="false" attribute on the submit button and this problem 
> is resolved. (you can verify this is the problem by testing in Firefox 
> before making the change)
> 
> Hope that helps,
> Jeromy Evans
> 
> Francisco Exposito Aguilera wrote:
> > Hi,
> >
> > I define in my menu.jsp page two <s:div>. On the left the menu which always 
> > appears. On the right, the part which is updated after every action.
> >
> > Then I have another jsp with a form, the xml validation file and the POJO.
> >
> > The action definition is:
> >
> >  <action name="CrearUsuarioAction" method="crearUsuario" 
> > class="ads.web.action.UsuarioAction">
> >                 <result 
> > name="input">/src/jsp/crear/usuarioCrear.jsp</result>
> >                 <result 
> > name="error">/src/jsp/crear/usuarioCrear.jsp</result>
> >                 <result 
> > name="success">/src/jsp/buscar/usuarioDatos.jsp</result>
> >             </action>
> >
> > My <s:submit> definition is:
> >
> > <s:submit theme="ajax" href="%{crearUsuario}" targets="divContenedor" 
> > value="Crear"></s:submit>,
> >
> > where the target divContenedor is defined in the menu.jsp
> >
> > 1) First issue: validation issue
> >
> > When I click on submit and something in the form is incorrect, all 
> > validation errors are shown and all fields are emptied, when only the 
> > incorrect parts should be shown.
> >
> > 2) Second issue (If I remove the validation file in order to test the 
> > action)
> >
> > Then I don't obtain the user info.
> >
> >
> > Both issues "works fine" if I delete in the submit the targets attribute.
> >
> > <s:submit theme="ajax" href="%{crearUsuario}" value="Crear"></s:submit>,
> >
> > But then a new page is opened and the menu doesn't appear.
> >
> > Any help, please? Ask me for code if necessary.
> >
> > Thanks in advace.
> >
> > _________________________________________________________________
> > ¿Quieres los emoticonos y guiños más divertidos? Descárgate Internet 
> > Explorer 7, y consigue contenidos exclusivos cada semana. ¡Gratis!
> > http://www.vivelive.com/IEAK7
> >
> > No virus found in this incoming message.
> > Checked by AVG - http://www.avg.com 
> > Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date: 31/07/2008 
> > 12:00 PM
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

_________________________________________________________________
¡Lo mejor de MSN y Windows Live en tu móvil! Hotmail, Messenger, Spaces… 
Pruébalo ya  y disfruta de todas sus ventajas donde quieras
http://serviciosmoviles.es.msn.com/

Reply via email to