Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

It this a good solution?

Thread view: 
gbattine - 14 Aug 2006 15:28 GMT
Hi guys,
i've a question for you.
I have a form with 3 fields,name,city,address.
I've a page in which the user enters the number of forms he wants to
submit.
Depending on this number(5 for example) the page shows to user 5 input
forms with the same fields.
Doing it is very difficult for me and i've not found good helps so i've
thinked a simplier solution....
If i know the maximum number of fields the user can enter (suppose 15)
i create 15 forms.
In each form i use rendered property to show the form if it's order
number is less or equal than user number.
So some forms aren't displayed....
Is it a good solution?
Can someone help me?
Thanks
Jeffrey Schwab - 14 Aug 2006 15:33 GMT
> I have a form with 3 fields,name,city,address.  I've a page in which
> the user enters the number of forms he wants to submit.  Depending on
[quoted text clipped - 5 lines]
> order number is less or equal than user number.  So some forms aren't
> displayed....

Rather than bother with "rendered," why not generate 15 separate pages a
priori?  One page would contain only a single form, another page would
contain two forms, etc.  It's easy enough to generate the static content
up from using Java (or vi, for that matter).
gbattine - 14 Aug 2006 18:06 GMT
thanks for your reply...
i think your solution is a good solution,but i have to create 15
pages...
with my solution i have to create one only page...but i have to use
rendered property...
what's the best efficient solution?
Can you help me?
I'm not expert of jsf...can i have any problems with my solution?
I hope you help me...


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.