[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-24 Thread lcoetzee
Excellent. thanks Gavin.


Later

Louis

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958652#3958652

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958652
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-17 Thread lcoetzee
I have found a way using MyFaces Tomahawk's updateActionListener. Something 
like: 
  | h:form id=section_questions
  | ul id=linkslist
  | t:dataList value=#{sections} 
var=currentSection layout=simple
  | rendered=#{not empty sections} 
id=dt1
  | rowIndexVar=sectionRowIndex
  | lih:outputText 
value=#{currentSection.sectionLabel} /
  | 
  | ul
  | t:dataList 
value=#{currentSection.questions}
  | var=currentQuestion 
layout=simple
  | 
rowIndexVar=questionRowIndex
  | rendered=#{not empty 
currentSection.questions} id=dt2
  | lih:commandLink
  | 
action=#{questionSelectionBean.selectQuestion} id=cl1
  | h:outputText 
value=#{currentQuestion.questionLabel} /
  | 
t:updateActionListener id=sectionListener
  | 
property=#{sectionSelectionBean.sectionRowIndex}
  | 
value=#{sectionRowIndex} /
  | 
  | 
t:updateActionListener id=questionListener
  | 
property=#{sectionSelectionBean.questionRowIndex}
  | 
value=#{questionRowIndex} /
  | 
  | /h:commandLink/li
  | /t:dataList
  | 
  | /ul
  | /li
  | /t:dataList
  | 
  | /ul
  | /h:form

Unfortunately the solution forces me to use a form/commandLink action. I get 
the following exception when trying to use the s:link.


  |  ERROR [STDERR] 2006/07/17 03:23:34 com.sun.facelets.FaceletViewHandler 
handleRenderException
  | SEVERE: Error Rendering View[/secure/questionnaire/sections.xhtml]
  | java.lang.ClassCastException: org.jboss.seam.ui.HtmlLink
  | at 
csir.utils.taghandlers.TomahawkUpdateActionListenerHandler.apply(TomahawkUpdateActionListenerHandler.java:76)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
  | at 
com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
  | at 
com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
  | at 
com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:306)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:279)
  | at 
com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
  | at 
com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
  | at 
com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
  | at 
com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
  | at 
com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:143)
  | at 

[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-17 Thread lcoetzee
Jip, it will work. My one fear of using the RequestParameter stuff is that I 
need to add a bit more error handling to ensure that somebody isn't messing 
with the url (e.g  sending a bogus row value).

Thanks

L



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958471#3958471

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958471
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-17 Thread [EMAIL PROTECTED]
Is this yet another case of the Tomahawk stuff just not playing nicely with 
others?

I'm really really getting close to adding a big don't use tomahawk components 
because they are too broken warning in the Seam docs.

I'm really waiting for the Trinidad stuff to finally get released

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958541#3958541

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958541
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-17 Thread lcoetzee
Jip. I think in this case it is more a case of getting Tomahawk working with 
Facelets. The whole thing falls apart in a specific class that was written to 
allow for the usage in Facelets.

I will keep an eye on the Trinidad stuff.

With regard to the current solution:
I am still searching for good ways to handle the f:param for possible error 
handling.. with the @RequestParameter it gets converted to an int, but fails if 
somebody bookmarked and then changed the url (e.g. replacing the int with say a 
string... resulting in a number conversion exception).  Any suggestions ?

Regards

Louis


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958583#3958583

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958583
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: nested datatables with s:link

2006-07-17 Thread [EMAIL PROTECTED]
lcoetzee wrote : 
  | I am still searching for good ways to handle the f:param for possible error 
handling.. with the @RequestParameter it gets converted to an int, but fails if 
somebody bookmarked and then changed the url (e.g. replacing the int with say a 
string... resulting in a number conversion exception).  Any suggestions ?
  | 

http://jira.jboss.com/jira/browse/JBSEAM-305

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3958598#3958598

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3958598
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user