[JBoss Seam] - datatable + binding + conversation problem
by mail.micke@gmail.com
Hi
I've never really using binding much, and just ran into a problem which I hope you guys might help me with (even if it isn't a seam issue).
I have a table which is backed by a bean in a long running conversation, when I use a datatable defined by XHTML it works fine.
But when I switch to using binding for the datatable I have some problems.
When using the datascroller for moving to a new page of the data table I get this error (this works when not using binding with the same backing bean):
| SEVERE: JSF1054: (Phase ID: RESTORE_VIEW 1, View ID: /jsf/sdb/binding.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@14d948b]
| 2008/02/11 09:57:13,194 =========== RESTORE_VIEW 1 Time spent = 0 seconds
| 2008/02/11 09:57:13,210 Servlet.service() for servlet Faces Servlet threw exception
| javax.el.PropertyNotFoundException: /jsf/sdb/binding.xhtml @17,45 binding="#{sdb.bindingDataTable}": Target Unreachable, identifier 'sdb' resolved to null
| at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:95)
| at com.sun.faces.lifecycle.RestoreViewPhase.doPerComponentActions(RestoreViewPhase.java:240)
|
Why is it that my backing "sdb" bean resolves to null when I use binding?
Backing bean:
| @Name("sdb")
| @Scope(ScopeType.CONVERSATION)
| public class SingleDealBrowser implements Serializable{
|
| // cut
| private List<PositionDisplayWrapper> allPositionWrappers;
|
| private HtmlDataTable bindingDataTable = null;
|
| @Create
| public void init(){
| System.out.println("SDB init()");
| if(!conversation.isLongRunning()){
| conversation.setDescription("SDB " +cpty +"," +cptyGroup +"," +expType);
| //Lets promote it into a long running one
| boolean status = conversation.begin();
| System.out.println("Tried to begin a long running conversation, status=" +status);
| }
|
| runSearch();
|
| }
|
XHTML snippet :
| <ui:define name="posListing">
| <rich:dataTable id="posListingTable"
| binding="#{sdb.bindingDataTable}"
| value="#{sdb.allPositionWrappers}"
| style="width:100%;">
| </rich:dataTable>
| </ui:define>
|
Cheers,
Micke
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128295#4128295
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128295
18 years, 2 months
[Messaging, JMS & JBossMQ] - Re: connection factories and JMS
by sagimann
Are you referring to the Queue/Topic/FactoryRef ? Are they the ones used by the MDBs for inbound messaging? I will clarify my main concern:
When I produce messages using a connection factory that was defined using a tx-connection-factory, I can ensure that the credentials are obtained via a secure login module. This is possible because the tx-connection-factory may reference a security-domain.
When I consume messages, however, my MDB may only specify credentials as clear text (<mdb-passwd>, etc).
I was hoping that I could somehow use a tx-connection-factory definition for MDBs, so their credentials could be more secure. JMSProviderAdapter may provide means to define the inbound connection factories via Queue/Topic/FactoryRef but it does not integrate with a security domain - at least from what I was able to find in the docs. Am I wrong? Is there a better way of doing this?
thanks and sorry for the miscommunication.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128291#4128291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128291
18 years, 2 months