Forums Register Login

How to succesfully replace 4 components with 7? :)

+Pie Number of slices to send: Send
Related to my previous post, I'm trying to allow a user to click a link and show 3 more file components upload and not to complicate things too much. Since javascript can't be of any help with setting rendered attribute and I don't like the solution of showing and hiding additional div with comps inside (if nothing than because of the possitioning problems), I thought I could try something like this:

If a user clicks a link, I call the same page with "more" parameter:

<a href="upload.jsp?more=1" target="_self">link</a>

and in the page I have:



Logically, it should work ok, but guess what - it doesn't.
Instead of getting 6 upload components followed by a submit button, I
get 3 comps, then a button, 2 more components and again a button ?!

I've tried several variants, mostly placing <h:form> and <h:commandButton> in and out of the JSP code and it gives different results all leading to one conclusion - it is obvious the renderer does not "substitute" component correctly if the new one is different, but I still don't know enough about JSF to solve this myself.

Does anyone have a clue how to solve this? Thanks!
I found a beautiful pie. And a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1118 times.
Similar Threads
Help in Multipart Request Urgent
values in one form dissapearing when editing another
How to rendered a <tr:commandButton (trinidad) via ajax
mutipart/form-data
Is there any way to do check how many files the user have uploaded?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:32:58.