You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Richard Frovarp <rf...@apache.org> on 2012/10/26 20:15:37 UTC

Selects acting like eventlinks

I'm trying to create a Solr component in Tapestry. I'm trying to figure out
the best method of displaying the facets, and allowing the user to select
from the different facets. I was hoping to use something like a select,
that upon selection the data is submitted. Obviously in advance I won't
necessarily know how many different facets there will be. I've already got
it working using multiple eventlinks, but would like to move to a select.
I'm sure I'm missing something simple. Does anyone have any suggestions?

Thanks,
Richard

Re: Selects acting like eventlinks

Posted by Richard Frovarp <rf...@apache.org>.
On Fri, Oct 26, 2012 at 3:16 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Fri, 26 Oct 2012 18:14:38 -0200, Richard Frovarp <rf...@apache.org>
> wrote:
>
>  So is the best way to do a single form, which is then setup with a
>> variable number of fields? Or is there an easier way to do multiple form
>> fields?
>> I've done forms with variable fields, but I'm not quite sure if that's
>> the best way to do these sorts of things or not.
>>
>
> Please define 'variable fields'. I really don't know what you're talking
> about.
>
>
That should have been variable number of fields. In one instance I might
have 3 facets, in another there might be 5 facets. Each facet would be
represented in different selects. The JavaScript is easy enough, it's the
passing the data back so that Tapestry sees it that I'm a bit fuzzy on.

Re: Selects acting like eventlinks

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 26 Oct 2012 18:14:38 -0200, Richard Frovarp <rf...@apache.org>  
wrote:

> So is the best way to do a single form, which is then setup with a  
> variable number of fields? Or is there an easier way to do multiple form  
> fields?
> I've done forms with variable fields, but I'm not quite sure if that's  
> the best way to do these sorts of things or not.

Please define 'variable fields'. I really don't know what you're talking  
about.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Selects acting like eventlinks

Posted by Richard Frovarp <rf...@apache.org>.
On Fri, Oct 26, 2012 at 2:49 PM, Thiago H de Paula Figueiredo <
thiagohp@gmail.com> wrote:

> On Fri, 26 Oct 2012 16:15:37 -0200, Richard Frovarp <rf...@apache.org>
> wrote:
>
>  I'm trying to create a Solr component in Tapestry. I'm trying to figure
>> out the best method of displaying the facets, and allowing the user to
>> select
>> from the different facets. I was hoping to use something like a select,
>> that upon selection the data is submitted. Obviously in advance I won't
>> necessarily know how many different facets there will be. I've already
>> got it working using multiple eventlinks, but would like to move to a
>> select.
>> I'm sure I'm missing something simple. Does anyone have any suggestions?
>>
>
> Hi!
>
> Just use a Select inside a Form and write some JavaScript to submit the
> form when the value is changed.



So is the best way to do a single form, which is then setup with a variable
number of fields? Or is there an easier way to do multiple form fields?
I've done forms with variable fields, but I'm not quite sure if that's the
best way to do these sorts of things or not.

Re: Selects acting like eventlinks

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 26 Oct 2012 16:15:37 -0200, Richard Frovarp <rf...@apache.org>  
wrote:

> I'm trying to create a Solr component in Tapestry. I'm trying to figure  
> out the best method of displaying the facets, and allowing the user to  
> select
> from the different facets. I was hoping to use something like a select,
> that upon selection the data is submitted. Obviously in advance I won't
> necessarily know how many different facets there will be. I've already  
> got it working using multiple eventlinks, but would like to move to a  
> select.
> I'm sure I'm missing something simple. Does anyone have any suggestions?

Hi!

Just use a Select inside a Form and write some JavaScript to submit the  
form when the value is changed.

-- 
Thiago H. de Paula Figueiredo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org