no error messages but i notices that in jspx the
org.apache.myfaces.PRETTY_HTML param is ignored and that the page is
displayed right in firefox and as xml (!!!!) on ie 6

2006/2/8, Hans Sowa <[EMAIL PROTECTED]>:
> Hm,
>
> Try to add a <h:messages />.
> I had a similiar problem (commandlink works but not commandButton) and with
> the messages I saw the reason. I would also check the tomcat log for a
> runtime exception.
>
>  best regards Hans
>
> 2006/2/8, ::SammyRulez:: <[EMAIL PROTECTED]>:
> > i got this in js console
> >
> > Error: clear_linkame is not defined
> >
> > the function is defined at the end of the page.
> >
> > I use a commandButton and the action occurs (well it fails because the
> > lack of the param)
> >
> > thanks all in advance
> >
> > 2006/2/8, Volker Weber
> <[EMAIL PROTECTED]>:
> > > Hi,
> > >
> > > i have extracted your posted html source into a file and loading it into
> > > firefox. clicking on the link results in a error, because the requested
> > > page is not available.
> > >
> > > so it seems a click sould at least generate a page reload.
> > >
> > > If not there must be something wrong on the client side. Any errors at
> > > the javascript console?
> > >
> > > Regards,
> > >   Volker
> > >
> > > ::SammyRulez:: wrote:
> > > > even without immediate="true" the behaviour is the same: the action do
> > > > not occurs nor the page is reloaded: it does absolutely nothing!
> > > > I supposed the problem is with jspx because the same code in a jsp
> page works.
> > > >
> > > > 2006/2/8, Hans Sowa <[EMAIL PROTECTED]>:
> > > >
> > > >>Hi
> > > >>
> > > >>I saw that you used the attribute immediate="true". I guess this is
> the
> > > >>problem because if I understand it correctly immediate means that
> after
> > > >>process validiations it goes directly to the phase Render Response.
> > > >>
> > > >>If you don't have a good reason for it, delete it.
> > > >>
> > > >>Hope, this will help you.
> > > >>
> > > >>best regards Hans
> > > >>
> > > >>2006/2/8, Martin Marinschek < [EMAIL PROTECTED]>:
> > > >>
> > > >>>No clue.
> > > >>>
> > > >>>JSPX is not the problem, I'm using JSPX a lot in my current project.
> > > >>>Can you do some debuggin by checking into FacesServlet and going
> > > >>>through the lifecycle?
> > > >>>
> > > >>>regards,
> > > >>>
> > > >>>Martin
> > > >>>
> > > >>>On 2/8/06, ::SammyRulez:: <[EMAIL PROTECTED] > wrote:
> > > >>>
> > > >>>>I have a siple page like this
> > > >>>><jsp:root xmlns:jsp="http://java.sun.com/JSP/Page";
> > > >>>>xmlns=" http://www.w3.org/1999/xhtml";
> > > >>>>          xmlns:h="http://java.sun.com/jsf/html "
> > > >>>>          xmlns:f="http://java.sun.com/jsf/core "
> > > >>>>          version="2.0">
> > > >>>><f:view>
> > > >>>> <html xmlns="http://www.w3.org/1999/xhtml"; lang="it" xml:lang="it">
> > > >>>>  <head><title>Simple jspx page</title></head>
> > > >>>>  <body>
> > > >>>>    <h:form id="linkame">
> > > >>>>           <h:commandLink action="#{myback.doit}" immediate="true">
> > > >>>>                       <f:param name="pnum"
> > > >>
> > > >>value="200590802524177"/>
> > > >>
> > > >>>>                       <h:outputText value="view"/>
> > > >>>>                </h:commandLink>
> > > >>>>       </h:form>
> > > >>>>  </body>
> > > >>>></html>
> > > >>>>    </f:view>
> > > >>>></jsp:root>
> > > >>>>
> > > >>>>and this is the genereted html
> > > >>>>
> > > >>>>
> > > >>>><html xmlns=" http://www.w3.org/1999/xhtml"; xml:lang="it"
> > > >>>>lang="it"><head><title>Simple jspx
> page</title></head>
> > > >>>>
> > > >>>><body>
> > > >>>><form id="linkame" name="linkame" method="post"
> > > >>>>action="/bollette_client/jsp/test2.faces"
> > > >>>>
> enctype="application/x-www-form-urlencoded"><a
> > > >>
> > > >>href="#"
> > > >>
> > > >>>>
> > >
> >>onclick="clear_linkame();document.forms['linkame'].elements['linkame:_link_hidden_'].value='linkame:_id0';document.forms['linkame'].elements['numeroFattura'].value='200590802524177';if(
> document.forms
> > >
> >>['linkame'].onsubmit){document.forms['linkame'].onsubmit();}document.forms['linkame'].submit();return
> > > >>
> > > >>>>false;"
> > > >>>>
> > > >>>>id="linkame:_id0">visualizza</a><input
> type="hidden"
> > > >>>>
> > > >>>>                     name="linkame_SUBMIT"
> > > >>>>
> > > >>>>                     value="1"/><input
> > > >>>>        type="hidden"
> > > >>
> > > >>name="linkame:_link_hidden_"/><input
> > > >>
> > > >>>>type="hidden" name="numeroFattura"/><script
> > > >>>>        type="text/javascript"><!--
> > > >>>>function clear_linkame() {
> > > >>>>  var f = document.forms['linkame'];
> > > >>>>  f.elements['linkame:_link_hidden_'].value='';
> > > >>>>  f.elements ['numeroFattura'].value='';
> > > >>>>  f.target='';
> > > >>>>}
> > > >>>>clear_linkame();
> > > >>>>--></script></form>
> > > >>>></body></html>
> > > >>>>
> > > >>>>the command link is not working.. it is displaied but when clicked
> do
> > > >>>>not submit the form...
> > > >>>>
> > > >>>>any ideas?
> > > >>>>--
> > > >>>>::SammyRulez::
> > > >>>>http://sammyprojectz.blogspot.com
> > > >>>>
> > > >>>
> > > >>>
> > > >>>--
> > > >>>
> > > >>>http://www.irian.at
> > > >>>
> > > >>>Your JSF powerhouse -
> > > >>>JSF Consulting, Development and
> > > >>>Courses in English and German
> > > >>>
> > > >>>Professional Support for Apache MyFaces
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >>--
> > > >>mfg Hans Sowa
> > > >>mailto:[EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > > --
> > > > ::SammyRulez::
> > > > http://sammyprojectz.blogspot.com
> > > >
> > >
> > > --
> > > Don't answer to From: address!
> > > Mail to this account are droped if not recieved via mailinglist.
> > > To contact me direct create the mail address by
> > > concatenating my forename to my senders domain.
> > >
> >
> >
> > --
> > ::SammyRulez::
> > http://sammyprojectz.blogspot.com
> >
>
>
>
> --
>
> mfg Hans Sowa
> mailto:[EMAIL PROTECTED]


--
::SammyRulez::
http://sammyprojectz.blogspot.com

Reply via email to