Just wanted to mention that problems with unusual components nested
inside tables are not really weird.
Tables are very special components; they namespace each row and they use
the "flyweight" pattern (where the same components are reused for each
row). Because of this, it is not unusual for components to work
everywhere else but break when embedded in a table. And it's not so
surprising that ajax-type behaviour has problems with components in
tables either.
You don't say what version of JSF you are using. If it is JSF1.1, then I
don't think ajax on tables works at all; I think the critical
infrastructure to make this work was only added in JSF1.2.
Anyway, it's still a bug, but not so "weird" :-).
Regards, Simon
Anthony Ryan schrieb:
Hi all,
I removed the partialSubmit="true" from the commandLink and it seems to work
fine now. Very strange. Anyway thanks to all who replied, hopefully I can
return the favour at some point in the future.
Regards,
Tony
Anthony Ryan wrote:
Hi Matthias,
Yeah, I have other dialogs that pop up fine! So no pop-up blocker...
And when I swap this window for those dialogs it pops up so there's
nothing wrong with the destination pop-up (ie it works when called from
those other places)! So it just doesn't work when I'm calling it from the
table row. Weird!
Is there anything wrong with the code I have been using? What about the
naming container things, do I need them somewhere ::: ? Seems like
something in the table is interfering with the navigation case....
Thanks,
Tony
Matthias Wessendorf-4 wrote:
On Wed, Aug 13, 2008 at 1:48 PM, Anthony Ryan <[EMAIL PROTECTED]>
wrote:
Hi Matthias,
Thanks for replying! My table actually is in a tr:form already, that
must
have been some of the code I didn't include in my original message,
sorry!
and you said the dialog of <tr:inputDate/> for instance works, right?
so there is no popup-blocker that is protecting it, right ?
-M
<f:view>
<tr:document>
<tr:form>
<tr:panelPage>
~~Rest of code here~~
</tr:panelPage>
</tr:form>
</tr:document>
</f:view>
It's a strange one, it looks like it should be working but it's not...
The
only non-"tr" element I am using is a f:view around pretty much
everything
on the page.
Cheers,
Tony
Matthias Wessendorf-4 wrote:
On Wed, Aug 13, 2008 at 12:27 PM, Anthony Ryan <[EMAIL PROTECTED]>
wrote:
Hi all,
I use a commandLink to delete a row in a table but we need to have a
warning
pop-up first. I have it made as a pop-up using the dialog:XXXX method
but
the pop-up window never displays (nothing happens!)! Below is my
(shortened)
code. If anybody has any suggestions or sees something wrong, let me
know,
please!
I have other pop-ups launching elsewhere but there are launched using
commandButtons and are not embedded in a table (Note when I use
commandButton in this scenario, it still does not launch the window).
Many Thanks,
Tony
JSP with commandLink:
I use it inside a table as well (see [1])
(<tr:commandLink id="map" .....>)
But I am using <tr:form> (see master template) around the content.
-M
[1]
http://code.google.com/p/facesgoodies/source/browse/trunk/src/main/webapp/all.xhtml
<tr:panelGroupLayout id="authPanel"
partialTriggers="authTable:deleteSeller">
<tr:table id="authTable"
value="#{authSellerHandler.authSellersModel}"
var="seller" rows="10"
emptyText="No sellers found" width="75%">
<tr:column headerText="Delete Seller from Product">
<tr:commandLink action="dialog:deleteSeller"
useWindow="true"
partialSubmit="true"
windowHeight="250" windowWidth="450"
id="deleteSeller" text="Delete">
<tr:setActionListener from="#{seller}"
to="#{authSellerHandler.seller}"
/>
</tr:commandLink>
</tr:column>
</tr:table>
</tr:panelGroupLayout>
Faces-Config:
<navigation-case>
<from-outcome>dialog:deleteSeller</from-outcome>
<to-view-id>/mgmt/products/warning.jsp</to-view-id>
</navigation-case>