You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Colin Chalmers <co...@maxware.nl> on 2002/07/15 16:09:04 UTC

Intake Default group

Hi all,

I'm playing about with the Intake Service and am trying to follow the How-to
as best I can.

I seem to have a problem with the DeafultGroup which should be _0 but
instead of _0 it seems to be null.

Example:

In my template I define this

#set ($FooGroup=$intake.foo.Default)

followed by

$FooGroup.FooCurrencyFrom.Key

On the screen I see "foonullCurrencyFrom"

instead of what I expected "foo_0CurrencyFrom"

This means that in my action class I have to use the following code to
access the group

  Group foo = intake.get("Foo", null);

instead of  Group foo = intake.get("Foo", IntakeTool.DEFAULT_KEY);

Anybody know why I'm getting the null in the template?

Colin Chalmers
Maxware Benelux



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Search Page Shortcut

Posted by Warner Onstine <sw...@warneronstine.com>.
You might be better off using something like Lucene, I plan on doing this.

http://jakarta.apache.org/lucene/docs/index.html
An example can be found in Scarab:
http://scarab.tigris.org/source/browse/scarab/src/java/org/tigris/scarab/uti
l/word/LuceneAdapter.java?rev=1.12&content-type=text/x-cvsweb-markup

-warner

----- Original Message -----
From: "Jason Kearns" <ke...@hotmail.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Monday, July 15, 2002 10:15 PM
Subject: Search Page Shortcut


> Howdy experts,
>
> I have a need to use a form to collect search criteria.  All of which will
> be optional.  Basically... ten fields where the user enters data into the
> fields they want to search on.  Pretty simple.
>
> I plan to build a Criteria object based on the fields filled out and
> hopefully even allow wildcards.  What I'm wondering is if there is some
> already built mechanism for turning those form parameters into name=value
> pairs on a Criteria Object.  Something already built would obviously save
me
> from a fair amount of coding.
>
> Anyone?
>
> Thanks,
> Jason Kearns
> Sr. Technical Specialist
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Search Page Shortcut

Posted by Jason Kearns <ke...@hotmail.com>.
Howdy experts,

I have a need to use a form to collect search criteria.  All of which will
be optional.  Basically... ten fields where the user enters data into the
fields they want to search on.  Pretty simple.

I plan to build a Criteria object based on the fields filled out and
hopefully even allow wildcards.  What I'm wondering is if there is some
already built mechanism for turning those form parameters into name=value
pairs on a Criteria Object.  Something already built would obviously save me
from a fair amount of coding.

Anyone?

Thanks,
Jason Kearns
Sr. Technical Specialist

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Intake Default group

Posted by Scott Eade <se...@backstagetech.com.au>.
> From: "Colin Chalmers" <co...@maxware.nl>
> 
> Hi all,
> 
> I'm playing about with the Intake Service and am trying to follow the How-to
> as best I can.
> 
> I seem to have a problem with the DeafultGroup which should be _0 but
> instead of _0 it seems to be null.
> 
> Example:
> 
> In my template I define this
> 
> #set ($FooGroup=$intake.foo.Default)

In your template do you have:

    $intake.declareGroups()

> 
> followed by
> 
> $FooGroup.FooCurrencyFrom.Key
> 
> On the screen I see "foonullCurrencyFrom"
> 
> instead of what I expected "foo_0CurrencyFrom"
> 

HTH,

Scott
-- 
Scott Eade
Backstage Technologies Pty. Ltd.
Web: http://www.backstagetech.com.au



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>