Hello!
I have a similar problem. Here ist my jsf page:
<h:form>
<h:panelGrid columns="2">
<h:panelGrid columns="1">
<!-- These buttons and the link works -->
<h:commandButton... />
<h:commandButton />
<h:commandLink .../>
<h:dataTable (...) ">
<h:column>
<!-- These links do not work -->
<h:commandLink value="#{entry.displayName}"
action="#{bean.someaction">
<f:param name="param1"
value="#{entry.avalue2}" />
<f:param name="param2"
value="#{entry.avalue2}" />
</h:commandLink>
</h:column>
</h:dataTable>
</h:panelGrid>
</h:panelGrid>
</h:form>
The second links which do not work triggers a submit on the form but the same
page gets relloaded. Nothing is written to the (Tomcat-)log. Maybe because they
are inside a dataTable tag??
--
Boris Klug
Debeka Hauptverwaltung
Abteilung IE/Q
Ferdinand-Sauerbruch-Str. 18
56058 Koblenz
Telefon (0261) 498-3806
E-Mail [EMAIL PROTECTED]
Internet www.debeka.de
Zitat von Daniel Murley <[EMAIL PROTECTED]>:
> a) Havn't actually set any properties, however the log indicates that
> javascript has been set on by default.
>
> b) yes, with a specified ID. However there is also another form on the page
> (also with a specified ID) for the links in my header. Both however are
> completely seperate.
>
> Also no luck with a command button.
>
>
> -----Original Message-----
> From: Jesse Alexander (KBSA 21)
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 15 June 2005 3:35 PM
> To: MyFaces Discussion
> Subject: RE: No Links working from inside a dataTable/PanelGrid - Was
> "Displaying and linking search results"
>
>
> hmm... commandlinks...
> have you
> a) enabled or disabled javascript?
> b) is the datatable/panelgrid enclosed in a form?
>
> Try using a commandbutton to see whether it works then.
>
> hth
> Alexander
>
> PS: I had a similar problem/discussion a few days ago, search the
> archives for JavaScript and commandLink
>
> -----Original Message-----
> From: Daniel Murley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 15, 2005 6:01 AM
> To: MyFaces Discussion
> Subject: No Links working from inside a dataTable/PanelGrid - Was
> "Displaying and linking search results"
>
> After some further testing i'm finding that my commandLinks/Buttons inside
> the panelGrid component simply will not work. Has anyone had ANY success
> with this? I'm finding I can't even get any success with a simple
> commandButton that uses the page navigation to move to another page.
>
> Have I missed something fundamental here about the way the panelGrid works?
> As I have my datatable nested within a panelGrid, it seems the panelGrid
> must be where the failure is occuring.
>
> Here is a snippet of code which is failing :
>
> <h:panelGrid columns="1" rendered="#{patientSearchCriteria.hasResults}"
> width="85%">
> <h:panelGroup>
> <h:outputText
> value="#{search.searchSize}" /> <h:outputText value="
> people have been found matching your search criteria." />
> <f:verbatim><br /></f:verbatim>
>
>
> </h:panelGroup>
> <h:commandButton value="Return to main"
> action="global_home" />
> </h:panelGrid>
>
> It doesn't seem to make a difference whether the commandButton is nested in
> the group or not.
>
> Thanks
>
> -----Original Message-----
> From: "Ricardo R. Ram�rez Valenzuela" [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 15 June 2005 2:57 AM
> To: MyFaces Discussion
> Subject: Re: Displaying and linking search results
>
>
> Into search.showDetail method:
>
> FacesContext facesContext = FacesContext.getCurrentInstance();
> Application a = facesContext.getApplication();
> ValueBinding binding = a.createValueBinding("#{" + beanName + "}");
> MyOtherPage page = (MyOtherPage) binding.getValue(facesContext);
> page.setAttribute(theObjectHere);
>
> If you are printing the search results from the datatable you
> may need to get the current row in the datatable and
> pass that object to the other linked page.
>
>
>
> Daniel Murley wrote:
>
> >Hi all,
> >
> >I'm currently building on JBoss and MyFaces. I'm having a problem being
> >able to link search results to another page.
> >
> >Effectively what happens at the moment is the user enters some criteria,
> >hits search, the backing bean in a request scope, grabs the information and
> >makes it available to the page.
> >
> >However at this point i'm a little stumped, as I don't know how to be able
> >to link these results to other pages.
> >
> >My initial thinking was along the lines of :
> >
> ><h:commandLink value="#{search.name}" action="#{search.showDetails}">
> > <f:param name="searchID" value="#{search.id}" />
> ></h:commandLink>
> >
> >However this doesn't seem to be working. Am I on the right track here, or
> >is there a better way to do this?
> >
> >Thanks,
> >
> >Daniel
> >
> >
> >
>
>
>