Hello Sonny,
Are the resources showTestSucceededPage and showTestFailedPage in the
secure directory? Then you probably need to use cocoon:/secure/showXXX.
See http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html
Hope this helps,
John
Sonny Sukumar wrote:
Hey guys,
I'm having a strange
Guys,
anyone? Please help.
Thanks.
Bye, Helma
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, 16 July 2004 11:06
To: [EMAIL PROTECTED]
Subject: how to avoid 'generator already set' error?
Hi,
I have this bit of flow script:
function
Hi everybody,
I am facing a problem in cocoon and
need some advice.
In sitemap, there are 2 components which
I want to be singleton ( just a single instance)..
The reason behind this is to make multiple
cocoon URI go through a single synchronized method for writting of error
xml files...
If I
Hi everybody,
I am facing a problem in cocoon and need some advice.
In sitemap, there are 2 components which I want to be singleton ( just
a single instance)..
Make your component implement the Threadsafe interface. Cocoon will
reuse the same instance across all requests.
Hi all!
Like everyone has noticed I've been trying to make ojb + cforms to work
and my work is almost done.
I can get stuff from database, put it to forms and even edit the data
in it and add new data!
Now the problem is deleting data.
Seems like deleting from forms does just
Yes, I know this. It was meant as suggestion for the problems Helma has
in the original question. :)
Olivier Billard wrote:
Thomas,
I think you're right. cocoon.sendPage() is not equivalent to return. You
have to explicitly set a return after a cocoon.sendPage that is not at
the end of a
Thomas Kjeldahl Nilsson wrote:
Yes, I know this. It was meant as suggestion for the problems Helma has
in the original question. :)
Ok sorry, I didn't read the end... :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Hi all,
I have a problem when using the session attribute selector. It seems as if
the result of the selector gets cached somehow.
In Detail:
In the below pipeline the session attribute selector determines which
stylesheet is used to transform my xml data (either archive-run2html.xsl or
Guys,
thanks for thinking along, but what I'd really like to do is:
myFunction() {
success = false;
errmsg = ;
while (!success) {
try {
[something that also displays errmsg]
[check and throw error if
1) date formatting:
In my form definition I've got the following:
wd:output id=mydate
wd:datatype base=date/
wd:label/
wd:convertor type=formatting
wd:patterns
wd:patterndd-MM-/wd:pattern
/wd:patterns
/wd:convertor
/wd:output
The input from the binding is 1900-01-01
On Mon, 2004-07-26 at 12:08, Gunter D'Hondt wrote:
1) date formatting:
In my form definition I've got the following:
wd:output id=mydate
wd:datatype base=date/
wd:label/
wd:convertor type=formatting
wd:patterns
wd:patterndd-MM-/wd:pattern
How to remove the , from the integer formatting:
When I use:
wd:datatype base=integer
wd:convertor type=formatting variant=integer
wd:patterns
wd:pattern#0/wd:pattern
/wd:patterns
/wd:convertor
/wd:datatype
I get 1,677 instead of 1677 ?
Hi all,
sorry to post with the same title as a previous thread but my problem is
quite the same :
I would like to compare 2 values in a jxtemplate but I can't get it to
work.
here is my code :
jx:forEach items=#{language} varStatus=status
jx:choose
jx:when test=#{status.current =
Philippe Guillard wrote:
Hi all,
I need to pass a paramter from URI to the portal and somehow access it
from my coplets.
More clearly URI could be : samples/blocks/portal/portal?my_param=foo
or : samples/blocks/portal/foo
I tried this :
map:match pattern=portal
map:act
I am trying to work out how to get different
pages being displayed from a CForm submission,
depending on different submission buttons...
For one submission buttton, I have:
ft:form-template action=#{$continuation/id}.continue method=POST
...
input type=submit/
/ft:form-template
In the
Hi Stephane,
Are you sure you set the correct namespace ?
Are the jx tags really interpreted (in other, you may have jx:* tags
after your generation) ?
It happened to me when I forgot to declare the jx namespace.
--
Olivier Billard
Stephane Delort wrote:
Hi all,
sorry to post with the same title
2 small requests:
Could the font for the headings be changed so that
the N. headings are larger than the N.N headings?
It would be neat if the ODD page numbers appeared
on the RIGHT side of the page... this is the normal
convention in most books and papers I have seen.
Thanks
Derek
--
This
On Mon, 2004-07-26 at 13:54, Derek Hohls wrote:
How to remove the , from the integer formatting:
When I use:
wd:datatype base=integer
wd:convertor type=formatting variant=integer
wd:patterns
wd:pattern#0/wd:pattern
/wd:patterns
re,
Well after a check it appear that the namespace is included and I do not
have any jx:* tags in the output.
Still trying...
Thanx,
Stephane
Hi Stephane,
Are you sure you set the correct namespace ?
Are the jx tags really interpreted (in other, you may have jx:* tags
after your
Bruno
Unfortunately, that still does not seem to work;
I still get the , separator...
Derek
[EMAIL PROTECTED] 2004/07/26 02:34:28 PM
On Mon, 2004-07-26 at 13:54, Derek Hohls wrote:
How to remove the , from the integer formatting:
When I use:
wd:datatype base=integer
Hello all,
quick question: is there a problem (or some alternate way) with
accessing a given objects static variables from jxtemplates?
Let's say I have 'MyClass' instantiated as 'myObject', and 'myObject' is
set as an attribute of the session.
public class MyClass(){
public static final
On Mon, 2004-07-26 at 15:04, Derek Hohls wrote:
Bruno
Unfortunately, that still does not seem to work;
I still get the , separator...
quite impossible, that means the convertor isn't used. Make sure you're
editing the correct file, and that the convertor element is located
inside the
On Mon, 2004-07-26 at 15:52, Gunter D'Hondt wrote:
Bruno,
The date formatting is ok, but the decimal is still not working (has
nothing to do with the formatting); error is:
java.lang.RuntimeException: Incorrect value type for mydecimal
(expected class java.math.BigDecimal, got class
Stephane,
Do you check the output just after the JXTemplate generator ?
Stephane Delort wrote:
re,
Well after a check it appear that the namespace is included and I do not
have any jx:* tags in the output.
Still trying...
Thanx,
Stephane
Hi Stephane,
Are you sure you set the correct namespace ?
I'm just doing simple binding:
wd:value id=mydecimal
path=thefield/value /
The input XML is:
thefield
value3.0/value
/thefield
Definition:
wd:field id=mydecimal
required=true
wd:datatype base=decimal
wd:convertor
wd:patterns
wd:pattern#0/wd:pattern
(having a deja-vu but can't find it back in the mailinglist)
I have a transformer extending AbstractDOMTransformer.
For convenience i assigned in transform(Document) the document to an
instance variable (so i could manipulate it in different methods without
having to pass it around the whole
FWIW try this:
jx:forEach items=#{language} varStatus=status
jx:choose
jx:when test=#{status.current = $pagelang.pagelang}
jx:when test=${status.current == pagelang.pagelang}
${status.current.label}
/jx:when
jx:otherwise
${status.current.value}
On Mon, 2004-07-26 at 16:27, Gunter D'Hondt wrote:
I'm just doing simple binding:
wd:value id=mydecimal path=thefield/value /
The input XML is:
thefield
value3.0/value
/thefield
Definition:
wd:field id=mydecimal required=true
wd:datatype
Forget below red herring :)
I was overriding recycle() and not calling super.recycle(). When
overriding methods, it is sometimes necessary to call the base
implementation and sometimes not - confusing !
Is there a rule to follow here?
Regards
Jorg
Jorg Heymans wrote:
(having a deja-vu but can't
FWIW try this:
jx:forEach items=#{language} varStatus=status
jx:choose
jx:when test=#{status.current = $pagelang.pagelang}
jx:when test=${status.current == pagelang.pagelang}
This test is still a problem, cause it return false
${status.current.label}
/jx:when
I've changed the binding into:
bnd:value id=mydecimal path=mydecimal/value
bnd:convertor
datatype=decimal type=formatting
bnd:patterns
bnd:pattern#0/bnd:pattern
/bnd:patterns
/bnd:convertor
/bnd:value
But still the same output; still I don't understand how
Joerg,
On 23 Jul 2004, at 08:50, Joerg Heinicke wrote:
On 19.07.2004 10:30, Robin Wyles wrote:
There is a union widget available in CForms. I already thought about
implementing the car selector sample via union widgets, but that's a
bit difficult as the cases are dynamic though not impossible:
OK this is driving me crazy. All I'm trying to do is call a method in
a custom java class. What's driving me crazy about that? I'm doing
it in one flowscript and its working fine (with a different class). I
try in another flowscript in a different sitemap and I get:
That's a good insight and a good question John, though actually the
redirected URIs are *not* in the secure/ directory. I did also read
through the Cocoon docs on redirects but couldn't find the reason for the
strange behavior.
To quickly summarize again, the behavior is that the *second*
OK - someone slap me again for not hitting save in Eclipse prior to
running the build script? I ran a build in Eclipse but apparently
that doesnt auto-save changes of the file. Turns out it was a simple
problem (I knew it would be). The jar file in WEB-INF/lib had a stale
version of
On Mon, 2004-07-26 at 17:20, Gunter D'Hondt wrote:
I've changed the binding into:
bnd:value id=mydecimal path=mydecimal/value
bnd:convertor datatype=decimal type=formatting
bnd:patterns
bnd:pattern#0/bnd:pattern
/bnd:patterns
define your submit-button as part of the form:
fd:submit id=btn1 action-command=btn1
fd:labelMy First Button/fd:label
/fd:submit
(it shows up in the template as any other ft:widget then)
then check in your js
if (form.submitId == 'btn1')
you can also get a hold of the
Ahh really? I tried that and Jetty complained about some element not
being recognized. I'll definitely play around with trying to switch
the DTD to 2.3. I assume you changed it to:
http://java.sun.com/dtd/web-app_2_3.dtd
Thanks,
- Brent
On Tue, 27 Jul 2004 00:12:44 +0200, Ugo Cei [EMAIL
38 matches
Mail list logo