dynamic links in a table submitting my search...

I have an input box to type a search, a button to submit the search, and a dynamic table with dynamic links added to it that are bound to a method. Clicking a link loads a doc depending on the id of the link. The input box and search button are in their own virtual form.

Now the problem...

clicking on a hyperlink will resubmit the search before loading the doc. It seems impractical to add all of the links (could be thousands) to a virtual form...

Is there anything I can do to correct this? I would like clicking a link to only load a doc..not also re execute the search.

- Mark

[613 byte] By [CandideEC] at [2007-11-26 9:07:46]
# 1

I am not sure why, but the hyperlink has to be in its own virtual form. It is not enough to not just have it not be in the other virtual form.

I am not really sure what you mean by a dynamic table. Do you mean that you (1) add the columns to the table programmatically, or are you (2) using a Table component that is bound to data.

If (2) then all you have to do to put all the hyperlinks in a separate virtual form is to right-click the hyperlink component in the outline window and choose virtual forms. Add a new form and set the Submit column to yes.

if (1) then you maybe manually editing the virtual forms configuration in the JSP file will work:

<ui:form binding="#{Test.form1}" id="form1" virtualFormsConfig="virtualForm1 | textField1 | button1 , virtualForm2 | | table1:tableRowGroup1:tableColumn1:hyperlink1">

jetsons at 2007-7-6 23:23:05 > top of Java-index,Development Tools,Java Tools...