Hi Howard,
This is the complete markup you wanted to see:
<h:form id="mainForm" enctype="multipart/form-data">
<h:commandButton value="Press me"
action="#{helloWorld.send}"/><br/>
</h:form>
Note that I reproduced it in a project that does not include Primefaces
(described in my latest email). When I press the submit nothing happens.
It's as if I wrote onclick="return false;"
cheers
On 4 March 2014 15:23, Howard W. Smith, Jr. <[email protected]> wrote:
> On Tue, Mar 4, 2014 at 8:58 AM, Karl Kildén <[email protected]> wrote:
>
> > Well for me it breaks the form completely.
>
>
> interesting. please clarify this statement... breaks the form completely.
>
>
> > Even if I have only a single component <h:commandButton/> it's broke.
>
>
> i'm definitely interested in seeing this h:form and h:commandbutton (and
> p:fileUpload) xhtml syntax.
>
>
> Adding the primefaces parameter has no effect. I will try to put a test
> > application together
> >
>
> Karl,
>
> Below is my xhtml, which is PrimeFaces 3.x FileUpload syntax. The following
> code worked with PrimeFaces 3.x (and PrimeFaces 4.0.x and MyFaces 2.1.13),
> but it stopped working when I added MyFaces 2.2 to my PrimeFaces 4.0.x
> project/app.
>
> <h:form id="fileUploadForm" enctype="multipart/form-data">
> <p:panel header="Upload attachment">
> <p:fileUpload value="#{orderDocumentBean.uploadedFile}"
> mode="simple" />
> <p:commandLink value="Upload File" ajax="false"
> onclick="displayLoadingImage(true)"
>
> actionListener="#{orderDocumentBean.uploadAttachment()}"/>
> </p:panel>
> </h:form>
>
> Once I specified 'commons' for PrimeFaces uploader context param in web.xml
> (after upgrading to Apache commons fileupload 1.3 JAR), the xhtml 'above'
> started working again.
>