Hi Thiago,
I really appreciate your help!

May be that my problems came from the fact that I've always seen this job 
solved with a button that shows a picklist.

I'm used to see something like the behaviour of OpenXava, take a look at this:

http://www.openxava.org/InvoiceDemo/m/Invoice

When you press the new button, the system allows you to create a new invoice.

At this point you need to select a customer: you can insert a customer number, 
but, if you don't know it, you can press the search button at the right of the 
customer number and the system will open a popup showing you a list of 
customers.

You can choose one of them, and, after the selection, the popup will close, and 
the data of the selected customer will fill in you form.
I was trying to mimic this behavior.

What would be your way to do this? May be there is a simpler way, that I didn't 
spot, for solving this problem in tapestry?

Also, I understand that the fields in the invoice form could be wrapped in a 
zone and updated after the selection, but I don't understand how can I show a 
popup to the user, allow him to choose the customer, and get the data back to 
my form.

I know that I can do this using a select/dropdown/autocomplete to select the 
customer directly from the invoice form, but since there are many of them, I 
cannot show all of them in a drop down, so I need the user to filter/find the 
one that he needs.

Thanks,
larzeni


> Sent: Monday, August 03, 2015 at 10:08 PM
> From: "Thiago H de Paula Figueiredo" <thiag...@gmail.com>
> To: "Tapestry users" <users@tapestry.apache.org>
> Subject: Re: Filling some filed of a form selecting a row from a grid
>
> On Mon, 03 Aug 2015 15:32:06 -0300, Luca Arzeni <l.arz...@iname.com> wrote:
> 
> > I have built a JPA datasource provider that is similar to the hibernate  
> > one, and it manages filtering, sorting and paging so the size of a grid  
> > is not an issue; I was declaring that the dataset is verylarge only to  
> > explain the reason why I cannot use an autocomplete/drop down field.
> 
> You don't need to show all the options . . .
> 
> > Regarding the "user interface question", well, ehrrr... ehm... I was  
> > using tapestry exactly to build the user interface,
> 
> I wasn't talking about the coding part, but how to present a good user  
> interface so the user can do their tasks on it easily and intuitively.
> 
> > so I was appreciating the grid that allows me to show many columns to  
> > the user. I was simply hoping to find a "standard" way to solve this  
> > issue, if I'm the first one to have this need may be I choose the wrong  
> > tool for this task :-)
> 
> Grid is awesome for showing tabular data, if that's your question. You've  
> mentioned 100 thousands rows, so I thought that was your concern, but not  
> it seems to me it isn't.
> 
> To be honest, I still think your question is vague and not very well  
> phrased, so it's hard to give a good answer. You may try to use zones so  
> you don't need to write any JavaScript to make your selection be applied  
> to the first form.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 

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

Reply via email to