You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christoph Hermann <ch...@tu-clausthal.de> on 2005/07/26 13:54:00 UTC
Error in forms-field-styling.xsl in svn
Hello,
i'm using BRANCH_2_1_X from svn and there the forms block upload example
is not working correctly.
The cause is that in forms-field-styling.xsl (see
http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/java/org/apache/cocoon/forms/resources/forms-field-styling.xsl?view=markup)
there is
<input type="button" id="{@id}-input" name="{@id}-input" value="..."
onclick="forms_submitForm(this)"/>
where it should be
<input type="button" id="{@id}-input" name="{@id}" value="..."
^^^^^^
onclick="forms_submitForm(this)"/>
Becaus using the line above with "-input" cocoon will tell:
Invalid submit id (no such widget): upload-input (for a widget called
"upload").
Maybe someone can confirm this? (Or is there a better solution than mine?)
With kind regards,
Christoph Hermann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Why isn't it possible to clone the cocoon.request
Posted by Alexander Malic <Al...@workflow.at>.
hi all,
in flowscript for some reasons i want to use the cocoon.request what i got
before a continuation.
but when i store it in a local variable befora a continuation i allways
get the new cocoon.request.
so i thought i'm gonna clone the object (var cr=cocoon.request.clone();).
but i get following error-message:
TypeError: clone is not a function.
(file:/C:/JavaDevelopment/jakarta-tomcat-5.0.28/webapps/webdesk3/webdesk/./actions/Groups/Groups.js#9)
can someone help me please:
thanx in advance,
alexander malic
here's my code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function showGroups(){
.
.
.
var cr=cocoon.request;
.
.
.
//continuation
var bkm = cocoon.createWebContinuation();
.
.
.
cocoon.sendPageAndWait("views/Groups", {
continuationid: bkm.id,
groups: groups,
actpage: (actpage+""),
maxpage: (maxpage+""),
pagesize: (pagesize+""),
maxelements: (page.getTotalNumberOfElements()+""),
oldrequest: cr
});
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Re: Error in forms-field-styling.xsl in svn
Posted by Sylvain Wallez <sy...@apache.org>.
Joerg Heinicke wrote:
> On 26.07.2005 13:54, Christoph Hermann wrote:
>
>> <input type="button" id="{@id}-input" name="{@id}-input" value="..."
>> onclick="forms_submitForm(this)"/>
>>
>> where it should be
>>
>> <input type="button" id="{@id}-input" name="{@id}" value="..."
>> ^^^^^^
>> onclick="forms_submitForm(this)"/>
>>
>> Becaus using the line above with "-input" cocoon will tell:
>> Invalid submit id (no such widget): upload-input (for a widget called
>> "upload").
>
>
> Sylvain? It was introduced with
> http://svn.apache.org/viewcvs.cgi/cocoon/blocks/core/forms/trunk/samples/resources/forms-field-styling.xsl?rev=161264&r1=157119&r2=161264&diff_format=h.
> The both <input type="file"/> are indeed different. Should the @id and
> @name differ?
Yes, because of the Ajax stuff. The tag that has an @id equal to the
widget's id should enclose everything that's used to render a widget. In
this case, it's an enclosing span.
The input's id is {@id}-input so that we can produce <label
for="{@id}-input"> tags that effectively link the label to the right input.
I will commit the fix ASAP (SVN is currently down).
Thanks for reporting!
Sylvain
--
Sylvain Wallez Anyware Technologies
http://people.apache.org/~sylvain http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error in forms-field-styling.xsl in svn
Posted by Joerg Heinicke <jo...@gmx.de>.
On 26.07.2005 13:54, Christoph Hermann wrote:
> <input type="button" id="{@id}-input" name="{@id}-input" value="..."
> onclick="forms_submitForm(this)"/>
>
> where it should be
>
> <input type="button" id="{@id}-input" name="{@id}" value="..."
> ^^^^^^
> onclick="forms_submitForm(this)"/>
>
> Becaus using the line above with "-input" cocoon will tell:
> Invalid submit id (no such widget): upload-input (for a widget called
> "upload").
Sylvain? It was introduced with
http://svn.apache.org/viewcvs.cgi/cocoon/blocks/core/forms/trunk/samples/resources/forms-field-styling.xsl?rev=161264&r1=157119&r2=161264&diff_format=h.
The both <input type="file"/> are indeed different. Should the @id and
@name differ?
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org