This content has been marked as final.
Show 2 replies
-
1. Re: s:link cannot understand Facelets params?
bfo81 Nov 9, 2006 10:41 AM (in response to bfo81)Hm... maybe the problem is caused by something else. I found another exception some lines above in the log.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1768) at org.jboss.seam.jsf.AbstractSeamPhaseListener.selectDataModelRow(AbstractSeamPhaseListener.java:86)
I must say that I do not use a @DataModel, and so the dataModelSelection parameter in the URL after clicking a s:link is empty.
(Yes, I do have a reason for not using @DataModel: When having an outdated list page, then clicking a link may result in a different entry to be displayed.)
So, any experiences or ideas with this issue? -
2. Re: s:link cannot understand Facelets params?
iradix Nov 9, 2006 11:05 PM (in response to bfo81)You may want to try accessing the bean you pass into your template using the #{editor[edit]} type notation instead. This is a shot in the dark because I haven't tried it but I've seen it suggested for this type of use elsewhere.
I figured I'd also point out that your outdated list issue can be solved by beginning a conversation on your list page, outjecting the DataModel to the conversation and using a @Conversational annotation on your selection method. I take it some people aren't crazy about conversation scoped DataModels but they sure make paging and sorting easy.