[JBoss Seam] - DataModel PersistentSet problem from rich subtable
by amitdk
Hello
I have a situation that requires me to use the DataModel and DataModelSelection tags in a rich subtable tag. Here's the xhtml code:
| <rich:dataTable value="#{taskObjectives}" var="taskObj"
| columnsWidth="70%,15%,15%"
| style="align:center">
|
| <f:facet name="header">
| <rich:columnGroup>
| <rich:column>
| <h:outputText value="Assigned Task" />
| </rich:column>
| <rich:column>
| <h:outputText value="Update Unapproved" />
| </rich:column>
| <rich:column>
| <h:outputText value="Remove" />
| </rich:column>
| </rich:columnGroup>
| </f:facet>
|
| <rich:column colspan="3" style="background-color:#F1E1D1">
| <h:outputText value="#{taskObj.description}" />
| </rich:column>
|
| <rich:subTable var="selectTask" value="#{taskObj.taskAssignments}"
| onRowMouseOver="this.style.backgroundColor='#E0E0E0'"
| onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'">
| <rich:column>
| <h:outputText value="#{selectTask.comments}" />
| </rich:column>
| <rich:column style="text-align:center">
| <s:button type="submit" action="#{report.updateTask}"
| value="Update Task" />
| </rich:column>
| <rich:column style="text-align:center">
| <s:button type="submit" action="#{report.removeTask}"
| value="Remove Task" />
| </rich:column>
| </rich:subTable>
| </rich:dataTable>
|
There is a one to many relationship from taskObjective and taskAssignment. DataModel tag is used on the taskObjective, however since taskAssignments aren't exposed that way, I get the following exception on the subtable section:
| Caused by: javax.faces.el.PropertyNotFoundException: /WeeklyReport.xhtml @52,55
| value="#{selectTask.comments}": Bean: org.hibernate.collection.PersistentSet, pr
| operty: comments
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.ja
| va:58)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:80)
| at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getStringValue
| (RendererUtils.java:223)
| ... 77 more
|
Is there any built-in way to convert a PersistentSet to a DataModel for use in the the subtable? If not what would be a good way to implement this - use a converter??
Any hints or tips appreciated.
Thanks
Amit Karandikar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062158#4062158
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062158
18Â years, 10Â months
[Installation, Configuration & DEPLOYMENT] - UnsatisfiedLinkError with third-party DLL
by psyllogism
Hi all,
I'm developing an application on JBoss that uses a third-party DLL utility accessed through the third-party's Java API. Both of these are proprietary and I have no control over their content.
When my application tries to use the API, I get an UnsatisfiedLinkError with the following stack trace:
| ...
| 16:15:56,642 ERROR [STDERR] Caused by: java.lang.UnsatisfiedLinkError: ThirdPartyMethod
| 16:15:56,642 ERROR [STDERR] at third.party.PrivateClass.ThirdPartyMethod(Native Method)
| 16:15:56,642 ERROR [STDERR] at third.party.ThirdPartyClass.privateMethod(ThirdPartyClass.java:152)
| 16:15:56,642 ERROR [STDERR] at third.party.ThirdPartyClass.<init>(ThirdPartyClass.java:85)
| ...
|
I *KNOW* that I am loading the third party DLLs fine, because if I remove them from my system, I get an "UnsatisfiedLinkError: no ThirdPartyLibrary in java.library.path".
My problem is basically the same as the problem described in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=68428&postdays=0... JBoss forum post:
However, I tried to implement the solution described there and it didn't work. I get the exact same error. Could someone maybe elaborate more fully on the solution described in that post?
Any hints would be greatly appreciated!
For the record, I am developing on Windows XP SP2 with Java 1.5, JBoss 4.0.4, and EJB 3.0.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062155#4062155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062155
18Â years, 10Â months